News for hackers. Stuff that matters.
Re:If AI writes your code, why use Python? by throwawayk7h on Monday May 11, 2026 @10:44PM (#48103604)
AI has not been trained on Lojban. And furthermore, this article is almost certainly primarily intended to be read by humans directly.

I understand you're being facetious, but I'm not sure what point you're trying to make about programming languages in comparison.

Re:If AI writes your code, why use Python? by parsimo2010 on Monday May 11, 2026 @10:51PM (#48103640)
It’s funny that in your reply “this article is almost certainly intended to be read by humans” you made what is the best case to keep writing code in Python even with AI.

Sure, if you are going to have an AI do all your coding and maintenance you can use whatever language it’s best at. But if you want to participate in the writing, debugging, and maintenance, it has to be in a language that a human can read. I’m not saying that Rust or Go is unreadable, but I know I am better at Python personally and am going to keep using it until the speed penalty matters to my project, and then maybe I’ll let an AI rewrite the whole thing in a faster language.

Re:If AI writes your code, why use Python? by Null-Set on Monday May 11, 2026 @11:24PM (#48103849)
I'd argue that while Rust has a high barrier to writing code due to lifetimes and other type constraints, its still quite easy to read.

(Kind of the inverse of perl)

Re:If AI writes your code, why use Python? by Hamuko on Tuesday May 12, 2026 @12:36AM (#48104225)
While it's a lot easier to read then Perl, it's still not as easy as something like a Python.
Re:If AI writes your code, why use Python? by cwnyth on Monday May 11, 2026 @10:58PM (#48103679)
Did you read the article? I think you're arguing against a strawman.
Re:If AI writes your code, why use Python? by parsimo2010 on Monday May 11, 2026 @11:05PM (#48103715)
I did read the article and I’m not arguing against a straw man. If you’re going to let an AI agent do everything for you then go ahead and use Rust (or any language with a strong type system that benefits agents).

But if I’m participating then I’m going to use Python because it’s easier to read.

If there’s anything that I’m arguing against is the author’s claim that the ecosystem of libraries (regardless of whether they are a wrapper) and readability don’t matter anymore. I’d say that in a lot of smaller teams it still matters. We’re not all using AI to ship slop. A lot of us are using AI to work on our ideas for our hobbies or for research. And it’s not fulfilling unless I get to be involved in the process.

Re:If AI writes your code, why use Python? by cwnyth on Monday May 11, 2026 @11:10PM (#48103747)
But it's not talking about people like you. It's like getting mad at someone suggesting selling their car for a self-driving car, but you ride a bike everywhere. Take a breather and recognize that not every article is personally meant for you or your situation.

And this isn't even a defense of the premise. I'm not using AI to generate assembly code, because I don't know assembly.

Re:If AI writes your code, why use Python? by 3uler on Tuesday May 12, 2026 @12:21AM (#48104163)
I’ve always found Ruby to be way more readable, what keeps me using python is the depth of libraries is unmatched.

So unless you’re into burning tokens having AI generate untested libraries, I’d stick to using the most idiomatic tool for the problem you are tackling.

Re:If AI writes your code, why use Python? by irjustin on Tuesday May 12, 2026 @12:39AM (#48104249)
So, it's really interesting. We've started moving away from python libs because 25% OSS is out of date and another % is custom tweaks to the software help our use cases. In both scenarios it means our own fork.

And honestly it's not burning that many tokens if you've got an existing example lib to point to.

Re:If AI writes your code, why use Python? by zrm on Tuesday May 12, 2026 @01:37AM (#48104584)
> But if you want to participate in the writing, debugging, and maintenance, it has to be in a language that a human can read.

I think the idea is that languages like Python and JavaScript make it easier for humans to write the initial implementation, whereas the "hard" languages from the perspective of creating the minimum viable product are the ones that make it easier for humans to maintain the code, and this has historically been a major trade off.

Whereas if you have the AI write the initial implementation...

Re:If AI writes your code, why use Python? by lelanthran on Tuesday May 12, 2026 @01:46AM (#48104655)
> I know I am better at Python personally and am going to keep using it until the speed penalty matters to my project,

I hate Python (app distribution is painful), but will still reach for it before I reach for Go. Rust doesn't even enter the equation.

I would not have even needed to reach for Go in about half my programs if Python had mandatory typing and single-file no-dep distribution.

> and then maybe I’ll let an AI rewrite the whole thing in a faster language.

Even then, my reasons for discarding Python when I do discard it is almost never "performance", it's because the problem space requires mandatory typing for complex data types, or concurrency, or easy distribution.

Of course, this requires me to figure out quite early ion a project that those things would be needed.

Re:If AI writes your code, why use Python? by tjwebbnorfolk on Monday May 11, 2026 @11:58PM (#48104037)
Python is intended to be read by humans also. Since I am a human and I want to be able to read and review the code in my project, I therefore have AI write in Python as well.
Re:If AI writes your code, why use Python? by skeledrew on Tuesday May 12, 2026 @12:38AM (#48104237)
> AI has not been trained on Lojban

I took the challenge and asked Perplexity. I have no idea how much of it is correct, if any, but I think the result[0] is pretty interesting anyway, especially compared to Esperanto [1].

[0] https://www.perplexity.ai/search/8315bbb6-fa32-40f3-8b2b-c6c...

[1] https://www.perplexity.ai/search/9c3839ba-1d68-4be9-afd1-4ef...

Re:If AI writes your code, why use Python? by woctordho on Tuesday May 12, 2026 @01:00AM (#48104362)
How do you know it's intended to be read by humans? Don't you see how many web crawlers are there?
Re:If AI writes your code, why use Python? by lelanthran on Tuesday May 12, 2026 @01:41AM (#48104624)
> And furthermore, this article is almost certainly primarily intended to be read by humans directly.

No, it's intended to generate traction for the author who lists his primary occupation as "building AI coding tools".

His goal is not the same as your goal.