News for hackers. Stuff that matters.
Re:Why I'm still using Python by bobbylarrybobby on Friday December 30, 2022 @09:48PM (#34192985)
I think the desire for batteries to be included is a holdover from the time of really really bad (or no) package managers. With a good package manager it doesn't matter if your batteries come included or not. It also provides a way for packages to battle it out external to the language -- compare Python’s `urllib` and `requests`.
Re:Why I'm still using Python by galangalalgol on Saturday December 31, 2022 @01:00AM (#34194044)
The curation of the batteries is the value add. Which grpc package do I want? Which json? Which random number generator? Finding which rust crate is the norm for any given thing, is a task in itself. Then there is the security aspect. Pulling in hundreds of repos with many authors each, is a security risk.
Re:Why I'm still using Python by tialaramex on Saturday December 31, 2022 @03:21AM (#34194653)
The curation you're relying on is probably not delivering what you hope. If you picked a Rust crate by looking at a SO answer from say 2020, you're probably getting a similar quality of "curation" in Python's standard libraries.

Not because the Python maintainers are intentionally doing a bad job, it's just that their mission isn't to substitute for your research. To them, "Does last year's Python script still work?" is always higher priority than "What's the best way to do it today?".

And what Python's security team decide constitutes a reasonable security fix may conflict pretty badly with what you need.

Re:Why I'm still using Python by ShredKazoo on Saturday December 31, 2022 @04:20AM (#34194888)
SO would disable a question of this type for being opinion-based.

I would assume the Python devs review the code for a package before including it in the standard lib, right? That seems like a pretty big deal, well beyond someone just telling you that they tried a package and it worked for them.

Re:Why I'm still using Python by adrianN on Saturday December 31, 2022 @05:18AM (#34195162)
"Does last year's code still work" is very important to almost all programmers. I wouldn't want to accidentally use a library that gets abandoned or deprecated a few months after I made it an integral part of my software. Being able to mostly stick to the standard lib makes this a lot easier.
Re:Why I'm still using Python by tialaramex on Saturday December 31, 2022 @11:47AM (#34198163)
That works for Rust's standard library, which won't abandon anything stable (stuff gets deprecated, but that just results in a build warning).

It doesn't make as much sense for Python's standard library where you'd need to be paying attention to goings-on in the community to know if one of the batteries that are included has been judged expired and will be removed.

Re:Why I'm still using Python by dchftcs on Saturday December 31, 2022 @01:23AM (#34194174)
This argument is also a holdover from a time where supply chain attacks weren't considered a serious threat.
Re:Why I'm still using Python by porcoda on Saturday December 31, 2022 @01:36AM (#34194235)
Exactly. The single biggest hurdle for me using some open source tools written with newer languages is the ridiculous dependency surface due to a preference for package repositories over curated “batteries included” bundled libraries. I work in an environment that is hyper sensitive to supply chain integrity, which means a lot of languages that have a culture of “use all the third party packages” are out for us.

Give me a batteries included standard library please - much easier to audit and track.

Re:Why I'm still using Python by bitwize on Saturday December 31, 2022 @09:56AM (#34196952)
Nearly every place I've worked, the supply chain attack problem has been solved or at least mitigated by using an Artifactory instance with a curated list of packages.