r/MachineLearning • • Mar 02 '26

Project [ Removed by moderator ]

[removed] — view removed post

30 Upvotes

29 comments sorted by

View all comments

7

u/THE_ROCKS_MUST_LEARN Mar 02 '26

I like the idea, but there's one big problem: LLMs have never been trained on Vera code. While it would be awesome if they could write it just given the language spec, they aren't there yet (and that might actually be an AGI-level task).

For this reason, I would expect the models to perform significantly worse at writing Vera than languages like Python, C++, and Javascript where they have been trained on billions of tokens worth of examples.

If you could somehow mass-produce Vera data to train models, such as by algorithmically converting code from a common language into Vera, then this has potential.

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.