Skip to content

Could you provide a minimal example demonstrating how to use otus to work with WASM? #50

Answered by yuriy-chumak
glyh asked this question in Q&A
Discussion options

You must be logged in to vote

Try make olvm.wasm from Otus Lisp repository folder. Emcc should be available by the $PATH (using source path-to-the-emscripten/emsdk_env.sh, for example).

You should be aware of a bug in emscripten for unblocking access to the stdin and other ports. Please check the Ol Makefile for details (line 304, started from # important note: fix for emscripten to asyncify stdin: ....

Additionally, you can check out the "pacman" sample to understood how to embed olvm into your code.

The full usage example can be found at the project page sources (sorry for lot of comments, I'm not a js dev so code is a bit shitty :)).

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by yuriy-chumak
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants