Ant
A from-scratch JavaScript runtime in 9 MB
Details
- External ID
- 48071173
- Source
- HN
- Company
- —
- Product
- Ant
- Website domain
- github.com
- Launched
- May 9, 2026
- Cohort
- —
- Upvotes
- 8
- Upvotes percentile
- 0.4894991922455573
- Tags
- —
- Fetched at
- Sept. 7, 2026, 9:26 p.m.
- Updated at
- Sept. 7, 2026, 9:26 p.m.
Description
Hey HN! I have been working on Ant for a while now, would love to share around now.What is Ant? It's my JavaScript runtime, built from scratch over many hours of work. Much effort has gone into keeping the binary size small, around 9MB at the moment (6.5 MB with -Os). On my M4 Pro, the hono coldstart bench (examples/npm/hono/bench-coldstart.js) lands around 5ms, about 2.4x faster than bun, and 5.8x faster than node.To keep things small, the engine ("Ant Silver") is hand-written, not a wrapper around V8/JSC/SpiderMonkey. The JIT is still a work in progress but it uses a fork of MIR as the backend.Ant currently targets the WinterTC Minimum Common API, while also passing 100% the javascript-zoo compat-table tests, and is sitting around 64% on test262.Why did I build Ant? Well, I wanted a runtime small enough to ship with CLI's and small Docker containers without having to drag along 50 to 100mb of just runtime. Ant in its current state is performant enough in some cases to compete with v8, but mostly in specific shapes.Background on how it got here: https://themackabu.dev/blog/ant-part-twoOnline demo shell/container: https://ant.axIf anyone has questions about Ant, such as the engine, im happy to answer any of them! Feedback is also appreciated, if you run your own code and hit some edge case.
Enrichment
- Theme
- lightweight and on-device AI runtimes
- Vertical
- Horizontal
- Function
- Dev tools
- Audience
- Developer
- AI stance
- Not AI
- Project type
- Hobby / open-source project
- Normalized one-liner
- javascript runtime implementation
- Manually corrected
- False
Could you build this?
No Building a custom JavaScript runtime from scratch that fits within a tiny binary size requires deep systems programming, engine integration, and compiler toolchain expertise.
What it would actually take: The system embeds a lightweight JavaScript engine (such as QuickJS or an embedded V8/JavaScriptCore build) compiled against a custom event loop using low-level I/O primitives (epoll, kqueue, or io_uring). It requires implementing Web standard APIs (fetch, Request, Response, Streams) and Node/Hono-compatible bindings in C or Rust while optimizing compilation flags and stripping unused symbols to maintain sub-10MB binary size. This necessitates deep expertise in systems programming and runtime internals.
Discussion
4 comments analyzed.
Competitors mentioned: LLVM, Cloudflare Workers/V8 isolates, AWS Lambda
Concerns raised: LLVM compilation is slow and doesn't fit JS dynamic execution, Cold start issues in serverless environments, Performance and binary size tradeoffs with JS
Feature requests: Support dynamic development mode with instant code reflection vs static optimized production deployment, Serverless environment optimization to eliminate cold starts, Full Node.js environment compatibility with fast execution
Competitors
Other products that read as similar to this one — 144 launches clear the similarity bar, closest 8 shown.
Attention rank: #69 of 145 (itself plus its competitors, highest first — normalized so YC and Product Hunt are compared fairly).
Launched 191 days after the earliest competitor.
- Ant · hn · 2026-07-11 · 330 upvotes · similarity 0.67
- Nectar, a Rust-like React that compiles to WebAssembly · hn · 2026-07-06 · 29 upvotes · similarity 0.49
- Elysia JIT "Compiler", why it's one of the fastest JavaScript framework · hn · 2026-02-08 · 54 upvotes · similarity 0.46
- Mystral Native · hn · 2026-01-27 · 50 upvotes · similarity 0.44
- A Unix environment in a single HTML file (420 KB) · hn · 2026-02-18 · 30 upvotes · similarity 0.43
- Titan · hn · 2025-12-11 · 49 upvotes · similarity 0.43
- QuickBEAM · hn · 2026-03-28 · 113 upvotes · similarity 0.42
- TinyJS · hn · 2026-09-01 · 8 upvotes · similarity 0.42
Other launches for this product
- No other launches for this product.
Same idea, different domain
Nobody's really built a dev tools tool for Sales yet.