this post was submitted on 11 Jun 2026
61 points (100.0% liked)

Programming

27223 readers
276 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



founded 3 years ago
MODERATORS
 

I decided to adventure myself in Tauri development for a personal project, I read the entire Rust official book and followed the exercises. When I first started developing it was like if nothing I learned helped for real life projects.

Now after getting betting up every single time I touch my project, it seems I'm catching things slowly.

But I've never seen such a hard modern language, I used C and C++ before and it's incomparable.

you are viewing a single comment's thread
view the rest of the comments
[–] one_old_coder@piefed.social 26 points 15 hours ago* (last edited 15 hours ago) (15 children)

How many years of experience do you have in C++, and which version?

Rust can be a bitch in its syntax, and its borrow checker, but modern professional C++ can be way worse if you use concepts and metaprogramming.

[–] JohnHammerSky@lemmy.today 5 points 15 hours ago (3 children)

No I'm not professional, maybe I'm mistaken. I just know C++ and made a few simple things, and then I tried to do a few simple things in Rust but it's almost killing me. I'm asking myself if it's worth it.

[–] Mikina@programming.dev 13 points 15 hours ago

I think that is kind of the main point of Rust, though.

It's pretty easy to make something in C++. But it will very probably have a lot of hidden issues with memory, undefined behaviors and the like. Rust doesn't let you make those mistakes that much, and forces you to do it correctly and securely the first time, which is why it is harder to get into.

They are mostly harmless and may never cause problems for you, but that's how you get critical RCEs that are 8 years old in a software that's now widely used.

If you don't need this kind "ease traded for security", in my personal opinion I'd go with Zig instead.

[–] one_old_coder@piefed.social 5 points 15 hours ago

It's worth it because it's not C++. If I could, I would get a job writing Rust. Or Zig as that other guy said. My shitty opinion:

  • Zig <-> C
  • Rust <-> C++
[–] 30p87@feddit.org 1 points 15 hours ago (1 children)

If your code touches sensitive stuff (eg. public networking) and needs to be low level, probably Rust (or another compiled memory safe language). Otherwise, just use C++.

[–] JohnHammerSky@lemmy.today 1 points 15 hours ago (4 children)

But then what's the point of Tauri? I mean there are plenty general use projects in Tauri, why'd they chose Rust?

[–] calcopiritus@lemmy.world 3 points 8 hours ago

Do you really need tauri?

Tauri is for web devs that want to make GUIs with web tech in rust. You can do GUIs without web tech.

If you really want to make a GUI with rust, you can use iced.

If you just want a GUI with web tech, do it in JavaScript+html.

If you want a GUI without web tech and don't care the language, use a GUI toolkit for your preferred language.

Learning a GUI toolkit is hard. Learning a language is hard. Learning both at the same time is even harder than the sum.

[–] fruitcantfly@programming.dev 7 points 14 hours ago

Once you've learned it, Rust is just a very nice compiled language to work with.

You get higher level constructs than in C++, a language without a billion weird edge cases, a modern package manager, and much more. In my experience, my code written in Rust is more likely to work as intended, both because of the stricter compile-time checks, but also because language features like sum types make it easier to check the core logic at compile time.

I work in both C++ and Rust, among other languages, but these days I never reach for C++ for a new project

[–] dontbelievethis@sh.itjust.works 2 points 11 hours ago

Tauri is for using webtech with rust irc.

So if you want to use rust in combination with JS frameworks like reakt you use tauri.

[–] 30p87@feddit.org 1 points 15 hours ago

A fake sense of security by pretending that simple apps that don't expose low level interfaces and use wrapping libraries for all parts of networking need to be implemented by-design memory language, or for people who just like rust.

load more comments (11 replies)