Learnings from 100K lines of Rust with AI (2025)
51–60 of 225 posts
Re: Learnings from 100K lines of Rust with AI (2025)
#52How many of those tests have you actually read yourself if all of them are generated by AI (also when you're sleeping) ? This is from 2025 - I would like to see an update now how that system turned out to be after the vibe hype
Re: Learnings from 100K lines of Rust with AI (2025)
#53Earlier quoted context omitted.
A lefthook: format: glob: " .rs" run: cargo fmt -- --check lint: glob: " .rs" run: cargo clippy -- -D warnings tests: run: cargo test audit: run: cargo audit + hooks that shove the lefthook automatically in the ai's face --- rustfmt.toml: edition = "2021" newline_style = "Unix" use_small_heuristics = "Max" max_width = 100
use "stage_fixed" to automatically persist the formatting :)
Re: Learnings from 100K lines of Rust with AI (2025)
#54This back and forth will take quite a while, but the resulting implementation plan will be 10x better than the original.
You can automate this by giving Codex a goal, and a skill to call Claude to review the implementation spec until they both agree it's done.
Then, for critical code, have them both implement the spec in a worktree, then BOTH critique each other's implementation.
More often than not, Claude will say to take 2 or 3 pieces from it's design over to Codex, but ship the Codex implementation.
Re: Learnings from 100K lines of Rust with AI (2025)
#55I'm also shifting to an vibe coding workflow, but I have a genuine question: whenever I use AI for Rust, it makes an insane amount of lifetime errors. I have no idea how people are churning out so many lines of code so quickly. Honestly, despite all the hype around Rust in the community, the fact that AI can't handle lifetimes reliably makes me reluctant to use it. The AI constantly defaults to spamming .clone() or w…
> I'm also shifting to an vibe coding workflow, but I have a genuine question: whenever I use AI for Rust, it makes an insane amount of lifetime errors. I have no idea how people are churning out so many lines of code so quickly. What harness and model you've been using? For the last few months, essentially since I did the whole "One Human + One Agent = One Browser From Scratch" experiment, I've almost exclusively be…
Re: Learnings from 100K lines of Rust with AI (2025)
#56Earlier quoted context omitted.
> whenever I use AI for Rust, it makes an insane amount of lifetime errors. What model are you using, and what frameworks are you using? This is not a hard problem for LLMs to solve. Rust is nearly the perfect language for LLMs. It's exceptionally expressive, and it forbids entirely the most common globally complex bugs that LLMs simply do not (and won't for some time) have the context window size to properly reason…
It's not nearly the perfect language for LLMs and Rust is dramatically harder to read and reason about than Python with types. Other options work better for nearly all apps. I found Kotlin works well: - Garbage collected so no reasoning tokens or dev cycles are wasted on manual memory management. You say if you're vibe coding you can ignore lifetimes, but in response to a post that says AI can't do a good job and con…
Sounds like your work doesn’t need Rust and that’s ok.
But don’t generalize.
Re: Learnings from 100K lines of Rust with AI (2025)
#57Original RSL library has 36 KLoC across C++ source and headers files. Rust supposed to be more expressive and concise. Yet, AI generated 130k LoCs. I guess nobody understands how this code works and nobody can tell if it actually works.
Re: Learnings from 100K lines of Rust with AI (2025)
#58How are you keeping the requirement, design, and tasks docs in sync as the code evolves? I'm curious if anyone's landed on a good workflow for this.
Re: Learnings from 100K lines of Rust with AI (2025)
#59It's almost guaranteed with agents you could do the same job with less than half of 100k lines. I don't know whats impressive in lines of code generated by agent.
It just an anchor. If it were 50k would you say the same down to 25k? And if so how many more times would it apply? The interesting thing is that it was manageable solo (in many ways it's _more_ manageable solo+AIs than with coworkers+(their)AIs), and in such a short amount of time.
In the end it is just a lot of unmaintainable code quickly generated by AI.
Re: Learnings from 100K lines of Rust with AI (2025)
#60Earlier quoted context omitted.
I wrote and maintain this library of skills and workflows called Rust Bucket[0] It sets up your repo to ensure agents use a workflow which breaks your user requests down into separate beads, works on them serially, runs a judge agent after every bead is complete to apply code quality rules, and also strict static checks of your code. It's really helpful in extracting long, high-quality turns from the agent. It's what…
rust-bucket is 404, did you make it private?
Fixed.