HACKER Q&A
📣 tresilience

Import Common Lisp Code into Parenscript


I have trouble understanding what parenscript does and not does.

Am I "out on Mars" in the Lisp world with parenscript or can I also make use of other Common Lisp Code easily like trivia etc? What are people actually doing with parenscript, develop everything themselves from "the ground up"?

Thanks


  👤 remexre Accepted Answer ✓
Most Lisp libraries won't automatically work with Parenscript -- think of Parenscript as just being more Lisp-like syntax for JS, rather than a compile from Lisp to JS. It's quite useful if you want to dynamically generate JS, or wish JS had macros, but it won't give you trivia for free.

Hopefully some day there'll be a production-quality Lisp implementation that runs in WebAssembly... Though, I wonder if you could hack together ECL and emscripten?


👤 jinwoo68
There's JSCL [1], an implementation of Common Lisp in JS. It's not a full implementation but you would be able to use some CL libraries, I guess.

[1] https://github.com/jscl-project/jscl