chris-koch-penn / polylang.io

polylang.io provides free, open-source code playgrounds in 10 programming languages. No account is required, and all playgrounds are shareable.
GNU General Public License v3.0
26 stars 3 forks source link

usage language wasm modules in nodejs #28

Open ganeshkbhat opened 1 year ago

ganeshkbhat commented 1 year ago

I am using node 18.x.x. I see https://github.com/chris-koch-penn/polylang.io/blob/master/wasm/golang_npm_pkg/wasm_exec.js and wasm files in the https://github.com/chris-koch-penn/polylang.io/tree/master/wasm folder. Is there sample run scripts for all the following wasm available?

cpp_npm_pkg
golang_npm_pkg
julia_npm_pkg
micropython_npm_pkg
ocaml_npm_pkg
perl_npm_pkg
php_npm_pkg
ruby_compile_scripts
ruby_npm_pkg
ganeshkbhat commented 1 year ago

The script looks specific for browser build. It is erring off in window object. Can you share the build scripts for all the languages you are using with emscripten?