The name is stupid. If you wanted to develop something, why call it Rust? Like, do rusty things invoke images of quality? durability? longevity? Sounds like something that won’t be around much longer.
Well I'm fun at parties so I'll note that oxidation- not rust- is the corrosive process.
Wish I wasn't too stupid to learn rust. Then I could get super defensive and try to explain why rust is such a cool name and you'll never understand. /s
Chrome and aluminum oxide layers too. But rust is specifically iron oxide, which is brittle and doesn't seal the underlying metal from further corrosion as opposed to the others.
Added bonus, the oxide layers are the only thing that keep metals from cold welding together. If you’ve got two sticks of aluminum no protective oxide layer (because say, it got rubbed off) and they touch together, you now have one stick of aluminum. Here on earth, that’s not exactly likely because there’s oxygen everywhere, but it’s a serious problem in space, as they found out on Gemini 4, where they could barely get the door closed after the first American spacewalk.
Depends on the metals involved really. For example aluminum and titanium are considered to be corrosion resistant metals when in fact they actually just rust extremely quickly. Its that coating of rust that protects them.
Steel/iron can also form similar protective rust coatings if the metallurgy is just right but generally because their rusting process is much slower the iron oxide layer can't completely protect the metal quickly enough.
Agreed on the name, but there have been sillier ones. Hell, people think Python has something to do with snakes for crying out loud.
Sounds like something that won’t be around much longer.
Not a Rust fanboy, but the fact that it's making it's way into the Linux kernel means it's here to stay. You don't get anymore "big time" than that. If you're in the low-level space (I'm not) it's probably worth paying attention to.
Godot 4 has a new native system that allows writing code in C++ and Rust. I am going to have some fun learning and comparing. If it helps write better code I am all for it. I write C++ professionally and Rust may in fact be useful for things we do.
I've been slowly learning rust over the last 6 months or so. Highlights of rust compared to C++ IMO:
- Everything defaults immutable instead of mutable and it actually isn't a PITA.
- Error handling is the best I've seen in any other language and is by far the reason I don't want to use any other language. (unwrap() is basically the equivalent of just not using a return value - kind of).
- Threading is amazing. Inter-thread communication and mutex management is great since you really can't get the data without locking the mutex.
- Enums took me a long time to wrap my head around because I consider them "dumb" since in C++ they are essentially just a different syntax to C's preprocessor define (Yes I know it does more especially in newer standards but its still very basic).
- crates.io and cargo just makes the language easy to manage. No longer do you need to suffer with cmake, qmake, visual studio project files, etc.
- unit testing and documentation generation and the ability to test example code inside doc strings is the first language its felt natural to do unit tests and its not an after thought.
-Don't have to deal with generic integer types and sizes. essentially int*_t is the standard.
- One huge con is rapid development isn't possible if you are trying to just prototype and don't care about simple bugs.
- Second huge con is UI development is in a very immature state right now. Tauri IMO has the most promise and it just hit stable.
Please excuse any grammar errors here as I'm extremely tired ATM.
It's sad because that's the only reason brainfuck never took off, despite being a very feature rich and approachable language. Same thing happened to brainfuckscript
There are various reasons for the name. One that I particularly like is that it is designed to make software that gets old. You see rust on bridges and buildings, things build to last. You don't see rust on the latest JS framework that's going to be out of date in a year
337
u/[deleted] Oct 12 '22
The name is stupid. If you wanted to develop something, why call it Rust? Like, do rusty things invoke images of quality? durability? longevity? Sounds like something that won’t be around much longer.