5 ms·
Can anyone explain why mp4 parsing lib in a specific language is #1 on HN? mp4 is just the container format (not the video stream). I'm not trying to belittle,
by scosman 11y ago
Can anyone explain why mp4 parsing lib in a specific language is #1 on HN? mp4 is just the container format (not the video stream). I'm not trying to belittle, just curious if I'm missing context.
- Osmose 11y agoI believe it's because this is the first piece of Rust code landing in Firefox.
- steveklabnik 11y agoIt's not the first patch, but it's the first patch that's actually landed, yes.
- davmre 11y agoThis is the first intrusion of Rust into the Firefox source tree. The whole point of Rust and Servo development was that they would eventually lead to safer, cleaner code in Mozilla's shipping web browsers. This code itself doesn't seem significant, but it's a milestone in that it marks the beginning of the payoff from that effort.
- bsdetector 11y agoIt also is vindication for making Rust easy to combine with other languages. If you tried to do this with Go and its own custom stdlib, main(), GC, threads, stacks it would be a nightmare (not to mention an extra 1 MiB to the binary).
- castell 11y agoGo and Rust have different purposes. You can think of Go as a leaner Java/C#. And Rust as a safer C/C++. Despite both Go and Rust are labeled as "system programming languages" by some, there are different understandings what "system" exactly means in that context.
- scosman 11y agoGo 1.5 adds c-archive mode, which takes care of 1 of your complaints (no "extra main()" requirement).
- Flimm 11y agoBear in mind that the #1 on HN isn't necessarily the most upvoted, look at the number of points in the submission.
- nightpool 11y agoWell, yes. Otherwise the same stories from when Jobs died would still be on the front page.
- deleted 11y ago[deleted]
- deleted 11y ago[deleted]