3 ms·
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
by emmanueloga_ 3y ago
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 https://ziglang.org/learn/samples/#memory-leak-detection
- saagarjha 3y agoThat doesn't really help.
- emmanueloga_ 3y agoJust as your comment :-p
- saagarjha 3y agoIf 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.