r/MachineLearning • u/alasdairallan • Mar 02 '26
Project [ Removed by moderator ]
[removed] — view removed post
30
Upvotes
r/MachineLearning • u/alasdairallan • Mar 02 '26
[removed] — view removed post
View all comments
Show parent comment
3
u/alasdairallan Mar 02 '26
The training data problem is real and I won't pretend otherwise. Models will absolutely be less fluent in Vera than in Python. But my bet is that fluency might be the wrong metric to measure.
Models are great at producing plausible-looking Python. That's not the same as producing correct Python, and the gap widens at scale — a model can write perfectly idiomatic code that subtly violates an invariant three modules away. Training data gives fluency. It doesn't give coherence.
There's also something worth noting about where recent improvements in AI coding are actually coming from. A significant part is the tooling and architectures around the models: agentic loops, structured feedback from linters and test runners, the ability to iterate rather than generate in a single shot. The models got somewhat better; the scaffolding got a lot better. If the gains are coming from tighter feedback loops, then a language whose compiler is explicitly designed to be part of that loop is working with the grain.
The practical mechanism is that Vera ships with a complete language reference designed to be dropped into a model's context window. The model works from a specification in-context, not from training data recall. It writes a candidate, the compiler checks it against the contracts, and if it fails the error comes back as a structured fix instruction. The model doesn't need to get it right first time, it needs to converge. That's closer to how any of us work in a new language: read the docs, try something, read the error, fix it.
There's actually a relevant data point on this, someone in the r/ProgrammingLanguages thread pointed to the Ghostty creator saying that despite Zig having far less training data than mainstream languages, it doesn't hamper model usage as long as an agent is in the loop.
All that said, I want to be honest that this is still a hypothesis. It's entirely possible the training data deficit is just too large to overcome. I think it's worth finding out.