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

290 comments sorted by

View all comments

Show parent comment

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

→ More replies (4)

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.

→ More replies (14)