Ask HN: Why bother with new programming languages?

5 points by avilay 5 hours ago

Genuine question, no snark, no existential despair. Why bother learning a new programming language? Why bother creating a new programming language?

I saw some recent posts announcing new languages, and the reasoning usually goes that these are meant for Agentic use - either to write really performant code, or some other value proposition. But that didn't sit well with me. If I want to create really performant software, I'll just tell my Agent to write it in C and drop down to Assembly where needed. If I need to write GUI apps, I'll tell my Agent to use my target platform's native SDK. And so on. I am not going to read the code anyway (or so the zeitgeist of the moment tells us), so why bother with what language it is written it? And by extension, why bother with the language at all?

trio8453 1 hour ago

I think by new you mean "newly created", and you're kind of right - there's hardly a point, we have amazing coverage over all possible use cases, the reason to create/learn brand new languages is just intellectual curiosity and personal taste. But that was already the case before - there's been hundreds of new languages and only 5-10 worth spending time on.

If by new you mean "new to me" - you can and maybe should bother more than before because it's obviously much easier to jump in and build something in a language you don't know. Fewer excuses to not build something in Rust (or whatever language you think is best for your use case). The tradeoff is that it comes with the weird feeling of not being fully qualified to guide the agents and review their work, and the feeling that you don't even have the opportunity to get good at guiding them because you're never getting deep enough yourself.

err4nt 3 hours ago

All these answers assume you're primarily or exclusively using a coding agent:

- Different languages can have different hardware support. Depending on where you need to run the resulting software, that can influence language selection.

- Different languages may be better documented or worse documented, which can affect the quality of agent-produced code.

- Different languages can provide abstractions suited to different kinds of work or tasks, different kinds of data being operated on, or different operations and comparisons and logical switches. Just like you might configure a garage or workbench differently depending on whether it's being used as a wood shop, a bike shop, a machine shop, or a pottery and glass blowing area, the choice of language and the tools it has are like your workshop configuration.

- One area that's interesting to watch will be new programming languages designed primarily for LLMs as consumers, to cater to their strengths and weaknesses - while still being able to be read, written, and reasoned about by humans (even if they're not the primary consumers it's intended for). Because people are using LLMs to write code, any language design features or pitfalls avoided that help improve code quality can be a lever outside of your coding agent you can push on to improve the overall end result.

Hopefully that helps!

  • avilay 2 hours ago

    If I am understanding your core point correctly - it is that we need to, at the very least, understand the source code written by LLMs. That is not what I am seeing with PRs that are tens of thousands of lines, code reviews done by other agents, or humans who sign of with a "LGTM".

    * Hardware support: Any examples that come readily to mind? My understanding is that LLMs have reached some pretty niche areas already.

    * Badly documented languages: The agent will choose another better documented equivalent, which in most cases will surely exist.

    * Better abstractions: Abstractions are there to aid in human understanding, without that need, what use are abstractions?

    * LLM specific languages: LLMs are able to perform pretty well with the current languages because of the huge corpus of available training data. At least to me - there are no obvious gaps that a new LLM specific language will solve.

dimavolo 5 hours ago

That's what I'm wondering as well. I have stopped bothering with any programming languages at all.

I don't write in Assembly, I don't write in C or C++ or Python or JS (or even HTML/CSS/md).

I now write in English and it gets compiled down and down and down, which is what we've all (claimed we) wanted all along.

turtleyacht 2 hours ago

> write

You don't need a lawyer except for those very specific circumstances where words matter.

Unlike spoken languages though, machines execute a lot of things in certain ways that someone who is familiar with multiple languages may be able to recognize and help troubleshoot.

Or, why should a mathematician learn other maths? Breakthroughs have come from geometric or topological perspectives.

Even if it's "all Lean," there are probably aspects of it that different mathematic specialists would recognize more easily in their field.

By contrast, maybe you don't need to ever totally grok the CSS of the AI's "Newgrounds Flash" UI, if you always will just vibe it. You already know--to yourself--what looks good. If you have that sense, then maybe it's fine in the end.

  • avilay 2 hours ago

    > someone who is familiar with multiple languages may be able to recognize and help troubleshoot

    Why do I need a human to troubleshoot? The trend I am seeing is that most of debugging is also done by LLMs, with humans providing a little push here and there.

    > Or, why should a mathematician learn other maths? Breakthroughs have come from...

    I think you are onto something here, but tbh I am not able to pinpoint what. Do we need breakthroughs in programming languages? Unless we come up with a radically new hardware/chip architecture which will render our current programming paradigms obsolete, I am not seeing the need.

    • turtleyacht 2 hours ago

      > trend

      Seems fine.

      > not seeing the need

      Might be alright.

austin-cheney 12 minutes ago

Some people actually enjoy programming. These are not the people seeking corporate software jobs, or they are but they lie about their motivations as necessary to achieve employment.

seanmcdirmid 2 hours ago

Next generation programming languages might be ultra high level (non-executable, close to natural language with some organizing principles) where the LLM compiles the text down to code in an executable programming language. It isn’t clear if we can just have unprincipled natural language specs play this role, or if executable code as its own source of truth (aka vibe coding) will remain the primary way we use LLMs to code.