Content pfp
Content
@
https://www.rust-lang.org
0 reply
0 recast
0 reaction

christopher pfp
christopher
@christopher
We made a bet early in the winter to rewrite our backend into Axum and Rust. The bet is paying off now. No memory leaks, extremely fast cold start times, leverage native crypto libraries + Alloy, sqlx has compile-time checks, AI fixes its own mistakes, and it’s entirely in a binary — no dependencies!
3 replies
2 recasts
22 reactions

Jason pfp
Jason
@jachian
So AI code editors handle Rust and Axum code well?
1 reply
0 recast
0 reaction

christopher pfp
christopher
@christopher
Yes with the right prompts, context, and codebase memory. We are experimenting with long running coding agents to help us with autonomous lifts, e.g. major refactors to files, functions, code hygiene, upgrades.
1 reply
0 recast
0 reaction

Jason pfp
Jason
@jachian
Is there anything counterintuitive about the way you setup prompts/context/codebase to make it work?
1 reply
0 recast
1 reaction

christopher pfp
christopher
@christopher
The strict typing actually helps AI more than it hurts, since type errors give clear guidance. But the borrow checker’s nuanced feedback gets lost on models that just want something that works.​​​​​​​​​​​​​​​​ AI will bias towards solving the compilation problems than efficiency problems, which Rust excels at. We’re writing web code so it’s fine to not be so efficient yet.
0 reply
0 recast
0 reaction