First look at the new Rust GPUI framework from Zed!

Sdílet
Vložit
  • čas přidán 15. 06. 2024
  • In this stream, we continue on our Rust learning journey by exploring the newly open sourced GPUI framework from Zed Industries. The framework allows us to build UIs that are rendered via the GPU for high performance.
    00:00 Intro
    00:29 New Cargo project
    01:20 The big picture
    03:43 Hello world
    05:21 Theming
    07:31 Could not compile issue
    10:00 Theme names
    12:20 UI::Button
    15:00 Counter
    15:21 Button onClick
    17:20 Counter state works!
  • Zábava

Komentáře • 13

  • @iamnbutler
    @iamnbutler Před 4 měsíci +3

    Thanks for checking out gpui! It was super cool you were able to pull in stuff from the theme and ui crates and get them working easily :)

    • @duanebester
      @duanebester  Před 4 měsíci

      Thanks for working on Zed and making something awesome. Looking forward to using/ learning more. I did hit that weird borrow error from the storage settings around 8 min in. Not sure if anyone else hit that

    • @iamnbutler
      @iamnbutler Před 4 měsíci

      @@duanebester of course! We are happy the community can finally engage with it! I’ll get the team to take a peek at that error.

  • @tammip5497
    @tammip5497 Před 3 měsíci +1

    Thank you, great introduction for gpui 👍🏻

  • @chenhonzhou
    @chenhonzhou Před 4 měsíci +3

    Why don't you use zed editor to write gpui demos?

    • @duanebester
      @duanebester  Před 4 měsíci

      I’ve been trying it, VSCode is still my comfort for streaming

  • @sql64
    @sql64 Před 4 měsíci +6

    your audio is doubled

  • @ddevienne
    @ddevienne Před 3 měsíci

    Rust lurker here. What are those Div trailers in several lines of the render method?

    • @duanebester
      @duanebester  Před 2 měsíci

      the div().flex().text_xl() stuff? Part of their tailwind-style layout engine. I believe it's powered by taffy - github.com/DioxusLabs/taffy

  • @khanra17
    @khanra17 Před měsícem

    keep distance from the mic.
    don't over process the audio.
    Just speak,sound like normal human please.

    • @duanebester
      @duanebester  Před měsícem

      Thanks- This has been better in more recent videos