vgtk
easy_rust
Our great sponsors
vgtk | easy_rust | |
---|---|---|
14 | 21 | |
1,038 | 7,815 | |
- | - | |
0.0 | 0.0 | |
about 2 years ago | over 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.
[0]: https://github.com/bodil/vgtk/
-
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
- Vgtk - A declarative desktop ui framework for rust built on gtk and gtk-rs
-
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/
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.
-
Easy Rust has been reborn on Manning as Learn Rust in a Month of Lunches
Up on Manning starting this week is a book I wrote / am writing called Learn Rust in a Month of Lunches, whose origins date back to Easy Rust that people here might be familiar with and which I wrote 2 years ago. The first six chapters are now up on MEAP which is pretty exciting. (The code mlmacleod gives 45% off until February 2 btw)
-
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
-
Rust course
Depends on what language you come from. I found this a decent enough intro for most languages: https://github.com/Dhghomon/easy_rust
-
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).
What are some alternatives?
neon - Neon: Serverless Postgres. We separated storage and compute to offer autoscaling, branching, and bottomless storage.
too-many-lists - Learn Rust by writing Entirely Too Many linked lists
headway - Self-hostable maps stack, powered by OpenStreetMap.
rust-by-example - Learn Rust with examples (Live code editor included)
orbtk - The Rust UI-Toolkit.
Rustlings - :crab: Small exercises to get you used to reading and writing Rust code!
areweguiyet - A website built for the Rust community
Rust-Full-Stack - Rust projects here are easy to use. There are blog posts for them also.
piet - An abstraction for 2D graphics.
Exercism - website - The codebase for Exercism's website.
Relm4 - Build truly native applications with ease!
tour_of_rust - A tour of rust's language features