this post was submitted on 09 Oct 2023
247 points (98.8% liked)

Open Source

31263 readers
173 users here now

All about open source! Feel free to ask questions, and share news, and interesting stuff!

Useful Links

Rules

Related Communities

Community icon from opensource.org, but we are not affiliated with them.

founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] stifle867 34 points 1 year ago (5 children)

The logic is that it's much faster which is important for code that runs on a large portion of the world's devices. Pretty much anything to do with video is using ffmpeg. From a set top box, to your phone, computer, YouTube & Netflix, even on Mars.

Video processing is hard, and when you're processing that much data a x10 speedup is huge. That's why it's written in assembly. And there's really no downsides to it because the original implementation is in C (cross-platform), then there are handmade assembly versions for each specific platform (performance). Win-win.

[–] [email protected] 13 points 1 year ago (4 children)

Not to mention size. Assembly is so incredibly small without all the code interpretation and library overhead. I remember some of the old warez scene exe’s for DOS that were a few kilobytes but ended up being a huge video quality intro. Some lasting minutes. Rather than a few seconds.

[–] intelati 8 points 1 year ago (3 children)

Assembly is probably the closest thing to magic humans have ever created.

(I'm disqualifying String/Quantum as they are "theories" and not in common use)

[–] [email protected] 7 points 1 year ago

If by 'String/Quantum' you mean String Theory and quantum physics then you are wrong on the latter (and somewhat even the former). Quantum physics doesn't replace classical physics nor are they necessarily in opposition, and quantum physics is as much a theory as classical physics; so bashing one for being 'theory' is just as true for the other. And quantum physics is certainly in common use as you simply cant do anything at the atomic level without it. For example, any modern computer would not be able to function if quantum physics wasn't used to inform their design; in the same vein a modern computer would not function if classical physics was used to design them. It's important to remember that the word 'theory' in this context doesn't mean unproven, rather it describes a collection of confirmed, falsifiable, explanations of the natural world.

As for String Theory, it shouldn't be thought of as equivalent in scale to quantum physics, it's really just an optional framework within quantum physics that attempts to describe the fundamental nature of particles in a way that supports quantum gravity. Due to this its usage is confined to theoretical physics and is dependent on which aspects of a system is being investigated, but it's still used in some situations as its one of the best supported tools available.

I guess my main point is that quantum physics isn't fringe theory that shows up only in theoretical work, it's very much a requirement for all fields and is thereby prevalent and very much in common use. I have a CS degree and many of my courses touched on quantum mechanics, from pnp/npn transistor design to quantum-annealing/gate proof cryptography, without getting too into the mechanics/math as we were not physicists.

load more comments (2 replies)
load more comments (2 replies)
load more comments (2 replies)