• 0 Posts
  • 62 Comments
Joined 2 years ago
cake
Cake day: July 3rd, 2023

help-circle
  • I like the description by a Finn who said: Rust is like a car with automatic, while in C (or Zig) you need to change the gears.

    I don’t think this metaphor is correct. The automatic gear’s analogy would be the Garbage Collector, which almost every mainstream language has. Rust’s memory management, in comparison, is still manual. Maybe not as manual as C or Zig - but I’d say about as manual as C++. The difference is not that it has some weird gear-changing (memory cleanup) scheme that does not require human intervention - it’s that it yells at you when you don’t do the regular gear changing (memory management) properly.


















  • Edit: also, I need gtk because people around me who uses windows aren’t going to use CLI program at all.

    If that’s the reason - maybe you can use TUI instead? In Windows, it’d open a CMD window which your users will be able to use. Not as pretty as actual GUI, but easier for Windows users to use than a CLI.

    Another option is to use one of the numerous Rust-native GUI libraries (like iced or Druid, to name a few). None of them are as big as GTK/QT - but they are easier to get running on Windows.