【文章标题】:EVE Online: The Move to Python 3 Begins! 【文章标题】:EVE Online:向 Python 3 迁移正式启动!
【文章正文】: 【文章正文】:
EVE Online: The Move to Python 3 Begins! EVE Online:向 Python 3 迁移正式启动!
EVE Online has been one of the most interesting case studies in Python at scale for over twenty years now. 二十多年来,《EVE Online》一直是大规模应用 Python 的最有趣案例之一。
They’ve been running on
Stackless Python
since their launch in 2003, and their last major upgrade was 16 years ago, to Stackless Python 2.7
in 2010
. 自2003年上线以来,他们一直运行在
Stackless Python
之上,而上一次重大升级还是在16年前,即
2010年
升级到了 Stackless Python 2.7。
Their upgrade to Python 3 will start using the
futurize
script against 2.4 million lines of code, followed by careful manual review of the ~20,000 places where Python 2 and 3 behavior differ - for example
1 / 2
is
0
in Python 2 but is
0.5
in Python 3. 他们向 Python 3 的升级将首先使用
futurize
脚本处理 240 万行代码,随后对 Python 2 和 3 行为存在差异的大约 20,000 处代码进行仔细的人工审查——例如
1 / 2
在 Python 2 中结果是
0
,而在 Python 3 中则是
0.5
。
There’s nothing in this announcement about how they plan to replace Stackless, but at their conference last year they presented
Scheduling in Carbon: Leaving Stackless Python Behind
describing how they replaced Stackless in the Carbon engine for their more recent game EVE Frontier, using their (now open source)
carbonengine/scheduler
library. 这份公告并未提及他们计划如何替换 Stackless,但在去年的大会上,他们发表了题为
《Carbon 中的调度:告别 Stackless Python》
的演讲,介绍了他们如何在较新的游戏《EVE Frontier》的 Carbon 引擎中,使用其(现已开源的)
carbonengine/scheduler
库来替换 Stackless。
Via
Lobster.rs 转自
Lobster.rs
Tags:
eve-online
,
migrations
,
python
,
python3
,
stackless 标签:
eve-online
、
migrations
、
python
、
python3
、
stackless