this post was submitted on 01 Jan 2026
90 points (94.1% liked)

Rust

7666 readers
26 users here now

Welcome to the Rust community! This is a place to discuss about the Rust programming language.

Wormhole

!performance@programming.dev

Credits

  • The icon is a modified version of the official rust logo (changing the colors to a gradient and black background)

founded 2 years ago
MODERATORS
 

Stolen from the old place

top 35 comments
sorted by: hot top controversial new old
[–] A_Union_of_Kobolds@lemmy.world 74 points 1 week ago (1 children)

Oh thank god I thought someone wrote about getting ffmpeg pregnant and I was gonna have to give up

[–] gravitas_deficiency@sh.itjust.works 53 points 1 week ago (2 children)

The name is absolutely hilarious, I agree.

It’s made even better by the fact that the author evidently hadn’t heard of the kink aspect of the name until they posted it on Reddit 😆

[–] A_Union_of_Kobolds@lemmy.world 13 points 1 week ago

Omg lol wonderful 🤣

[–] brucethemoose@lemmy.world 59 points 1 week ago* (last edited 1 week ago)

But why?

Wouldn’t it be better to spend the same effort writing ffmpeg modules and interfaces in Rust?

keeping external dependencies to a minimum

This is… concerning, too.

Media processing code is difficult. It’s not even a pure coding problem, and often involves human perception, extensive, expensive experimentation and esoteric, buggy hardware APIs . Hence the whole point of ffmpeg is basically integration of external libraries, with immense amounts of labor already put into each.

There are some Rust libraries they could pull in though. I guess it’d be reasonable to focus on newer formats/codecs that have Rust implementations already, and let ffmpeg handle weird legacy formats.

[–] GissaMittJobb@lemmy.ml 46 points 1 week ago

Seems quite inadvisable unless backed by the larger video community, which in turn I think will be unlikely.

Do not underestimate how incredibly load-bearing ffmpeg is to all of video technology, and do not underestimate the crazy shit going on inside it. It's a remarkable piece of technology.

[–] TheSlad@sh.itjust.works 39 points 1 week ago (1 children)
[–] AllNewTypeFace@leminal.space 27 points 1 week ago

This and the GIMP is why they shouldn’t let software developers name things.

[–] BB_C@programming.dev 23 points 1 week ago

An actually serious project that is not at the "joke" stage. Zero LLM use too:
https://nihav.org/

For audio at least, people should be aware of:
https://github.com/pdeljanov/Symphonia

[–] onlinepersona@programming.dev 7 points 1 week ago

Good luck. Isn't a lot of ffmpeg in assembly? I wonder how that will be handled. If faster code can be compiled that'd be crazy.

[–] recursive_recursion@piefed.ca 7 points 1 week ago (1 children)

Unlicensed/missing license👎

[–] gravitas_deficiency@sh.itjust.works 9 points 1 week ago (1 children)
[–] danielquinn@lemmy.ca 16 points 1 week ago (3 children)

Shame they opted for Apache.

[–] onlinepersona@programming.dev 23 points 1 week ago

Big tech loves Apache and MIT 💕

[–] vas@lemmy.ml 3 points 1 week ago (1 children)

Here, a person added GPL as a proposed alternative.

[–] danielquinn@lemmy.ca 3 points 1 week ago

Well that's encouraging. Here's hoping they switch.

I agree but it’s better than nothing.

[–] MITM0@lemmy.world 6 points 1 week ago (2 children)

I am worried, that a crap ton of rust rewrites are in MIT or APACHE.

Like why not use GPL ? Is there something sinister going on & it's going to give the Bryan Lunduke types so much effective ammunition.

Or am I just over-reacting ?

On another note are there any video games made in Rustlang ?

[–] daniskarma@lemmy.dbzer0.com 7 points 1 week ago (1 children)

My guest would be that open licenses are just more common overall nowadays, so any new development is more likely to have them.

I don't think is just rust related.

[–] The_Decryptor@aussie.zone 0 points 1 week ago

Rust has no stable inter-module ABI, so everything has to be statically linked together. And because of how "viral" the GPL/LGPL are a single dependency with that license turns the entire project into a GPL licenced one.

So the community mostly picks permissive licenses that don't do that, and that inertia ends up applying to the binaries as well for no real good reason. Especially when there's options like e.g. MPL.

[–] vivendi@programming.dev -5 points 1 week ago* (last edited 1 week ago) (1 children)

Yup. Rust is corporate encroachment in diaguise of memory "safety"

Rust (the language) has good ideas. Rust (the community) is pure cancer concentrate

[–] MITM0@lemmy.world 8 points 1 week ago

How can a good language be "corporate encroachment" ? When it's the community/devs that are responsible for using "bad" licences ?

[–] FizzyOrange@programming.dev 5 points 1 week ago (1 children)

I mean, it would be great if this succeeded... ffmpeg is nice and all but its interface is clearly terrible and there's absolutely no way it is remotely secure. Anyone that uses it on a server basically has to run it in its own VM, or a severely locked down sandbox.

But good luck supporting all the codecs people expect. I'm not even talking the obscure ones ffmpeg supports; just the ones "normal" people use will be a life's work.

Also you have to change the name!

[–] alx@piefed.blahaj.zone 2 points 1 week ago (1 children)

Also you have to change the name! why is that? (i’m aware of what mpreg means)

[–] FizzyOrange@programming.dev 1 points 1 week ago

It's just not a very good name. Awkward even without the mpreg/preg thing. Steps on ffmpeg's toes too much. Just pick something unique. Videoh. Muxy. Movrify. Flippityflop, whatever. I thought about those names for literally 10 seconds. You can definitely do better than ffmpreg if you think harder!

[–] pinguinu@lemmygrad.ml 3 points 1 week ago

they out here plagiarising @ffmpreg@hexbear.net smh

[–] FalschgeldFurkan@lemmy.world 2 points 1 week ago (1 children)

How come that so many C/C++ apps are being rewritten in Rust? Is it faster/safer, or is it rather a coding exercise?

[–] IMALlama@lemmy.world 8 points 1 week ago (1 children)

Rust is spiritually fairly close to C/C++, but with modern convenances like memory safety and ease of concurrency. It compiles somewhat slower but it's compiler errors are more friendly IMO. Rust can be as fast as C++, is also cross platform (eg windows/Linux/Mac) and scales up/down from IoT device level to desktop to seerver applications. If you're going to be writing a lower level app Rust is a good language to look at, but you can also write GUI applications in Rust too.

Here's a decent overview

[–] FalschgeldFurkan@lemmy.world 2 points 1 week ago (1 children)

Thanks for explaining, didn't know that part about memory safety. I agree, for new apps it makes more sense to pick Rust over C/C++ (unless maybe if you're a C veteran). However, if it's just as fast as C/C++, wouldn't it make sense to leave existing C/C++ apps as they are (as long as you don't want to add new functions)? Not judging, just genuinely curious (especially since Rust hat stirred up some drama among Linux maintainers, from what I have heard)

[–] IMALlama@lemmy.world 3 points 1 week ago (1 children)

There's not a great answer to your question and the 'right' choice is going to be situational. The reason to migrate to Rust is simple: fewer possible bugs should reduce maintenance costs. Whether or not migrating functionality between languages makes sense is another can of worms. Is there enough documentation to avoid the nuanced edge cases that are handled by the current solution's code? Is this a simple port, does it only need interface compatibility, or should a larger area of code be modified? If the code is shared how does the rest of the team feel about the potential language?

I do not know what happened re: drama among Linux maintainers but I seen rumblings about it on Lemmy.

[–] FalschgeldFurkan@lemmy.world 2 points 1 week ago

Huh, so it's not something simple I have missed regarding why so much software is being rewritten in Rust... I see that appearing so often, so I thought there was maybe a bigger reason I'm not seeing. Anyways, thanks again, appreciate the explanations 👍

[–] irelephant@lemmy.dbzer0.com 1 points 1 week ago

We just need to rewrite curl next.

[–] BB_C@programming.dev 1 points 1 week ago

How is this literal joke still getting so much engagement?