News for hackers. Stuff that matters.
Re:Rust Is Surprisingly Good as a Server Language by fish45 on Monday July 13, 2020 @05:35PM (#23825825)
> If you are going to end up sprinkling clones, heap allocating, and reference counting, then you could have used C#...

The memory management system isn't Rust's only good feature. I and others enjoy Rust's type system and functional features, for example.

Using Rust also makes it easy to get performance for when writing the parts for which you need it.

Re:Rust Is Surprisingly Good as a Server Language by tekknik on Tuesday July 14, 2020 @08:51AM (#23831254)
A typed language is a typed language, there are other languages that are easy to get performance out of. I’m not a rust dev and I’m highly skeptical it will be used outside of firefox and a few niche projects after this initial hype train dies off. What other features would make me pick rust over golang or one of the interpreted languages?
Re:Rust Is Surprisingly Good as a Server Language by fish45 on Tuesday July 14, 2020 @12:02PM (#23833515)
> a typed language is a typed language Well yeah, but not every type system is equal. For example I vastly prefer Rust's type system to C's because of Options instead of null and enums as sum types.

> what other features would make me pick rust over golang Generics, iterators, pattern matching, etc. There's lots of features Rust has that golang doesn't; that's not necessarily a good thing but for what I do it is. IMO the only good thing about golang's featurelessness is the compile times and the standard library.

As for interpreted languages, IMO it's just better to be able to catch errors at compile time.

Re:Rust Is Surprisingly Good as a Server Language by tekknik on Tuesday July 14, 2020 @07:01PM (#23839151)
> Well yeah, but not every type system is equal. For example I vastly prefer Rust's type system to C's because of Options instead of null and enums as sum types.

Fair enough. But I'm not advocating using C here either.

> As for interpreted languages, IMO it's just better to be able to catch errors at compile time.

There are type checked and interpreted languages.

Re:Rust Is Surprisingly Good as a Server Language by jfkebwjsbx on Tuesday July 14, 2020 @12:54AM (#23828651)
Please read the context. We were discussing the borrow checker and memory management, not other features.

Regardless, there are other languages with better type systems and functional features.