News for hackers. Stuff that matters.
Re:Python 3.11 vs 3.10 performance by zitterbewegung on Wednesday July 06, 2022 @11:58AM (#32002846)
Meta has an active port to optimize instagram to make it faster and they just open sourced it to have optimizations merged back into CPython

When you have so many large companies with a vested interest in optimization I believe that Python can become faster by doing realistic and targeted optimizations . The other strategies to optimize didn’t work at all or just served internal problems at large companies .

Re:Python 3.11 vs 3.10 performance by gostsamo on Wednesday July 06, 2022 @12:07PM (#32002964)
O, I agree. As I said, when python and its uses scaled, it became quite necessary to make it fast. I like that it will be fast as well and I am not happy that it is slow at the moment. My point is that there are reasons why it was not optimized in the beginning and why this process of optimizations has started now.
Re:Python 3.11 vs 3.10 performance by zitterbewegung on Wednesday July 06, 2022 @12:36PM (#32003388)
Back when Python was started there was really C or C++ for optimized programs and scripting languages like Python and Perl. But since Python had the ability for C Extensions it allowed it to bypass those problems. Since Python was easy to learn both web developers and scientists to learn. Then financial organizations started to get interested and that’s really how Python cemented itself.

What exactly do you do with Python that slows you down ?

Re:Python 3.11 vs 3.10 performance by lanstin on Wednesday July 06, 2022 @02:27PM (#32004873)
I worked on Python almost exclusively for maybe five years. Then I tried go. Each time I wrote a go program, I am giddy with excitement at how fast my first attempt is, scaling so smoothly with the number of cores. I also wrote a lot of fairly performant C in the 90s, so I know what computers can do in a second.

I still use Python for cases when dev time is more important than execution time (which is rarer now that I'm working adjacent to "big data") or when I'm doing things like writing python to close gaps in the various arrays of web apps provided for navigating the corporate work flow, and if I went as fast as a 64 core box let me, we'd have some outages in corp github or artifactory or the like, so I just do it one slow thing at a time on 1 core and wait for the results. Maybe multiprocessing with 10 process worker pool once I'm somewhat confident in the back end system I am talking to.

(edit: removed my normal email signoff)

Re:Python 3.11 vs 3.10 performance by cercatrova on Wednesday July 06, 2022 @02:47PM (#32005142)
You should try Nim, it's Python like but compiled so it's as far as C. These days if I want to script something (and don't need Python specific libraries like pandas) I use Nim.
Re:Python 3.11 vs 3.10 performance by bbkane on Wednesday July 06, 2022 @07:09PM (#32008029)
He's already using Go. Does Nim provide any "killer features" that Go doesn't?
Re:Python 3.11 vs 3.10 performance by cercatrova on Wednesday July 06, 2022 @07:12PM (#32008050)
Well, good generics and sane error handling, for two examples.
Re:Python 3.11 vs 3.10 performance by bbkane on Wednesday July 06, 2022 @10:03PM (#32009163)
Go recently got pretty decent generics. I'm with you on the error handling though. At least it's explicit. Go also has a plethora of really useful libraries, and that along with good editor and build tooling is probably the real draw of the language for me.
Re:Python 3.11 vs 3.10 performance by pjmlp on Thursday July 07, 2022 @06:26AM (#32012165)
Version 1.0 generics, still better than nothing, though.
Re:Python 3.11 vs 3.10 performance by zitterbewegung on Wednesday July 06, 2022 @04:08PM (#32006134)
Okay you are using Python gluing two web services together which is what you deep acceptable that Python can do but can you just comment on the things that you don't use Python anymore due to it being slow?

Don't take this the wrong way but I think you could be more specific. Are you saying that similar to Go it should be just faster in general?

Re:Python 3.11 vs 3.10 performance by pjmlp on Thursday July 07, 2022 @06:25AM (#32012157)
Scheme and Lisp already existed.