News for hackers. Stuff that matters.
Re:If AI writes your code, why use Python? by chickenman_98 on Monday May 11, 2026 @10:05PM (#48103343)
I think that’s sort of the selling point no? It’s really boring. It has like -10 keywords, compiles insanely fast, and has a concurrency model that’s easy to use and read. LLMs are great at using Go tooling to sanity check along the way. It’s easy to write shitty Go but it’s really pleasant to work with if you find those things compelling.
Re:If AI writes your code, why use Python? by khimaros on Monday May 11, 2026 @10:12PM (#48103388)
don't you worry about garbage collection?
Re:If AI writes your code, why use Python? by camdenreslink on Monday May 11, 2026 @10:15PM (#48103400)
If you were using Python, then probably not.
Re:If AI writes your code, why use Python? by bensyverson on Monday May 11, 2026 @11:09PM (#48103740)
haha exactly. I’m coming from Swift, and I don’t want to go back to manually releasing objects like I used to in ObjC, let alone reason about lifetimes.
Re:If AI writes your code, why use Python? by mellow_observer on Tuesday May 12, 2026 @02:42AM (#48104995)
What's the big issue with GC nowadays? It has mattered to me exactly once in decades and it was still manageable anyway by using a more low level style in a hot loop. I see very few usecases where GC actually matters and for those rare few cases it was not like you were using python beforehand anyway
Re:If AI writes your code, why use Python? by coldtea on Tuesday May 12, 2026 @03:40AM (#48105358)
Why the hell would he "worry about garbage collection"? That kind of thing is a cargo cult fear.

Garbage collection is not an issue for 99% of programs. And for those that it is, there are ways to mitigate the issue (e.g. there are extremely high performance trading system written in Java, where every last sub-millisecond counts).

Blanket fear of GC reminds me when new programmers learned about how assembly is lower level and can be faster, and wondered why everything is not written in assembly.