News for hackers. Stuff that matters.
Re:Translations of Russ Cox's Thompson NFA C Program to Rust by pornel on Friday November 03, 2023 @09:20PM (#38137129)
I think another solution could be to use an arena/memory pool to replace indices with references.

But indices are still safer than raw pointers - vec access does bounds checks. You can make indices typed if you’re worried about mixing them up.

Re:Translations of Russ Cox's Thompson NFA C Program to Rust by burntsushi on Saturday November 04, 2023 @07:07AM (#38139922)
I mentioned slab/bump allocators in the README. But whether it works with the Ptrlist type punning is unclear to me.