3 ms·
It's really cool. Sorry for the ignorance, but how you run Janet on the browser?
by culanuchachamim 4y ago
It's really cool.
Sorry for the ignorance, but how you run Janet on the browser?
- ianthehenry 4y agoI don't think that's ignorance :) Embedding Janet in the browser is hard! My real motivation for making this website was to have a simple example to point to of how to do it. Short answer: Emscripten + WebAssembly. Long answer: https://github.com/ianthehenry/toodle.studio https://github.com/ianthehenry/toodle.studio Specifically I think these are the interesting bits: https://github.com/ianthehenry/toodle.studio/blob/master/build/wasm.js.do https://github.com/ianthehenry/toodle.studio/blob/master/bui... https://github.com/ianthehenry/toodle.studio/blob/master/src/driver.cpp https://github.com/ianthehenry/toodle.studio/blob/master/src...