Issue #2381: Spike: what Nikaia lacks to write the program’s global allocator in Nikaia

Open and answer this issue on GitHub.

selfhosting, runtime, decision · opened 2026-11-20 · updated 2026-11-20 · 0 comments

Found while a Counting global allocator in the nikaia binary costs +4.2 % instructions (#2368) Related: Choosing the allocator: a build, a task or a call names where memory comes from, and an allocation that may fail returns a value (#1493)

Goal (a spike)

Find out what Nikaia lacks to write the program’s global allocator itself, in Nikaia, instead of the Rust task_block::Counting and Block in crates/unsafe/task-block/src/lib.rs (the last Rust a self-hosted runtime would keep there, #125).

To find out

Done when

A report (a comment here or a decision paper) lists each missing form with a probe of a few lines and a recommendation; each gap is filed as its own decision or ready issue. No allocator is built in this issue.

Back to Open Issues