Re:Zig gamedev project – left my job to build games in Zig lang
by Shadonototra on Monday October 18, 2021 @06:52PM
(#28912831)
Zig is allocator aware, use after free protection is covered with the ``GeneralPurposeAllocator``
Re:Zig gamedev project – left my job to build games in Zig lang
by pcwalton on Monday October 18, 2021 @07:03PM
(#28912933)
Is GeneralPurposeAllocator the one that quarantines memory forever? That isn't practical, as I've mentioned before. To name one problem, allocating 1 byte in a 4kB page leaks the entire page.
Disagree, but in any case, we're talking about the fact that Zig doesn't provide use-after-free protection.