News for hackers. Stuff that matters.
Re:Shipping JPEG XL in Chrome by rfgplk on Wednesday October 07, 2026 @09:51AM (#49992910)
Fun fact, I needed JPEG XL support for my C++ pipeline and I didn't feel like including any official libraries. Roughly $500 tokens later I had a fully working optimized JPEG XL spec compliant en/de/coder that outperformed the official codepaths (both cpp and rust) by 70% (lower runtime). Took literally 5 hours to build out. Can someone tell me what Google is doing?
Re:Shipping JPEG XL in Chrome by dtf on Wednesday October 07, 2026 @09:58AM (#49992998)
Does it satisfy the rule of two?
Re:Shipping JPEG XL in Chrome by BugsJustFindMe on Wednesday October 07, 2026 @10:22AM (#49993281)
> Does it satisfy the rule of two?

One to embody power, the other one to crave it?

I'm confused about the connection.

Re:Shipping JPEG XL in Chrome by erikvanoosten on Wednesday October 07, 2026 @10:45AM (#49993592)
Two safety protection mechanisms. For example: Rust + Sandbox.
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.

Re:Shipping JPEG XL in Chrome by rfgplk on Wednesday October 07, 2026 @11:50AM (#49994543)
Yep.
Re:Shipping JPEG XL in Chrome by groundzeros2015 on Wednesday October 07, 2026 @12:32PM (#49995115)
So do you think your implementation is better? Or there are finer parts of the spec it’s missing?

Your llm has JPEG xl programs in the training data. You copied from GitHub.

Re:Shipping JPEG XL in Chrome by tagrun on Wednesday October 07, 2026 @10:30PM (#50001300)
Is it open source?
Re:Shipping JPEG XL in Chrome by Broiler9437 on Wednesday October 07, 2026 @11:13PM (#50001530)
Upload the source or it is just empty talk