Data Oriented GUI in Rust by Raph Levien - Bay Area Rust Meetup

Channel:Rust Programming Language · Length:1:05:59 · Published:2018-07-03 · Views:83041

Watch on YouTube

Summary

Raph Levien presents his new Rust GUI framework, built on data-oriented design and ideas from entity component systems, for the Xi editor. He weighs the approach against alternatives and discusses pros and cons.

Why HN recommends it

HN people point to it as an excellent, inspirational talk on Rust GUI architecture, and it led many to the Druid project.

I found this excellent talk to be complementary to my talk[1] on data-oriented GUI in Rust — HN, 2018

C, C++, Rust, Go & systems languages · Software architecture & design · Game programming & engines

Subtitles (excerpt)

next up we have Rafe Rafe works at Google on fuchsia and has written stuff like zai and a whole bunch of cool things and is talking about GOI and rust alright let's get plugged in here yes I'll hit present great fantastic okay great so I'm gonna be talking about kind of an exploration like kind of asking this question of like can you reasonably write GUI code in rust like where the challenges where's it hard and so just kind of as an outline of this talk so first of all I should say that this this is my 20% a kind of personal project this is not an official Google product and any opinions expressed are also not official Google policy right so I'm the there's kind of a lot of material here so I'm going to just start talking a little bit about you know what makes GUI programming different or special compared with just regular types or programming that you might do and what are the specific things that I'm trying to you know get into and especially like one of the themes is performance this is kind of the the niche that I feel like one of the things that we don't have as much as we'd like in kind of GUI toolkits is performance and I feel like this is an opportunity to do something that's that goes a little bit beyond a

On Hacker News

I found this excellent talk to be complementary to my talk[1] on data-oriented GUI in Rust, not to plug my own work too much. I found a lot of common ground: * Trying to write object-oriented code in Rust doesn't work well. Writing data-oriented code does. * "Fighting the borrow checker" is a sign you might be doing it wrong. Try data-oriented approaches instead. * Use a structure-of-arrays rathe… — raphlinus, 2018-09
As much as I like Dear ImGui, the immediate mode paradigm doesn't work everywhere. The problem of "page tearing" (not to be confused with vsync) means you either need to render frames continuously, or at least 2 frames for every time you get input or need to implement some kind of "retained mode state tracking" on top of Imgui. It's good for games, but for applications where you're not rendering … — exDM69, 2020-11
I haven't shared the code in public but if you give your GitHub username, I can share it to you (and others who are interested) and you can reach out via email (address in commit log). I got inspired by Raph Levien's talk on Rust and GUI layout [0] and realized that a simple flexbox layout algorithm can be implemented really efficiently. So I started making a prototype in C (also a small proto in… — exDM69, 2020-04
Thanks! Looks very interesting, going to watch the video about Druid linked in the README.MD later[0]. And no worries, it's very easy to forget not everyone is introduced! Anyway, to actually engage with your point: I can see the appeal of an all-Rust framework: good typing system + high performance (both in speed and low memory use, ideally) sounds fantastic! So out of curiosity: how do you thin… — vanderZwan, 2019-03

Related videos