News for hackers. Stuff that matters.
Re:Why I love Rust by nickpsecurity on Friday January 08, 2016 @12:13PM (#10866420)
I swear I've seen more than one person gripe about this. Mostly from a change of thinking but it seems recurring. Might hurt adoption. I'd have expected Rust proponents to have a link on-hand for this to a guide that teaches this stuff in a way to reduce the effect. To be clear, this is not a critique of the Rust team so much as an observation of a larger problem in PL adoption that might be affecting Rust.

The trick, IIRC, was to have some smart people create a series of programming exercises that are complex enough to be a learning experience, teach a subset of the language at a time, and gradually let the concepts sink in. Practical Common LISP and Land of the LISP do this pretty well for a very confusing language. Rust will probably benefit from such a work, even more than CL. Just a suggestion in case someone's not working on it. ;)

That stuff works wonders for ease-of-adoption but such writing takes talent to produce. Takes someone with strong, tech skills who can also break anything down into English a layperson can understand. As in, it's really a series of consistent abstractions that form an effective, mental foundation for using and applying the language. Not regular definitions and examples but a true, gradual, practical process. Hopefully, you've seen such a great work vs a regular, language guide so you know what I'm talking about.

Re:Why I love Rust by steveklabnik on Friday January 08, 2016 @12:41PM (#10866629)

  > I'd have expected Rust proponents to have a link on-hand for this to
  > a guide that teaches this stuff in a way to reduce the effect. 
I mean, yeah, I can link you to several. But reading a bunch of rules isn't the same as programming with them for a long time. Even once you understand the rules, the compiler will still catch you. If humans could reliably program safely without the compiler being involved, well, Rust wouldn't need to exist; C and C++ code would be written in a safe way.

Anyway, like I said, I'm doing my best. More experience reports is the only way that I can do that, basically :)

Re:Why I love Rust by nickpsecurity on Friday January 08, 2016 @01:14PM (#10866897)
I'd actually like to have those links in case I take up Rust or someone I know trying it gripes about the problem. Good to have them stashed away.

I see what you mean, though, if it's just rules you have to memorize and apply in many situations. Might be potential for my proposal but I'll take your word for now.

"Anyway, like I said, I'm doing my best. More experience reports is the only way that I can do that, basically :)"

Makes sense.

Re:Why I love Rust by steveklabnik on Friday January 08, 2016 @01:18PM (#10866931)
The official docs are https://doc.rust-lang.org/book/ownership.html and the following two sections. They explain the basics. I'm currently working on the next draft of the book, which will be more in-depth.

http://chrismorgan.info/blog/rust-ownership-the-hard-way.htm... and http://codrspace.com/buntine/aha-understanding-lifetimes-in-... are two blog posts that I can remember.

Re:Why I love Rust by nickpsecurity on Saturday January 09, 2016 @05:00PM (#10873065)
Emailed an experience report to your profile address. Hope it helps.