arena-actors
Skill1 starsChanged 50 days agoMITView on GitHub
Arena-per-actor pattern: Ericsson 1986 Erlang heaps = Zig/Rust arena allocators. Zero-GC actor model. Trigger: arena allocator, per-process heap, zero GC, wisp memory, ephemeral allocation, bumpalo, let it crash memory, Ericsson pattern
In this repository113 other files it gives its agents.
- AGENTS.mdAGENTS.md
- ac-ideateSkill
- ac-listSkill
- ac-roadmapSkill
- agentbridge-mcpSkill
- almanacSkill
- almquist-shellSkill
- ansible-fleetSkill
- apfsSkill
- apple-siliconSkill
- asustor-nasSkill
- a-teamSkill
- atem-miniSkill
- at-tuiSkill
- autoresearchSkill
- babysitSkill
- bonzibuddySkill
- bop-brainstormSkill
- bop-catalogSkill
- bop-onSkill
- bop-teamSkill
- bop-workflowSkill
- bsd-portabilitySkill
- code-refactoringSkill
- codex-personasSkill
- context-graphSkill
- councilSkill
- datadog-backupSkill
- dd-tagsSkill
- delegateSkill
- deming-pdsaSkill
- deterministic-replaySkill
- dispatch-nuSkill
- durable-commitSkill
- elixir-gastown-opsSkill
- ergo-ircSkill
- esp32-tang-bridgeSkill
- fleet-evalSkill
- fleet-ircSkill
- freebsd-build-vmSkill
- freebsd-piSkill
- freebsdSkill
- ganttSkill
- gastown-opsSkill
- gastown-slingSkill
- gh-authSkill
- gitea-releaseSkill
- gitea-runnerSkill
- henshuSkill
- irclaw-cluster-opsSkill
- irclaw-research-teamSkill
- irc-taskSkill
- jail-factorySkill
- jjSkill
- jobcard-systemSkill
- kubernetesSkill
- leptosSkill
- loreSkill
- lower-bound-reviewSkill
- macvlan-netSkill
- The first 60 shown.
The file
Files
Arena Actors — Zero-GC Actor Pattern
Ericsson 1986: each Erlang process gets its own heap. Process dies = free heap. No tracing GC. Same pattern in Rust/Zig: arena-per-actor, allocate freely, free everything at once.
The Pattern
spawn actor → create arena
actor runs → allocate in arena (fast, no bookkeeping)
actor dies → free arena (one operation, instant)Zero tracing GC. Zero reference counting. Zero stop-the-world pauses.
Rust: bumpalo (MIT)
use bumpalo::Bump;
let arena = Bump::new();
let data = arena.alloc_slice_copy(&embedding_vector);
let result = cosine_similarity(data, query);
// arena dropped here — everything freed at onceZig: ArenaAllocator
var arena = std.heap.ArenaAllocator.init(std.heap.page_allocator);
defer arena.deinit(); // free everything
const alloc = arena.allocator();
const data = try alloc.alloc(f32, 1024);Applied to Fleet Wisps
Each wisp (ephemeral bead):
- Arena created (spawn)
- Work done — allocations in arena only
- Result sent to caller (message passing)
- Arena freed (wisp dies)
1GB Pi budget: 100 concurrent wisps × ~10KB each = 1MB total. Nothing.
vs BEAM
BEAM does the same thing — per-process heap, freed on process exit. The difference: BEAM has a runtime VM (~40MB). Arena in Rust = 0 bytes overhead.
Key Libraries
- bumpalo (Rust, MIT) — bump allocator, fast, 0 fragmentation
- typed-arena (Rust, MIT) — typed variant
- std.heap.ArenaAllocator (Zig) — built-in, zero deps
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

