Hasty Briefsbeta

Cross-Compiling Common Lisp to WASM

13 days ago
  • #compilation
  • #lisp
  • #webassembly
  • Common Lisp can be used in WebAssembly (WASM) runtimes, expanding its ecosystem.
  • The post explains how to build ECL (Embeddable Common Lisp) for WASM using Emscripten SDK.
  • WECL (Web Embeddable Common Lisp) is introduced as a tool to simplify WASM integration with Common Lisp.
  • The tutorial covers cross-compiling Common Lisp programs to WASM, including setting up the environment and building WECL.
  • Running Common Lisp in the browser or via Node.js is demonstrated, with caveats noted for each approach.
  • The post details how to extend ASDF for cross-compilation, enabling the compilation of entire systems into static libraries for WASM.
  • Funding for the project is provided by the NGI0 Commons Fund, supported by the European Commission's Next Generation Internet program.