9 points · by henryluo · 8mo ago · 17 comments
So I built Lambda — an expressive functional language that combines the power of Lisp, TypeScript, and many DSLs like jq, jQuery, RelaxNG, etc.
It has a lightweight 9 MB runtime, built from scratch in C/C++, that provides an end-to-end document processing pipeline (parse → validate/query/transform → layout → render/view).
Internally, Lambda parse different input formats (Markdown, Wiki, HTML/XML, JSON/YAML/TOML/CSV, LaTeX, PDF, …) into a unified Lambda/Mark node tree, then transformed with Lambda scripts, validated with schemas, and then rendered via the Radiant HTML/CSS/SVG layout and rendering engine.
Repo (with examples and demos): https://github.com/henry-luo/lambda
I’d love feedback on: where this could actually be useful in your workflows; language design (what feels unnecessary vs. missing); etc.
Unless I'm misunderstanding nushell has a type system and is strongly/gradually typed. And there is pattern matching too, though unsure what you mean by schema support?
As for the performance, I'm standing on the shoulder of great tools like MIR JIT compiler.