Back to browse
Autolang-A C++ VM with 2ms startup time and arena-restart memory model

Autolang-A C++ VM with 2ms startup time and arena-restart memory model

by hoansdz·Mar 1, 2026·2 points·0 comments

AI Analysis

●●SolidBig BrainNiche Gem

2ms startup beats Lua, but 2x-5x slower at runtime—unfocused tradeoff.

Strengths
  • Arena-restart memory model is genuinely clever for disposable task loops
  • Single-pass compiler + 2ms cold startup solves real latency pain in agent frameworks
Weaknesses
  • Runtime 2x-5x slower than Lua—undermines practical utility vs overhead tradeoff
  • No benchmarks proving agent-loop startup actually dominates execution time in real workflows
Target Audience

Systems engineers, AI agent developers, embedded scripting use cases needing fast startup

Similar To

Lua · Wren · QuickJS

Post Description

Hi HN, I’m a student and I’ve spent the last few months building Autolang—an embedded language and VM from scratch in C++.

I built it because I needed a specialized runtime for high-frequency, short-lived tasks (like AI agent loops) where Python/Lua startup latency and GC overhead become actual bottlenecks.

Core Architecture:

Arena-restart: No Tracing GC. It prioritizes allocation speed (~2x faster than Lua). Memory is wiped instantly between tasks via a restart() mechanism.

Fast Compilation: 100k classes compile in ~888ms (Single-pass).

Lightweight: The VM is designed for a ~2ms startup target.

The Trade-off: Execution is currently 2x-5x slower than Lua as I'm still optimizing the bytecode dispatch (if-chains).

I’d love to hear your thoughts on using Arena-restart for autonomous scripts and any advice on optimizing dispatch without bloating the startup time.

Similar Projects

Infrastructure●●●Banger

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

O(1) arena cleanup with handles making dangling pointers unconstructable by default.

WizardryBig Brain
theperezident
512mo ago
AI/ML●●Solid

AgentKeeper – Cross-model memory for AI agents

Recovers 95% critical facts when switching GPT-4 ↔ Claude with real benchmarks.

Solve My ProblemBig Brain
thinklanceai
103mo ago
AI/ML●●Solid

See what ChatGPT knows about you that Claude doesn't

Identity protection through compression cycles is clever, but agent memory is a crowded space.

Big BrainNiche Gem
tomtom1977
206d ago