this post was submitted on 11 Nov 2025
224 points (99.6% liked)

Free and Open Source Software

20694 readers
7 users here now

If it's free and open source and it's also software, it can be discussed here. Subcommunity of Technology.


This community's icon was made by Aaron Schneider, under the CC-BY-NC-SA 4.0 license.

founded 3 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[โ€“] TehPers@beehaw.org 1 points 2 weeks ago* (last edited 2 weeks ago)

Rust currently isn't as performant as optimized C code, and I highly doubt that even unsafe rust can beat hand optimized assembly โ€” C can't, anyways.

A bit tangential, but to answer this question, nothing beats the most optimized assembly code. At best, programming languages can only hope to match the most optimized assembly.

Rust does have macros for inlining assembly into your program, but it's horribly unsafe and not super easy to work with.

Rewriting ffmpeg in Rust is not a solution here (like you're saying).