Hacker News new | past | comments | ask | show | jobs | submit login

> The fact that the author calls it a slab arena makes me think they did, indeed, intend for it to be used with a single type per arena.

Maybe? But that seems strange, since they seem to have intended it to be used for http servers making per-request allocations.

Come to think of it, the arena is probably still unsound with just ints, because the underlying allocation is just for a `[]byte`, which I don't think is guaranteed to be aligned to 8 bytes. Might be on most platforms, though.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: