Re:Show HN: Compiling C in the browser using WebAssembly
by baudaux on Tuesday October 08, 2024 @02:16AM
(#41774284)
Can I compete with exaequOS?
Re:Show HN: Compiling C in the browser using WebAssembly
by apignotti on Tuesday October 08, 2024 @02:38AM
(#41774374)
No, the competition is explicitly based around CheerpX: an X86 virtualization technology built on top of WebAssembly
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.
Shameless plug: we are hosting a WebVM Hackathon next week (11-14 October) over Discord. For more information: https://cheerpx.io/hackathon