News for hackers. Stuff that matters.
Re:Show HN: Compiling C in the browser using WebAssembly by jedisct1 on Tuesday October 08, 2024 @02:51AM (#41774438)
What about something that doesn't even require WebAssembly and is faster? https://bellard.org/jslinux/
Re:Show HN: Compiling C in the browser using WebAssembly by yuri91 on Tuesday October 08, 2024 @05:29AM (#41775345)
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

Re:Show HN: Compiling C in the browser using WebAssembly by syrusakbary on Wednesday October 09, 2024 @02:06AM (#41784977)
Nice, thanks for the benchmark Yuri!
Re:Show HN: Compiling C in the browser using WebAssembly by yuri91 on Wednesday October 09, 2024 @02:30AM (#41785092)
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.