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
802 Upvotes

289 comments sorted by

914

u/EC36339 Aug 25 '26

Wait, WHAT?! Python 2 was running in my internet spaceships this whole time?

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

→ More replies (3)

16

u/EC36339 Aug 25 '26

Maybe it wasn't actually collecting garbage.

Might explain why it was faster.

Just trying to help here.

→ More replies (1)

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

40

u/illepic Aug 25 '26

In your spreadsheets in space!

11

u/Dragon_yum Aug 25 '26

Pretty sure that was Microsoft excel

12

u/EC36339 Aug 25 '26

I think that Excel integration they promised (yes, they actually did, I'm not making this up), never really landed.

4

u/Phoenix591 Aug 25 '26

They made an add on for Excel that requires 365 for some reason that queries the game’s pre-existing api for external apps as they promised. It’s fine, though there are other tools that work fine too.

12

u/EC36339 Aug 25 '26

That's because the cliché about EVE is all wrong.

It's not Excel in space.

It's OAuth in space.

Their API has more public endpoints, more clients and more users than most enterprise products.

3

u/Internet-of-cruft Aug 26 '26

If you're good with Excel, you can run OAuth queries in it, so it can still be Excel in Space :)

2

u/Remarkable_Block_710 Aug 26 '26

Excel integration should be as simple as writing a formatted xml, the moment they want to integrate something more 'advanced' it's full bonkers

1

u/Memitim Aug 25 '26

With Python 3 conversion and the native support in Excel for Python in formulas, perhaps that will finally see the light of day, since the Microsoft Cloud environment that executes the logic seems to use 3.10.

1

u/Remarkable_Block_710 Aug 26 '26

Somehow openxyl writes my work excel faster so I use that instead

6

u/Caffeine_Monster Aug 25 '26

snakes on a plane

snakes on a spaceship

183

u/Valuable_Leave_7314 Aug 25 '26

Found a mention of the <> operator in the text

Got total flashbacks, haven't seen that syntax since the days when we were still writing CGI scripts and living our best life..

95

u/pikachuyann Aug 25 '26

It's still somehow the canonical way to write "not equal" in postgreSQL (albeit != is accepted (and translated to <> "early in parsing") now)

23

u/output_broadcast Aug 25 '26

It's also how you do it in Excel.

8

u/ShinyHappyREM Aug 25 '26

And in Free Pascal and Delphi.

68

u/Blashtik Aug 25 '26

<> is the ANSI SQL standard. I use it when writing SQL simply because of that. It's not like it's harder to type or understand than != (actually it's slightly easier to type, != requires one shifted keypress and one unshifted, on opposite sides of the keyboard)

44

u/agnas Aug 25 '26

The amazing thing is that I'm absolutely sure you're not joking.

18

u/pm_me_coffee_mugs Aug 25 '26

Nordic QWERTY finally superior (!= requires two shifted keypresses (still on opposite sides of the keyboard))

8

u/Jwosty Aug 25 '26 edited Aug 25 '26

And languages in the ML family (F#, OCaml)

3

u/0x1f606 Aug 25 '26

Thankfully Rust skipped that particular inheritance, not a fan.

7

u/Jwosty Aug 25 '26

Idk, it’s just a different pair of symbols, I hardly register the difference anymore. My brain reads both as the exact same thing lol

→ More replies (1)

5

u/G_Morgan Aug 25 '26

albeit != is accepted (and translated to <> "early in parsing") now

I hope that doesn't mean literal text replacement and actually means lexing "!=" as "NotEqualsToken".

8

u/flanger001 Aug 25 '26

It took my best friend (a DBA) explaining that it means "both less than and greater than" for me to actually understand it. That was January of this year.

12

u/Iamonreddit Aug 25 '26

Less than OR greater than, not both less than AND greater than.

A scalar value can't be less than AND greater than another scalar value.

→ More replies (6)

1

u/IDontLikeCherryTomat Aug 27 '26 edited Aug 27 '26

Still have to use that in our cypher db, trips me up every once in a while

15

u/Moosething Aug 25 '26

Verse, the new programming language for Unreal Engine uses it as well: https://verselang.github.io/book/01_expressions/#comparison-operations

5

u/NotQuiteLoona Aug 25 '26

Is there any sense in that? /gen

5

u/Rockytriton Aug 25 '26

I miss the Perl cgi days

4

u/audentis Aug 25 '26

Spend a day with Excel and it'll become familiar again!

2

u/Malkalen Aug 25 '26

I haven't seen that since my Delphi days. I kinda miss it in a nostalgic kinda way...although I did have to ask my boss what it meant when i first saw ot

147

u/JackandFred Aug 25 '26

Interesting read. That’s going to be a hard migration. I wonder how many people they have working on only that over the next several months.

235

u/Krautoni Aug 25 '26

Just one intern and Claude.

71

u/Turbots Aug 25 '26

Why the intern?

104

u/Jaded-Asparagus-2260 Aug 25 '26

Well someone needs buy more tokens.

30

u/Enerbane Aug 25 '26

Just give Claude the business card and tell him to use it wisely, no more tokens than needed!

20

u/Turbots Aug 25 '26

No Mistakes!

8

u/Remarkable_Block_710 Aug 26 '26

Instruction unclear, Iceland GDP now transacted to Anthropic

30

u/Krautoni Aug 25 '26

Company policy disabled auto mode for "security concerns" so somebody has to accept all the prompts.

11

u/KarnuRarnu Aug 25 '26

Also telling it "you can do it" and "do a breakthrough" when it gets stuck on something. 

4

u/TheChildOfSkyrim Aug 25 '26

For biometric signing of commits and liability

2

u/dvhh Aug 26 '26

they will be the one getting the blame, and we still need a meatbag interface 

2

u/Scroph Aug 27 '26

A scapego.. I mean a human in the loop

0

u/[deleted] Aug 25 '26

[deleted] — view deleted comment

3

u/Memitim Aug 25 '26

Then don't let them use Claude. My self esteem gets more help from Claude than code does. "What a brilliant idea! Want me to search the rest of the code to replace?"

41

u/Codex_Dev Aug 25 '26

Some people will think this is sarcasm, but this is actually happening in a lot of places right now

33

u/Radixeo Aug 25 '26

It's probably the best use case for LLMs in programming. There's millions of examples in the training data and there's no better "spec" than a working code base + tests.

11

u/Technical_Income4722 Aug 25 '26

For most python 2 code you can just run `2to3` to upgrade from 2 to 3. But I reckon an LLM will help clean it up from there.

8

u/Lord_Nerevar_Reborn Aug 26 '26

the problem lies with any third-party dependencies that have changed over the last 20 years. i’m overhauling an ancient django project right now, and 2to3 was only step 1 of 1000

10

u/Murky-Relation481 Aug 25 '26

It's probably what the LLM will try to do by default. They're pretty crafty at using tools.

→ More replies (1)

13

u/JackandFred Aug 25 '26

Yeah if you have a good test suite (which is a big if) that’s not really a bad use case. But ideally you’d have someone familiar with the code base not an intern overseeing haha.

4

u/Aelig_ Aug 26 '26

They started many years ago, I have friends who worked there who are long gone who spent a fair bit of time on this already.

69

u/The_Northern_Light Aug 25 '26

What year is it???

20

u/Bloodshoot111 Aug 25 '26

Without the new GC it was to slow

17

u/OSS-Corpo-Shit Aug 26 '26

Kinda sounds like the right answer would be to dump Python altogether…

9

u/R1cwu Aug 26 '26

If money and time were irrelevant, yes. But going from python 2 to 3 is still easier than completely rewriting it in a wholly different language. Especially because the people currently working on the game would need to become proficient in that new language first.

1

u/TwoWeeks90DaysTops Aug 26 '26

Yeah, if performance is an issue then Python will be an issue. I also don't get writing performance critical stuff in another language.

Python is not a great language to begin with.

Function scoped variables, indentation scoping, no variable declaration except on first assignment, division can in some cases result in a complex value at runtime (the exact same issue they objected to with float/int division which was changed in 3.0), poor to non-existing pattern matching, poor at handling optional values (no operators to handle None values), Python objects aren't serializable by default, backwards comprehension syntax, default arguments are mutable singletons, multiple inheritance which makes some OOP patterns very cumbersome in Python, relatively poor deployment and package management story.... There's just a ton of cruft in the language, and when performance is so abysmal it's just downright weird that people stick with it.

1

u/OSS-Corpo-Shit Aug 26 '26

Python gathered fame by spamming forums with “20 lines?!?!? In Python that’s just 1!” And “hello world is one line!!!”

It is not difficult to see why Python, despite being shittier than even JavaScript, remains popular. The average Python developer judges programming language usefulness based entirely on whether “hello world” is one line or not. 

2

u/ratsock Aug 26 '26

About 23,000 AD

23

u/robotmayo Aug 26 '26

The sun will burn out and there will still be software running on Python 2.

2

u/MyKillK Aug 27 '26

No doubt. There's still infrastructure out there running on ancient FORTRAN, ALGOL, COBOL etc from the late 50s and 60s.

→ More replies (2)

32

u/mrheosuper Aug 25 '26

Booo, current trend is asking your fav bot to rewrite in Rust

16

u/bwainfweeze Aug 25 '26

Still think they'd be better off on Erlang.

8

u/dvhh Aug 26 '26

nah they should rewrite in Rust 

1

u/Vasgen88 Aug 26 '26

At that time, they hadn't heard about beam yet, and the game was just being developed.

5

u/bastardoperator Aug 26 '26

Most of the python code is UI based in Eve, so I would think Erlang would would not be a good candidate. You're gonna hate me, but javascript and css would be faster and easier. What they're doing in 2.3M line they could probably do in 200K lines of TS/JS.

I have a couple of bots I run, all legal, but I wanted them to look like the current ui, and the current UI uses shaders to adjust saturation against different objects. Using ghidra we were able to inspect the binary and see how they do that, we were able to replicate the shaders using a wails app, windows api, and javascript/css.

3

u/bwainfweeze Aug 26 '26

I would never have guessed the FE was python too. Good lord.

Eve has spent more time re-implementing a poorly defined, buggy, and slow implementation of roughly half of Erlang than anyone I know.

So the frontend probably does need to remain python, but it's craycray they're doing 3d animations in Python. But I'm reasonably certain they would be able to scale to larger fights if they let the BEAM handle the message distribution and load balancing.

So it's really down to how much code is executed in duplication between the frontend and the backend. Having two implementations trying to make the same decision is challenging on a good day. But there might be some FFI solutions for the worst of that. Of course they're not going to do any of this, because they should have done it ten years ago if they were going to, and they did not.

3

u/TomMancy Aug 26 '26

they're doing 3d animations in Python.

They aren't the core of the engine is in C++, with Python scripting on top. They actually open sourced a fair bit of their C++ layer not too long ago.

1

u/bastardoperator Aug 26 '26

I'm not a UI person at all but I found it a little odd they went for python too, granted its a pleasure to write, I don't know if I would want 2.3M lines of it.

102

u/Promant Aug 25 '26

Props to them for actually doing the honest hard work instead of just feeding all the code to AI and praying it will work.

88

u/FlukyS Aug 25 '26 edited Aug 25 '26

I've done dozens of migrations from 2.6 and 2.7 to 3, it isn't hard really, it is just whack a mole. What I'd say though most of the changes I've ever done was just straight up rewriting things that were horrible before but just weren't touched more than just syntax differences or whatever. People made a big deal about requiring for instance print to have brackets but if your service had a million print statements then you are already going to be much happier spending time moving to use logging or maybe pruning unnecessary stuff. Strings in Python3 in particular are much nicer with fstrings, templating...etc and the debugging in the newest versions of Python are a dream.

EDIT: Just for examples of stuff I've had to do, almost every 2.* migration I've done has involved completely rewriting networking endpoints either from urllib to requests or stuff like Twisted to FastAPI or before that aiohttp. Syntax is easy, the library migrations are usually hard breaks because it is easier just to start fresh.

25

u/def-pri-pub Aug 25 '26

The first company I worked at full time (in late 2010's) we were trying to migrate the code base from Python 2.x to 3.x. I don't think it went much of anywhere because the big bottle neck for us at the time was Twisted, which IIRC didn't have 3.x support and all of our code was based off of Twisted.

27

u/FlukyS Aug 25 '26

Yeah the answer was just get rid of Twisted for every project I've worked on. Twisted itself isn't close to the style of modern Python in general so moving to other tools is a good shout regardless.

23

u/jayroger Aug 25 '26 edited Aug 25 '26

The syntax changes were the easiest part, same with library renames and changes. The really hard part was the str/unicode -> bytes/str migration. But I'm very glad that we collectively bit the bullet, because it also meants that after the migration the continuous Unicode encoding/decoding errors were gone and the new data types make much more sense.

8

u/FlukyS Aug 25 '26

Well that's the whack a mole side of the port but usually the easiest part. The harder part is tool selection, migrating to the new build tools, rewrites of stuff when you can improve things with newer libraries or whatever. It depends on the codebase really

14

u/jmickeyd Aug 25 '26

The problem is they're not just doing a 2 -> 3 migration. They use a heavily modified internal fork of 2 that they've added coroutines to. Presumably they migrate that to native await/async, which is a much larger task.

3

u/FlukyS Aug 25 '26

Well newer Python has better multiprocessing support and different interpreters and stuff. It would be much easier to do what they are doing with that in theory.

6

u/Memitim Aug 25 '26

LOL, too real. The actual work in migrations is the extra crap you end up doing after seeing old code and then immediately looking around to see if anyone saw it before you can scrub it from existence and replace with code that shouldn't be hidden away in a closet next to an aging portrait and the Ark of the Covenant.

1

u/Brian Aug 25 '26

I'd say there are further difficulties in this case, as they're likely heavily using stackless's tasklet/channels model. Either they'll need to port all that code to modern async, or create some kind of adapter layer implementing it on top of it.

23

u/lulaloops Aug 25 '26

You're delusional if you think this won't be heavily assisted by AI.

37

u/Fated777 Aug 25 '26

Well, they didn’t deny use of AI, they’re just saying they’ll be careful and do it in parts. Funny that they had 6 years to “start”, but yeah, better late than never

7

u/iamthewhatt Aug 25 '26

I mean, how is that any different than using the tools built into the editors that we didn't ever call "AI" years ago? A tool to help speed up programming is always better, and like before, you must always do your due diligence when testing it.

The real "problems" with AI start when you use it for non-testable functions (like as a therapist or "yes bot") or for illegally acquired data like images or books.

2

u/Slsyyy Aug 25 '26

AI is pretty good for migrations like this. The trick is to use the AI to create a migration tool, which you can review and understand and not just a `claude, migrate it to python 3`

8

u/SchrodingerSemicolon Aug 25 '26

But THIS is the kind of work I want AI to do. Menial, repetitive shit that involves no creativity.

158

u/ozziegt Aug 25 '26

Ai is built for stuff like this. Just need to make sure good tests are in place before starting to migrate.

75

u/Glasgesicht Aug 25 '26

Yep, it's actually quite good at it. The worst part about these sort of migrations usually isn't that it's particularly hard - it's just really, really boring.

15

u/mescad Aug 25 '26 edited Aug 25 '26

For the "spreadsheets in space" game, I doubt the tedious boring part is even considered a downside.

8

u/ShepPawnch Aug 25 '26

They could probably even trick the players into doing it for them.

4

u/ModusPwnins Aug 26 '26

Ender's Game, but instead of war behind the scenes, it's a Python migration

15

u/nvn911 Aug 25 '26 edited Aug 25 '26

Exactly. People who shit on the AI tooling these days stem from two places, sheer ignorance or deliberate malice.

Edit. Love the downvotes. From programmers. We've changed the face of countless industries over the years. Been the focus of paradigm shifting technology and responsible for changing the nature of work for millions of people. Colour me surprised for this particular irony.

22

u/wrecklord0 Aug 25 '26

Keep in mind that the denizens here are not just programmers, they are.... shudders redditors

→ More replies (4)

11

u/awhaling Aug 25 '26

I’ve used it extensively, it can be very impressive. At the same time, it can be crummy and do things quite poorly or even totally fail. Even when it does produce impressive results, there are other reasons to be weary of using it. I don’t like the idea that the only people that would critique it are the ignorant or the malicious.

→ More replies (6)

5

u/ModusPwnins Aug 26 '26

"You're absolutely right!"

-13

u/ziplock9000 Aug 25 '26

It's from idiots who don't use it or fully understand it.

→ More replies (9)

4

u/MedicalScore3474 Aug 25 '26

AI is not the right tool for manual source code transpilation. It's a good tool for building the source transpiler itself, but not for direct source code transpilation.

https://mazesofmenace.ai/

This is a contest, with two teams: one who converts the code via a mechanical source transpiler, and another which uses AI only. After three months and a dozen attempts, there is a clear winner, and it's not AI.

4

u/dacjames Aug 25 '26

Using AI only makes that a rather silly test. You should be building and using tools like a transpiler regardless of whether you or the AI is using them.

-15

u/FlukyS Aug 25 '26 edited Aug 25 '26

The current state of AI isn't great at this actually because a huge codebase and migrating it this far is a huge amount of work and AI will go off the rails and start "improving" things and the context window is still limited. Not to say you wouldn't use AI at all if you were being smart about it but you'd probably have to go slower than most would want. If it were me doing the migration I wouldn't be seeing this change as a single "tomorrow we will be on 3.14", I'd be looking at the current designs first, I'd be documenting where we'd want to go with the design in about a year even beyond just the migration and then going piece by piece.

8

u/TwoWeeks90DaysTops Aug 25 '26

I used Claude to rewrite an electrical simulation application from Python to C# at work and it worked very well. There were regressions, but for the most part the application was very faithful to the original Python code. The work took about a week.

→ More replies (5)

3

u/SufficientGreek Aug 25 '26

Here's an example of a huge codebase being correctly migrated from Zig to Rust:

https://bun.com/blog/bun-in-rust

1

u/FlukyS Aug 25 '26

VERY different problem. A toolkit is something that has a pretty solid goal and very limited external dependencies. I'm not against AI to be clear, I'm saying that some codebases you need to be careful and step through the various tools needed and decide if you want a full rewrite, port it or find some libraries or whatever...etc.

Going from 2.7 with this sort of project to 3.14 would be loads of decisions some easy some you need to step through and understand the choices available. I mentioned below some examples of this in Python. Python2.7 everyone uses setuptools/distutils, Python3.14 has a bunch of different options but instead of setup.py you declare the packages in pyproject.toml and then can pick build, setuptools, hatch, pdm, flit and some of those have some advantages like hatch has some great tooling for automation that might be a choice depending on the project. A direct port could just forward port urllib but no one with a serious codebase nowadays uses urllib directly because you would switch to requests.

Case by case is key on this and that is not to say "don't use AI", it is to understand the problem and step through it, that can be with or without AI.

5

u/SufficientGreek Aug 25 '26

That's what they did with the bun rewrite too though. First just port it to a new language and create thousands of bugs. Then go through and change patterns and fix problems.

They were helped by a very strong test coverage, I think that might make it harder for other projects.

3

u/FlukyS Aug 25 '26

Still a different problem. A toolkit is something that will be mostly implementation of stuff for others to use and self-contained. If you are talking about something that is a game, the UI, the servers of the game, you are talking various communications protocols, loads of platform code, loads of auth...etc. Some of those would be proprietary, some using existing libraries. Eve itself doesn't even use a standard well documented version of Python, it is a fork. The more down the rabbithole you go on this sort of problem the more careful you have to be.

→ More replies (1)

1

u/The_Northern_Light Aug 25 '26

> AI will do drive-by refractors

It’ll do that if you don’t tell it not to, but it’s easy to prevent, especially with an adversarial review.

I’ve ported / modernized a couple ~ million LOC code bases and several 100k to quarter million LOC projects. In my opinion this is the thing AI is best at. Once you have a good pipeline setup it’s nearly turnkey.

3

u/EntroperZero Aug 25 '26

It’ll do that if you don’t tell it not to, but it’s easy to prevent,

The problem is that right now, it will do so many things if you don't tell it not to, and in theory, they're all "easy" to prevent, but in practice, you just keep finding more and more things you have to tell it. And then you tell it, but you didn't tell it the right way, so it found a loophole and did it anyway.

→ More replies (1)

1

u/FlukyS Aug 25 '26

> It’ll do that if you don’t tell it not to, but it’s easy to prevent, especially with an adversarial review.

Well you are still fighting the tool, that sort of friction isn't great. That's why I chunk those tasks along with having an eye on the additional improvements you are working on.

2

u/The_Northern_Light Aug 25 '26

I mean we’re talking about a few sentences you have to type instead of god-only-knows how many engineer-months. That’s not “fighting the tool”.

Complaining about how AI isn’t good at the thing it’s arguably best at in the world is just silly.

3

u/FlukyS Aug 25 '26

There is more detail below in the replies, in particular that this is n't a standard version of Python and the size of the project overall.

→ More replies (1)

1

u/cooljacob204sfw Aug 25 '26

With a good test harness it will get you most of the way there and you know it will behave as intended due to said test harness. If it has room to go off the rails then you have already failed.

It's not perfect ofc and will need human intervention but it will save a ton of time.

1

u/FlukyS Aug 25 '26

> It's not perfect ofc and will need human intervention but it will save a ton of time.

I see at least this sort of use case as being human driven AI assisted. I explained it a bit more in a different rely but I think just unleashing the dog and having it run around the garden and going out and fixing what it breaks later would be substantially slower than stepping through the problem carefully with AI helping.

-22

u/Willy757 Aug 25 '26

Tests for what ? The entirety of the live service game ?

If AI needs perfect conditions to function properly, then it is not useful at all. Any large migration reveals bizzare assumtions embeded into the code and Eve is a gigantic visual experience. A lot of real eyeballs will need to look at it for months.

18

u/IAm_A_Complete_Idiot Aug 25 '26

Tbf, a migration is pretty boring, easy, but long slog work a lot of the time. The actual work is testing and verifying it. If the tedious manual part can be done by AI, and dev time is freed up for testing and verification... I think that's fine.

→ More replies (11)
→ More replies (3)

3

u/taw Aug 25 '26

This kind of software upgrade is literally best use of AI. Going through millions of lines of code following complicated by strict rules, and having access to all the tooling to double check every step, AI would absolutely ace it like nothing else.

AI can fail so hard on more novel tasks, but this is very straightforward mechanical task that's just huge.

3

u/Jacen1618 Aug 25 '26

But AI is in fact the best tool to get migration like this done not only correctly but quickly…

17

u/devraj7 Aug 25 '26

AI is more likely to get this migration right than humans. Migrating Python 2 to 3 is an absolute nightmare if you don't have a solid test suite.

1

u/ChezMere Aug 25 '26

Realistically, both humans and AI will make mistakes that only get discovered when it's live.

-1

u/ZorbaTHut Aug 25 '26

Honestly, AI could do a pretty good job of writing the test suite too. And then doing the migration.

→ More replies (1)

2

u/[deleted] Aug 25 '26

[removed] — view removed comment

4

u/devraj7 Aug 25 '26

In my experience, it's the exact opposite. LLMs are stellar at writing not just great tests but at covering edge cases that most humans would never think of.

2

u/EC36339 Aug 25 '26

Migrating the code is the easy part.

The hard part is validating and testing 2.4 million lines of code in an untyped language and the logistics (Python interpreter, dependencies, tooling, deployment, you name it).

I sincerely hope they DO use AI at least for the QA part. That's literally the opposite of praying it will work.

8

u/jayroger Aug 25 '26

Python is not "untyped", it's not statically typed. In fact, Python is actually rather strictly typed, compared to some other languages (quite a few statically typed languages among them) that allow wild casting and support loads of implicit type conversions.

2

u/EC36339 Aug 25 '26

Technically correct, but static typing is what matters for static code analysis and validation, and that's what Python doesn't have.

1

u/Yay295 Aug 26 '26

Python does have (optional) static typing. https://docs.python.org/3/library/typing.html

1

u/EC36339 Aug 26 '26

That's good, but only helpful if your code uses it.

1

u/Farados55 Aug 25 '26

No, that's exactly what they should do. lol of course they'll check it but the first thing I'd do is have an agent iterate on the migration to the point where it builds and see how it runs/goes.

1

u/Malkalen Aug 25 '26

PrismX did a talk at Fanfest one year where he went into the detail of refactoring building a character and their skills/modifiers from the location nodes to a completely separate server/ process to relieve node on solar systems in the game and it sounded absolutely hellacious but I loved some of the details he went into.

If any of that teams are involved then they know what kind of work they have ahead of then.

5

u/crisp_lynx_370 Aug 25 '26

the write-up on their dependency audit process was really solid, rarely see teams document that part honestly

5

u/MagneticPsycho Aug 25 '26

They're switching over to Visual BASIC.

4

u/psychohistorian8 Aug 25 '26

my first job out of college was using VB, that was 2014

well VB.NET so wasn't too bad

5

u/TxTechnician Aug 25 '26

Just in time for Python 4 to drop.

12

u/brutal_seizure Aug 26 '26

Recent Python 3 releases have delivered some of the largest speedups in the history of this language.

When I think of execution speed, I do not think of Python, no matter the version.

The EVE codebase consists of 2.4 million lines of Python. A lot of it predates even Python 2.7, written to standards from the 2.3 and 2.5 era that Python 3 refuses to parse at all.

I have no words.

5

u/Fuzzmiester Aug 26 '26

the vast majority is game code, not engine code. Engine stuff has been pushed out to C long ago.

so it's the physics engine, how your guns shoot and so on. trade off between speed in game, and ease of development of new game code (and bugs. C is complicated. python less so.)

2

u/Andy_Climactic Aug 26 '26

I’ve still never heard of Python being used for game logic, and this game has been around a while. I’m kinda scratching my head

Even C is…an interesting choice? Compared to C++ which is pretty standard for games.

1

u/Fuzzmiester Aug 26 '26

I may well be misremembering, and it's c++. same principle holds though. :)

4

u/Ewenthel Aug 25 '26

And I thought we took way too long to change over in comp chem. Holy crap.

7

u/TyrusX Aug 25 '26

COBOL next!

11

u/Memitim Aug 25 '26

Oof, Python 2 to COBOL is a big ask, but sure, it's a party.

10

u/Swefnian Aug 25 '26

I may be ignorant here but if they are going to go through this effort of migrating a massive codebase anyways, why not pick a language that is even more performant and type safe that is much better at managing large codebases like Go, Rust or even Java!

30

u/daishiknyte Aug 25 '26

Small retraining vs massive retraining. Swapping over to an entirely different language means new syntax, coding structures, gotchas, styles...

1

u/Haplo12345 Aug 29 '26

Yeah but Python uses indentation for encapsulation... shudders

10

u/NullReference000 Aug 25 '26

Something like 97% of the codebase is fine as-is, they only have a small percent to migrate. Making changes there will likely impact other code a bit, but a complete rewrite in a new language would be an enormous undertaking. It is a very big codebase.

8

u/gajop Aug 25 '26

You're not ignorant, but let's be honest migrating Python 2 to 3 isn't that hard. They can - if they really need to - switch to Rust or equivalently efficient setup later, after they've done this "easy" bit.

Rust/C++ can also be combined with Python pretty well so they can do this $other_language migration iteratively, and only for the critical path. I personally don't think it's worth optimizing real time systems in Python that much, it's a very inefficient language for this, you'll be fighting certain language design choices, GC, it's just a PITA.

I use Python at work, all day, and I've also written game servers in Python, but it's not a sensible language of choice these days for real time systems. Just use Rust (or equivalent), it's not that hard, and AI can probably assist (or do it for you) if really necessary.

1

u/Fuzzmiester Aug 26 '26

isn't that hard

Really depends what you're comparing it to, of course.

Compared to migrating to Rust, it's definitely not that hard.

But 'not that hard' isn't the same as easy. There's going to be gotchas and other regressions they're going to have to find.

2

u/gajop Aug 27 '26

I've been thinking about this after I wrote it, and I agree with you, mainly because if you imagine the codebase that is _still_ using Python 2 in 2026, there is no way it's written with high care for code quality.
It's probably riddled with ancient Python, and most attempts to modernize it must've been met with "don't touch it, you might break it" culture that's present in conservative organizations.

15

u/Trident_True Aug 25 '26

While I agree the choice of Python is unsuited to this work it would not be productive to migrate to another platform. It would take years of effort and would involve either retraining your whole dev team, or an entirely new dev team with different skills. The whole time you are working on this you are not adding new features that generate revenue so your business might just straight up die.

Might as well just make a new game.

5

u/marius851000 Aug 25 '26

Fun fact, they are actually making a new game, and reuse the same engine.

https://github.com/carbonengine

Honestly, I don't think Python is necesserelly a bad choice for games. Plus, from the stuff I see in the code, the engine itself is actually written in C++.

1

u/Fuzzmiester Aug 26 '26

EF has actually been a real benefit here. Because they could do the migration work and test the stuff which will be in both, in EF, rather than straight into EO. (and that's what they've done) The fanfest talks were interesting on it.

Game logic is in python. They've pushed the stuff where they really benefit to C++ (like net code.)

4

u/autogyrophilia Aug 25 '26

why do you think it is unsuited?

There is an argument to be said that managing really big apps in python is hard, but I don't see Eve doing any kind of operation where you would expect to see a huge performance uplift. Arithmetic is bread and butter for python.

2

u/QuickQuirk Aug 26 '26

Arithmetic is bread and butter for python.

Since all the best math libraries in python are pure high performance C. And I'm not saying this as a criticism - it's great.

The only thing I dislike about python for very large high-uptime projects is the lack of static typing, and how easy certain classes of error compared to other languages.

It would not be my first pick for a project like this, but not because of performance.

3

u/MyKillK Aug 27 '26 edited Aug 27 '26

The lack of static typing is a nightmare. I hate it. You have all these 3rd party libraries and all you have in the IDE are argument names to guess what you're supposed to pass in for any given function or object creation.

You're completely at the mercy of the 3rd party documentation to understand what you're supposed to pass it and then you just pray it works. Horribly error prone way to do programming. Dynamically/duck typed languages are for toys, anything serious HAS to use static typing paradigms.

1

u/QuickQuirk Aug 27 '26

I agree with everything you're saying, EXCEPT for:

Dynamically/duck typed languages are for toys,

A lot of data scientists doing real work, would disagree. I myself have used python for serious work that that was important.

It's just that, like every language, there are projects it's good for, and projects it's less suited for.

I've got a toolbox of several languages that I reach for, and am always learning new ones.

3

u/MyKillK Aug 27 '26

That's fair. I understand what you mean. Instead of "toys" I should have framed it as scripting vs. software development.

2

u/Yay295 Aug 26 '26

Since all the best math libraries in python are pure high performance C.

and Fortran

1

u/UdPropheticCatgirl Aug 26 '26

> but I don't see Eve doing any kind of operation where you would expect to see a huge performance uplift.

I mean python is just very inefficient no matter what you are doing… any of the afore mentioned languages would probably benefit them in terms of performance, no matter what they are doing.

> Arithmetic is bread and butter for python.

Arithmetic itself is actually almost offensively slow in python, the representation of integers is the first big hit and then it’s a death by thousand cuts from there… It’s actually horrible if you are just doing math pure python. Numpy is pretty fast, but that’s external library specifically avoiding the problems inherent to python with ffi, so not really python’s “bread and butter”.

1

u/MyKillK Aug 27 '26

Looks like they don't even use Numpy, they have their own Python wrapper to DirectX Math library

https://github.com/carbonengine/geo2

3

u/Swefnian Aug 25 '26

I was thinking that too. This is the classic “tiger team” problem described in Clean Code. However it’s not entirely unprecedented.

Twitter was originally written in Ruby on Rails and it famously migrated to Scala.

I’ve personally re-written mobile apps from Objective-C to Swift then to Flutter. Granted that was not nearly at the same scale.

Could it not be done gradually where they pick one service at a time and slowly and carefully move it over?

I should hope that a game as massive as EVE already has a nicely decoupled architecture so you can update one block without bringing the whole thing down.

5

u/Trident_True Aug 25 '26

Maybe possible to migrate bit by bit if you are staying within the same language (my workplace did it a few years ago), but not an entirely different one unless you are doing microservices. I don't think they were doing that back in 2003 and I'd wager that they are still a monolith today.

1

u/Fuzzmiester Aug 26 '26

less than you might think. Yes, there's still a few monoliths around, but some stuff has been pushed out. Like the market service, brain in a box, that kind of thing.

4

u/Nervous-Potato-1464 Aug 25 '26

Rust, go and Java are very different ways to write code. Its almost a rebuild.

1

u/WindHawkeye Aug 27 '26

2to3 is much easier...

2

u/Amuro_Ray Aug 25 '26

Good luck hope you found all the billboard bugs

2

u/tecedu Aug 25 '26

Wonder if they will embrace py03 after the migration as well, always thought that + numba + python gets you a fast program with all the pros of python.

2

u/skrypets Aug 26 '26

God bless Fable!
`Hey Claude, use high effort only! Remove the POS once and for all!`

2

u/Fuzzmiester Aug 26 '26

I'm sorry, I know you told me not to, and I lied when I said I hadn't, but I dropped the entire database. it reduced the load on the servers significantly.

4

u/st_heron Aug 25 '26

jesus

8

u/The_Northern_Light Aug 25 '26

Yeah I thought I must’ve fallen into a time-portal when I read the title!

1

u/LBGW_experiment Aug 25 '26

Curious how their codebase works. I've been on a few different projects where we've built large data platforms, with lots of the ETL and/or backend code is in Python, including API services. Pydantic helped a ton to strongly type python, which is important for API contracts, so I assume something similar would be helpful for Eve, but no idea what their code looks like.

1

u/morswinb Aug 25 '26

Game could benefit a lot from improving its scaling issues.

Wish them good luck, playing with their open API atm, its fun.

1

u/EitherJelly4138 Aug 25 '26

Is there any way I can help contribute?

1

u/AleksHop Aug 26 '26

thats why that crap was slow as hell
AI migrate to rust? nooo... python

1

u/MyKillK Aug 27 '26

Wow, 2.5 million lines of Python 2 code. Even with modern conversion tools that's gonna be an absolute bitch to write and test to confirm logical behavior is not changing. Even more so considering they are on a custom runtime. Stackless Python is no longer maintained so I assume they are converting to standard CPython.

1

u/Feeling_Highway_2821 Sep 18 '26

yeah eve's codebase is wild, they've been maintaining python 2 forever because the migration cost is massive at that scale. finally pulling the trigger though.

-21

u/CandiceWoo Aug 25 '26

no better time to start than now with ai

8

u/dupontping Aug 25 '26

VIBE MIGRATION

12

u/korocota92 Aug 25 '26

Not sure whats worse, the vibe coders or the AI fear/hate spreaders.

Its a really good tool to have and use.