Remix.run Logo
▲ 0c3ca83 a day ago

It seems like such a strange thing to do, building a language that you aren't going to write by hand. It's guaranteed to perform worse at higher cost, fill up a lot more of the context window, and burn a ton more reasoning tokens.

If you're using AI, a language with a large training set is going to win.

▲dnautics a day ago | parent | next [-]

> If you're using AI, a language with a large training set is going to win

Not necessarily? What if the training set contains an overwhelming amount if bad code written by neophytes? I imagine Python quality by the LLM suffers from this, for example.

What if the language has extremely confusing syntax constructs (like early php) or bad or no conventions (suppose the standard library has somecollection.put(key, value) sometimes and othercollection.put(value, key) other times), and individual code authors just pick what they want adhoc

Large training set ain't gonna save you.

▲0c3ca83 a day ago | parent [-]

There's a lot of RL that goes into this, you're not just training on bad code. Python is one of the programming languages that LLMs consistently perform best at.

▲dnautics a day ago | parent [-]

Near bottom on auto coder benchmark from last year, so clearly claiming "consistently" is false or misleading. Did you make that up?

▲Karrot_Kream a day ago | parent | prev | next [-]

I guess it depends on whether you will write everything in an AI assisted fashion or not. There's benefits to languages that are quick and easy to read by the author even if the LLM is doing the writing, because most code still benefits from human review above and beyond the review that agents provide. Language popularity certainly helps but it seems like for moderately popular languages [1] the cost you pay for a lack of popularity is quite modest.

[1]: https://danluu.com/pl-tokens/

▲0c3ca83 a day ago | parent [-]

A language you just created isn't going to be moderately popular, so it's just going to put you at a disadvantage -- and you're not even going to be writing in it, so why the self-kneecapping?

▲Karrot_Kream a day ago | parent [-]

I mean what does "put you at a disadvantage" even mean concretely? To use a less popular language, it means you need to load up context related to the semantics of your language, load context on how to invoke tools to make sure the syntax with your language is correct, load up context related to each tool call you make (which will be more numerous in a niche language), and load up context on architectural decisions that might be specific to your language. All of this is simply a token cost. By forcing a model to load an initial amount of context per harness turn you also effectively shorten the max context window beyond which the model becomes stupid (which itself is much shorter than the max context length.)

Obviously it's not like people are specifically trimming each and every prompt they give a model to tokenmax their models to get the best output / input prompt, we instead live in a spectrum of how many tokens of input and context we're willing to provide to a model to make progress. If the cost of those tokens is low enough for the problem domain you're working in, then it's fine. For some the readability of a personal language may outstrip any of the token costs that one needs to pay to use it. Alternatively maybe you want something like an array language (J, K, APL, etc) which allows array programming and optimizations that conventional PLs just can't do. Maybe you want your language to compile to a target that is highly portable. There's actually a lot of stuff out there that previously wasn't feasible but with LLMs-as-force-multiplier absolutely is.

I also suspect the space is a continuum. There may be pareto optimal points, such as DSLs built atop languages, that are both highly readable but also fairly token efficient.

▲0c3ca83 a day ago | parent [-]

It's both a token cost and a performance cost; there's only so much that documentation can do, compared to a ton of RL on top of millions of lines of examples. The space is a continuum, but the more you stray from the trained path the higher the cost you pay.

▲cmontella 14 hours ago | parent [-]

> the more you stray from the trained path the higher the cost you pay.

Note the LLMs are trained on language semantics far beyond the mainstream ones, so language design can become quite exotic without straying too much from the training. You really do have to measure these things, I don’t see how you can make a confident assertion without data.

▲spankalee a day ago | parent | prev | next [-]

I don't think those assertions about AI development necessarily hold. And I think it'd be a depressing future if we can't ever have anything new or better that wasn't popular in the training set as of November 2025.

I wrote about some of my thoughts with Zena and AI here: https://zena-lang.dev/blog/2026/09/languages-for-the-ai-era/

▲0c3ca83 a day ago | parent [-]

Yes, we're building a sad world. I'm glad you noticed. Until we get LLMs with online learning, training data will dominate.

▲brabel 18 hours ago | parent | next [-]

But you’re very clearly wrong. Just go ahead and try it: write your own language or just a DSL, write a brief description of how it works , let a LLM use it. Many of us have done this and everyone knows that it works extremely well, to most people’s surprise.

▲0c3ca83 15 hours ago | parent [-]

I'd suggest benchmarking the outcomes. It's going to "work", but at a higher cost with worse ontcomes compared to an existing language with a large training set.

▲cmontella 14 hours ago | parent [-]

Here are some benchmarks I’ve collected recently:

https://mech-lang.org/iros-r4r-2026/index.html#5805406811462...

I compare one algorithm across several programming languages and backends. There is no training data for Mech in the LLM yet it beats most other implementations in perf, which were optimized by LLM.

Maybe human performance engineers trained in these languages could write better implementations. But to answer the question of whether the LLM could write more performant code in languages it’s trained in versus languages it’s not, this comparison is at least illustartive.

▲spankalee a day ago | parent | prev [-]

> Yes, we're building a sad world. I'm glad you noticed

What is the point of sarcastic, passive aggressive comments like this?

▲0c3ca83 a day ago | parent [-]

I don't think it's particularly sarcastic. Its bitter, of course, because the world we're working towards kind of sucks. I'd like to opt out of it, but it's being forced on me.

The best I can do is understand its edges and try to find some advantage that leaves me well off enough to stave off the worst effects.

▲itishappy a day ago | parent | prev [-]

This assumes the goal is to create a productive language.

When I design my own languages (I have written several, all terrible!) it's typically to learn about language design.