Why not just just have most of it in wasm? There are wasm runtimes that don’t require js, and I’m sure Google can adapt their engine. Then they could integrate the other side with rust
You can always compile to wasm, or ship a wasm decoder. You can even ship a JS decoder, but speed and resource consumption are important, ruling both out.
That would likely require copying the image data in and out of the wasm instance's memory, while a pure Rust solution could have safety with less overhead.
pyrolistical · · focus · HN ↗
computerbuster · · focus · HN ↗
AgentME · · focus · HN ↗