Hacker News new | ask | show | jobs
by pcwalton 1707 days ago
> the only memory safety gamedev needs are bound checking and use after free protections

Disagree, but in any case, we're talking about the fact that Zig doesn't provide use-after-free protection.

1 comments

Zig is allocator aware, use after free protection is covered with the ``GeneralPurposeAllocator``
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.