News for hackers. Stuff that matters.
Re:If AI writes your code, why use Python? by shepherdjerred on Monday May 11, 2026 @10:20PM (#48103445)
Why use Go when you can use Rust?
Re:If AI writes your code, why use Python? by bfung on Monday May 11, 2026 @10:47PM (#48103617)
1. Amount of Rust training data isn’t as much as Go.

2. Golang syntax and style is very verbose yet simple. There’s not as many options nor programming language to domain mapping needed as in Rust. Leads to needing less sophisticated LLM to spit out Golang than Rust successfully and efficiently.

Re:If AI writes your code, why use Python? by adastra22 on Tuesday May 12, 2026 @01:12AM (#48104440)
This must really depend on your niche. I assume you do web stuff or something? Good luck finding any golang examples in a lot of other fields. Rust, on the other hand, is taking over the world in systems programming.
Re:If AI writes your code, why use Python? by krilcebre on Tuesday May 12, 2026 @03:40AM (#48105366)
Been reading and drinking that kool-aid for some time until I realized it's just an internet bubble mumbo jumbo. Majority of systems are still written in C and C++, and will be for unforeseeable future.
Re:If AI writes your code, why use Python? by coldtea on Tuesday May 12, 2026 @03:30AM (#48105288)
>Good luck finding any golang examples in a lot of other fields.

There are go examples (and full blown programs) for anything, from servers to Kubernetes and Docker.

Re:If AI writes your code, why use Python? by Yokohiii on Tuesday May 12, 2026 @10:47AM (#48109110)
which is pretty much webdev for the larger industry.
Re:If AI writes your code, why use Python? by adastra22 on Tuesday May 12, 2026 @10:58AM (#48109289)
Yes. Maybe I should have said web stack?
Re:If AI writes your code, why use Python? by bfung on Tuesday May 12, 2026 @08:59PM (#48116608)
Just reporting what I’ve experienced. No need to go with the ad hominem attack. I happen to lead a team with a major Rust infra project and I stand by the experience with usage across all the LLM models.
Re:If AI writes your code, why use Python? by adastra22 on Wednesday May 13, 2026 @04:32AM (#48119277)
What ad hominem?
Re:If AI writes your code, why use Python? by bensyverson on Monday May 11, 2026 @11:05PM (#48103717)
In short, compile times and a more full-featured stdlib
Re:If AI writes your code, why use Python? by Aerroon on Monday May 11, 2026 @10:42PM (#48103586)
Doesn't Rust have long compile times? Does Go suffer from the same problem?
Re:If AI writes your code, why use Python? by adastra22 on Tuesday May 12, 2026 @01:13AM (#48104444)
Go famously has stupidly fast compile times.
Re:If AI writes your code, why use Python? by bdamm on Tuesday May 12, 2026 @03:08AM (#48105169)
One of the design goals of Go was to be fast to compile. And they achieved it.
Re:If AI writes your code, why use Python? by Alejandro2026 on Monday May 11, 2026 @10:21PM (#48103452)
why,i have same question
Re:If AI writes your code, why use Python? by bionhoward on Monday May 11, 2026 @10:41PM (#48103575)
I’m heavy into rust and never really use golang, but one big benefit of go over rust is compile times are significantly quicker, which could be more fun if you’re running CI checks 50 billion times
Re:If AI writes your code, why use Python? by coldtea on Tuesday May 12, 2026 @03:31AM (#48105293)
>which could be more fun if you’re running CI checks 50 billion times

Even running them 5 times it's WAY more fun

Re:If AI writes your code, why use Python? by DeathArrow on Tuesday May 12, 2026 @01:35AM (#48104573)
Because LLMs are better at Go? And because some people understand Go code easier and they might want to look at the code?
Re:If AI writes your code, why use Python? by up2isomorphism on Tuesday May 12, 2026 @03:36AM (#48105327)
why use Rust when you can use Zig?
Re:If AI writes your code, why use Python? by 2ndorderthought on Tuesday May 12, 2026 @06:28AM (#48106312)
Why use zig when you can use odin?
Re:If AI writes your code, why use Python? by wiseowise on Tuesday May 12, 2026 @04:03AM (#48105504)
So I can test my feature today instead of waiting until it finishes compiling tomorrow.
Re:If AI writes your code, why use Python? by baq on Tuesday May 12, 2026 @05:21AM (#48105981)
this is the top reason for a reasonably complex project, but it can be worked around by preplanning crates.

the other reason is if you really want async as is in vogue nowadays, function coloring - but this is rapidly becoming irrelevant, see article.

Re:If AI writes your code, why use Python? by wiseowise on Tuesday May 12, 2026 @06:32AM (#48106334)
> but it can be worked around by preplanning crates.

Maybe if you're working alone.