Wrote my first non-trivial contextmanager in Python today! One of those tools that you don't need often, but so glad to have when you do!
miniblog.
Related Posts
Anthropic used Claude to write a C compiler in Rust (CCC). I've really enjoyed following the discussion.
The initial post shows how they wrote the harness with GCC as an oracle and a prompt specifying a design using SSA. The author has clear domain expertise.
https://www.anthropic.com/engineering/building-c-compiler
I've written a website that archives all my posts/tweets/toots/skeets across different microblogging platforms!
It's fun to be able to see similar posts that I wrote at completely different times. It also lets me edit links that have bitrotted.
When I wrote my first Rust program, I got the advice "just clone everything until v1 compiles". I think this OK advice, but I think a better rule of thumb is "used owned types as much as possible".
I spent a ton of time returning &str or &[T] and fighting the borrow checker.