3 ms·
Rust and Go have almost no relation to each other - one is a low-level language, like C, C++, the other is a high-level one like Java, C#, Haskell. These artic
by kaba0 3y ago
Rust and Go have almost no relation to each other - one is a low-level language, like C, C++, the other is a high-level one like Java, C#, Haskell.
These articles and this general notion that the two has some relevance to each other is just plain wrong and harmful.
- impulser_ 3y agoThere are definitely relations between them. They are often used in the same domains. Servers, DevOps, CLI, tooling ect. Just because one has manual memory management and other is GC doesn't mean they aren't relatable.
- kaba0 3y agoPython is also used in those niches, let’s add that also to the list.
- orwin 3y agoThe only 'natural' niche for Rust in your list is CLI. Which, by the way, I wouldn't really use go for unless it's a CLI for a daemon/remote program. I guess Rust can be used for the rest but imho you won't use rust's advantages. One of my favorites being memory manipulation. Rust truly shine for low-level programming imho, but more power to you if you're using it as your generalist language.
- ssokolow 3y agoI think they're all natural niches, because Rust's performance and ability to tightly control memory allocation are over-promoted and the strength of the type system as a means of ensuring correctness at compile time is underpromoted. Especially web use is one of the biggest places you want to be able to rely on the compiler, aided by patterns like the newtype pattern and the typestate patterns, to catch as many potential DoS or security bugs as possible. I use Rust as "Haskell, but without having to put up with writing Haskell". (Or, more commonly, I say that Rust is the sweet spot where you've taken pretty much everything functional programming has to offer before you start falling off a return-on-investment cliff.)
- deleted 3y ago[deleted]
- leftyspook 3y agoRust is a low-level language with high level abstractions, while Go is a high level language with low level abstractions.
- valenterry 3y ago> Java, C#, Haskell Mentioning Haskell within the same enumeration that contains Java and C#. Blasphemy!
- kaba0 3y agoI feel you are being sarcastic, but for others: I put it in the same basket to widen people’s perspectives — it has a lean runtime with a GC within an AOT compiled single binary with quite great performance!
- valenterry 3y agoWhen it comes to blasphemy, logic does not apply ;)