Delyan Angelov

Results 270 comments of Delyan Angelov

Here is a small comparison between the version before, and the version after (`bf_v`), vs the C and the Go versions: ![image](https://user-images.githubusercontent.com/26967/185059651-45402075-c54b-45f3-a3c6-8cfbcc7c7f0e.png)

May be obsoleted by , which will also benefit other V programs in this benchmark suite.

Can you add a small example/test on how these will be used please?

Also, run `v fmt -w vlib/v/gen/c/sql.v`

It may be more general to generate dummy functions, that have the same signature, but that just return the default value for the return type, and initialize the fn callback...

> How to check if the call is inside an unsafe{} block? Currently the cgen stage can not check that efficiently, unlike the checker, but it is easy to add....

> So it seems like in general, it makes V programs 15KB smaller With what platform/compiler was that measured 🤔 ? I got ~400B - ~2.4KB of differences on Ubuntu...

I've made a script to measure in a more systematic way, and it seems that I am wrong about tcc: ``` 2[15:56:58]delian@nemesis: (master) /v/cleanv $ rm -rf compare_*; for branch...

Smaller programs like hello_world.v show no big improvement in executable size (~100-450 bytes): ``` 0[16:00:04]delian@nemesis: (nodefine) /v/cleanv $ rm -rf compare_*; for branch in master nodefine; do git checkout $branch;...