please enjoy: my Wasm-hosted, Wasm-targeting build of Clang/Clang++/LLD: a self-contained, 25 MiB (gzipped) pure function
https://www.npmjs.com/package/@yowasp/clang
https://www.npmjs.com/package/@yowasp/clang
this C compiler is really fast! it can compile and link a simple C program in ~65 ms on my machine. (this involves spawning three Wasm "processes")
on the same machine, running the same command with a very similar Clang build natively takes ~80 ms.
this is fast enough for update-as-you-type live coding!
@snowfox @whitequark @s0 I don't think any of those support multiple pipelined transactions so it would be super slow.
Would be interesting to imagine what a pipelined variant would look like though
@s0 not bad, actually. Build once, optimise closer to the end user CPU