Post

I think I’m finally starting to get Rust. Managed to get my standard get-to-know-a-language app running in it. A threaded prime number calculator. It’s taken me the best part of a few days though. The app covers all the basics: functions, classes, passing by reference, lists and threading.

After recounting this to a colleague. Them: “What is Rust used for then?” Me: “Mainly annoying programmers” Was beginning to think Rust was some kind of elaborate prank by the Elders of the Internet.

I've now bothered googling why people use it. Something something forces people not to be sloppy. OK, sounds fine, uggh, full of curly brackets, give me Python back.

0 reposts1 like

Its biggest problem, from what I've heard of folks who tried to do say gamedev with it and then abandoned it, is that it is very hard to tinker with app architecture; you either have to crowbar the new into the old, or take it down to foundations and rework the whole thing

Rust's data sharing rules are quite strict. If you don't break out unsafe {}, there are many paradigms that C/C++ lets you do (multiple references when one or more is mutable) that Rust forbids without extra barriers in place. Some of the C/C++ code is technically UB, but still works.