upvote
This is not my experience at all. LLMs universal translation abilities let them pick up new languages really easily, especially if they borrow from existing languages and are consistent.

I've been building a new programming language, Zena [1], for a year and modern Claude and Gemini have absolutely no problem generating the code with about a 300-line skill: https://github.com/elematic/zena/blob/main/skills/zena/SKILL...

(I also happen to be adding contracts and formal verification for gen AI, maybe similar to Truss, but that targets Wasm for sandboxing).

[1]: https://zena-lang.dev/

reply
deleted
reply
I saw a talk this year from one of the Pony Lang folks talking about this exact problem and how they essentially taught Pony to Claude.

https://carolina.codes/speakers/2026/redvers-davies

It was really interesting. Pony is also deeply underrated.

reply
That's a great talk, and it has a resonant quote: "If you let your LLM us a general purpose language, your LLM has to solve all those hard problems instead. Good languages make the illegal impossible."

I think there's some truth here: linters and compilers for general purpose languages are only so powerful, and LLMs will always be tempted to use patterns they've seen before when they're knee-deep in a language they think they understand how to use for your problem. Restricting them to think about problems from first principles in languages with clear and enforced guidelines about data sharing, ownership, traceability, etc. can be very powerful.

Direct link to talk: https://www.youtube.com/watch?v=oU5sV1ljTzs

reply
raise hand

Here someone else who tried to write a coding agent optimized programming language, but I asked it to optimize for cost. Using less tokens is an obvious one but while working on it the actual engineer (LLM) decided that saving on tokens would be marginal savings compared to being able to write the same quality code by a cheaper model. But it never found out how.

After a couple of hours seeing benchmarks in which it lost from Python on pretty much everything, it told me to give up. I did.

reply
Maybe the answer isn't to create a new language for AI, but add to Python the things that Claude tells me makes other languages better for some things, like type safety and a try compilation step to find errors way ahead of runtime.

(Or did I just describe something that has been done eleven times already?)

reply
`ty` and `mypy` are efforts to add this to python. It's fairly inconsistent because of the vast library of python code that doesn't use it, much like early typescript. Unlike typescript, however, there's not the huge push right now to adopt because python coders are happy where they are.
reply
+1. You cannot teach AI a new programming language with prompts. In order to be efficient the language has to be in its "brain", i.e., AI's neural network has to be trained on large number of samples.
reply
> You cannot teach AI a new programming language with prompts

Incorrect. I built my own programming language [0] and agents just look up the docs and write it with great success. It helps to have static linting/analysis of course, but they always do just fine writing Rad despite it being very small.

[0] https://github.com/amterp/rad

reply
They already have been trained, on other languages that provide similar-enough constructs to translate over to the new language. Same principle as how a C++ developer can write Rust after looking at a few syntax examples.

For instance:

  contract ReplaceElement {
       function replace(words: &mutable Slice<UInt64>, index: UInt64, value: UInt64) -> UInt64
           requires index < words.len
           ensures result == old(words[index])
               and snapshot(words) == update(old(snapshot(words)), index, value)
           terminates
           effects { read(words), write(words) }
   }
This is _extremely_ similar to JS/Rust/Java style syntax mixed with common forms from general ALGOL descendant languages. LLMs should have no trouble writing this whatsoever.
reply
you don't want anything thats extremely close; you want something that is dissimilar and users very cogent keywords.

Similarity shits up context very quickly.

reply
If any such language gets adoption or even seems like a promising direction, I think in this day and age it should be trivial for the labs to RLVR it into the model with synthetic data.

Edit: if you use local models you could probably fine-tune or do a LoRA for it yourself.

reply
Incorrect. Models can actually adapt to new syntax quite easily, even with zero training material. Of course that does depend on how truly novel your syntax && constructs are, but generally speaking if you don't deviate too-too far from conventional wisdom you should be fine. My language is quite exotic in fact and frontier LLMs have no trouble writing it, as long as you supply a .bnf file.
reply
It's funny: if we were talking about programming languages generally, I would pop in to say something about how syntax really doesn't matter and a language having "exotic" syntax is almost entirely irrelevant. But since LLMs only interact with syntax, it's interesting that they are seemingly able to adapt to novel syntax fairly well.
reply
They do fine even with completely novel syntax. I built a programming language designed to be hard for LLMs[1] with syntax that no other programming language uses and most can get the hang of it pretty quickly.

1 - https://killswitch-lang.org

reply
Dumb question maybe (IANAAIPowerUser)- this new teaching will now always occupy some part of the working context right? As a result of that 1) Do you have smaller usable context? 2) Does the model over-use the new teachings?
reply