Article may be outdated

This article is 87 days old. Some details may have changed since publication.

Hacker News·3 min read·hard

A pure scheme web programming tool

G
guenchi
✦AI Summary

A new self-hosted Scheme programming tool called Goeteia allows developers to compile Scheme code directly to WebAssembly within the browser. The tool features a self-hosted compiler, efficient memory management, and support for complex language features like continuations and signals.

Why it matters

This represents a significant advancement in browser-based development environments, enabling high-performance functional programming directly in web applications.

✦Dive DeeperCreate a free account to unlock

Everything beside this is rendered by Goeteia. The Scheme below is compiled to WebAssembly in your browser and mounted live.

loading… Run booting the compiler… The 3D title is a WebGL particle cloud — its glyphs, flight and colors are all in this source. Edit the dot-matrix rows , tweak the shader, press Run. This page carries the whole compiler ( goeteia.wasm , ~70 KB gzipped, cached after first load); each recompile takes ~15 ms.

The compiler is written in the Scheme subset it compiles. The self-hosted build recompiles itself and the output is byte-identical — the fixpoint is checked in CI fashion on every change, and every test runs through both stages.

Fixnums are unboxed i31ref s, pairs and records are GC structs, eq? is one ref.eq . No shadow heap in JavaScript: the host supplies two byte-stream imports and nothing else.

Continue reading on Headlinne

Create a free account to read the full article.

Read full article →
technologydesign
✦

Get smarter about the news

Sign up free for a feed built around what you actually care about, Dive Deeper research on any story, and the full text of every article.

Create free account

Already have an account? Sign in