News for hackers. Stuff that matters.

theperezident

Show HN: Scope-structured arena memory for C, O(1) cleanup, no GC/borrow checker

https://github.com/hollow-arena/ariandel

Ariandel is a memory model where every heap object lives in a scope-owned arena. Scope exit resets the arena in O(1) — one bump pointer write and one free — regardless of how many objects were allocated.The safety default: allocating functions return ARENA_PTR handles (packed arena_id + offset integers), not raw pointers. A dangling pointer at a function return boundary is unconstructable by...

( Read More... | 1 comment | 3 points | on HN )