Show HN: Using Common Lisp from Inside the Browser

41 jackdaniel 7 8/21/2025, 12:08:30 PM turtleware.eu ↗

Comments (7)

adamddev1 · 1h ago
Ah, in an alternate world where Brendan Eich wasn't pressured by his superiors to make JS more Java-like, we could have had something like this as very normal.

I wonder how much faster that would have pushed the world into FP ideas. While sometimes I prefer the bracket/C syntax, I wonder how things would have evolved if JS was a lisp originally. Instead of things moving to TypeScript, would they be moving to something like typed Lisp or OCaml, or PureScript ?

umanwizard · 28m ago
Is CL really particularly more “functional” than JavaScript? I don’t know CL but I know it bears some passing similarity to Emacs Lisp, which is usually written in a pretty imperative style. Sure, it has first-class closures but so does JS.
taeric · 8m ago
As the sibling says, CL can be written in most any style. Which, I think it is fair to say for any general programming language? The book Exercises in Programming Style highlights that. That said, CL feels far friendlier to the various styles than other languages, to me.

Link to book on Amazon: https://www.amazon.com/dp/0367350203

jackdaniel · 22m ago
CL enables many paradigms of programming, including functional one and imperative. Currently the most popular way of programming among CL programmers is OOP with CLOS.
bitwize · 55m ago
The JS backend to Gambit is now pretty mature. If you're willing to deal with Scheme, Gambit, and its FFI, you can live in that alternate "Scheme in the browser" universe even without WASM.
jackdaniel · 28m ago
There's also Guile Hoots compiling directly to WASM.
octopoc · 1h ago
WebAssembly is about an improved Developer Experience. It lets us write in the languages we like :)

I can't say how many times I've reinvented pieces of Common Lisp to do my job. Now I want to start a side project with this.