Live data from Hacker News

Reaching the Unix philosophy's logical extreme with WebAssembly

xeiaso.net

141–142 of 142 posts

Re: Reaching the Unix philosophy's logical extreme with WebAssembly

#141

Earlier quoted context omitted.

>I sort of miss the days when simple stuff was hard. what? what's the point? for me it's the most annoying thing when the simple stuff is hard because why would it be?

I agree. I was looking into how you start a child process in C++ recently and I was surprised and not at all surprised to find that the answer is still fork and execve. Ridiculous.

Wouldn't that be OS specific anyway? Like, Windows has no concept of forking processes but instead it uses the CreateProcess function.

Re: Reaching the Unix philosophy's logical extreme with WebAssembly

#142

WASIX may be of relevance to the article https://wasix.org/

Isn't most of the point of WASM to enable portable executables? Why wrap your portable bytecode with an entirely non-portable platform API? Seems mad to me.

To play devil's advocate: targeting WASIX still gives you the benefit of compiling existing code once and running on any OS-architecture pair that Wasmer supports. I long for this sort of thing when building software that needs to run on Linux on multiple architectures inside AWS and also on developers' MacBooks. (Ever tried cross-compiling to macOS? Yeah, I prefer pulling teeth, too.)

Caveat: you'd need to use Wasmer forks of, e.g., rustc and Tokio, but I imagine there are at least some people who would be okay with that.

Post reply on HN