Live data from Hacker News

Wasmer – Universal Binaries Powered by WebAssembly

wasmer.io

1–10 of 22 posts

Re: Wasmer – Universal Binaries Powered by WebAssembly

#6

Stupid question - how are they handling system calls in wasmer? I can't seem to find the answer easily.

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.

Re: Wasmer – Universal Binaries Powered by WebAssembly

#7
post #5

> Once installed, you will be able to run any wasm module (including Nginx!) If you're running on Linux, I suppose that applies only to WASM modules that interface with a POSIX system (?)

Doesn't WASM interface with a JS/WASM VM, which is then responsible for interfacing with the OS? There are plenty of POSIX compatible VMs, including V8, the Chrome engine.

Re: Wasmer – Universal Binaries Powered by WebAssembly

#9
post #5

> Once installed, you will be able to run any wasm module (including Nginx!) If you're running on Linux, I suppose that applies only to WASM modules that interface with a POSIX system (?)

Doesn't WASM interface with a JS/WASM VM, which is then responsible for interfacing with the OS? There are plenty of POSIX compatible VMs, including V8, the Chrome engine.

What is the interface called then?

Sorry for being confused. Isn't Nginx coded for a POSIX system? Or did they specifically port it to WASM (with its own interface)

Re: Wasmer – Universal Binaries Powered by WebAssembly

#10

Stupid question - how are they handling system calls in wasmer? I can't seem to find the answer easily.

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...

Post reply on HN