creationix / seaduk

An implementation of nucleus-js using duktape and libuv implemented in C
Other
34 stars 5 forks source link

Compile to WebAssembly? #16

Open piranna opened 7 years ago

piranna commented 7 years ago

Has someone tried to compile Seaduk to WebAssembly and run it? I would love to have it running on wasmachine :-)

creationix commented 7 years ago

That would be neat, but I wonder how much of the syscalls that libuv needs can be handled by emscripten.

I'll bet you can compile duktape itself fairly easily though!

piranna commented 7 years ago

Forgot about the libuv dependency... :-/ I believe there's a WiP port of musl library for WebAssembly, probably it would be used to compile libuv and duktape itself :-)