News for hackers. Stuff that matters.
Re:If AI writes your code, why use Python? by pylotlight on Monday May 11, 2026 @10:20PM (#48103444)
Performance? Second only to rust and other lower level langs. Surely you don't need this spelled out for you...
Re:If AI writes your code, why use Python? by nvader on Monday May 11, 2026 @10:25PM (#48103491)
Not just performance, but static typing and prevalent in the training data/easy for LLMs to reason about.

Of course, your response admits, "second to Rust", which I am guessing is an unspoken question in the grandparent's mind.

Re:If AI writes your code, why use Python? by za3faran on Monday May 11, 2026 @11:07PM (#48103728)
Java and C# are there and faster.
Re:If AI writes your code, why use Python? by DeathArrow on Tuesday May 12, 2026 @01:39AM (#48104605)
Yes, but kids these days only consider JS, Python, Rust and Go.
Re:If AI writes your code, why use Python? by hirvi74 on Monday May 11, 2026 @10:42PM (#48103584)
If performance is the main difference, whatever that means, then basically Go should be reserved for when Rust and other lower level langs cannot be used due to some other constraint? Are we mainly talking about performant Web backends?

Say I am building some app that I know will be CPU-bound, why choose Go over say... Swift?

Re:If AI writes your code, why use Python? by overfeed on Tuesday May 12, 2026 @01:08AM (#48104414)
> why choose Go over say... Swift?

Language religious wars are silly: you should choose a language based on your constraints and personal tastes. If there's no clear advantage of one language over another for a given task - then all the options are viable, pick one and get on with solving the problem.

Re:If AI writes your code, why use Python? by coldtea on Tuesday May 12, 2026 @03:36AM (#48105332)
>If performance is the main difference, whatever that means, then basically Go should be reserved for when Rust and other lower level langs cannot be used due to some other constraint?

Or when performance is the main but not the only difference, and there are many other benefits.

>Say I am building some app that I know will be CPU-bound, why choose Go over say... Swift?

Because unless you're building for macOS/iOS, Swift is really a no-go, with lackluster support for other platforms. Plus slow to build and convoluted.