What happened
EVE Online's developers are embarking on an extraordinarily challenging undertaking: migrating its 2.4 million lines of Python code to a modern architecture based on Python 3. The current system relies on code written predominantly in versions 2.3 and 2.5, presenting significant compatibility issues with newer Python releases.
This migration is critical not just for technical reasons – improved performance, security updates, and long-term maintainability – but also to ensure the continued operation of EVE Frontier, which leverages a Carbon engine running on modern Python 3. The project hinges on a carefully planned, multi-stage approach. The initial phase focuses on making the code Python 3-ready using tools like Python-Future, built on the 2to3 machinery that historically helped with Python version upgrades. This automated ‘fixer’ system addresses obsolete patterns and translates them into forms compatible with both Python 2.7 and Python 3. Once all code functions under both versions, a far more intricate stage begins – tackling the code that behaves differently across the two platforms.
Why it matters
The sheer scale of this migration underscores EVE Online's commitment to longevity and innovation. The game has existed for over 23 years and boasts an immense wealth of player data accumulated on the Tranquility server, representing a detailed history of capsuleer activity – essentially, 23.75 hours of gameplay per day, every day.
The success of this migration is vital to maintaining this legacy and ensuring continued updates and enhancements. Leveraging Python 3 allows for modernization and potential performance gains, while preserving the vast trove of player data within Tranquility is critical for understanding player behavior, optimizing game mechanics, and shaping future development direction.
But, but, but…
The migration isn't without its inherent complexities and potential pitfalls. The project acknowledges that a significant portion of the codebase predates even Python 2.7, making it inherently challenging to convert entirely seamlessly.
There will inevitably be corner cases, quirks, and dependencies that require careful consideration and targeted intervention. Furthermore, the developers recognize the importance of thorough testing. To this end, they’ll be utilizing Singularity – EVE Online's development environment – as a critical platform for playtesting updated system components, closely monitoring their behavior under conditions mirroring those found on the Tranquility server.
“‘Careful… Careful…’ The EVE codebase consists of 2.4 million lines of Python.”
— Dr Non
The counter-take
The prevailing narrative around large-scale code migrations often focuses solely on the technical challenges. However, this migration represents a proactive investment in preserving EVE Online's rich history and ensuring its continued relevance—a recognition that legacy systems are not simply burdens but valuable assets.
The AI angle
The AI angle involves continuous learning from player data (across 23.75 hours daily) to refine game mechanics and balance, potentially leading to automated testing scenarios and adaptive difficulty adjustments. Upgrade – modern tools & processes; Asymmetry – reliance on historical data impacting current design choices.