Jon Gjengset Profile picture
Rust live-coder and OSS tinkerer who loves teaching. I try to keep a high SNR. Wrote Rust for Rustaceans. At @HelsingAI. Ex AWS. Co-founded @readysetio. he/him
Jacob French 🏴󠁧󠁢󠁷󠁬󠁳󠁿 🦀 Profile picture 1 subscribed
Sep 18, 2022 7 tweets 2 min read
Hot(?) take: Rust crates, incl. libraries, should check in Cargo.lock and have 3 CI jobs: -Zminimal-versions, --locked, and rm Cargo.lock. All 3 run tests. Only --locked should be marked as required to minimize friction for new contributors' PRs, which should be 1st priority. -Zminimal-versions has all sorts of problems, but having it be non-required in CI may (hopefully) make the ecosystem slowly but surely move towards accurately declaring their minimum requirements. See also users.rust-lang.org/t/psa-please-s…
Jun 22, 2022 39 tweets 12 min read
Nuggets about each and every (strict) @rustlang keyword — let's go! 1/39
doc.rust-lang.org/stable/referen… `as`: `x as T` can do lossy conversion, so prefer `T::try_from(x).expect("…")` if you want it to fail loudly (e.g., if a u64 doesn't fit in a u32). 2/39
rust-lang.github.io/rust-clippy/ma…
Jun 3, 2022 5 tweets 1 min read
Okay, learning time! Name a @rustlang type (can be generic), and I'll (try to) tell you something you didn't know about that type! I'm guessing this will be a learning experience as much for me too, as I'm sure there are some I'll have to dig a bit to get at something new and interesting for 😅
Nov 5, 2021 8 tweets 2 min read
I had a conversation about how to get signals about the health of and love for open-source projects recently, and had this (potentially erroneous) thought: bug reports are positive signals, while feature requests are negative. A bug report means that a) someone is using your project, b) they care enough to file an issue, and c) they didn't just immediately switch to another project instead.
Jun 1, 2021 7 tweets 2 min read
Big announcement time 📢 For a while now, I've been working on a book that covers the next steps of @rustlang after "the book" — everything from API design to error handling to concurrency to async to FFI. And the early access was just released over at nostarch.com/rust-rustaceans! 🎉 The book is, as its name implies, written for people who are already familiar with Rust. The idea is that you read The Rust Programming Language first, play around with Rust for a bit on your own, maybe start using it "for real", and then pick this up to hone your skills.