News for hackers. Stuff that matters.
Re:Dav2d by LoganDark on Sunday May 31, 2026 @10:51AM (#48346129)
The safety can be worth it in certain cases. Like when handling untrusted input. And it's not just Rust: look at WUFFS for example. WUFFS can actually rival handwritten implementations in certain cases.
Re:Dav2d by xp84 on Sunday May 31, 2026 @11:56AM (#48346751)
Are video codecs in the present day able to be sandboxed? In my fantasies at least I’d like the worst a malicious video file can do is cause garbage output or cause the codec to crash.

Forgive the ignorance, I have worked entirely in the abstracted layers of the stack, and mostly web.

Re:Dav2d by adgjlsfhk1 on Sunday May 31, 2026 @08:55PM (#48351469)
not really. they're mostly pure assembly and sandboxing assembly isn't really a things
Re:Dav2d by nullpoint420 on Monday June 01, 2026 @01:32AM (#48352984)
yes it is. all modern operating systems sandbox assembly. that's how it works.
Re:Dav2d by LoganDark on Monday June 01, 2026 @02:29PM (#48360750)
Windows may use virtualization-based security by default, but I'm not aware of macOS or Linux doing the same -- Apple builds security directly into the silicon such that no virtualization is required, and Linux just rawdogs everything.

Whether that counts is up to you. I suppose it's still "sandboxed" in that it runs in a less privileged context than the kernel.

Re:Dav2d by throawayonthe on Sunday May 31, 2026 @11:12AM (#48346333)
but not these cases
Re:Dav2d by IshKebab on Sunday May 31, 2026 @12:35PM (#48347126)
I don't see why not. What makes you think this is unique?
Re:Dav2d by adgjlsfhk1 on Sunday May 31, 2026 @08:57PM (#48351478)
WUFFS like approaches work better for algorithms like lz77 that are substantially bandwidth constrained. for something like a video codec, the computational intensity is much higher so you need better codegen to reach max speed
Re:Dav2d by bigyabai on Sunday May 31, 2026 @03:11PM (#48348699)
It really should be, though: https://en.wikipedia.org/wiki/FORCEDENTRY