News for hackers. Stuff that matters.
Re:The problem of effects in Rust (2020) by pornel on Saturday August 28, 2021 @08:14AM (#28337453)
Rust as a language is in a funny place — somewhere between C and Haskell.

Whenever Rust adds new features, C users panic "it's going to end up like C++!", but at the same time from Haskellers' perspective Rust's type system is still not advanced enough.

As the article explains, it's incredibly hard to add these high-level features while still preserving "portable assembly" aspect of the language.

Re:The problem of effects in Rust (2020) by api on Saturday August 28, 2021 @09:37AM (#28337935)
Rust occupies the C++ space, and is a massive improvement over C++. It’s type system is relatively complex but in practice is simpler to use than C++ once you learn it and far less bug prone.

The dogmatic C partisans who insist on building houses out of sand with tweezers will never like it.

It’s basically C++ rebooted with ideas from Haskell, Go, and other modern languages. If Rust completely displaced C++ that would be a huge win for productivity and security / reliability.

Re:The problem of effects in Rust (2020) by anacrolix on Saturday August 28, 2021 @10:01PM (#28343417)
There's nothing modern about Go.
Re:The problem of effects in Rust (2020) by api on Sunday August 29, 2021 @08:36AM (#28346212)
Yes there is: simplicity and lack of needless cleverness.

Overengineering is the great plague of modern software.

Rust contains a little bit of needless cleverness but most of its complexity is essential to the problem domain of low level systems programming and intrinsic safety. Go operates at a different level with a fat library (almost a VM) and garbage collection, allowing for a very simple type system. Both languages are modern but fill different niches.

Rust is new C++ while Go is closer to Python or early pre-complexity-orgy Java.

Re:The problem of effects in Rust (2020) by Sharlin on Saturday August 28, 2021 @10:15AM (#28338254)
On the other hand, the type system of vanilla Haskell is not especially powerful compared to current stable Rust’s. It’s pretty much all GHC extensions where the real magic is.