News for hackers. Stuff that matters.
Re:How safe is Zig? by flohofwoe on Friday June 24, 2022 @02:15AM (#31858323)
At that point it's better to use 'tagged index handles', but IMHO that's outside the scope of the language (but maybe an option for the stdlib):

https://floooh.github.io/2018/06/17/handles-vs-pointers.html

(but for this an "auto-decaying pointer" would be nice which cannot be stored outside the stack and cannot be "carried across" function calls.

Re:How safe is Zig? by randyrand on Friday June 24, 2022 @05:14AM (#31859395)
Nice article. Similar idea ofc. Yes, that design could work tho all objects per pool must be the same size. Not sure how that would be better.