logoalt Hacker News

piker • today at 8:35 PM • 3 replies • view on HN

I think you’re kidding, but wouldn’t you have to maintain different code bases for each platform? C compiler gets you everywhere and WASM.


Replies

genxy • today at 8:48 PM

Once you have Wasm, it gets you everywhere and the best path to Wasm is Rust.

➕ show 1 reply
raphlinus • today at 8:41 PM

Yes, and? As the cost of code generation approaches zero, this starts to make more sense, especially if you do have mechanisms in place to ensure safety and correctness.

I did an experiment a couple weeks ago of having Opus 5.5 translate an MP3 decoder from Rust into Cortex-M33 assembly language, both raw asm and symbolasm. The code was 3x smaller and ~1.5x faster than Rust -O3. These seem like gains that are worth it.

➕ show 3 replies
linkdd • today at 8:41 PM

Just ask the slop machine to translate the binary to every platform.