placeholder

Rebuilding Prime Video UI with Rust and WebAssembly

Alexandru Ene features details of a new UI SDK in Rust for Prime Video that targets living room devices.

Click to view the original at infoq.com

Hasnain says:

"The reason why I think this is true is because we did a lot of work in developer experience with those macros that maybe look a bit shocking if you don't know UI programming, but actually they felt very familiar to UI engineers. They could work with it right off the bat, they don't have to deal with much complexity in the borrow checker. Usually, in the UI code, you can clone things if necessary, or even use a Rc and things like that. You all know, this is not super optimal. Yes, we came from JavaScript, so this is fine, I promise. The gnarly bits are down in the engine, and there we take a lot of care about data management and memory and so on. In the UI code, we can afford it easy. Even on the lowest level hardware, I have some slides that you'll see the impact of this."

Posted on 2025-04-13T03:37:30+0000