vgtk
easy_rust
Our great sponsors
vgtk | easy_rust | |
---|---|---|
14 | 21 | |
1,038 | 7,719 | |
- | - | |
0.0 | 0.0 | |
about 2 years ago | about 1 year ago | |
Rust | Shell | |
GNU General Public License v3.0 or later | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
vgtk
-
Rust: State of GUI, December 2022 – KAS blog
A pretty fun Rust GUI experienc is vgtk[0], which is doing a bunch of macro magic to give a "we're coding in React" vibe to GTK+. I don't really have a specific thing I want to code in a native GUI at the moment but if I did I think this would be the most tempting for me.
-
Code bloat has become astronomical
a stateful GUI markup language is react. it is not yet the case that react-like code works for desktop, though there are cool examples like vgtk https://github.com/bodil/vgtk
-
A declarative desktop UI framework for Rust built on GTK and GTK-rs
from what i gather from https://github.com/bodil/vgtk/issues/78, you're better off using realm
I'm always curious to see these projects, because I've been experimenting with a React renderer for the GJS bindings for a while. It's frustrating because GTK "feels like" it's so close to being able to support a vdom/declarative paradigm, but the devil is in the details.
The simple use-cases like "Window > Box > Label" are easy to get going. The more complex widgets like Stack/Grid/TreeView ... aren't.
This project seems to have the same issue: https://github.com/bodil/vgtk/issues/40
This is made more difficult now GTK4 has removed the Container base class, so there's no longer a unified interface for adding children (although it had caveats in the first place).
I totally get the GTK view that (presumably) specific widgets are more intuitive with specific add/remove APIs (like the grid - one doesn't really "appendChild" to a grid).
It just feels like: if there was a consistent container API comparable to the web's appendChild approach, a vdom/declarative approach would require only a very light wrapper. Without it, I keep coming back to the idea of implementing wrapper widgets that expose that consistent API instead. And that's just not something I want to maintain - effectively duplicating each GTK widget for the purpose of making it fit into a tree model.
It's also a problem of trying to wrap richer functionality (pack_start and pack_end) into a simpler set (append only) of course.
So I don't know exactly what my point is :) Perhaps cautioning the reader that the simplicity of the approach comes with a catch.
-
Hacker News top posts: May 28, 2022
A declarative desktop UI framework for Rust built on GTK and GTK-rs\ (23 comments)
-
Newbie here. Just finished reading the book. What now?
Build your own To-do List Application in Rust: https://bodil.lol/vgtk/
-
Rust GUI: Introduction, a.k.a. the state of Rust GUI libraries (As of January 2021)
VGTK
easy_rust
-
Stuck at 4.3 of the rust book. It's so hard for me.
There's also Easy Rust, an effort in translating the Rust Book into Simple English (limited vocabulary, limited use of idioms), which has now become a Book.
-
Anything C can do Rust can do Better
Easy Rust - David MacLeod
-
I have returned
Along with the Book, I wrote a book after learning Rust that's for absolute beginners, and doesn't even require installing Rust. It's almost entirely done in the Playground so you can just open up a tab in your browser and follow along. As far as paid books are concerned, my favourite is Programming Rust.
-
So you want to learn Rust?
Easy Rust OR GH Page
-
What is the best course to start learning?
I made a book for absolute complete beginners, after which the Book should be easy to understand. After that I'd recommend Programming Rust (my favourite book on Rust).
-
Newbie here. Just finished reading the book. What now?
https://github.com/Dhghomon/easy_rust The book
-
I have to admit. The free code camp course is a bit more sparing than I would have preferred. How did everyone learn Rust?
This is my favorite: https://github.com/Dhghomon/easy_rust
-
It's been 20 days since I started learning rust as my first language. Terrible experience. Should I move forward?
I put together a book that goes over most of the same content found in The Book but written with easy / straightforward English (partially for English L2 speakers but also for English speakers that just want the info in as straightforward a package as possible).
-
Books on rust for experienced programmers?
I'd recommend this easy-rust textbook.
-
What do you think is the best way to learn Rust?
Second incredibly biased guy chiming in: here's a book I wrote that explains Rust in simple terms, plus 186 videos to accompany it. My keyboard is very clackety but otherwise people seem to like it.
What are some alternatives?
too-many-lists - Learn Rust by writing Entirely Too Many linked lists
rust-by-example - Learn Rust with examples (Live code editor included)
Rustlings - :crab: Small exercises to get you used to reading and writing Rust code!
neon - Neon: Serverless Postgres. We separated storage and compute to offer autoscaling, branching, and bottomless storage.
Rust-Full-Stack - Rust projects here are easy to use. There are blog posts for them also.
Exercism - website - The codebase for Exercism's website.
headway - Self-hostable maps stack, powered by OpenStreetMap.
tour_of_rust - A tour of rust's language features
orbtk - The Rust UI-Toolkit.
TablaM - The practical relational programing language for data-oriented applications
rust-blog - Educational blog posts for Rust beginners
rust-anthology - Learn Rust from the best