Hacker News new | ask | show | jobs
by akhilcacharya 2752 days ago
Stupid question - how are they handling system calls in wasmer? I can't seem to find the answer easily.
2 comments

We first wanted to focus on running Emscripten-generated WebAssembly files, so we are wrapping the syscalls that Emscripten is using with the real syscalls under the hood.

Here's an example of that: https://github.com/wasmerio/wasmer/blob/master/src/apis/emsc...

Would support for something like wasm-bindgen be possible eventually?
I'm not very well informed but I assume that you just call functions which are implemented by the VM, in the same manner you do filesystem operations in nodejs.