hn.today

Show HN: Margeux, an indentation based Lisp with WASM runtime

margeux.com7 points5 comments
Screenshot of Show HN: Margeux, an indentation based Lisp with WASM runtime

Margeux is presented as an indentation-based Lisp that runs in a WebAssembly environment, with a browser editor for writing and executing programs. Its starting example defines a greeting function without explicit type annotations, then uses it in a simple view containing a heading and explanatory text. The example shows the editor’s central workflow: edit the code, press Run, and see a stateless graphical application rendered alongside it. The interface also offers controls for inspecting and managing execution, including undo and redo, trace export and import, state and transition counts, checkpoints, and saving.

The supplied examples and standard library suggest a language intended to span small learning projects and practical applications. The library covers areas such as animation, audio, databases, user interfaces, servers, storage, math, vectors, and music. Example programs demonstrate language features including macros, modules, inferred types, records, variants, validation, asynchronous actions and HTTP, and compile-time checks. Other examples range from a Snake game, raycaster, and terminal sketchpad to a PostgreSQL-backed server, music tools, and WebAssembly terminal applications. The page thus serves both as an interactive introduction to Margeux’s syntax and as a catalog of its runtime capabilities and sample projects.

Read on margeux.com5 comments on Hacker News

Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.

More in Programming

Sarasa Gothic Mono

Sarasa Gothic Mono

Sarasa Gothic Mono is a free, open-source monospace typeface built for multilingual programming, combining Source Han Sans and Iosevka. It offers coding ligatures, pixel-friendly hinting, condensed characters, and support for Latin, Cyrillic, Greek, and East Asian scripts. (picaq.github.io)

The daily digest

Today's best Hacker News stories, summarized and screenshotted, one email a day.