r/programming • • Aug 25 '26

EVE Online: The Move to Python 3 Begins!

https://www.eveonline.com/news/view/the-move-to-python-3-begins
804 Upvotes

290 comments sorted by

View all comments

Show parent comment

407

u/PlasmaChroma Aug 25 '26

Actually I think it's some other abomination called Stackless Python.

238

u/output_broadcast Aug 25 '26

Yes, the blog post says as much. Apparently Python 3 only got fast enough with the new GC.

56

u/zzkj Aug 25 '26

I apologise for being lazy but which release brought the new GC?

92

u/output_broadcast Aug 25 '26

3.14 but it has since been removed due to high memory consumption.

83

u/skjall Aug 25 '26

It's an opt-in flag that's so bad 3.15 is removing it, provided we're talking about the same thing. It will be back, but it certainly needed longer in the oven.

38

u/output_broadcast Aug 25 '26 edited Aug 25 '26

I must've misread it then. I thought 3.14.5 was the one that removed it.

51

u/thomas_m_k Aug 25 '26

You are correct. But it's of course also removed from 3.15.

33

u/AndreasVesalius Aug 25 '26

I used to remove garbage collection

I mean, I still do. But I also used to

10

u/ChezMere Aug 25 '26

So... are they upgrading to Python 3.14.4 despite the issues with it then?

28

u/WJMazepas Aug 25 '26

The issues are high memory comsumption and people are working to improve this for a future 3.16 release IIRC

They can start working on 3.14, use it knowing about the high memory and then upgrade to 3.16 for lower memory usage

4

u/burtmacklin15 Aug 25 '26

Is that because newer versions of Python 3 generally don't necessarily ruin the syntax of code written under older versions of Python 3?

Like newer releases are mainly for improving performance, adding features, and increasing efficiency, right?

3

u/tecedu Aug 25 '26

Kinda, newer versions prefer not to break things but things that you werent doing in older versions become non preferrable like things like typing or T-strings.

And also the move to free threaded has basically made 60% of the libraries incompatible, but since they are starting from 3.14 it wouldnt matter much.

Plus nowadays with py03 and rust, you can write libraries in rust and just import in python

1

u/RogiervandenBerg Sep 03 '26

An update of 2 minor versions should not bring too many issues with it

16

u/EC36339 Aug 25 '26

Maybe it wasn't actually collecting garbage.

Might explain why it was faster.

Just trying to help here.

1

u/zzkj Aug 25 '26

Thanks!

12

u/EC36339 Aug 25 '26

Wasn't the problem that Stackless was supposed to solve the GIL?

Or is Stackless about coroutines, which you can do in vanilla Python, in a clumsy way, with yield... (a generator is basically a coroutine for poor people)

EDIT: Sorry, I forgot this is r/programming, not r/eve.

10

u/Brian Aug 25 '26

Generators can implement full coroutines, ever since they were extended back in python 2.5 to support sending values in as well as just generating. Indeed, that's basically how python's async is implemented: an async function is just a coroutine yielding awaitable objects back to the loop.

8

u/bestsrsfaceever Aug 25 '26

It's not that 3.14 is the first release fast enough they just realize the danger of letting themselves fall so far behind. They have basically no support and have to maintain everything themselves. Upgrading provides a chance to catch up to the community

3

u/youcangotohellgoto Aug 26 '26

Why wait till now, though? End of life for 2.7 was well broadcast, they could have preemptively upgraded... a decade ago?

5

u/bestsrsfaceever Aug 26 '26

They held on to stackless as long as possible, they were literally sponsoring it's development. I'm gonna guess anybody interested in the project moved on, it was shut down and they didn't want to be the sole maintainers

3

u/TryingT0Wr1t3 Aug 25 '26

I am sure the improvements are good and it will get there but I am a bit sad that until around Python 3.8 you could sit down to read it’s C implementation and pretty much understand it and the few things that were a little more complicated had really good recorded presentations from different events. While I am sure it is getting faster and better in some metrics it’s a bit sad that it’s much more complex and hard to grasp its details nowadays.

34

u/sigma914 Aug 25 '26

Yeh, that's why it was so massively concurrent for it's time, back before python had it's own generators there were the various out of tree forks that allowed async programming. The stackless transform is a neat hack that made it possible in relatively vanilla python

3

u/TopFloorApartment Aug 25 '26

I remember when they introduced stackless python in eve. It was like they flipped a magic switch and everything ran so much more smoothly 

2

u/superxpro12 Aug 26 '26

Greenlets. It's an unholy threaded python implementation from like 20 years ago to work around the old GIL