Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I’m going to assume you’re open to an honest discussion here.

> "assuming it had the same expertise in each language" is the most important part here, because the expertise of AI with these languages is very different.

You are correct, but I am trying to illustrate that assuming some ideal system with equal expertise, the languages with more safety would win out in productivity/bugs over those with less safety.

As in to say that it could be worth investing further in safer programming languages because AI would benefit.

> We need these constraints because we can't reliably track all the necessary details.

AI cannot reliably track the details either (yet, though I am sure it can be done). Even if it could, it would be a complete waste of resources (tokens).

Why have an AI determine the type of a variable when it could be done in a deterministic manner with a compiler or linter?

To me these arguments closely mirror/follow arguments of static/dynamically typed languages for human programmers. Static type systems eliminate certain kinds of errors and can produce higher quality programs. AI systems will benefit in the same way if not more by getting instant feedback on the validity of their program.



Yes, I get your point and I think your arguments are valid, it's just not the whole story.

The thing about programming languages is that both for their creators and advocates a significant part of motivation to drive is emotions and not the rational necessity alone. Learning a new programming language along with its ecosystem is an investment of time and effort, it is something that our brains mark as important and therefore protected (I'm looking at Rust). Now when AI is going to write all the code, that emotional part might eventually dissolve and move to something else, leaving the question of choice of a programming language much less relevant. Like the list of choices Claude Code shows to you in planning mode: "do you wish to use SQLite, PostgreSQL or MySQL as a database for your project?" (*picking the "Recommended" option)

That said, I hope that Zig will make it to version 1.0 before AI turns all the tables and sweeps many things away. It might be my bias and I'm wrong and overestimating the irrational part, then I'll be glad to admit my mistake.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: