3 ms·
I used this at a startup and it was pretty bad. It sort of vaguely looks like Common Lisp, but you pretty much have to program in Javascript and there are a lot
by nathan_compton 4y ago
I used this at a startup and it was pretty bad. It sort of vaguely looks like Common Lisp, but you pretty much have to program in Javascript and there are a lot of weird edge cases (eg (apply #'+ '(1 2 3)) doesn't work because there is no + function in Javasccript.
Just write Javascript.
- aidenn0 4y agoIf you want to write common lisp to run in the browser, use jscl or the webasm version of ECL. Parenscript is JS with macros written in CL, which is extremely handy for me.
- ajani 4y agoI tried looking for the webasm version of ECL, but couldn't find it. The official ECL homepage doesn't mention a wasm target. Do you have a link maybe?
- aidenn0 4y agohttps://news.ycombinator.com/item?id=33113200 https://news.ycombinator.com/item?id=33113200 For context "jackdaniel" is Daniel Kochmański, ECL's maintainer, so 4 months ago at least it was planned to be merged for the next release. Branch is at https://gitlab.com/embeddable-common-lisp/ecl/-/tree/emscripten https://gitlab.com/embeddable-common-lisp/ecl/-/tree/emscrip...
- ajani 4y agoThanks! I suspect the work is still ongoing. But maybe not on priority. This diff from around 3 months ago shows it's likely possible to run it in the browser currently but with a lot of caveats (pretty great nonetheless!). https://gitlab.com/embeddable-common-lisp/ecl/-/commit/6af4b3e51f80d569d88f0e8a4782b21c8b04970e https://gitlab.com/embeddable-common-lisp/ecl/-/commit/6af4b...
- Turing_Machine 4y agoIf you're not a Scheme hater, Biwa Scheme is quite nice, and the Javascript interop is very low friction.
- nathan_compton 4y agoI'm the opposite of a Scheme hater. I developed a whole (smallish) arena roguelike in Scheme.
- Turing_Machine 4y agoPersonally I'm agnostic between Lisp and Scheme (or whether Scheme is, in fact, a Lisp), but some people have Strong Opinions on this. :-)
- nathan_compton 4y agoI wouldn't describe my opinions as strong, but I have a pretty big preference for the simplicity of Scheme.