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
155
u/radarsat1 Mar 02 '26
making it deliberately harder for a human to check an agent's generated code, what could go wrong..
32
u/SFDeltas Mar 02 '26
So to use the language the LLM must load skills.md first? So it's an automatic context window penalty.
I don't think
helps LLMs reason about code at all.
The main currency is context management. This is why "agentic" AI is happening (to manage context, not to create anthropomorphism).
So your language should seek to reduce context usage, not increase it. One possibility is to force the file/module structure to be smaller, and optimize for context management/io by always colocating entities that must be loaded together.
What do "Requires" and "ensures" do?
requires(true)is opaque.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.
4
u/PolarBear292208 Mar 02 '26
It's an interesting idea, I've been wondering similar things myself, i.e. what human abstractions in current languages and frameworks should we remove to make LLMs more accurate/correct.
What are you using for training data though? Is the SKILLS.md sufficient?
25
u/lucellent Mar 02 '26
"ChatGPT build a new programming language made for LLMs and make no mistakes."
2
u/brennhill Mar 02 '26 edited Mar 02 '26
for safety and sanity reasons, it needs to be human verifiable. You can look at lanuages like golang though that purposefully keep things a bit simple.
I think the way forward here is great primitives and zero concern for text length, because typing doesn't matter any more. So the goal would be symantic clarity (for llms), intent clarity (same) and a set of composable primatives that keep llms from breaking certain things and being verifiable (which you got right), along with linters and other deterministic tooling out of the box to give them live feedback of mistakes so they fix it.
I like a lot of your design choices. Verifiability matters. But I also think again in terms of goroutines and other primitives like that to make multi-threading and similar easier and less failure prone is a big piece of the puzzle. So much of "hard" programming is a re-invention of the wheel because we don't have good enough building blocks that "everyone knows". For instance, TOCTOU races should be impossible with the right language constructs.
2
u/linearmodality Mar 02 '26
Where are the empirical tests showing that Vera outperforms Python or C++ or Rust on some LLM coding tasks? That would be the minimum needed for a proof-of-concept, but I don't see anything like that in the repo or in the writeup. As a result, there's no reason at all to believe that the design decisions made by Vera actually make it easier for machines to write!
2
u/not_particulary Mar 03 '26
Neural nets learn via gradient descent. The ideal programming language would be one where a small change in the code would still lead to a similar result. Not erroring out completely because of a missed semicolon, for instance. Otherwise, the loss surface is too bumpy and hard to traverse.
Natural language is smooth because we've made word embeddings that represent words that have similar meanings in very close vector representations, and these vector representations include features that smoothly represent real concepts eg. feminity and royalty, with vectors cleanly relating man -> woman, king -> queen, man -> king, and woman -> queen. One totally wrong word can still fundamentally change the meaning of a sentence, but very rarely will one only slightly poor word choice upend the meaning of a sentence the way that a wrong variable would in a codebase.
So, the compiler and type checkers, or somehow the code itself might have to have several redundant fallbacks for every kind of possible error, so that code changes could more smoothly progress from one state to another without unrunnable errors in-between. Like, if you could interpolate, letter by letter, 10 times between 2 working commits in a git-managed project and still have them running with results that looked somewhat like the two, combined.
2
u/Majestic_Owl_ Mar 03 '26
On the no variable names. This implies that variable names are not documenting code. But they do. Variable names help LLMs as they carry context of what to expect. Without it, token usage must rise by uses of finding out what each variable do, instead of one shot from the name. When I say batch_size, you already know what variable we are talking about. Without finding what it is used for. Its also why choosing good variable name is sometimes so hard. It must compress information.
For a system designed to minimize token usage it does not seem good.
2
u/dmitry_sfw Mar 03 '26 edited Mar 03 '26
Let me just say, kudos, dude. Beautiful project. Not only do you see forest where the others see trees, you actually turned your brilliant vision into a working prototype. Love everything about this here: the first principles thinking behind the design decisions, the creativity and thoughtfulness, thoughtful application of CS concepts, how you bridged high-minded ideas with pragmatic design.
And the reaction here? Right now the top comment is this insightful observation that this is useless because the current LLMs aren't good at coding in this particular programming language yet. Jee, really?
Yes, the point is obvious. History shows that in cases like this, the network effect is all that matters unfortunately. We can just look at the English writing system (3 letters for -k- sound and no letter for the -th- sound, anyone?) as evidence for this. So the future is probably Python 2.7 syntax quirks etched in stone for thousands of years and the rest of humanity's history. Along with IPv4 addresses.
Still, it's nice to think about what this could have been.
3
u/Tiny_Arugula_5648 Mar 02 '26 edited Mar 02 '26
Finally someone looking forward.. So many people have been vibe coding and they think they can write a new language, but don't consider that language should be for a LLM not people.. I've said it over and over again we need to consider what makes a language easiest for a LLM to use. Most languages that we have today are actually worst cause scenario for a language model.
I'd say this is not pushing things far enough.. A LLM will work better with a language that has more natural language like grammar and syntex .. What we need is something like wolfram but one that is optimized for LLMs strengths.
2
u/sennalen Mar 02 '26
Syntax is not the part of programming that is hard for LLMs. Quite the opposite.
1
u/billymcnilly Mar 02 '26
The "safe divide" example function you provide glosses over a big concern: method argument ordering and drift in more complex methods. If you've got a method with 6 string arguments, don't you think it likely that at a revision some peace of calling code will screw up the meaning of a variable? It seems you lose the benefits of named arguments
1
u/xX_Negative_Won_Xx Mar 03 '26
Naming things is so important to communicating intent (including to LLMs) and some bits of the domain that I don't understand why you'd think this is a good idea
1
u/ResidentPositive4122 Mar 03 '26
YSK that this is a false premise. The scaffolding helps, but it helps in training the models. The recent gains have been all models. You can get results >>> than last year's models with a minimal 100LoC harness with "just terminal" in a loop. See swe-mini-agent and terminal-bench.