Vibe coding complex changes in Rust

Channel:
Subscribers:
97,800
Published on ● Video Link: https://www.youtube.com/watch?v=EL7Au1tzNxE



Duration: 0:00
37,397 views
880


Those who have followed me for a while may already know that I'm a bit of an ML Luddite — it's not that I'm opposed to the use of ML-based tools, but rather that I haven't personally found much use for them in my day-to-day work, especially when it comes to programming. My hypothesis thus far has been that this at least in part due to the nature of the work I'm doing; it often does not fit neatly into ML's strong-suit, namely pattern-replication where there are already plenty of examples for the ML to draw upon.

Well, there's enough hype around vibe coding these days, and especially agentic AI coding assistants like Claude Code, that I felt like I should try it "in anger". Concretely, I have some non-trivial changes I'd like to make to the type-safe rigid body transformation crate Sguaba ( https://github.com/helsing-ai/sguaba ), and figured this could be a good testing ground. Sguaba doesn't have too much code, but it is sufficiently involved both in terms of the implemented logic and the use of Rust's type system that I think the ML will have its job cut out for it.

This video is my attempt at disproving my own skepticism — working with Claude Code to implement some of these changes end-to-end. I also haven't used these tools myself at all thus far, only watched a few videos and read a few blog posts, so this is an unfiltered first-and-second impressions experience! We got through two (the easiest two) out of the four things, and then ran out of tokens 😅 But overall the experience was interesting and educational. I don't think it disproved my skepticism, though it did certainly prove that with sufficient pair programming, you can get very far. Still unclear to me that it saves time overall though, at least for specifically these kinds of tasks.

If you're interested in finding out more about the sponsor of this video, Hudson River Trading, see https://www.hudsonrivertrading.com/gjengset

The slides for the Sguaba presentation, you can find at https://jon.thesquareplanet.com/slides/sguaba/

The final PRs to Sguaba are https://github.com/helsing-ai/sguaba/pull/27 and https://github.com/helsing-ai/sguaba/pull/28

0:00:00 My skepticism
0:07:00 The sguaba crate
0:25:18 Compile-time asserting macro constructor
1:30:38 Builder that restricts order with type-state
2:28:17 What I wanted to do next
2:36:06 Concluding thoughts
2:37:28 Questions
2:58:24 A wild sponsor appears!

Live version with chat: