5 ms·
Computerraria: A fully compliant RISC-V computer inside Terraria
- inickt 3y agoA friend sent me the YouTube video, which is a fantastic watch: https://www.youtube.com/watch?v=zXPiqk0-zDY https://www.youtube.com/watch?v=zXPiqk0-zDY. Minecraft computers have been done for a while now, but seeing a full RISC-V computer running programs is really impressive, and frankly just seems really cool. The programs are written in Rust, and then compiled to run in game. Plus, the author needed to write their own mod to make the Terraria wiring efficient enough to support the computer: https://github.com/misprit7/WireHead https://github.com/misprit7/WireHead
- fbdab103 3y agoI cannot believe he did the wiring "by hand". Loved the bug example he highlighted, which I hope is something he can reference later in life, "What's the most difficult bug you ever fixed?"
- jiggawatts 3y agoEven with the "cross-eyed" trick to overlap the left and right sides, I could not spot the error. How in the world did he find it!?
- ericbarrett 3y agoI lost it when he dropped the containerized CI pipeline! Shows he was thinking about the whole process, not just the (literally) fiddly bits. Incredibly broad set of skills the author demonstrated.
- sacnoradhq 3y agoCross-compile an emulator to RISC-V, then the false vacuum decays and cats and dogs live together.
- Cthulhu_ 3y agoI mean there's Minecraft-in-Minecraft, not quite the same but... getting very meta: https://www.youtube.com/watch?v=-BP7DhHTU-I https://www.youtube.com/watch?v=-BP7DhHTU-I
- pkphilip 3y agoThis is beyond impressive!!
- Xeamek 3y agoNow we need a terraria build for RISC, so we can play terraria in terraria
- deskamess 3y agoYou might want to watch the video the author himself posted above!
- birdyrooster 3y agoWhy?
- jcmontx 3y agoHe's already working on it
- lionkor 3y agoNext step: Self-hosted.
- ehnto 3y agoIt seems I have underestimated Terraria as a sandbox game.
- vbezhenar 3y agoPlay https://nandgame.com/ https://nandgame.com/ if you're interested in those kinds of things.
- nottorp 3y agoHmm I wonder if they ever fixed Terraria for Mac OS. I bought it based on hype but it wasn't handling my laptop display right so I never found out what it's about.
- Unbeliever69 3y agoHaven't had any problem playing on Steam for Mac OS once you get your resolution settings correct.
- IG_Semmelweiss 3y agoI am paraphrasing others here, but its supposed to be a 2D minecraft game
- misprit7 3y agoHey I'm the one who made this, if anyone is interested in the specifics I'm happy to go into details! Also as another comment indicates probably a better explanation of the project is the video I made about it: https://youtu.be/zXPiqk0-zDY https://youtu.be/zXPiqk0-zDY
- havercosine 3y agoThis is a super impressive achievement. - What would you say is your biggest learning from this experiment? - What were the Aha! moments you experienced while learning like this? For example, something you vaguely understood before but is now super clear to you.
- misprit7 3y agoI would say the RISC-V immediate encodings were like that, on first look they seemed completely random but as soon as I started implementing the decoder I realized they were geniusly crafted to make my life as easy as possible.
- FloatArtifact 3y agoWith your future prospects, where do you see yourself in 5 years?
- garciasn 3y agoWriting advanced Excel macros to power PowerPoint presentations. Duh.
- nerpderp82 3y agoDual PhDs from Tom7 and James Mickens.
- eklitzke 3y agoWith a bit of luck he could get an internship on an SRE team supporting ads data pipelines at Google.
- 3y ago
- classified 3y agoRoger me sidewise, this is wonderfully crazy. I foresee a bright future for the creator.
- deskamess 3y agoVery impressive and in such a short time frame. So is the schema for this design only in the game? I assume if the game is saved it can be loaded on another computer? But can the schema/layout be emitted to a file so it can be parsed elsewhere?
- jcmontx 3y agoTbh, the video was better explained than my college computer architecture lessons
- smudgy 3y agoHoly shit! Game, optimizations, code, test suite and even a simple 3D render - not to mention a well edited video game with a great sense of humor, gags, memes and the obvious next step already in the works. This guy is going places!!
- deleted 3y ago[deleted]
- birdyrooster 3y agoThe pitch is fantastically well written, for what it’s worth.
- kayson 3y agoAwesome to see something like this in Terraria instead of the usual minecraft!
- thebeardisred 3y agoFully compliant to RISC-V how? Is it conforming to a specific RVI profile? The project states "By emulating a complete rv32i instruction set inside the wiring system of Terraria, we push back speeds to the early 70s era, tossing the ball firmly back into the court of silicon engineer without losing any software functionality." So this is building a RISC-V *microcontroller* but what version of the ISA? 2.2 from 2017? Is it sucessfully passing conformance tests (https://github.com/riscv-software-src/riscv-tests https://github.com/riscv-software-src/riscv-tests)? I don't want to dunk on the project, but the title is over-selling and not scoping the context of the work. I look forward to some more updates from @misprit7! Note: I'm the working group lead for distro-integration within the RISC-V Software Ecosystem (RISE) group.
- vessenes 3y agoIf you watch the video or check the github repo, (and you really should watch the video, it's fantastic), you'll see he has a full conformance test run in-game as part of a custom built CI/CD pipeline. In Terraria. I really enjoyed writing that.
- misprit7 3y agoI'm the one who made this. It's rv32i, and yes the 2017 specs. It passes every rv32i test in the repository you sent, see the test/ folder for the riscof plugin I wrote. I also have CI in a docker to headlessly run Terraria and programmatically run all these tests whenever the world changes on the main branch. I'm not throwing around fully compliant lightly here!