Back

Rust: Tools (early access edition)

55 points4 daysbitfieldconsulting.com
joshdavham17 hours ago

Congrats on the new book!

Also some minor feedback: I know you're not supposed to judge a book by its cover, but obviously generated AI images give a lot of people 'the ick' so I'd recommend changing the cover (or modifying it).

bitbasher14 hours ago

I know this is just an early access, but it seems very underwhelming from the sample. This is all very basic Rust and the $35 price tag is not for an entry level book. You can literally read The Rust Book for free and it's more detailed.

sshine3 hours ago

Yes, I'm also curious about who the audience is.

I hold monthly Rust hack nights, and occasionally the theme is beginner-friendly.

I usually point them to Rustlings, and participants are having a great time.

For teaching a class in Rust, I'd prefer a free book.

The Rust Book currently advertises an experimental fork of the book:

https://rust-book.cs.brown.edu/

It features some opt-in anonymised datamining for improving the book.

What more am I getting for $35 than Rustlings and Rust Book?

sshine2 hours ago

So... why should I buy a $35 introductory programming book in 2024?

Here are some free introductory Rust books:

  - The Rust Book: https://doc.rust-lang.org/book/
  - Rust 101: https://www.ralfj.de/projects/rust-101/main.html
  - Rust by Example: https://doc.rust-lang.org/rust-by-example/
  - Easy Rust: https://dhghomon.github.io/easy_rust/
  - A Gentle Introduction to Rust: https://stevedonovan.github.io/rust-gentle-intro/
Although I typically show people Rustlings, because it teaches programming workflow.

What am I getting for $35 that isn't covered excellently for free already?

Here are some books I spent money on in the last 5 years:

  - Functional Design and Architecture, by Alexander Granin
  - Production Haskell, by Matt Parsons
  - Thinking with Types, by Sandy Maguire
Being a seasoned developer, I would pay money for someone to fast-forward me through advanced concepts.

Here are some examples of free Rust books covering advanced examples:

  - The Rustonomicon: https://doc.rust-lang.org/nightly/nomicon/
  - Rust Design Patterns: https://rust-unofficial.github.io/patterns/
  - Effective Rust: https://www.lurklurk.org/effective-rust/
  - Rust Atomics and Locks: https://marabos.nl/atomics/foreword.html
  - The Little Book of Rust Macros: https://danielkeep.github.io/tlborm/book/index.html
  - Burn: Deep Learning Framework: https://burn.dev/burn-book/
  - API Development with Rust: https://rust-api.dev/docs/front-matter/preface/
  - Rust Compiler Development Guide: https://rustc-dev-guide.rust-lang.org/getting-started.html
I'd pay money for any of those. Not sure about an introductory book, considering the availability of good, free books.
nixpulvis17 hours ago

ngl, the prose around the hello world example at the start really turned me off to this $35 resource.

wk_end13 hours ago

Could you elaborate a little bit?

I also don't quite like it, although I'm not sure if it's for the same reasons as you. It's nothing so bad that I'd go out of my way to comment that it "really turned me off", so I'm curious what others think.

(In my case: it seems a little paid-by-the-word - the writer kind of goes around in circles, philosophizing and pontificating and asking rhetorical questions a bit too much.)

nixpulvis11 hours ago

Hard to put a finger on, but it feels like they are trying to be clever, but forgot the clever part. I don't like being tricked while I read unless it challenges my thinking.

I'm sorry if this is overly critical.

lionkor16 hours ago

The samples are interesting, I wouldn't buy it (I just did the first few chapters of the rust book instead), but it seems cool. Get rid of the cover tho.

PeterWhittaker16 hours ago

Hmm, hard to read on mobile (in portrait), had to zoom in a bit (but then text went out the window, so it was a bit of a balancing act)...

...so I rotate my phone.

DON'T DO THAT!

I'm directing that at both HN readers (you're welcome) and at the web author/admin (dude, TF?): a sudden explosion of additional content that I could not find a way to dismiss, when all I wanted to do was see the excerpts properly.

Seconding other comments re the poor quality crab, when your presentation is that poorly thought out and your prose that amateurish, it makes me want to save even more and dismiss this from my mind.

So thank you? I think?

IshKebab16 hours ago

> This is amusingly known as bebugging

I have never heard of this (though Wikipedia does say it was called that in the 70s).

I think this would actually be called "mutation testing".

written-beyond17 hours ago

Can you please give regional pricing to SEA? It really helps with providing access to a larger audience!

Arcuru12 hours ago

I’m not the author but which SEA are you referring to? Southeast Asia? Southeast Africa? I assume you’re not talking about Seattle.

It’s important to be specific when you’re trying to localize things.

https://en.wikipedia.org/wiki/Sea_(disambiguation)

written-beyond10 hours ago

Well according to steam it's South East Asia

alexpetros17 hours ago

I'm sorry to be a little rude, but the AI-generated cover (the left crab is missing an eye, for starters) is a negative quality indicator. If you weren't willing to take the time to put together a thoughtful cover, why should readers expect the book's content to be assembled any more carefully?

0x696C696116 hours ago

I love how the top comment is a guy literally judging a book by it's cover.

chowells14 hours ago

A book's cover is a strong signal of its content and quality. You absolutely should judge books by their covers.

This isn't an accident. Publishers put a lot of effort into ensuring covers send accurate signals about the contents of the book. A book with a garbage cover didn't come through the modern publishing process, and it didn't get made by someone who cares enough about their book to put actual effort into the cover. The percentage of books that will be worthwhile with a bad cover is vanishingly small. To a first approximation, it's 0%.

It's very reasonable to judge a book by its cover these days. It's an intentional signal; covers aren't chosen at random. If you intend your book to be taken seriously, you need to keep up with modern standards.

nkrisc16 hours ago

It is pretty amusing, but I actually have to agree. Unless your book is about generative AI, using it for the cover makes me question the effort put into the rest of the book - which is really unfortunate if the author did in fact put a lot of effort into their book!

Yes, don’t judge a book by its cover - but lots of people do anyway.

thanksgiving16 hours ago

Don't judge a book by the cover is an advice for us, the readers. It is NOT an advice for the writers or the marketing department.

a tasteful public domain image of a crab or something like hundreds of years old but then detailed enough kind of like one of those O'Reilly's books and then make the whole cover white with some text that stands out... It has all been done before and I anal but I doubt O'Reilly's can copyright or trademark that design feeling.

Edit: unless the authors are trying to crowd source the proof reading and peer review by releasing an early access copy? This cover draws attention from the average reader who is drawn to comment about the book because there is something to criticize? Maybe this is some kind of advanced 3D chess?

+1
thayne12 hours ago
+1
dlachausse15 hours ago
thayne12 hours ago

It also might be a sign that the content of the book is itself AI generated.

0x696C696116 hours ago

Oh please. Don't pretend like this has anything to do with "effort". If the book cover was some generic stock image you wouldn't even blink.

nkrisc4 hours ago

If it was a particularly bad stock image, I would. The only reason I even noticed here is because the image is bizarre and uncanny if you look at it for even a moment.

If the AI produced something indistinguishable from a good stock photo, then no, I would probably not have noticed. But it didn’t, and they still put it on top of their hard work. If the AI image sucks, don’t use it!

dlachausse15 hours ago

I disagree, this is actually a great use case for generative AI. There are many people who are great at writing, coding, hacking, or other talents, but are terrible artists. I know that I fall into this category, and I’m very excited about the prospect of using AI for any graphical assets I need for my projects.

Especially with an ebook, if the content is good, I frankly don’t even care if it even has a cover at all.

xorcist3 hours ago

Stock art exists. Still may require some taste in editor, but it's hard to do worse than bad AI art.

epidemian12 hours ago

Yeah, i agree that, on principle, generative AI should be a good got for these kinds of things. But, the results are... idk, uncanny. At least to me.

For example, if you were to ask a human artist to draw this image with two crabs, and this artist didn't know how many legs crabs have, what would they do? I think they'd probably google how many legs crabs have, and how they look in general, and at the very least draw two crabs with the same amount of legs.

But these generative models don't know how many legs crabs have, and they are not clever enough to ask, or even count it seems. So you end up with results like these. The main crab has 8 legs (6 + 2 claws), while the little one seemingly has 10 (or at least it has 5 on one side), and it's also missing an eye for some reason.

A human artist can also make mistakes, for sure. But i don't think these kind of mistakes would be expected from an artist.

And i agree with the other commenters that said this reflects poorly on the author of the book. Didn't they care to check the cover for obvious mistakes? Attention to detail is a very important trait on a technical writer.

nkrisc12 hours ago

No image is better than an AI image. It’s demeaning to your work.

+1
fatbird14 hours ago
mhh__11 hours ago

Judging books by their covers is underrated.

In sociology most of the results that actually replicate are the ones that are true but people wish they weren't.

vunderba14 hours ago

Agreed. Whatever you might think of GenAI, using it poorly speaks to a fundamental lack of attention to detail.

Even worse, it makes me question the content itself. If they used Stable Diffusion for the cover image, who's to say they didn't also use an LLM to generate some of the Rust examples in the book itself?

Note: I'm not suggesting that the inherent usage of an LLM to generate Rust code is necessarily bad. What I am suggesting is that they might approach the review of said generated code with the same laissez-faire attitude as they did with the cover image.

FrustratedMonky11 hours ago

Are we sure that the crab missing the left-eye wasn't on purpose? Some meme about bugs or something.

It seem to also be missing left legs, as if it was damaged.

The book seems focused on errors and error handling, maybe a 'bug' on the cover was on purpose.

Not so sure this is just AI artifact.

vunderba11 hours ago

It is 100% a badly generated AI image. The random partial keyboards are a dead giveaway along with the smeared looking green text on the monitor.