DealForge autonomously sources, scores, and writes investment memos on venture deals. Stop manually hunting.

1,180+ deals tracked  ·  22 AI investment memos  ·  Updated daily

← Back to leaderboard

Scope

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

47 AI Score
Show_hn other Added Apr 15, 2026

Details

Sector
other
Total Funding
$0
Last Round
$0

About

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.<p>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 default. Cross-scope lifetime extension is explicit — you enter the target arena via SCOPE(ptr) before allocating, which routes the object into the outer arena without transferring ownership.<p>Benchmarks (no optimization flags): 1M-node tree cleanup drops from 31ms to 1ms (~30×). There&#x27;s a real regression in tight inner loops (~0.76×) because DEREF can&#x27;t hoist the base pointer the way a compiler would — the spec documents this honestly.<p>This is a C macro-based proof-of-concept for a memory model I&#x27;m targeting in a compiled language. The interesting question isn&#x27;t the C implementation — it&#x27;s whether scope-structured arena routing is a sound replacement for GC and borrow checking across the class of programs that matter.<p>Repo: <a href="https:&#x2F;&#x2F;github.com&#x2F;hollow-arena&#x2F;ariandel" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;hollow-arena&#x2F;ariandel</a> — SPEC.md has the full model including concurrency semantics and the comparison to Tofte &amp; Talpin region-based memory.

AI Score Reasoning

Ariandel offers a sophisticated technical approach to memory safety that could potentially disrupt the systems programming landscape by providing an alternative to both Garbage Collection and Borrow Checking. However, it is currently in a very early proof-of-concept stage with minimal traction and significant hurdles regarding performance regressions and the massive challenge of language adoption.

Source

Show_hn — View original →