News for hackers. Stuff that matters.
Re:UUID package coming to Go standard library by jen20 on Saturday March 07, 2026 @12:38AM (#47284818)
Like Python though, while the batteries are included, many of them are dead.
Re:UUID package coming to Go standard library by LtWorf on Saturday March 07, 2026 @04:14AM (#47285946)
Yes because the formats and protocols they are for have changed so much right? -_-'
Re:UUID package coming to Go standard library by gzread on Saturday March 07, 2026 @07:13AM (#47286938)
Yes, and surrounding expectations like async. Urllib doesn't pool connections.
Re:UUID package coming to Go standard library by 0x696C6961 on Saturday March 07, 2026 @12:50AM (#47284880)
It begs the question, why don't these languages put out a v2 stdlib?
Re:UUID package coming to Go standard library by remus on Saturday March 07, 2026 @02:06AM (#47285213)
Broadly speaking, maintaining a big std lib is a huge amount of work, so it makes sense that a language team is conservative about adding new surface to a stb lib which they will then have to maintain for a long time.
Re:UUID package coming to Go standard library by PunchyHamster on Saturday March 07, 2026 @03:14AM (#47285626)
Why it is "huge amount of work" ? Do the code reliably breaks in every new python version ?
Re:UUID package coming to Go standard library by LtWorf on Saturday March 07, 2026 @04:17AM (#47285952)
Yes, in python they break something at every release now. It's terrible. It mostly is because they remove modules from their standard library for no good reasons.

For example they've removed asyncore, their original loop-based module before the async/await syntax existed. All the software from that era needs a total rewrite. Luckily in debian for now the module is provided as a .deb package so I didn't have to do the total rewrite.

edit: as usual on ycombinator, dowvotes for saying something factually true that can be easily verified :D

Re:UUID package coming to Go standard library by Hendrikto on Saturday March 07, 2026 @06:07AM (#47286529)
I think the downvotes are because you did not answer the question you replied to, and instead gave a pretty unrelated rant.
Re:UUID package coming to Go standard library by LtWorf on Saturday March 07, 2026 @08:07AM (#47287314)
I'm explaining that yes, code does break every new python version? Mostly because they touch the stdlib instead of just leaving it be.
Re:UUID package coming to Go standard library by akerl_ on Saturday March 07, 2026 @02:38PM (#47290768)
The thread is about the code in the std lib being a huge amount of work because the code in the std lib needs to be kept working with new language releases.

And then you answered about downstream code breakage totally outside the std lib.

Re:UUID package coming to Go standard library by zahlman on Tuesday March 10, 2026 @03:26AM (#47320076)
The code is under the open-source PSF license. You can vendor or repackage it as you wish rather than rewriting your dependents. The removal is mostly about ensuring that nobody will try to hold them responsible for any more maintenance (plus they can, for example, drop tests and have a faster running test suite).
Re:UUID package coming to Go standard library by Philip-J-Fry on Saturday March 07, 2026 @07:14AM (#47286952)
The work involved in maintaining a standard library is things like bug fixes. A larger standard library (or multi versions) means there's more likely to be bugs. You also have performance improvements, and when new versions of the language come out which has features to improve performance, you will most likely want to go back through and refactor some code to take advantage of it. You will also want to go through and refactor to make code easier to maintain. All of this just gets harder with a larger surface.

And the more stuff you pack into the standard library the more expertise you need on the maintenance team for all these new libraries. And you don't want a standard library that is bad, because then people won't use it. And then you're stuck with the maintenance burden of code that no one uses. It's a big commitment to add something to a standard library.

So it's not that things just suddenly break.

Re:UUID package coming to Go standard library by can3p on Saturday March 07, 2026 @07:55AM (#47287248)
Every library is a liability especially in terms of api. There are many example where the first take on a problem within a std lib was a bad choice and required a major overhaul. Once something is in standard library it’s literally impossible to take it back without breaking the world if you don’t control api consumers
Re:UUID package coming to Go standard library by gzread on Saturday March 07, 2026 @07:14AM (#47286953)
What would that entail, just a package whitelist? A few renamed packages? In the python 3 transition they renamed urllib2 to just urllib, but now it's almost a dead battery too and you want to use requests.
Re:UUID package coming to Go standard library by isbvhodnvemrwvn on Saturday March 07, 2026 @08:09AM (#47287325)
Python had enough fun with 2 to 3 transition I think.
Re:UUID package coming to Go standard library by 3eb7988a1663 on Saturday March 07, 2026 @11:15AM (#47288918)
Honestly the problem was they did not go far enough. They hoped to have a minimal churn switch to avoid getting locked into bikeshedding for the rest of time. However, there was so little user user facing improvements that the required change hardly seemed worth porting. They also failed to initially offer any automatic porting tooling which could have increased adoption.

I will be forever mad that they did not use that as a breaking opportunity to namespace the standard library. Something like: `import std.io` so that other libraries can never conflict.

Re:UUID package coming to Go standard library by kbolino on Saturday March 07, 2026 @06:48PM (#47292682)
> They also failed to initially offer any automatic porting tooling which could have increased adoption.

Maybe it wasn't very good, but 2to3 was there from the start:

https://docs.python.org/3.0/library/2to3.html

Re:UUID package coming to Go standard library by 3eb7988a1663 on Sunday March 08, 2026 @12:09PM (#47298440)
Huh, so it was. Thanks for the correction.
Re:UUID package coming to Go standard library by fredoralive on Saturday March 07, 2026 @03:30PM (#47291186)
Python has some work to trim bits of it's built in libraries, see for example https://peps.python.org/pep-0594/ and https://docs.python.org/3/deprecations/index.html .
Re:UUID package coming to Go standard library by bigstrat2003 on Sunday March 08, 2026 @01:47AM (#47295162)
But they're there. I would much rather have a stdlib option which isn't as good as the most popular third party solution, than not have an stdlib option at all. You can't always count on being able to install stuff from pypi, but you can always count on the stdlib being present.