mikelsr
banner
mikel.xyz
mikelsr
@mikel.xyz
Freelance performance & distributed systems engineer.

[ find me on Mastodon: https://cyberplace.social/@mikel ]
Reposted by mikelsr
This is the one you want:
```rust
macro_rules! count_tts {
() => { 0 };
($odd:tt $($a:tt $b:tt)*) => { (count_tts!($($a)*) << 1) | 1 };
($($a:tt $even:tt)*) => { count_tts!($($a)*) << 1 };
}
```
December 25, 2025 at 1:14 AM
Reposted by mikelsr
There's a whole section on this in The Little Book of Rust Macros. Your solution will form an AST that's inefficient to process. lukaswirth.dev/tlborm/decl-...
Counting - The Little Book of Rust Macros
lukaswirth.dev
December 24, 2025 at 3:32 PM
Reposted by mikelsr
*sigh*
December 24, 2025 at 2:41 PM
Reposted by mikelsr
New post: a defense of lock poisoning in Rust.

Followup to recent discussion: decided to write about lock poisoning, looking at the arguments on each side, and informed by our experience at @oxide.computer dealing with the parallel problem of unexpected async cancellations

Please give it a read!
In defense of lock poisoning in Rust · sunshowers
It's worth retaining one of multithreaded Rust's most valuable features.
sunshowers.io
December 2, 2025 at 7:37 PM
Reposted by mikelsr
Someone stop me from making this more esoteric :D
meodai.github.io/pro-color-ha...
November 22, 2025 at 3:28 PM
Reposted by mikelsr
cool job at a very special computer company

- write TypeScript and Rust
- everyone makes $235k
- fully remote
- everything is open source
Product Engineer / Oxide
oxide.computer
November 19, 2025 at 6:33 PM
Reposted by mikelsr
To conclude: my silver lining hope is that AWS going down can be a learning moment, in which the risks of concentrating the nervous system of our world in the hands of a few players become very clear. And that this can help us craft ways of undoing this concentration and creating real choice ❤️ 13/
October 27, 2025 at 10:38 AM
Reposted by mikelsr
A blog post on new features in Rust, covering the last year and a half (since the last one): www.ncameron.org/blog/recent-... (spoiler: a lot more new stuff than I realised!)

#rustlang
Recent Rust Changes
In May last year I wrote a blog post on how Rust had evolved from the 1.0 release to 1.78. I found it really interesting to group all the changes together by topic, rather than seeing the language evo...
www.ncameron.org
October 27, 2025 at 8:13 PM
Reposted by mikelsr
#P99CONF is going live in just minutes! Here's a peek at the behind-the-scenes prep. If you haven't registered yet, hurry over to p99conf.io. It's free and virtual, so no excuses. 😅
October 22, 2025 at 2:13 PM
Reposted by mikelsr
🚀 We just released Zed v0.200!

In a previous release, we added the `--diff` flag to the Zed CLI. Now, you can compare two files directly from the project panel, via `Compare marked files`.
August 20, 2025 at 9:51 PM