logoalt Hacker News

cjs_acyesterday at 8:12 PM3 repliesview on HN

It's still there - you can still do I/O in C, even if you have to call a library function. In WebAssembly, there's no mechanism for I/O of any sort.


Replies

3836293648yesterday at 8:37 PM

But that's not the (original) argument being made. Just as IO belongs in POSIX and not C, DOM access belongs in some other standard, not WASM

cookiengineeryesterday at 8:40 PM

There is, it is just called WASI and it specifies syscalls in a different way.

WebASM is an assembly-like dialect, after all.

flohofwoeyesterday at 8:32 PM

...in WASM you also call a function to do IO though? That function is just provided by the host environment via the function import table, but conceptually it's the exact same thing as a Linux syscall, a BIOS int-call or calling into a Windows system DLL.

show 1 reply