6 ms·
The book is exactly what it says it is. "Why Rust", an argument for Rust. 50+ pages. It's a fun read, but not too useful. My own comment on Rust is that the b
by Animats 11y ago
The book is exactly what it says it is. "Why Rust", an argument for Rust. 50+ pages. It's a fun read, but not too useful. My own comment on Rust is that the borrow checker is brilliant, and we'll see that again in other languages. The type/generic system picks up where C++ left off, and is very complex. But that may get better as the mess settles down and gets better documentation.
We now need a "programming in Rust" book which is not by one of the Rust developers, who are too close to the design.
- steveklabnik 11y agoThis little book is basically promotional material for Jim's bigger book, which, at least from the blurb, sounds exactly like what you're looking for.
- sanderjd 11y agoThanks for clarifying that, I'll be excited to read his book when it comes out. Also looking forward to grabbing a paper copy of yours – thanks for making that happen!
- stock_toaster 11y agoWas there an announcement of a paper edition of the rust lang book somewhere?
- steveklabnik 11y agohttps://users.rust-lang.org/t/the-rust-programming-language-is-going-to-be-published-by-no-starch-press/2777 https://users.rust-lang.org/t/the-rust-programming-language-...
- stock_toaster 11y agoThat's awesome! Looking forward to it coming out. :D
- steveklabnik 11y agoThanks!
- kibwen 11y agoJim Blandy may work for Mozilla, but otherwise he has no connection to the Rust project (nor Servo). He has not been involved in any of the design discussions, and his only commits to the Rust repo are four minor documentation fixes. I've assisted Jim in giving presentations on Rust at OSCON this year, and trust me when I say that he has no qualms about criticizing the language when he sees fit. His perspective is definitely that of an outsider's, and like you I agree that that's ideal from a pedagogical point of view.
- rancur 11y ago> "programming in Rust" * what kind of animal should it have on the front? * will it tell me 8 different, confusing, obsfucated ways to do something that would be much faster with printf? * will it do that in chapter 1? * ??? * profit?
- ossreality 11y agonot a karma troll, just a plain idiot troll
- mannykannot 11y agoThis book may be useful to people learning C or C++, as a primer on the some of the issues you have to think about if your code in those languages is to be reliable.
- pcwalton 11y agoJim Blandy wasn't involved in the Rust design.
- gnuvince 11y agoI don't think he was implying that; he was saying that there needs to be a book "Programming in Rust" written by someone outside the Rust projects, e.g. like Dave Thomas and Andy Hunt did with the Pickaxe book for Ruby back in the early 2000s.
- kibwen 11y agoAnd I think pcwalton is saying that Jim Blandy is very much from outside the Rust project, and therefore satisfies that criterion. :)
- gnuvince 11y agoThen I guess the OP had another definition of "book" in mind. However, I'll say this: if Jim wants to write a complete book on Rust, I'd love to buy it. I'm more than halfway through his report and it has exactly the tone that I'm looking for in a programming book: clear, logical progression, to the point and no excessive humour that some books suffer from (I'm reading a book on Go (the game) at the moment and every paragraph contains a self-deprecating joke. It gets old after 2 or 3.)
- steveklabnik 11y agohttp://www.amazon.com/Programming-Rust-Jim-Blandy/dp/1491927283/ http://www.amazon.com/Programming-Rust-Jim-Blandy/dp/1491927...
- kibwen 11y agoTo expand on steveklabnik's sibling comment, Jim Blandy's is writing a complete book on Rust, which will be published by O'Reilly, and is aiming for release by the end of the year. :)
- 11y ago
- humanrebar 11y ago> The type/generic system picks up where C++ left off, and is very complex. That's not entirely true. There are some mechanisms that you can't really do in C++, at least not without a lot of boilerplate. And Rust's generics aren't quite as powerful (as in metaprogramming) as C++'s yet. I hear they're working on it, though.
- jfoutz 11y agoI know they're working on higher kinded types, i think there's some fancy template-template syntax you can use in c++ to get the same effect. It's easy to define a list of integers in pretty much any language, class IntList { void addInt(){...} } Most languages let you make a generic List, class List<T> { void add(T){...} } The thing that's cool about HKT, is it lets you swap the other side, class T<Integer> { T operate(Integer) } So you can deal with a Set or a List or an Optional or whatever might want to deliver integers. It seems a little goofy, but it's sort of like a Super Lambda. an anonymous function can only really do its one thing, but this lets you bundle a bunch of related lambdas together, so if you have, say Pay, you can group together all the different types of tax that are applied to pay, calculate total tax, etc. And it works over whatever random data structure you want It seems a little crazy at first, but with clean syntax, it's a fantastic way to split the work apart from the way the data is represented.