Live data from Hacker News

Show HN: Compiling C in the browser using WebAssembly

wasmer.io

11–20 of 74 posts

Re: Show HN: Compiling C in the browser using WebAssembly

#11
post #10

Earlier quoted context omitted.

The whole LLVM toolchain is a bit big. I think we can reduce much more the size. We actually researched on using tcc but unfortunately tcc doesn’t have a wasm backend (for generating wasm output). It would be awesome if they added it!

Check out https://github.com/tyfkda/xcc , I've only used the native backend, but it's small and fast.

Nice! I didn’t know the project. Thanks for sharing!

Re: Show HN: Compiling C in the browser using WebAssembly

#16

Earlier quoted context omitted.

The Clang WASI SDK weights about 100Mb compressed. We optimized things a bit but still have a way to go (we are not yet compressing in the network). I believe we can serve everything in about 30Mb

MB, right? Mb is megabit I only have to bring this up because network providers still insist on measuring bits

They insist on it because it is the proper way to measure data rates on serial bit streams where out-of-band encoding doesn't divide up on octet boundaries.

Re: Show HN: Compiling C in the browser using WebAssembly

#18

Now all this needs is a simple OS running in a browser, that can edit and compile itself, post the resulting binary onto a WebDAV somewhere, and reload itself from there. Then it becomes a fully self-sustaining OS that can live forever in a browser.

And then use webrtc (or ideally someone can revive a webtransport-p2p please!) to serve itself from a page to other people.

Ideally http3 over webtransport-p2p!

Then add some network discovery so we can advertise & find what's available on our networks!

Post reply on HN