TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Prime Video Uses WebAssembly

428 pointsby pacificat0rover 3 years ago

21 comments

pornelover 3 years ago
The egui framework they mention is pretty neat:<p><a href="https:&#x2F;&#x2F;emilk.github.io&#x2F;egui&#x2F;" rel="nofollow">https:&#x2F;&#x2F;emilk.github.io&#x2F;egui&#x2F;</a><p>It an entirely custom toolkit, so don&#x27;t expect it to have a native look and feel, but it&#x27;s a GPU-first design with multiple back-ends. It can be used in native OpenGL apps too. It&#x27;s an immediate-mode UI, so it&#x27;s very easy to build and update even complex windows. Great choice if you want to prototype a game.
评论 #30111830 未加载
评论 #30111396 未加载
评论 #30110721 未加载
评论 #30112281 未加载
评论 #30112598 未加载
评论 #30110815 未加载
评论 #30124008 未加载
评论 #30114568 未加载
评论 #30113024 未加载
Sunsparkover 3 years ago
Why don&#x27;t apps like this leverage gpu hardware acceleration?<p>On my old tablet, Netflix runs a-ok, the media player has hardware acceleration and runs a-ok, but Amazon Prime stutters.<p>I haven&#x27;t checked it in years, so maybe it is better now, but I am skeptical this is the case, because if the original creators of the Android app didn&#x27;t think hardware accelerated video might be a nice idea, why would it be different now? This is a structural issue.
评论 #30109942 未加载
formerly_provenover 3 years ago
&gt; Prime Video<p>&gt; xyz [4K&#x2F;UHD]<p>4K is not available when using a computer<p>&gt; HD is not available because you&#x27;re not using Windows<p>when using Windows<p>&gt; HD is not available because you don&#x27;t have HDCP<p>Graphics driver begs to differ.<p>Prime SD is usually somewhere between 240p and 320p, HD looks like a decently encoded 720p file. Never seen it but I&#x27;m guessing 4K might actually approach the quality of a 2007 Blu-Ray.
评论 #30112632 未加载
评论 #30112522 未加载
评论 #30113292 未加载
jeffbeeover 3 years ago
Prime video has unbelievably bad performance on LG WebOS, and it’s not the platform because Hulu, Netflix, Disney, YouTube are all fine. If this is new and makes their app work acceptably, then great!<p>Just checked and Prime using 90MB in my TV, while YouTube uses 214KB, so maybe I already have the wasm monstrosity.
评论 #30110230 未加载
评论 #30109830 未加载
评论 #30114472 未加载
评论 #30114969 未加载
评论 #30109959 未加载
curiousgalover 3 years ago
And yet they can&#x27;t even implement Picture-in-Picture mode on their Android app. A basic feature has been stable for years among any app that plays videos.<p>Not to mention that their show recommendations are the worst ever, I would be ashamed to be part of their ML team honestly. (For reference I&#x27;m an American&#x2F;North African woman staying in France and all of my recommendations are for Indian action movies, literally all of them. I&#x27;ve never seen a single Bollywood film ever.)<p>Anyway this is to say, technical innovation won&#x27;t undo the damage done by shitty product managers.
gjsman-1000over 3 years ago
Personally, <i>to me</i>, whenever I read these stories about how Amazon is doing this novel use of WebAssembly, or how Uber is doing ludicrous engineering effort to keep their React-based app under 300MB for the App Store, I can&#x27;t help but think:<p>&quot;Man, that&#x27;s an awful lot of work to avoid writing a native app.&quot;
评论 #30110293 未加载
评论 #30111002 未加载
评论 #30110359 未加载
评论 #30110482 未加载
评论 #30110657 未加载
评论 #30113195 未加载
评论 #30111978 未加载
评论 #30113168 未加载
评论 #30110344 未加载
评论 #30110947 未加载
评论 #30110303 未加载
评论 #30110304 未加载
评论 #30110258 未加载
评论 #30111145 未加载
评论 #30110757 未加载
sheeshkebabover 3 years ago
Now I know why Prime video app sucks on every iOS device I tried it on, including Apple TV
评论 #30111137 未加载
评论 #30111092 未加载
beardedmanover 3 years ago
I really wouldn&#x27;t use Amazon Prime as a shining example of WA.
评论 #30111957 未加载
rustworldover 3 years ago
Really interesting to see the adoption. Disney+ Shared the following: <a href="https:&#x2F;&#x2F;medium.com&#x2F;disney-streaming&#x2F;introducing-the-disney-application-development-kit-adk-ad85ca139073" rel="nofollow">https:&#x2F;&#x2F;medium.com&#x2F;disney-streaming&#x2F;introducing-the-disney-a...</a>
chjover 3 years ago
On systems such as iOS which you don&#x27;t have JIT, performance is going to be real bad, as if you are dancing with a pair of iron made shoes. Honestly Amazon should afford going full native, at least for the scene and animation stuff.
ec109685over 3 years ago
What was the reason for web assembly versus just running rust directly on the target hardware? Is the idea that the constrained WASM environment requires less QA than if the hardware was targeted specifically by the rust compiler?
评论 #30110265 未加载
评论 #30110154 未加载
zleiover 3 years ago
Just curious: which specific wasm VM implementation are they using?
评论 #30109767 未加载
rappaticover 3 years ago
It&#x27;s nice to see a big company like Amazon using Wasm in something that actually sees the light of production (and in something that&#x27;s used by so many people). I always see tech giants supporting or contributing to newer technologies like Wasm without really using them in important applications.
评论 #30109382 未加载
RcouF1uZ4gsCover 3 years ago
Language success is in large parts driven by what system adopts that language.<p>Objective-C’s success was driven by iOS.<p>C’s success was driven by Unix.<p>C++’s early success was driven in large part by 90’s GUI frameworks ( MDC, OWL, Qt, etc.<p>I think Wasm is shaping up to be huge in that you can safely run, high performance code across multiple operating systems&#x2F;CPU’s. Of all the languages, I think Rust has the best WASM tooling, and the 2020’s may end up being the WASM&#x2F;Rust decade.
评论 #30109862 未加载
评论 #30109583 未加载
评论 #30110167 未加载
评论 #30112172 未加载
TruthWillHurtover 3 years ago
Prime Video app sucks. Spend less time over-optimizing, more time improving usability.
评论 #30110847 未加载
评论 #30112505 未加载
Zenstover 3 years ago
I&#x27;d be happy with surround (5.1) upon windows, alas it seems you can only get that via an Amazon device. HD 5.1 would suit me over any 4k and do feel many streaming services use the 4k etc as marketing more than anything else and fail upon the audio aspect in regards to surround, which IMHO add&#x27;s way more to the viewing experience than a bump in resolution - though others millage may vary.
bluehexover 3 years ago
Would this architecture work on their iOS app as well even with Apple&#x27;s restrictions on downloading executable code?
评论 #30112536 未加载
alvarlagerlofover 3 years ago
The prime video website doesn&#x27;t seem to go higher than 480p. YouTube trailers for their own shows look vastly better.
dwmbtover 3 years ago
first time i&#x27;ve seen practical wasm system design and the transition written about. that being said, i would really love a deeper dive. the graphics were also insightful -- cheers, alexandru
评论 #30118770 未加载
oofbeyover 3 years ago
Why is this in their “science” blog?
austincheneyover 3 years ago
Sounds like they are doing it wrong.<p><i>Our Wasm investigations started in August 2020, when we built some prototypes to compare the performance of Wasm VMs and JavaScript VMs in simulations involving the type of work our low-level JavaScript components were doing. In those experiments, code written in Rust and compiled to Wasm was 10 to 25 times as fast as JavaScript.</i><p>For video processing, especially high fidelity, high frequency, and high resolution video, I can see WASM crushing JavaScript performance by orders of magnitude. But, that isn’t this. They are just launching an app.<p>I have verified in my own personal application that I can achieve superior performance and response times in a GUI compared to nearly identical interfaces provided by the OS on the desktop.<p>There are some caveats though.<p>First, rendering in the browser is offloaded to the GPU so performance improvements attributed to interfaces in the browser are largely a reflection of proper hardware configurations on new hardware. The better the hardware the better a browser interface can perform compared to a desktop equivalent and I suspect the inverse to also be true.<p>Second, performance improvements in the browser apply only up to a threshold. In my performance testing on my best hardware that threshold is somewhere between 30000 to 50000 nodes rendered from a single instance. I am not a hardware guy but I suspect this could be due to a combination of JavaScript being single threaded and memory allocation designed for speed in a garbage collected logical VM opposed to allocated for efficiency.<p>Third, the developers actually have to know what they are doing. This is the most important factor for performance and all the hardware improvements in the world won’t compensate. There are two APIs to render any interface in the browser: canvas and the DOM. Each have different limitations. The primary interface is the DOM which is more memory intense but requires far less from the CPU&#x2F;GPU, so the DOM can scale to a higher quantity of nodes without breaking a sweat but without cool stuff like animation.<p>There are only a few ways to modify the DOM. Most performance variations come from reading the DOM. In most cases, but not all, the fastest access comes from the old static methods like <i>getElementById</i>, <i>getElementsByTagName</i>, and <i>getElementsByClassName</i>. Other access approaches are faster only when there is not a static method equivalent, such as querying elements by attribute.<p>The most common and preferred means of DOM access are querySelectors which are incredibly slow. The performance difference can be as large as 250,000x in Firefox. Modern frameworks tend to make this slower by supplying additional layers of abstraction and unnecessarily executing querySelectors with unnecessary repetition.