News for hackers. Stuff that matters.
Re:Show HN: Compiling C in the browser using WebAssembly by dangerwill on Monday October 07, 2024 @03:18PM (#41769880)
Very interesting idea but I have to say that those goals are not possible with a simple OS, at least by OS definitions of simple :P
Re:Show HN: Compiling C in the browser using WebAssembly by whytevuhuni on Monday October 07, 2024 @03:28PM (#41769972)
The old https://webassembly.sh/ and the new https://wasmer.sh/ came a long way already.

All you need is a virtual filesystem of some sort, a way to download, a way to upload, an editor, a compiler, and a VT100 JS library. We already have WASI for the rest.

If the JS is too undesired, then perhaps go the old framebuffer graphics mode (e.g. a region of the WASM memory that is interpreted as an ASCII screen, or maybe even as a full bitmap buffer). Then JavaScript side just needs to forward keyboard/mouse into memory and that screen region out of memory.

Re:Show HN: Compiling C in the browser using WebAssembly by Arshia001 on Monday October 07, 2024 @04:41PM (#41770811)
The framebuffer idea is used in this wasm doom port: https://github.com/diekmann/wasm-fizzbuzz/tree/main/doom

WASIX already does all the other stuff you mentioned, including in the browser. The one thing it's missing is GUI, mainly because there's no standard GUI interface in POSIX.

Re:Show HN: Compiling C in the browser using WebAssembly by baudaux on Tuesday October 08, 2024 @07:14AM (#41776056)
It is possible. I already embedded chibicc in exaequOS. I will continue with xcc and clang