Hacker GitHub

← All repos

memorysafety/rav1d

View on GitHub ↗ ★ 650 Assembly

An AV1 decoder in Rust.

11 mentions on Hacker News by 8 people: 0 stories, 11 comments · first 2024-09-03 · latest 2026-05-31

Mentions per year 11 mentions · busiest year 2025 (5)
20082026
  1. It's a Rust/ASM port, look there: https://github.com/memorysafety/rav1d/blob/main/src/ext/x86/... I am not sure if it is that much safer than the C version when raw assembly is still required.
    comment by nick__m · 2026-05-31 · in Dav2d
  2. …There is a project to write an AV1 decoder in Rust: Rav1d (really stretching the name here). https://github.com/memorysafety/rav1d They got within 5% of the performance of dav1d and held a contest to close the gap but I think I read…
    comment by IshKebab · 2026-05-31 · in Dav2d
  3. …it makes sense to use C/ASM here, but if you're curious, there is a rust port of dav1d named rav1d: https://github.com/memorysafety/rav1d it's not much slower than the original C/ASM implementation (last i checked ~5%?) but that matters…
    comment by throawayonthe · 2026-05-31 · in Dav2d
  4. https://github.com/memorysafety/rav1d got funded and developed. it is unfortunately a bit slower (typically by a single-digit percentage) than dav1d.
    comment by dataking · 2026-05-03 · in Dav2d
  5. for dav1d there is https://github.com/memorysafety/rav1d although it reuses the dav1d assembly and performance is typically slower by a single-digit percentage.
    comment by dataking · 2026-05-03 · in Dav2d
  6. …not standard Rust abstractions. They're something the author is building within their own library: https://github.com/memorysafety/rav1d/blob/25e5574/src/ffi_s... So for all of the complaining about Rust abstractions and syntax in this…
  7. …It's a wrapper type that the author created within their library to bypass some compiler warnings: https://github.com/memorysafety/rav1d/blob/25e5574/src/ffi_s... If you want to call C functions from Rust it's as simple as writing an…
  8. …the rav1d project has 8 core benchmarks on their GitHub suggesting more like 8-10% slower on arm. https://github.com/memorysafety/rav1d/issues/1294
  9. …reasonable to expect the same support? [1] https://www.memorysafety.org/blog/rav1d-perf-bounty/ [2] https://github.com/memorysafety/rav1d/issues/804 [3] https://github.com/memorysafety/rav1d/pulls?q=backport+is%3A...
  10. …ends up making both projects faster. You can see the struct the author of this PR modified here: https://github.com/memorysafety/rav1d/blob/main/include/dav1... Interesting tool linked by the author: https://linux.die.net/man/1/pahole
  11. …of memory safety errors. We're maintaining the C2Rust tools and use it to move C code to Rust. See https://github.com/memorysafety/rav1d for an example of our recent work. Check out our github for ( https://github.com/immunant ) for other…
    comment by dataking · 2024-09-03 · in Ask HN: Who is hiring? (September 2024)