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.
Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.