Wunderkind 完全在 Terraria 内部构建“完全兼容的 RISC-V 计算机”,然后在上面玩乒乓球

Wunderkind 完全在 Terraria 内部构建“完全兼容的 RISC-V 计算机”,然后在上面玩乒乓球

源节点: 2748539

一位专注且可能具有魔法的泰拉瑞亚玩家从头开始 YouTube channel has done something that, most likely, I won’t fully understand for as long as I live. With only the aid of a mod called WireHead—which “maintains full compatibility with the vanilla wiring system but reimplements it in a much more efficient manner”—Xander Naumenko managed to build a “fully compliant RISC-V computer” inside the 2D game. It even has specs:

  • 时钟速度: ~5kHz
  • 随机存取存储器: 96kb
  • 指令系统: RV32i

Probably not one to run Starfield on. Naumenko spends the video above detailing his five-month, 600-hour journey to create the in-game computer and the “Pong clone” he got running on it. It somehow manages to sound both strangely simple and devilishly complex.

Naumenko says he used a vast array of in-game logic gates—switches which are fundamentally either off or on—to build his Terraria PC, but the way the game’s circuits work means that “a lot of traditional circuits have to be redesigned” to fit a “new paradigm” which is fundamentally 不能 how circuits work in real life. So, you know, nothing too hard. Just reinventing circuits. We’ve all been there.

I probably can’t go into much greater detail about Naumenko’s process without mangling the science behind it, so you should go watch the full 15-minute video or check out 该项目的 GitHub 页面 if you want to see how he did it. I do want to call out his “Pitch” for the Terraria PC though, which I reckon will touch the hearts of all us who have had to deal with the evolution of computers over the last couple of decades.

“There are two fundamentally competing forces when it comes to computer speed,” says Naumenko. The first is 摩尔定律, and the second is “the inevitable growth of software bloat that runs on top of increasingly modern processors”. Boy, ain’t that the truth? But Naumenko continues: “This project is an attempt to score a decisive rout in this ongoing battle in favor of the 程序员,” pushing back speeds  “to the early 70s era, tossing the ball firmly back into the court of silicon engineer [sic] without losing any software functionality”.

If you want to get a look at just how dazzlingly complex this thing is, here’s an easily scrollable image of the entire glorious contraption:

虽然我怀疑未来的程序员会做什么 许多 of their work on Naumenko’s Computerraria project, I have to salute the project’s philosophy. And hey, maybe I’m wrong: Perhaps this and the 我的世界红石电脑 是对未来的愿景。听起来比不断被要求登录 OneDrive 更好。

时间戳记:

更多来自 PC玩家