Live data from Hacker News

Show HN: Compiling C in the browser using WebAssembly

wasmer.io

71–74 of 74 posts

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

#71
post #60

Earlier quoted context omitted.

What about something that doesn't even require WebAssembly and is faster? https://bellard.org/jslinux/

very unscientific benchmark of `clang hello.c`, after a few runs to make sure the code is downloaded/cached: jslinux: 4.7s wasmer: 1.3s webvm: 1.2s

Nice, thanks for the benchmark Yuri!

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

#72
post #60

Earlier quoted context omitted.

very unscientific benchmark of `clang hello.c`, after a few runs to make sure the code is downloaded/cached: jslinux: 4.7s wasmer: 1.3s webvm: 1.2s

Nice, thanks for the benchmark Yuri!

It is a bit unfair to Wasmer, because it incur in the (presumed) overhead of `wasmer run ...`, but I could not figure out if the actual clang binary is directly available after it is downloaded the first time.

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

#73

Earlier quoted context omitted.

Thanks, I'm seeing but the documentation is so scarce and I'm not a proefficient C expert. What syntax can be used to run emception? Thank you.

It’s sadly a bit more of a proof of concept than a hackable project. The docker build in the readme did work last time I tried, and there is a demo site at https://jprendes.github.io/emception/ , but I’ve failed to modify it in the past to do other things There is a fork at https://github.com/emception/emception that is trying to make it more production ready, but it looks like that may have stalled

I guess the search for compiling C++ on some kind of bytecode continues. Thanks a bunch for the links and details, much appreciated.

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

#74

Earlier quoted context omitted.

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.

The bits do me no good

May as well count the 8/10 encoding in a CD-ROM as extra bits. Oh excuse me, extra megabytes

Post reply on HN