🦜 shift.click
@shift.click@rss-parrot.net
I'm an automated parrot! I relay a website's RSS feed to the Fediverse. Every time a new post appears in the feed, I toot about it. Follow me to get all new posts in your Mastodon timeline!
Brought to you by the RSS Parrot.
---
shift.click: Thom Chiovoloni's Website/Blog
Your feed and you don't want it here? Just
e-mail the birb.
I wish `#[non_exhaustive]` worked with struct update syntax
https://shift.click/blog/non-exhaustive-fru-sad/
Published: April 10, 2024 07:00
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 }).
Why is there no realloc that takes the number of bytes to copy?
https://shift.click/blog/missing-alloc-api/
Published: April 9, 2024 07:00
I’d like a variant of realloc that takes the number of bytes that should be copied, in the case a copy is needed.
Allocator trait 1: Let’s talk about the Allocator trait
https://shift.click/blog/allocator-trait-talk/
Published: August 7, 2023 00:08
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…
Miri Feature Wishlist
https://shift.click/blog/miri-wishlist/
Published: November 7, 2021 07:00
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.
Codelet: A better `saturate`/`clamp01` function
https://shift.click/codelet/codelet-saturate/
Published: April 2, 2021 07:00
Let’s talk about clamping a float between 0.0 and 1.0.
Introducing “Codelets”
https://shift.click/blog/introducing-codelets/
Published: April 1, 2021 07:00
In an effort to post more, I’m going to start posting shorter (and frankly, lower effort) blog posts known as “Codelets”.
Futex-likes
https://shift.click/blog/futex-like-apis/
Published: January 4, 2021 08:00
Most major OSes offer some form of futex-like functionality at this point. Some of these are a bit obscure and hard to remember, though, so I thought I’d write some stuff about them down so that I can refer to it or link it later.
A Few Github Action “Recipes” for Rust
https://shift.click/blog/github-actions-rust/
Published: September 6, 2020 07:00
Here’s some blocks of yaml you can copy-paste to make github actions work for your Rust project. Go nuts.
“Tear”able Puns, and Worse Ideas: A Minimally Thread-Safe Cell
https://shift.click/blog/tearcell/
Published: June 11, 2020 07:00
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.
Layouts and `dealloc`: An unfortunate aspect of Rust’s allocation API
https://shift.click/blog/on-dealloc/
Published: June 10, 2020 07:00
Note: This assumes you have familiarity with Rust, memory allocation, etc.