Live data from Hacker News

Next Iteration of “The Rust Programming Language” Book

rust-lang.github.io

51–60 of 111 posts

Re: Next Iteration of “The Rust Programming Language” Book

#51
post #33

People should know this isn't ready, and they should continue to use the current book. Chapers like this are just notes: https://rust-lang.github.io/book/ch17-00-oop.html This doesn't help anybody. Continue to use the rust book at: https://doc.rust-lang.org/doc/stable/book/

We actually had someone say that the new version is so much better than the old book, even though it's incomplete, that it's like a medical trial where the treatment is going so well it'd be unethical to keep people on the placebo. A bit hyperbolic, yes, but so is "this doesn't help anybody".

Although I have some years of practice in programming, I always prefer to learn new languages using some kind of practical tutorial that introduces the topics as we go along. I've just finished the guessing_game tutorial and really understood the general idea of cargo, externs, associated functions, etc.

Congratulations, and I hope that the rest of the book is as practical on introducing the following concepts as the tutorial was for me..

Re: Next Iteration of “The Rust Programming Language” Book

#52
post #49

Thanks for sharing, very nice work. Was drawn to the "An I/O Project" section. Everyone learns differently, and I like to learn by example, that's why I often scroll to the bottom of the man page to see example before reading the description of a new command. So I'd like to see more stuff like that. Anyone know of a good Rust "Cookbook"? I found a few but there were just started with only a few examples. Also in my c…

There isn't really anything big yet like that; I'd love to see one!

Re: Next Iteration of “The Rust Programming Language” Book

#53
post #49

Thanks for sharing, very nice work. Was drawn to the "An I/O Project" section. Everyone learns differently, and I like to learn by example, that's why I often scroll to the bottom of the man page to see example before reading the description of a new command. So I'd like to see more stuff like that. Anyone know of a good Rust "Cookbook"? I found a few but there were just started with only a few examples. Also in my c…

I just replied above with a similar comment. I also learn better by following a practical example like the "guessing_game" tutorial.

Didn't read the rest of the book, so I don't know if there are more tutorials, but I learn better with that because it clearly shows what one can do with the language.

Re: Next Iteration of “The Rust Programming Language” Book

#54

Earlier quoted context omitted.

Co-author of TRPL here; Jim's book is wonderful too, and very different. I think they compliment each other nicely. I wish there were 50 books on Rust. :)

> Jim's book is wonderful too ... I think they compliment each other nicely. Ha, well that's certainly true, as evidenced by your first sentence, I think, you meant complEment!

Yes, I meant both :sweat_smile:

Re: Next Iteration of “The Rust Programming Language” Book

#55
post #36

Is it possible to make a PDF or an offline version? Sometimes i like to read these sort of things while i'm on the train etc. I struggled to get the current rust book working on my ipad on the train without signal.

Good news! NoStarch will be printing an offline version soon ;) Since we're concentrating on getting the text ready for print, we haven't been able to get pdf/offline reading working yet. https://github.com/rust-lang/book/issues/218

Thanks! I would absolutely love a single webpage version, that would be even better

Re: Next Iteration of “The Rust Programming Language” Book

#56
post #35

Earlier quoted context omitted.

As others have said; Rust is very stable now. I started trying to learn Rust at 0.7 (maybe a bit earlier, I can only find references to 0.7 in a few projects of mine). Boy howdy did that feel like an exercise in futility. I would set it aside for 3 weeks, revisit it, and find entire language constructs had been removed. I complained about this and Steve Klabnik graciously reminded me that it was a work in progress an…

I started to write a VM in Rust and every weekend, when I managed to get some time for work it would usually no longer work and the reason for it had to be found in some mailing list or commit message. I had to stop doing that and rewrote it in C. 'Fortunately' we had some other problems as well but Im still hopeful that Rust is the language you want to use for this in the future.

I'm writing a VM as well, albeit a very simple one. I started sometime last fall and have never had a problematic upgrade.

I also got a new computer during that period and rustup has made setup really nice.

Re: Next Iteration of “The Rust Programming Language” Book

#57

Earlier quoted context omitted.

We actually had someone say that the new version is so much better than the old book, even though it's incomplete, that it's like a medical trial where the treatment is going so well it'd be unethical to keep people on the placebo. A bit hyperbolic, yes, but so is "this doesn't help anybody".

Although I have some years of practice in programming, I always prefer to learn new languages using some kind of practical tutorial that introduces the topics as we go along. I've just finished the guessing_game tutorial and really understood the general idea of cargo, externs, associated functions, etc. Congratulations, and I hope that the rest of the book is as practical on introducing the following concepts as the…

They're example driven, but most aren't as large as the Guessing Game is for the most part; the I/O project chapter is, and we'll probably have one more near the end of the book as well.

Re: Next Iteration of “The Rust Programming Language” Book

#58
post #45

I'm currently starting to learn rust (previous java and go developer). But at the moment it feels like the good old times where I was developing with an editor and api doc side by side. What is the current editor of choice for rust projects? I tried intellij-rust and atom with the racer plugin. Both seem to be in a somewhat early stage of development regarding the auto completion. Regarding the book: I like it. Has b…

IDE integration is a big theme of this year, so this will change rapidly over the next few months. We aim to provide plugins for everything, pretty much. Specifically, we're implementing Microsoft's "Language Server" interface, so anything that can interface with it will work well, http://langserver.org/ has the full list, I believe.

Glad you liked the book! :)

Re: Next Iteration of “The Rust Programming Language” Book

#59
post #55

Earlier quoted context omitted.

Good news! NoStarch will be printing an offline version soon ;) Since we're concentrating on getting the text ready for print, we haven't been able to get pdf/offline reading working yet. https://github.com/rust-lang/book/issues/218

Thanks! I would absolutely love a single webpage version, that would be even better

You can click the "print" button in the upper right hand corner, which gives you http://rust-lang.github.io/book/print.html

Re: Next Iteration of “The Rust Programming Language” Book

#60
post #35

Earlier quoted context omitted.

I started to write a VM in Rust and every weekend, when I managed to get some time for work it would usually no longer work and the reason for it had to be found in some mailing list or commit message. I had to stop doing that and rewrote it in C. 'Fortunately' we had some other problems as well but Im still hopeful that Rust is the language you want to use for this in the future.

I'm writing a VM as well, albeit a very simple one. I started sometime last fall and have never had a problematic upgrade. I also got a new computer during that period and rustup has made setup really nice.

We were working mostly in the months before 1.0 so it was right in the time of rapid changes.
Post reply on HN