Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I checked with valgrind too and see similar memory leaks. Is v compiler written in vlang yet? I see lot of warnings and leaks for the compiler.


It has been written in V from the start (the first public release).

V doesn't free memory when building V for performance reasons.

A compiler is a perfect example of an app where freeing memory is totally fine on exit, by the OS.

Fortunately V is efficient and doesn't result in gigabytes of RAM used when compiling large bases of code (V itself is about 110k loc + 100k of vlib).

Once there are code bases that require gigabytes of RAM, we'll add an option to free it as it goes.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: