News for hackers. Stuff that matters.
Re:Dav2d by cesarb on Sunday May 31, 2026 @03:24PM (#48348835)
> Rust does not bring more performance. Just more safety.

Though more safety can in some cases bring a bit more performance. For instance, with Rust you can often avoid "defensive copies" of objects.

Re:Dav2d by itishappy on Sunday May 31, 2026 @10:34PM (#48352042)
When writing a high performance video codec avoiding defensive copies of objects is something you want always, not just often.

C makes it easy to be fast but hard to be safe. Rust makes it easy to be safe but hard to be fast.

Also note that video codecs tend to wrap C or Rust around handcrafted ASM. Performance is king.