I wonder if anyone has made a low-level #Lisp that is specifically designed to be semantically close to #WASM code, so that it compiles to be very very efficient (kinda like how Lua is really fast because it’s very semantically similar to C code, which is what its interpreter is written in)

like WASM already reads kinda like a Lisp to me, and I bet that would run crazy fast

(I’ve been tempted to do this several times I’m ngl. I think I want to learn WASM one of these days. sadly most of the “learn WASM” tutorials are more like “learn how to compile some shitty language like C++ to WASM”)

@kasdeya This probably isn't what you're looking for: it's an implementation of #Lisp 1.5 -- the oldest published version of Lisp -- which compiles to #WASM .

It might interest you anyway ;-)

https://github.com/zick/IchigoLisp

GitHub - zick/IchigoLisp: LISP 1.5(-ish) implementation in WebAssembly

LISP 1.5(-ish) implementation in WebAssembly. Contribute to zick/IchigoLisp development by creating an account on GitHub.

GitHub
@simon_brooke ooh - thank you! this sounds interesting tbh. I kinda like the idea of using a really simple, minimal Lisp like this. I might play with this a bit