← Sat, Nov 21 digest

Substrate: A Lisp for WebAssembly

read article ↗ hn thread ↗

Substrate is a new Lisp dialect targeting WebAssembly that supports hygienic macros, dependent types, sandboxed execution, and a rich standard library.

summary is enough The landing page outlines an intriguing Lisp-to-WebAssembly project with rich features, but project announcements are easily grasped via a summary.

summary

Substrate is a Lisp dialect compiling to WebAssembly that enables developers to build custom domain-specific languages using hygienic macros and module hooks. The language features sandboxed execution, memory management, concurrency, and a standard library covering HTTP, DOM, and canvas integration. Dependencies are managed via local paths or hash-pinned URLs to ensure reproducible builds.

key points

  1. Substrate compiles to WebAssembly and supports defining new languages and DSLs as importable libraries.
  2. Execution is sandboxed by default, preventing unauthorized filesystem and network access without explicit grants.
  3. The standard library includes modules for cryptography, HTTP, HTML, DOM, canvas, and browser automation.
  4. Dependencies can be imported via local paths or hash-pinned URLs.

who should read it

Language designers, Lisp enthusiasts, and developers interested in WebAssembly runtimes.

discussion positive

consensus

Commenters are intrigued by the feature set, particularly the sandboxing and browser integration, despite initial skepticism toward slick, modern landing page aesthetics.

pushback

Some users express fatigue with over-produced website aesthetics and AI-generated design patterns.

best comment by 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.

> …

It cuts past initial skepticism toward website design to highlight specific architectural features like sandboxed execution and browser integration.

Generated by an LLM from the article and thread. Check the sources before relying on it.