@nixCraft@mastodon.social speed.
Programming
A magazine created for the discussion of computer programming-related topics.
Rules
Please keep submissions on topic and of high quality. No image posts, no memes, no politics. Keep the magazine focused on programming topics not general computing topics. Direct links to app demos (unrelated to programming) will be removed. No surveys.
@nixCraft@mastodon.social tooling
@nixCraft@mastodon.social
- Type system
- Destructors instead of garbage collector
- Cargo tool, which implements building, package management and running tests.
@nixCraft@mastodon.social + Performance
@nixCraft@mastodon.social other = the lack of a corporate overlord.
@nixCraft@mastodon.social I think the sense of superiority
@nixCraft@mastodon.social
Originally, what drew me most to Rust I guess were (in following order):
-
Complex compiled language with momentum that was not C++ (back when I was still mostly a C/Python dev... now, it just looks like Haskell for Modern C++ devs)
-
Claims of speed + memory safety (esp around multithread type stuff - a big one coming from several bad Python codebases that struggle with concurrency issues)
-
Didn't have "cuddled else" / "caterpillar ifs" hard coded into the syntax (cough Go)
@nixCraft@mastodon.social the karen compiler
@nixCraft@mastodon.social Too late I discovered this was multiple choice. Both the type safety and the memory safety appeal to me. But then again, if something isn’t truly memory safe, you can at least argue about its safety as well, isn’t it?
The real thing about #Rust is that it lets me be productive. That may sound counterintuitive for a language with so many rules. But I think of what I want and think of the rules to enforce that. Rust lets me have it that way and corrects me when I’m off.
@nixCraft@mastodon.social I took my first Rust course yesterday.
yuck. 20yrs of programming - this is a major pain in the ass.
I hope it gets easier
@nixCraft@mastodon.social
-
The simplicity and ease of use (yes, I hear may people complain that rust is too hard, but after nearly 40 years of programming in c, c++, java, perl, python, javascript and a bunch of other languages, I think Rust is by far the easiest).
-
The expressiveness of the type system. Rather than "catch-all" big state, and keeping track of which part are initialized, I can have different types.
-
Honorary mention: The mutexes and connection pools.
@nixCraft@mastodon.social You think Rust appeals to me?
@nixCraft@mastodon.social I really like the fact that the program language is named rust. I always hear that and imagine the programmer in some naked guy beating a bird to death on a beach somewhere with big rock while shout “I’m friendly!”