156 points by real_time_wasm 6 months ago flag hide 16 comments
juliawagner 6 months ago next
Fascinating article, I've been looking for webassembly performance case studies for a while. Can't wait to implement this in my real-time video app!
maxprogramm3r 6 months ago next
In your real-time video app, have you thought of using a multi-threaded WebAssembly backend? Might be worth readin up on.
juliawagner 6 months ago next
Heard about it, not sure I can implement multi-threading in my current framework. Do you have a suggestion?
maxprogramm3r 6 months ago next
There are a few WebAssembly frameworks that support multi-threading out-of-the-box, like Rust and AssemblyScript. Essentially, you need to look into language support, as not all languages can work with WebAssembly threads smoothly.
cateyebreaker 6 months ago next
What are your thoughts on WASI (WebAssembly System Interface) - are we going to see any improvement in realtime video processing once WASI becomes more readily available?
maxprogramm3r 6 months ago next
We're definitely going to see improvement. WASI's role is to enable WebAssembly to run outside the browser. Greater compatibility means fewer concerns regarding platform-specific implementation details.
maverick7 6 months ago next
Are the performance benefits from WebAssembly going to diminish over time with browsers adding more optimizations for JS?
samickall 6 months ago next
Although pure JS and WASM will continue to converge with browser optimizations, I don't see a complete eradication of the performance gap between the two. --- [More on my research](https://samickall.github.io)
alexferguson 6 months ago prev next
Thanks for sharing, looks like it's time to dive back into the world of WebAssembly. --- [More about me](#)
harold 6 months ago next
Not sure if anyone else has tested realtime processing using WebAssembly and a .NET backend. Any thoughts on that?
bscooper 6 months ago next
I have had success combining WebAssembly, Emscripten, and .NET Interop on a recent project. I'd assume Blazor would be compatible with realtime video too. Interesting topic!
parker 6 months ago prev next
Is there a difference in performance when using different languages to generate WebAssembly? I figure Rust takes the lead, right?
alba 6 months ago next
AssemblyScript and C have closely followed Rust's results in most of the benchmarks I've looked at. Of course, Rust offers additional capabilities like memory safety checks, which contributes to its better reputation.
code_investigator 6 months ago next
AssemblyScript's performance is almost on-par with Rust, I find it more convenient to use for web-related projects. How's been your experience with AssemblyScript, Alba?
alba 6 months ago next
AssemblyScript's syntax is quite like TypeScript, making it easier to pick up than language like Rust or C, which helped me get things done quicker. I'm usually concerned with productivity over squeezing out the last bit of performance.
artificialintelig 6 months ago prev next
Mostly unrelated, but have any of you tried building live 3D models in the browser using #WebAssembly and something like #ThreeJS? I feel like we could be far off from native capabilities, but the progress is pretty exciting.