News for hackers. Stuff that matters.
Re:If AI writes your code, why use Python? by coldtea on Tuesday May 12, 2026 @03:33AM (#48105307)
>Go has a huge stable standard library no other language even comes close to

Well, Java and Python do.

Re:If AI writes your code, why use Python? by walthamstow on Tuesday May 12, 2026 @05:12AM (#48105932)
Yet the first thing most people do before making a HTTP request is pip install requests
Re:If AI writes your code, why use Python? by coldtea on Tuesday May 12, 2026 @05:30AM (#48106027)
Yet, a nicer request wrapper is not the be all end all of batteries, and Python covers a huge spread of libs
Re:If AI writes your code, why use Python? by IshKebab on Tuesday May 12, 2026 @11:04AM (#48109406)
Python has a quite random collection of stuff, and it's often quite low quality and people don't use it anyway. I wouldn't say it is close to Go.

I haven't used Java for a decade or so but as I recall its standard library was pretty bare bones (similar to Rust).

Apparently C# has a pretty comprehensive standard library but I've never used it.

Re:If AI writes your code, why use Python? by coldtea on Tuesday May 12, 2026 @11:28AM (#48109752)
>Python has a quite random collection of stuff, and it's often quite low quality and people don't use it anyway. I wouldn't say it is close to Go.

People who came into Python for ML and Data Science, and just care for their array and ML libs maybe.

But long time Pythonistas absolute use Python's standard library - and it's hardly "quite low quality". "Batteries Included" is one of the community slogans.

Re:If AI writes your code, why use Python? by hirvi74 on Tuesday May 12, 2026 @12:32PM (#48110589)
> Apparently C# has a pretty comprehensive standard library but I've never used it.

I use C# more days than not. The comprehensive standard lib is impressively large and accomplished everything I need. Third-party libraries is a real pain point though. I haven't looked in sometime, but things like sane PDF libraries, reporting libraries, etc. were severely lacking when I needed them last. As much disdain as I have for Java, I think it is better in that regard.

Re:If AI writes your code, why use Python? by za3faran on Thursday May 14, 2026 @01:28AM (#48131435)
> I haven't used Java for a decade or so but as I recall its standard library was pretty bare bones (similar to Rust).

Even a decade ago (and more) the collections library in the Java standard lib was second to none. It's standard lib only got better since then (e.g. `HttpClient`).

Re:If AI writes your code, why use Python? by mrsmrtss on Tuesday May 12, 2026 @03:38PM (#48113339)
C# (.NET) would probably be the winner here. Go standard library is rather minimalistic compared to it.