[FFmpeg-devel] I've written a filter in Rust

Rémi Denis-Courmont remi at remlab.net
Sat Feb 22 14:57:09 EET 2025


Le perjantaina 21. helmikuuta 2025, 20.02.16 UTC+2 Tomas Härdin a écrit :
> The above said, I'm not against Rust. It has some nice properties. But
> it does not seem very "stable" so far. Perhaps this has changed in
> recent years..

IME, it's become very usable for user-space code. Bare metal still pretty much 
requires unstable features, but that's not a problem for FFmpeg.

We may want to depend on the allocator_api unstable feature for fallible 
allocations (or just allow non-fallible allocations in Rust code until that 
gets stabilised). Naked functions would be nice for assembler, but I don't 
think that we have any urgent need to call assembler from Rust (as opposed to 
from C).
 
> If we're in the habit of allowing other languages I'd be in favor of
> allowing C++, so that we can make use of the STL containers rather than
> rolling our own.

Yikes. Rust is actually way saner for type-generic programming than C++.

-- 
Rémi Denis-Courmont
Villeneuve de Tapiola, ex-République finlandaise d´Uusimaa





More information about the ffmpeg-devel mailing list