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

Substrate: A Lisp for WebAssembly

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.

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

    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 […]

More from this day

2026-11-21