Slashdot is powered by your submissions, so send in your scoop

 



Forgot your password?
typodupeerror
×

Comment No issue here (Score 1) 233

I've been installing Linux on desktop pcs and laptops for the past 2 decades. I did it a week ago. Just plug in the usb stick, boot from it and it all just works.
The biggest problem I've had is with Windows, not Linux. If you mess up its boot block, it is a pain to get working again. (I copied the partitions from one SSD to another and for some reason, this messed up the boot from Windows).
I've also had issues when moving a disk from a legacy bios boot motherboard to an UEFI boot motherboard. I never got that quite working so i had to install Linux on a second parition, then point that Linux boot sector to my frst install, then remove the second parition. Debugging that UEFI boot was a pain as it didn't give any error messages, it just reset-ted the system.
But neither of these two are common use cases, so I can excuse it for not being easy.

Comment Re:But why? (Score 1) 304

From what I read, a Rust Weak pointer is exactly like a weak pointer in C++, an Option is a container that can contain nothing (I don't see the functional advantage compared to a weak pointer). As I see it, the main difference between C++ and Rust from a language point of view is that Rust has a lot stricter rules for basic languages constructs than C++ (specifically, pointers and memory management) and those rules are enforced by the compiler. Once you need more advanced features, you start using the standard libraries and all the advantages of Rust disappear.

Why would I, as an experienced programmer, drop a language that has tons of proven libraries for a language that has mainly features that suit beginners and virtually no established code base?

And *if* a new language is required, why Rust over the dozens of other alternatives?

Comment Re:But why? (Score 1) 304

I am not desperate to do things the way C/C++ did them, I just want to make sure I eliminate unnecessary copies, allocations and locking. It's not because the Rust compiler hides those that they are gone, it just means you have to be a Rust expert to understand when they are done.

From what I read of your links about using Weak and std::rc, things certainly haven't gotten any less complex. So first they introduce ownership, then they go and recreate C/C++ pointer semantics?

If I ever get a job where I need to write code in Rust, I will. Until then, I'll stick to what has served the worlds programming needs for over 34 years.

Comment Re:But why? (Score 1) 304

I will believe that if I see real programs running in Rust, something that is intensively multi-threaded and uses complex memory structures.

I believe their single ownership requirement will cost them dearly, because of single ownership and lack of pointers, complex tree structures are difficult. You will have to work with arrays of objects and store indexes to objects instead of pointers or do a lot of copying: circular lists, queuing the same buffer at multiple sockets, hash tables for multiple indexes, ...

It will work but then you are designing your program to work around your language limitations...

Comment Re:But why? (Score 1) 304

Why? To run after the latest programming language fad, again?

I liked the feature list of Rust, until I read the book and ran into their chapter on Ownership, I quit right there and then. I'll stick to std::shared_ptr<>, thank you very much. Research in programming languages is all nice and all these things contribute in their own way but in the end, the programming language should not get in the way of whatever algorithm you are trying to express. You need to be able to control your code in every aspect. Abstracting away memory management and locking is a good thing but only if it does not cost in expressiveness, in other words, it should not be handled by compiler.

I agree, memory management and thread synchronization ARE HARD problems, especially for new programmers. Let them use Rust. Switch them to C++ for the real work. I would love to see someone implement enterprise class software like Apache/IIS/MariaDB/MySQL/Oracle/... in any other langauge than C/C++.

For me, Rust is just another fad and now these guys are desperate to find a niche for their new toy. Except... most python packages are just wrapper around existing C/C++ libraries. And however much they like their Ownership idea, I truly hope it dies a quick and merciful death.

Slashdot Top Deals

"I don't believe in sweeping social change being manifested by one person, unless he has an atomic weapon." -- Howard Chaykin

Working...