# Substrate brings Racket-style macros to WebAssembly and compiles at 47k lines per second

Original title: Substrate: A Lisp for WebAssembly

> Hacker News story 50535187 · language: en · submitted 2026-11-17
> Web version: https://zeli.app/story/50535187
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 18 · by [unignorant](<https://news.ycombinator.com/user?id=unignorant>) · 💬 5
[original](<https://substrate-lang.com>) · [HN discussion](<https://news.ycombinator.com/item?id=50535187>)

## Summary

Substrate is a Lisp for WebAssembly that pairs C-like low-level control with hygienic macros, letting developers define new languages and DSLs as importable libraries. Its self-hosted compiler builds itself in about a quarter second, compiles roughly 47k lines per second, and produces Wasm that runs within about 1.4× of C. Programs are sandboxed by default, and the compiler even runs in the browser.

## Key quote

> Substrate is an answer to a broader question: how will programming change in the era of LLMs?

## HN discussion (5 comments)

### [lioeters](<https://news.ycombinator.com/item?id=50587192>)

> After downvoting the comment below about how no one writes code anymore, visiting the site and seeing the typical AI-generated aesthetic and text is disappointing. Why should anyone care what your agent produced, when my agent can do the same thing better suited for my personal/business needs. Then I saw a glimmer of hope.
>
> \> Note: this README was written by a human.
>
> What a pleasure, am reading through it.
>
> \> code is sandboxed and cannot access your filesystem or network without grants
>
> Excellent, it makes sense for a scripting language to have minimal and granular permissions and access.
>
> \> Standard Library .. crypto, compress, http, html, dom, canvas, browser
>
> A set of useful features, that shows what the language can do out of the box.
>
> That browser module running Chromium looks nice. In a recent project I'm working on, which also involves a language runtime, I added a webview module that "completes the loop" for developing both the server and frontend of an application. It's especially ergonomic programming with WebSocket and hot reloading.
>
> \> dependencies by path or by a hash-pinned URL
>
> \> macros, generics, memory management, concurrency
>
> \> linking Wasm libraries
>
> Cool! Good design choices and taste.
>
> OK, so I took some time to read the entire README, and enjoyed hearing the human side of the story, the thinking that went into designing the language.
>
> Honestly, if you put that document in plain text as the website, I would have been more excited and interested from the start. I thin […]

---

## Cite

- Page: https://zeli.app/story/50535187
- Date: 2026-11-17
- Source: substrate-lang.com (https://substrate-lang.com)
- Hacker News: https://news.ycombinator.com/item?id=50535187

## Other languages

- zh: https://zeli.app/zh/story/50535187 · markdown: https://zeli.app/zh/story/50535187.md
- ja: https://zeli.app/ja/story/50535187 · markdown: https://zeli.app/ja/story/50535187.md
- ko: https://zeli.app/ko/story/50535187 · markdown: https://zeli.app/ko/story/50535187.md
- de: https://zeli.app/de/story/50535187 · markdown: https://zeli.app/de/story/50535187.md
- es: https://zeli.app/es/story/50535187 · markdown: https://zeli.app/es/story/50535187.md
- ru: https://zeli.app/ru/story/50535187 · markdown: https://zeli.app/ru/story/50535187.md
