Live data from Hacker News

Prime Video Uses WebAssembly

amazon.science

201–210 of 254 posts

Re: Prime Video Uses WebAssembly

#201

Earlier quoted context omitted.

Prime 4K's bit-rate is ~15Mb/s. A UHD Blu-Ray has a bit-rate that's more like 70Mb/s, and a 1080p Blu-ray has a bit-rate of ~28Mb/s. Of course, 4K is usually encoded with H.265 while 1080p is encoded with H.264, so the raw bit-rate numbers are not as useful for comparison - but still, that's almost twice the bit-rate for a quarter of the pixels, and H.265 isn't magic.

Prime 4K is nice, but if you have a decent sound system with Atmos, then Amazon Prime is not the place. Apple TV has been the best platform so far for 4K and Atmos content, if you also want an option to purchase a title. https://www.highdefdigest.com/news/show/everything-on-amazon...

Here in Mexico at least, there's almost no 4k content on Prime. Even less Atmos content.

Netflix, Disney, and Apple are great.

HboMax has 4k content, but their tech is really bad and the quality is constantly jumping between SD to 720p to 1080p to 4k. We have a 500Mbps fiber connection.

Re: Prime Video Uses WebAssembly

#202
post #150
post #96

Earlier quoted context omitted.

Or even new ones, like the AMD Radeon RX 6500 XT that had the AV1 decoder chopped off the Navi die for some inexplicable reason.

The reason is because it's harvested from a laptop chip; and in laptops, the Ryzen 5000 media engine features AV1 decode, so it's wasted die space. Still, the 6500 XT is an awful GPU.

>the Ryzen 5000 media engine features AV1 decode

No it doesn't.[1] Ryzen 5000's iGPU is based on the older Vega architecture and has no AV1 support, so everyone like me who just bought a brand speaking new laptop with Ryzen 5000 will be screwed soon enough.

[1] https://cpufinder.com/amd-ryzen-7-5800u

Re: Prime Video Uses WebAssembly

#203
post #184

Earlier quoted context omitted.

I mean I would just argue that the accessibility APIs are currently tied to the DOM and we should fix that.

Accessibility API need a semantic layer that the DOM provide. You can't just make every arbitratry gui accessible. The app developers will have to pay the price (more development time).

Hopefully the GUI developers realize this is needed and put in the work, so that work can be shared by the end users of the GUI frameworks. I'd hate to think developers are going to reinvent the wheel on each project, but I've been less surprised before.

Re: Prime Video Uses WebAssembly

#204

Earlier quoted context omitted.

> we built an application that overlays debugger information on an application scene render using egui, a Rust GUI library This is the context. They use egui to display debugger information - performance does not matter for the debugger information.

It does if you're debugging performance issues.

If you need good performance to debug "performance issues" - lack of good performance - I don't think you will solve your problem.

Re: Prime Video Uses WebAssembly

#205
post #52

The egui framework they mention is pretty neat: https://emilk.github.io/egui/ It an entirely custom toolkit, so don't expect it to have a native look and feel, but it's a GPU-first design with multiple back-ends. It can be used in native OpenGL apps too. It's an immediate-mode UI, so it's very easy to build and update even complex windows. Great choice if you want to prototype a game.

The biggest downside of this is that everything is painted as "graphics", and you can no longer use the web inspector to modify the fonts, colours, etc. While few people (like myself) do this directly, lots of people use it indirectly through extensions like Adblock, Stylus, etc. For example, I find the fonts hard to read due to the colour choices; then I zoom in and it's better, but now this "Widget gallery" no long…

> extensions like Adblock

I suspect that if Amazon have considered this, they certainly didn't see it as a disadvantage!

Re: Prime Video Uses WebAssembly

#206

Earlier quoted context omitted.

Prime 4K's bit-rate is ~15Mb/s. A UHD Blu-Ray has a bit-rate that's more like 70Mb/s, and a 1080p Blu-ray has a bit-rate of ~28Mb/s. Of course, 4K is usually encoded with H.265 while 1080p is encoded with H.264, so the raw bit-rate numbers are not as useful for comparison - but still, that's almost twice the bit-rate for a quarter of the pixels, and H.265 isn't magic.

Prime 4K is nice, but if you have a decent sound system with Atmos, then Amazon Prime is not the place. Apple TV has been the best platform so far for 4K and Atmos content, if you also want an option to purchase a title. https://www.highdefdigest.com/news/show/everything-on-amazon...

If you have a fancy 4K TV and a decent sound system with Atmos which you want to take advantage of then you really should be buying physical media instead of streaming... I mean, if you went beyond having a sound bar, and ran wires for surround speakers with a proper home theater amplifier.

Streaming platform usually only give you 5.1 on EAC3 (DD+), on UHD Blu-rays you get 7.1 over TrueHD, and then you get Atmos on top of both of those, and Atmos over TrueHD is more Atmosy or something (besides obviously TrueHD being lossless while EAC3 is lossy.)

Re: Prime Video Uses WebAssembly

#207
post #179

Earlier quoted context omitted.

It feels like a huge step backward in terms of all of that. It's what Flash used to be, except less blatant security risks I guess.

> less blatant security risks For now. Flash was also fine in the early days.

Just look at the growth in the number of Adobe employees between 1990 and 2019 at this link :

https://dazeinfo.com/2019/11/08/number-of-adobe-employees-wo...

if headcount was any way to measure success, then the killing of Flash did Adobe the world of good.

edit : not corollary, but the capacity to manage Flash security might have arrived too late, if I recall that late 2000s sudden Acrobat hegemony that was so absolute a stranglehold on corporate document cultural defaults they were uncaring about opt out only browser extension auto installation and more dark patterns than I care to remember. Unless the dark patterns secured that growth. Ugh. One of the primary factors in my purchase of a top model iPhone for my first Apple product that wasn't Snow White era was the ability to print to PDF (edit removed anecdote accidentally aggregated)

Re: Prime Video Uses WebAssembly

#208
post #111

Earlier quoted context omitted.

I think it's important not to conflate churn with fast updates. In it's essence the ability to deliver updates quickly (in this case by downloading a blob of wasm+js each time the app is started) is a great thing imo, as you eliminate a huge chunk of problems around delivering updates and clients on old versions. For 99% of users this is a huge win. You can obviously abuse this by redesigning the UI every 6 weeks but…

I'm of the strong opinion that there simply does not exist, as you say, 'a huge chunk of problems around delivering updates and clients on old versions.' It's certainly not a win for users, but for lazy developers. Good software engineers are much more than fast-churn developers. In fact, they are different people.

I'm 100% with you on this, but good software engineers are also much more expensive than fast-churn developers, and it seems to come down to how much spend these companies want to invest in their technology. There is just an overabundance of web developers out there, and the tech companies are taking advantage of that.

Re: Prime Video Uses WebAssembly

#209

Earlier quoted context omitted.

React and Flutter aren't immediate mode only because they're build on top of the DOM as primitive. Otherwise, conceptually they are evolutions of immediate mode. And they inspired plenty of GUIs outside the web to go "immediate" mode themselves.

Words don't have any meaning anymore if react (and the HTML DOM) is considered anything close to "immediate mode". For starters the DOM is a declarative thing - immediate mode means that you have a function called for each frame with imperative function calls written by the user of the immediate mode GUI toolkit for rendering each element of the GUI every time (unlike retained mode where a framework hides that behind…

Perhaps confusingly, the term "immediate mode GUI" usually describes an API style. NOT an implementation detail.

It suggests a particular implementation, but in practice most nontrivial "immediate mode" GUI libraries (including egui [1] and the famous Dear-IMGUI [2] [3] ) retain some "shadow state" between frames. The existence or scope of that state is a (sometimes-leaky) implementation detail that shouldn't distract from the fact that the API presented is still "immediate mode."

[1] https://github.com/emilk/egui#ids

[2] https://github.com/ocornut/imgui/blob/master/docs/FAQ.md#q-a...

[3] https://github.com/ocornut/imgui/wiki/About-the-IMGUI-paradi...

Re: Prime Video Uses WebAssembly

#210
post #199

Earlier quoted context omitted.

React and Flutter aren't immediate mode only because they're build on top of the DOM as primitive. Otherwise, conceptually they are evolutions of immediate mode. And they inspired plenty of GUIs outside the web to go "immediate" mode themselves.

Flutter on the web uses the DOM? I seem to recall discussing here on HN with people from the Flutter team how they didn't use the DOM on purpose.

>Flutter on the web uses the DOM?

Yes. On the web it actually has 2 renderers, a HTML (which uses the DOM) and a Canvas based one (which doesn't).

But I mostly wanted to write about what's the case with React - I just wrote quickly and also kept the reference to Flutter from the parent comment which mentioned them together...

Post reply on HN