3 ms·
> can I expect Rust to somehow remind me a bit of Go in comparison to C++ and Java? Nope. Go and Java are about on the same "complexity plane" (Java is there 2
by masklinn 6y ago
> can I expect Rust to somehow remind me a bit of Go in comparison to C++ and Java?
Nope. Go and Java are about on the same "complexity plane" (Java is there 20 years later and having made different choices obviously, but the original java was not so different).
Rust is a much more complex language, in large part due to its purpose. It's often compared / conflated with Go because they arose around the same time, because the initial versions of Rust were much closer to applications languages (and Go e.g. runtime, green threads, segmented non-C stacks, …), and because Go's designers misleadingly called Go it a systems language.
Rust is more like taking OCaml, or Haskell, painting it in a C/C++ livery, and making it suitable as an actual replacement for C with all that implies.
- eikenberry 6y ago> Go's designers misleadingly called Go it a systems language. I think one definition of what a systems language is one that you would use to write operating systems. I'd also call K8ts an distributed operating system and Hashicorp tools as components of one. Doesn't seem a huge stretch to call Go a modern systems language.
- masklinn 6y ago> I think one definition of what a systems language is one that you would use to write operating systems. Sure. > I'd also call K8ts an distributed operating system K8S is less of an OS than systemd, and systemd is not an OS. I mean you can call a pebble a raccoon if you want. > Doesn't seem a huge stretch to call Go a modern systems language. Then nothing isn't a systems language, and congratulation you've pasted one more word into complete meaninglessness. Thanks, but no thanks.
- takeda 6y agoWith such definition everything is a system that's operating (doing something). With that definition the term becomes meaningless. Systems language has a specific meaning and Go doesn't fit that criteria.
- takeda 6y ago> Nope. Go and Java are about on the same "complexity plane" (Java is there 20 years later and having made different choices obviously, but the original java was not so different). That's actually a very good point. I think a lot of people forgot about it (I did). Java started very simple and then it just got enterprisy frameworks and best practices. I'm wondering how Go will look in 20 years.
- JoshTriplett 6y agoI'd certainly agree that the initial learning curve of Rust can be substantial, wrapping your head around things like the borrow checker. It was for me. But I'd never put it in the same tier as a completely different programming model like functional programming. It's still fundamentally a procedural language. Coming from C, I found Rust simpler than idiomatic modern C++, for instance.