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

It doesn't, but it puts a RED BANNER in every place where memory is allocated, and you need to explicitly pass an allocator of your choosing whenever memory is allocated. It also contains no hidden allocations or function calls. So it forces you to think about your memory allocation patterns, and also includes some tools to catch memory leaks [1].

1: https://ziglang.org/learn/samples/#memory-leak-detection



That doesn't really help.


Just as your comment :-p


If you didn't find "thinking about memory allocations doesn't help much with memory safety" useful I don't really have much more to share.




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

Search: