6 comments

  • slacknatcher122 hours ago
    Reading the documentation, I just notice lots of familiarity with my own solution using haskell and gi-gtk4. I think that anybody that read <a href="https:&#x2F;&#x2F;bichanna.github.io&#x2F;posts&#x2F;tea-time&#x2F;" rel="nofollow">https:&#x2F;&#x2F;bichanna.github.io&#x2F;posts&#x2F;tea-time&#x2F;</a> will get the same ideas. This basically boils down to:<p>1. Use a native widget system such as GTK (I evaluated Qt too)<p>2. Wrap widgets into a component datatype that is aware on how to update the widget when the props&#x2F;model changes.<p>3. Define a dispatch closure that is passed to widget that accepts messages. Actions on the widgets should use this instead of mutating a reference.<p>4. That dispatch closure is component aware and it will call the update function on all the widgets.<p>There are some extra complications for long running computations but the model is a good base to build on. I wish the best to the relm team, most likely I will use them when programminmg in rust.
    • zeendo9 minutes ago
      Is your Haskell solution open source?
  • WD-422 hours ago
    I used plain gtk-rs for my last project and there is definitely some friction between rust and the gobject system. I think for my next project I will give relm4 a try. Apparently you can always drop back to gtk-rs if needed.
  • pitched1 hour ago
    This is Gnome&#x2F;GTK, not cross-platform like I would have expected. A Linux-first approach. I’m happy that this is the world we’re in now but expect it still to be royal pain to get a build running on Windows. Huge congrats to everyone involved if not!
  • ThrowawayTestr2 hours ago
    Why no examples of how &quot;beautiful&quot; this library is?
    • pitched1 hour ago
      You have to head to the documentation to see an example. It is still Rust, which is a bit of an acquired taste so keeping that beauty off the main page makes sense.
  • comex1 hour ago
    &gt; Built on GTK, Relm4 runs on bare metal with no additional runtime in between.<p>So, not native in the sense of using or even resembling the native UI toolkit.
    • vpzom12 minutes ago
      unless, of course, your native UI toolkit _is_ GTK
  • thataccount1 hour ago
    I had to read the comments to figure out whether this was AI or not. I guess that&#x27;s a sign of the times...