Live data from Hacker News

Computerraria: A fully compliant RISC-V computer inside Terraria

github.com

31–40 of 45 posts

Re: Computerraria: A fully compliant RISC-V computer inside Terraria

#31

Hey 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

With your future prospects, where do you see yourself in 5 years?

Writing advanced Excel macros to power PowerPoint presentations.

Duh.

Re: Computerraria: A fully compliant RISC-V computer inside Terraria

#32

Hey 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

How much time you spent on this project?

https://youtu.be/zXPiqk0-zDY?t=10

600hrs over 5 months.

Re: Computerraria: A fully compliant RISC-V computer inside Terraria

#33

Hey 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

With your future prospects, where do you see yourself in 5 years?

Dual PhDs from Tom7 and James Mickens.

Re: Computerraria: A fully compliant RISC-V computer inside Terraria

#34
post #21

Earlier quoted context omitted.

Haven't had any problem playing on Steam for Mac OS once you get your resolution settings correct.

Just tried and mouse's still confined to less than full screen at 1280x800. I think it was worse 5 years ago. Will try again in 5 years.

I don't get this bug playing fullscreen at 1440p on M1 macOS... maybe play around with the settings a bit?

Re: Computerraria: A fully compliant RISC-V computer inside Terraria

#35
Fully 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)? 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.

Re: Computerraria: A fully compliant RISC-V computer inside Terraria

#36

Fully 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?…

If 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.

Re: Computerraria: A fully compliant RISC-V computer inside Terraria

#37

Hey 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

With your future prospects, where do you see yourself in 5 years?

With a bit of luck he could get an internship on an SRE team supporting ads data pipelines at Google.

Re: Computerraria: A fully compliant RISC-V computer inside Terraria

#38

Hey 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

I love it! Impressive use of 4 metal layers!

Re: Computerraria: A fully compliant RISC-V computer inside Terraria

#39

Fully 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?…

I'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!

Re: Computerraria: A fully compliant RISC-V computer inside Terraria

#40

Hey 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

This 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.

I 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.
Post reply on HN