Ask HN: Why bother with new programming languages?

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?

16 points | by avilay 1 day ago

22 comments

  • mikewarot 1 day ago
    I'm a believer in a strong form of the Sapir–Whorf hypothesis.[1] I believe that words have utility, are essentially points with a high dimensionality cognitive impedance. Just as you can use various reactive components to match a load in RF engineering, words have utility to help express a concept, and if you lack the appropriate words to express a concept, it makes it much harder to convey it.[2]

    There are certain concepts that our current programming languages don't handle well, or just don't express at all. I can look back on the history of the Pascal language, in the beginning, there were very limited ways to do I/O. The Turbo Pascal language added a library and tools to make it easier. Then later, they added reference counted, copy on write, automatically managed, "magic" strings, that can handle gigabytes and never have to be allocated or freed. They added generics, and much much more.

    In current programming languages, there are no good ways to mix declarative and imperative syntax, for example. The Metamine language had a "magic equals" that forced the left side of an equate to update whenever the expression on the right changed later in the execution of the program. A hypothetical new language, or new variation of it, might include this feature.

    It's also important to remember that one of the worlds most popular programming languages isn't usually even thought of as such, it's almost completely declarative instead of imperative, Microsoft Excel, and the clones thereof.

    There will always be new ideas or techniques to push our use of computing forward, even if we're not the ones actually writing most of the code.

    [1] https://en.wikipedia.org/wiki/Linguistic_relativity

    [2] https://en.wikipedia.org/wiki/Impedance_matching

  • runjake 4 hours ago
    1. For fun.

    2. To maintain agency when the agents go away, or offline, or it becomes untenable to use an agent due to cost or some other factor.

  • dimavolo 1 day 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.

  • lioeters 1 day ago
    > If I want X, I'll just tell my Agent .. If I need Y, I'll tell my Agent

    So you don't need a programming language at all. It doesn't matter whether the generated code is in language A, B, or C. You want the result, the Agent performs what's necessary to achieve that result. You don't need the code, it might as well be direct machine instructions, as long as the goal is met.

    Some people prefer to speak to the machine themselves without involving a third party, by using an existing or new language of their own creation. For that rare breed of creatures, new programming languages are interesting in the way that musicians may be interested in new instruments or equipment that can expand the range of expression.

    A new language can expand the range of your thinking as well. As they say, travel broadens the mind.

  • err4nt 1 day 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 1 day 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.

      • err4nt 11 hours ago

            “…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”.”
        
        Yes, it’s important to be able to audit, even if you don’t. When the code works well that’s all fine, when there’s a bug or a security incident, someone needs to be able to understand it.

            "Hardware support: Any examples that come readily to mind? My understanding is that LLMs have reached some pretty niche areas already."
        
        Just for a fun example, I’ve been playing around with microcontrollers and little hardware boards - Arduino runs and supports a wide range of boards and hardware, there’s also Micropython, and C, but if you wanted to run for example JavaScript on these, they’d need some kind of firmware or an interpreter.

            "Badly documented languages: The agent will choose another better documented equivalent, which in most cases will surely exist."
        
        Depends on what you’re doing or need to do.

            "Better abstractions: Abstractions are there to aid in human understanding, without that need, what use are abstractions?"
        
        Abstractions are not only for human understanding, they abstract away parts of the problem domain. Imagine you’re washing dishes in a kitchen but the faucet with the water is in one place, and the soap is somewhere totally different. Instead of running around looking for soap every time you need a squirt you bring the soap near to the sink. This bringing the things you need close together so you can minimize your movements is like what abstractions give you or your coding agents: not just understanding, but the ability to make fewer, smaller, more precise movements regardless of how messy the tools and terrain would have been.

            "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."
        
        There are some of these projects started already, and not many in widespread use yet. It will be something to look out for in a few years once we’ve figured this out better and have a little more success to reflect on to see what worked and what didn't.
      • pick1ep0rk 22 hours ago
        I think it would be nice if someone would come up with a language that would somehow produce deterministic (same) code out of what LLM wrote, or, at least same machine code.
  • plzrun 9 hours ago
    I don't think anyone ever invented a programming language for a purely practical reason, the fun/challenge was always part of it.
  • trio8453 1 day 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.

  • turtleyacht 1 day 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 1 day 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 1 day ago
        > trend

        Seems fine.

        > not seeing the need

        Might be alright.

  • seanmcdirmid 1 day 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.
  • soon_to_be_sb 21 hours ago
    If you have to ask, then don't.
  • brudgers 1 day ago
    Why bother learning a new programming language? Why bother creating a new programming language?

    Curiosity, pleasure, challenge, and because our lives are not an optimization problem. Good luck.

  • softwaredoug 1 day ago
    Pre-Internet, there used to be huge friction to creating new programming languages. When you went to work for a company almost everything was in one language. I remember people despairing there was only C++/Java to choose from in the late 90s and early 2000s. C# was new and it had to look a lot like a MS flavored Java to have any chance be successful. And basically owned computing back then.

    Nobody wanted to inject some random new language nobody understood into the company. There was no Stackoverflow. There were at best some good books and whatever experts you could hire.

    The Internet created an embarrassment of riches and Im not sure it’s a bad thing we revert to the mean on creating fewer programming languages. Sometimes the “rewrite in X” was a vanity project that helped nobody, but let some developer add something to their resume. Kinda glad we’re moving away from that TBH.

  • austin-cheney 1 day 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.
  • markus_zhang 1 day ago
    Learning? Not very interested unless really needed.

    Creating? Hell yeah, because it’s my own baby and I don’t care whether the number of user can cause a kernel panic.

  • vikramkr 1 day ago
    artistic: it's fun, there might be some interesting intellectual frontiers to explore

    pragmatic: given the vulnpocalypse with AI we might want to create languages with good ergonomics for something like formal verification built in as a first class feature.

    If we're widely democratizing software and want a non technical user going "make me a forum for my club make no mistakes" to be as generally easy and safe as making a Facebook page or a reddit or would otherwise be, I could imagine a world where e.g. there's a set of standards we develop that are the equivalent of the https padlock (make sure this list of theorems are proven under these constraints and your site is probably secure).

    Or even if that sort of shape of formal verification etc isn't what it ends up being, whatever infrastructure and patterns lead to a site built on the $20 plan or free tier being not a disaster will involve (imo) new languages or frameworks that idiotproof the basics

  • pcunite 1 day ago
    Programming was a form of translating, wasn't it? When I was forced to ship a feature, it was awful. But when I had the time, it was enjoyable naming a memory location, putting items into the allocation, gaining access to the collection via a clever pointer. I think with Ai, we might be able to invent new languages, known only to its inventor.

    I've moved on from programming these days, but I look forward to playing around with it again, alongside a friendly Ai that tells me what I should have typed out. Kinda like playing with puzzles by the fire.

  • monster11 1 hour ago
    [dead]
  • rielabscom 1 day ago
    [dead]
  • Theophane_Rame 1 day ago
    [dead]
  • charan345 1 day ago
    [dead]
  • Skyfall106 1 day ago
    [dead]
  • aiword_support 18 hours ago
    [dead]