It’s pretty annoying that in Rust, #[non_exhaustive] structs don’t support “struct update” / “functional record update” syntax (the syntax that powers Stuff { a: b, c: d, ..blah }).| shift.click
There are… several things I find wanting about the current version of the core::alloc::Allocator trait (as of 2023-08-06). I’m going to do a short series where I post about some of the bigger issues, and explore the different tradeoffs and design choices we might make. This post is an introduction to that.| shift.click
Miri is an evaluator for rust that detects many kinds of undefined behavior. Here are some things it could (possibly) do that would catch bugs I’ve had/seen before.| shift.click
Let’s talk about clamping a float between 0.0 and 1.0.| shift.click
In an effort to post more, I’m going to start posting shorter (and frankly, lower effort) blog posts known as “Codelets”.| shift.click
Here’s some blocks of yaml you can copy-paste to make github actions work for your Rust project. Go nuts.| shift.click
If you’ve ever thought “Using a Mutex<[f32; 3]> is pointless, what’s the worst thing that could happen here?”, I’ve written the Cell type that empowers you to find out the answer to that question yourself.| shift.click
Note: This assumes you have familiarity with Rust, memory allocation, etc.| shift.click
I’d like a variant of realloc that takes the number of bytes that should be copied, in the case a copy is needed.| shift.click