ogv.js
rayon
ogv.js | rayon | |
---|---|---|
7 | 67 | |
1,182 | 10,299 | |
- | 2.1% | |
7.2 | 9.0 | |
3 days ago | 10 days ago | |
JavaScript | Rust | |
GNU General Public License v3.0 or later | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
ogv.js
-
"MP3 is dead" missed the real, much better story (2017)
Yeah, that's what they do using this https://github.com/brion/ogv.js/
- Making Python 100x faster with less than 100 lines of Rust
-
Google and Mozilla are working on iOS browsers that aren't based on WebKit
I've been told this at least three times now on HN over the years (pretty soon I'm going to start keeping a list of URLs so people know I'm not exaggerating.) Every single time it turns out that it isn't actually true.
It was added to desktop Safari. iOS Safari supports VP9 only in WebRTC. It may have changed, but I can't find any evidence that it has.
If you see it working somewhere, it is almost definitely using the polyfill[1].
[1]: https://github.com/brion/ogv.js/
-
How to stream OGG on iOS?
I found a library "ogv.js" that says it decodes .ogg/.webm using WebAssembly, and this demo plays on my iPhone SE3 in Safari.
-
Anti-innovative effects of Apple's prohibition of alternative browser engines
I believe Wikipedia has resorted to polyfilling it using this:
https://github.com/brion/ogv.js
That's great and all, but it has limitations, and obviously, is ludicrously less efficient than it should be.
-
Privacy analysis of FLoC
We already have JS/WebGL video decoders (e.g: Broadway.js, OGOV.js). Much of the earlier video playback/acceleration work was getting it accelerated on GPUs-- using DirectX, OpenGL, or other GPU programming standards.
-
WebCodecs is a flexible web API for encoding and decoding audio and video
This is great and overdue. Hopefully all major browsers will add some support for open source/royalty free codecs.
Emscripten/WebAssembly actually worked rather well with audio (OPUS is just awesome) but when it comes to video it's just unfeasible, especially if you are looking at doing low latency streaming. That said, I cannot fail to mention the incredible effort done by ogv.js [1] to make a/v decoding possible almost anywhere.
Looking forward to experiment with this new API.
[1] https://github.com/brion/ogv.js/
rayon
- Rayon: Data-race free parallelization of sequential computations in Rust
- Too Dangerous for C++
-
Which application/problem would you choose for presenting Rust to newcomers in 1h30min?
Do some operations with .iter() then later use rayon to parallelize. So you can show how easy is to add a dependency and how easy is to parallelize.
-
What Are The Rust Crates You Use In Almost Every Project That They Are Practically An Extension of The Standard Library?
rayon: Async CPU runtime for parallelism.
-
Moving from Typescript and Langchain to Rust and Loops
In the quest for more efficient solutions, the ONNX runtime emerged as a beacon of performance. The decision to transition from Typescript to Rust was an unconventional yet pivotal one. Driven by Rust's robust parallel processing capabilities using Rayon and seamless integration with ONNX through the ort crate, Repo-Query unlocked a realm of unparalleled efficiency. The result? A transformation from sluggish processing to, I have to say it, blazing-fast performance.
-
AreWeMegafactoryYet? I just breached simulating 1M buildings @ 60 fps (If I'm not recording, Ryzen 7 1700X 8 Core)
With a lot of rayon, blood, sweat and tears I finally managed to simulate a million buildings at 60fps :) Feel free to AMA, game is Combine And Conquer
-
The Rust I Wanted Had No Future
(see https://github.com/rayon-rs/rayon/tree/master/src/iter/plumbing)
-
Parallel event iterator?
I did some very basic testing with this crate : https://crates.io/crates/rayon and it seems to work :
-
General Recommendations: Should I Use Tree-sitter as the AST for the LSP I am developing?
Sequentially, generating tree-sitter AST for each file and querying for the links of each file takes around 2.3 seconds. However, I randomly remembered this crate rayon, and I decided to test it. It ended up improving the performance (just by changing 2 lines of code) to 200-300ms by parallelizing the iterators and tree-sitter queries. MAJOR.
-
python to rust migration
Now if you really want to use Rust, you can rewrite only the part that are slowing down your consumer. It's easy by using Py03 and maturin. Maybe also rayon to parallelize.
What are some alternatives?
Broadway - A JavaScript H.264 decoder.
crossbeam - Tools for concurrent programming in Rust
web-codecs - WebCodecs is a flexible web API for encoding and decoding audio and video.
tokio - A runtime for writing reliable asynchronous applications with Rust. Provides I/O, networking, scheduling, timers, ...
Mail-in-a-Box - Mail-in-a-Box helps individuals take back control of their email by defining a one-click, easy-to-deploy SMTP+everything else server: a mail server in a box.
RxRust - The Reactive Extensions for the Rust Programming Language
numexpr - Fast numerical array expression evaluator for Python, NumPy, Pandas, PyTables and more
rust-numpy - PyO3-based Rust bindings of the NumPy C-API
jnumpy - Writing Python C extensions in Julia within 5 minutes.
tokio-rayon - Mix async code with CPU-heavy thread pools using Tokio + Rayon
poly-match - Source for the "Making Python 100x faster with less than 100 lines of Rust" blog post
coroutine-rs - Coroutine Library in Rust