Live data from Hacker News

Standardizing WASI: A system interface to run WebAssembly outside the web

hacks.mozilla.org

11–20 of 238 posts

Re: Standardizing WASI: A system interface to run WebAssembly outside the web

#11
post #10

Earlier quoted context omitted.

(Member of the team at Mozilla here ) Yes, that's the list. And the layout of structs, strings, etc is up to the compiler, within the bounds of the restrictions WebAssembly imposes. We'll definitely have a test suite, but this is all early days, so a lot of all that isn't yet in place. And yes, this can be targeted by LLVM-based and other compilers. In fact, Emscripten could use this as the foundation for their POSIX…

Will WASI normalize differences between platforms? e.g. convert argv or paths to a consistent character encoding?

Yes!

Re: Standardizing WASI: A system interface to run WebAssembly outside the web

#16

Love it. This could be a huge innovation and really push the dream of cross platform development to the next level. I suppose this would have pretty big implications for Electron or a similar successor to aid in the UI portion of this endeavor.

Yeap, so innovative it existed already for decades (virtual machine executing some fixed bytecode).

Re: Standardizing WASI: A system interface to run WebAssembly outside the web

#17

WASI will have some interesting milestones ahead of it: * Self-hosting (WASI can run inside WASI) * GCC can run in it * Linux can run in it * Quake can run in it * Chrome can run in it

How can self-hosting be achieved considering SPECTRE etc? Surely, since WASI inside WASI couldn't be in different OS processes, there would be an opportunity to leak data between the inner and outer WASI?

Re: Standardizing WASI: A system interface to run WebAssembly outside the web

#18
post #10

Earlier quoted context omitted.

Will WASI normalize differences between platforms? e.g. convert argv or paths to a consistent character encoding?

Yes!

What about platform differences like how file permissions work on windows vs posix? (i.e., stuff that Python does not fully normalize)

Re: Standardizing WASI: A system interface to run WebAssembly outside the web

#19

WASI will have some interesting milestones ahead of it: * Self-hosting (WASI can run inside WASI) * GCC can run in it * Linux can run in it * Quake can run in it * Chrome can run in it

Doesn't Quake traditionally come first?

Re: Standardizing WASI: A system interface to run WebAssembly outside the web

#20
Excuse me if I come across as naive, I'm kind of a noob on these architectural topics, but how is this different/better than what the JVM is/accomplishes? When WASM first popped up I thought about the similarities with Java Web Applets and Flash.
Post reply on HN