book VS nomicon

Compare book vs nomicon and see what are their differences.

nomicon

The Dark Arts of Advanced and Unsafe Rust Programming (by rust-lang)
Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
book nomicon
626 87
14,211 1,685
2.5% 3.4%
6.9 5.5
5 days ago 19 days ago
Rust CSS
GNU General Public License v3.0 or later Apache License 2.0
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

book

Posts with mentions or reviews of book. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-02-26.
  • Learning Rust: A clean start
    5 projects | dev.to | 26 Feb 2024
    My first port of call was to google learn rust which lead me to "the book". The book is a first steps guide written by the rust community for newbies (or Rustlings as they're called) to gain a 'solid grasp of the language'.
  • Prodzilla: From Zero to Prod with Rust and Shuttle
    6 projects | dev.to | 21 Feb 2024
    Before Prodzilla, I’d read 'The Book' a couple of times, and had made my way through Rustlings, but hadn’t yet built a serious project in Rust.
  • Help me stop hating rust
    2 projects | news.ycombinator.com | 24 Jan 2024
    To answer your last question;

    Start with the Rust book.

    https://doc.rust-lang.org/book/

    Then do Rustlings until the syntax becomes muscle memory.

    Then join the Discord and start doing little projects.

    You won’t get up to the proficiency of other languages as quickly in Rust. It takes longer. For me it’s taking a lot longer, but I enjoy it.

  • Top 10 Rusty Repositories for you to start your Open Source Journey
    11 projects | dev.to | 19 Dec 2023
    Before diving into these repositories, familiarize yourself with Rust and its development ecosystem. The official Rust book is an excellent resource for developers at all levels. Each repository has documentation on how to contribute, covering code style, issue tracking, and pull requests.
  • Command Line Rust is a great book
    4 projects | /r/rust | 8 Dec 2023
    This is my third Rust book after the official book and Rust in Action. The other two books are great, but they were too theoretical for me. I'm a slow learner and had much trouble grokking Rust's features and idiosyncrasies. When I was done with these books, I was lost and unsure of what I could do.
  • Advice Sought: Double down on Solidity dev or switch to Product?
    1 project | /r/CryptoCurrency | 6 Dec 2023
  • Nim
    5 projects | news.ycombinator.com | 6 Dec 2023
    It's the same reason everything digital and downloadable isn't free: there's a cost to create it and there's a value to it.

    For a language developer to charge for a book about that language, I think that's a completely valid way to make some money off of their work.

    Even the Rust book, "The Rust Programming Language" is available freely online [0], but also as a print and ebook for sale via NoStarchPress [1].

    [0] https://doc.rust-lang.org/book/

    [1] https://nostarch.com/rust-programming-language-2nd-edition

  • Systems programming - Rust
    1 project | /r/learnrust | 6 Nov 2023
    You know you can just read it online right now in 2 different variants It does contain some systems programming.
  • Ask HN: How do you learn Rust in 2023?
    1 project | news.ycombinator.com | 3 Nov 2023
    I am looking at The Book (https://doc.rust-lang.org/book/), but hoped there was an amazing person on youtube.

    Yeah, I'll build something, finally trying webassembly.

  • Give me the best Resources to learn Rust
    2 projects | /r/rust | 1 Nov 2023
    https://doc.rust-lang.org/book/ https://github.com/rust-lang/rustlings https://doc.rust-lang.org/rust-by-example/

nomicon

Posts with mentions or reviews of nomicon. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-12-07.
  • [Media] I'm comparing writing a double-linked list in C++ vs with Rust. The Rust implementation looks substantially more complex. Is this a bad example? (URL in the caption)
    6 projects | /r/rust | 7 Dec 2023
    it’s even written by the same person that wrote the Nomicon (the guide to the dark arts of unsafe)
  • Rust books to read
    2 projects | /r/rust | 23 Jun 2023
    If you want to dive deeper you can always have other options but now there are concrete cases, if you want to do low level thing https://doc.rust-lang.org/nomicon/ while if you want multi thread/concurrency stuff https://marabos.nl/atomics/ . There are many many books so you will have to point yourself to what you want
  • Thread-shared boolean flag
    1 project | /r/rust | 23 Jun 2023
    Nonononono. SeqCst is the most error prone memory order: https://github.com/rust-lang/nomicon/issues/166
  • [Media] Hashmap behaviour inside a loop due to lifetime issue
    1 project | /r/rust | 22 Jun 2023
    Hope this helps. For more details, see the Rustonomicon. I referenced the subtyping chapter here extensively.
  • Unsafe Rust
    2 projects | /r/rust | 15 Jun 2023
    Nice video! Glad I could help out. This stuff is hard, and I'm still learning a lot about it myself even years later. The Rustonomicon is a great read if you haven't already.
  • Stepping up the YAML engineer game
    2 projects | /r/devops | 25 May 2023
    Have you got a moment to read through the good book , after reading through this perhaps try the Rustonomicon.
  • Questions about ownership rule
    2 projects | /r/rust | 23 May 2023
  • CppCon 2022 Best Practices Every C++ Programmer Needs to Follow – Oz Syed
    1 project | news.ycombinator.com | 19 May 2023
    That is not what UB means. Undefined Behaviour is behaviour that the compiler is allowed to assume will never happen, and which can consequently cause miscompilations due to optimisation passes gone wrong if it does in fact occur in the source code.

    It's true that Rust does not have a written specification that clearly delineates what is and isn't UB in a single place. But:

    1. UB is impossible in safe code (modulo bugs in unsafe code)

    2. There are resources such as the Rustinomicon (https://doc.rust-lang.org/nomicon/) that provide a detailed guide on what is and isn't allowed in unsafe code.

    In practice, it's much easier to avoid UB in Rust than it is in C++.

  • How to write deserializer for custom binary protocol?
    2 projects | /r/rust | 13 May 2023
    However, this is a wide topic out of scope for a Reddit comment, so maybe just read the Rustonomicon. It explains everything about data handling in Rust.
  • Performance critical ML: How viable is Rust as an alternative to C++
    4 projects | /r/rust | 2 May 2023
    The ownership model & borrow checker makes rust a bit of an awkward language in which to write complex data structures like trees and graphs. It can be done - since you can always use raw pointers & unsafe code when you absolutely need to to treat rust like C. But the language fights you, and the community can get a bit moralistic about this sort of thing. The rust nomicon is a fantastic resource for learning the limits of the borrow checker, and where and how to use unsafe code correctly. You will need unsafe less than you think you will, but sometimes you will have no choice.

What are some alternatives?

When comparing book and nomicon you can also consider the following projects:

rust-by-example - Learn Rust with examples (Live code editor included)

mdBook - Create book from markdown files. Like Gitbook but implemented in Rust

Rustlings - :crab: Small exercises to get you used to reading and writing Rust code!

rust-ffmpeg - Safe FFmpeg wrapper.

solana-program-library - A collection of Solana programs maintained by Solana Labs

Theseus - Theseus is a modern OS written from scratch in Rust that explores 𝐢𝐧𝐭𝐫𝐚𝐥𝐢𝐧𝐠𝐮𝐚𝐥 𝐝𝐞𝐬𝐢𝐠𝐧: closing the semantic gap between compiler and hardware by maximally leveraging the power of language safety and affine types. Theseus aims to shift OS responsibilities like resource management into the compiler.

github-cheat-sheet - A list of cool features of Git and GitHub.

Exercism - website - The codebase for Exercism's website.

rust - Empowering everyone to build reliable and efficient software.

miri - An interpreter for Rust's mid-level intermediate representation

too-many-lists - Learn Rust by writing Entirely Too Many linked lists

seL4 - The seL4 microkernel