News for hackers. Stuff that matters.
Re:Async Rust Is A Bad Language by queuebert on Friday September 08, 2023 @09:47PM (#37441390)
The dev cycle is slower, yes, but once it compiles, there is no debug cycle.
Re:Async Rust Is A Bad Language by jandrewrogers on Friday September 08, 2023 @10:36PM (#37441672)
So then tests are optional?

Most bugs are elementary logic bugs expressible in every programming language.

Re:Async Rust Is A Bad Language by kelnos on Sunday September 10, 2023 @12:22AM (#37452882)
> So then tests are optional?

Yes and no. You're gonna write far fewer tests in a language like Rust than in a language like Python. In Python you'll have to write tests to eliminate the possibility of bugs that the Rust compiler can eliminate for you. I would much rather just write logic tests.

> Most bugs are elementary logic bugs expressible in every programming language.

I don't think that's true. I would expect that most bugs are around memory safety, type confusion, or concurrency issues (data races and other race conditions).

Re:Async Rust Is A Bad Language by jandrewrogers on Sunday September 10, 2023 @02:37AM (#37453453)
Python is not a language I would consider to be meaningfully comparable to Rust. They have very different use cases.

In modern C++, memory safety and type confusion aren’t common sources of bugs in my experience. The standard idiomatic design patterns virtually guarantee this. The kinds of concurrency issues that tend to cause bugs can happen in any language, including Rust. Modern C++, for all its deficiencies, has an excellent type safety story, sometimes better than Rust. It doesn’t require the language to provide it though, which is both a blessing and a curse.

Re:Async Rust Is A Bad Language by throw10920 on Friday September 08, 2023 @09:54PM (#37441439)
Wildly false. Rust's design does virtually nothing to prevent logic errors.
Re:Async Rust Is A Bad Language by pjmlp on Saturday September 09, 2023 @12:43AM (#37442361)
I have found someone that never introduces logic errors, and found out a way to use dependent types in Rust. /s
Re:Async Rust Is A Bad Language by imtringued on Saturday September 09, 2023 @04:34AM (#37443352)
95% of my "logic errors" are related to surprise nulls (causing a data leak of sensitive data) or surprise mutability. The idea that there is no debug cycle is ridiculous but I am confident that there will be less of them in Rust.
Re:Async Rust Is A Bad Language by pjmlp on Saturday September 09, 2023 @06:07AM (#37443784)
I bet it won't survive a pentest attack, and there are more things missing on program expectations than only nullability.

On the type system theory, Rust still has quite something to catch up to theorem provers, which even those aren't without issues.