News for hackers. Stuff that matters.
Re:What Python creator Guido van Rossum thinks of Rust, Go, ... by ncmncm on Monday May 24, 2021 @11:51AM (#27265821)
This:

>> if you wrote the same thing in C++, you could not be as sure, as compared to Rust, that you've gotten all your memory allocation and memory management stuff right.

Memory allocation and management are exactly the same in C++ and Rust. Both allocate from a heap or the stack, as needed, and return memory to the heap or pop it off the stack at end of lifetime. For heap allocations, both have single-owner pointers and reference-counted pointers, and memory is freed when the last such pointer's lifetime ends.

There are differences, but they are not where he says. C++ uses a library type, std::unique_ptr, where Rust uses a built-in type, for single-owner; both use library types for reference counting. Rust has versions with atomic and non-atomic counters. But those are implementation details.

All of the semantically-significant differences are around copies of pointers, their lifetimes, and when they are and are not allowed. The memory itself, and its allocation, are not party to that process.

So, downvote me to oblivion if you like, he got it wrong where it counts.

Re:What Python creator Guido van Rossum thinks of Rust, Go, ... by iudqnolq on Monday May 24, 2021 @12:32PM (#27266395)
I see. From your phrasing I thought you meant what he said was conventionally known to be false.

> He used the same words people use, but assembled them in a way that diverges from reality.

I disagree with "Rust is C++ with different names", but I'm not interested in having that argument. I think we can both agree that it's not conventionally seen as obvious though.

Re:What Python creator Guido van Rossum thinks of Rust, Go, ... by ncmncm on Monday May 24, 2021 @11:09PM (#27272222)
Nobody says it is obvious.

It is specifically because it is not obvious that it is important to not get it wrong in prominent places such as quotes from Guido. Or to downvote and lambaste people calling attention to getting it wrong.