example.com/path/to/article
000 points · username · 0 hours ago
example.com73 points · 28 comments · 6 days ago · computerbuster
omoikane
jessa0
ZeroGravitas
They said:
Large Scale Codebase Migrations and Optimizations: Argon agents are working on migrating C/C++ codebases to Rust across Google — scaling from tens of thousands of lines in core libraries like re2, libgav1 up to 800K+ lines for the Fuchsia Zircon kernel. Given the criticality of many of these systems, such large-scale rewrites are undergoing rigorous automated and manual auditing, emulation testing, and review before rolling out to production.
For libgav1, Google's open source software for decoding video, Argon agents took an existing Rust port and replaced 32K lines of SIMD code by running many rounds of profile-guided experiments, studying the compiler's output, producing safe Rust so the compiler would vectorize it automatically. The end result is a memory-safe video decoder that runs 2.7x faster than the Rust port, with identical video output, bringing it closer to the optimized C++.
kangalioo
A programming language specifically geared for file format libraries, including safety and performance
pizlonator
This is great but it’s got caveats:
- assembly code. They may have been careful but it’s an escape hatch
- if it has basically any dependencies then those are likely to transitively pull in more unsafe code
pyrolistical
burntcaramel
You can also run the same wasm on the command line:
npx @qip.dev/qipx qip.dev run \
image/webp/webp-to-ktx2-r8g8b8a8-srgb.wasm \
image/ktx2/ktx2-r8g8b8a8-or-b8g8r8a8-srgb-to-png.wasm \
< input.webp > output.pngF3nd0
It’s neat that you can compile it without hand-written assembly for more safety, but what does the performance look like in that case? I assume the presented benchmarks don’t show this?
soltanov
[deleted]
https://github.com/google/wuffs/tree/main/std/webp