News for hackers. Stuff that matters.
Re:Shipping JPEG XL in Chrome by groundzeros2015 on Wednesday October 07, 2026 @12:33PM (#49995135)
If it’s sandboxed why do I need rust?

What counts as a “safety mechanism”?

Re:Shipping JPEG XL in Chrome by dtf on Wednesday October 07, 2026 @12:46PM (#49995332)
It's the "rule of two" safety guideline mentioned and linked to in the article:

https://chromium.googlesource.com/chromium/src/+/main/docs/s...

If you use a safe language like Rust, you can afford untrusted input and no sandboxing.

If you use an unsafe language such as C++, you must chose between trusted inputs or sandboxing.

I was curious as to where rfgplk's implementation lay within the Venn diagram.

Re:Shipping JPEG XL in Chrome by groundzeros2015 on Wednesday October 07, 2026 @01:08PM (#49995679)
What counts as two safety mechanisms?

> you can afford untrusted input and no sandboxing.

I would not trust a rust program un-sandboxed! There are security bugs in rust itself.