Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

So Clang itself was compiled to WebAssembly? That's slick, even if it does take forever to load.


What about packing up web assembly into a single file container like runtime designed to run server side web applications? This .war (Webassembly ARchive) file could include the application and all dependencies in a single installable that is JITd on load. Might be useful for the next generation of "serverless" cloud runtimes.


I see what you did there.

I’d be all for this, honestly, except that the existing containers (yes, even Jetty) are too heavyweight for this use case.

What you really want is a stripped down server runtime that loads and starts your application’s archive, fires it up on a (possibly random) local port and opens a stripped down Chromium instance that loads the app from that port.

Of course, that sounds a bit like Electron.


Node.js supports webassembly.


>.war (Webassembly ARchive)

This is sarcasm, right? If it is, it's damn good.


This will probably happen. Hopefully properly compatibly.


clang is pretty big. There's about 55 MB of binaries on that page. When served from localhost, it takes about 10 seconds to load and compile a source file on my machine.


This gets us to two caching-related problems: What if you're offline and how do you decide what you want to be cached? But browser vendors will solve this.


Isn't this solved with progressive web apps? On the other hand I'm not aware of any UI that allows you to explicitly choose if a PWA should be cached or not.


2mins or so. Not bad.


2 minutes is truly forever on the web. I found myself wondering if there was something wrong with the page.


~20 sec in my Late 2013 MBP from page load to "The [cake] is a lie," in Chrome 63.

Sadly it does not work in Safari or Safari Tech Preview, but it works in Firefox 57 (known problem, see https://github.com/tbfleming/cib)




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: