Liam Watts
banner
liam271.bsky.social
Liam Watts
@liam271.bsky.social
Software engineer and language leaner

I do backend, data engineering, some frontend, some AI. Love learning new things and so I've picked up languages like C#, Haskell, Rust, and Japanese

https://github.com/Wattsy2020
I then asked it if it's possible to do this without cloning, it was too suggestible and said yes. The first attempt removed the clone calls and change nothing else (causing compiler errors for moving a value twice). After providing the compiler output it failed to fix the errors with this oddity
December 21, 2024 at 1:07 PM
It gave the following code, which at first looks good. It's an improvement over Claude Sonnet (which forgot the T: Clone bound, and thought Clone returned a Result<> for some reason).

However on closer look it removed the crucial `self.prev = None` line which means the iterator continues infinitely
December 21, 2024 at 1:07 PM
Tried out the new Gemini 2.0 Flash Thinking Model and it's an improvement but still has hallucination issues.
I gave it the challenge to rewrite this code to not have references (and provided the full code with tests)
December 21, 2024 at 1:07 PM
This year, instead of Advent of Code I’m doing CodeCrafters and building a mini Kafka github.com/Wattsy2020/r...
It’s quite interesting, so far I’ve learnt that the Kafka Protocol is a bit janky
Also I’m liking the trait system in Rust, it’s handy to implement a trait for a whole group of types
December 9, 2024 at 3:10 AM