News for hackers. Stuff that matters.
Re:gh-116167: Allow disabling the GIL by bmitc on Monday March 11, 2024 @03:29PM (#39672324)
It isn't thoughtless. I'm working in Python after having come from more designed languages, and concurrency in Python is an absolute nightmare. It feels like using a language from the 60s. An effectively single threaded language in 2024! That's really astonishing.
Re:gh-116167: Allow disabling the GIL by nextlevelwizard on Monday March 11, 2024 @04:55PM (#39673137)
most software doesnt need multi threading. most times people cry about pythons performance then write trivial shit programs that take milliseconds to run in python as well
Re:gh-116167: Allow disabling the GIL by bmitc on Monday March 11, 2024 @05:22PM (#39673380)
Nearly every time I've interactive with Python, its execution speed is absolutely an issue.
Re:gh-116167: Allow disabling the GIL by nextlevelwizard on Tuesday March 12, 2024 @02:41AM (#39676774)
Please do give an example.

I see is people crying how python is slow and then use a proper fast programming language to write code that gets executed so few times that even if python was 100x slower it wouldn't matter or the program is so trivial that python's speed definitely isn't an issue.

I have even sometimes seen people stop using a tool when they find out they were written in python - now all of a sudden they are unusably slow. Then they try to justify it by writing some loop in their favourite proper fast language and tell me how fast that tight loop is or they claim that some function is X times faster, but when I actually compile it and run something like hyperfine on it and python version the difference is hardly ever X since there is already so much more over head in a real world.

Re:gh-116167: Allow disabling the GIL by cwalv on Tuesday March 12, 2024 @01:46AM (#39676541)
Python being slow, and working to speed python programs up, helped me immensely to build a mental model for what makes programs slow. After learning C in school, when I first learned how python was implemented, I was shocked that it was even usable.
Re:gh-116167: Allow disabling the GIL by scubbo on Monday March 11, 2024 @06:22PM (#39673899)
If your criticism isn't thoughtless, then that's not what I'm complaining about. Specifically, I'm annoyed about people who _just_ say "Python isn't fast enough, therefore it's not suitable to our use-case", when their use-case doesn't require significant speed or concurrency. If you thoughtfully discount Python as being unsuitable for a use-case that it's _actually_ unsuitable for, then good luck to you!
Re:gh-116167: Allow disabling the GIL by mlyle on Monday March 11, 2024 @08:39PM (#39674812)
Python has been too often just a -bit- too slow for my use cases; the ability to throw a few cores at problems more easily is not going to eliminate this criticism from me but it's sure going to diminish it by a large factor.