Re:A 32-Bit Computer Inside Terraria [video]
by vincent-manis on Thursday June 29, 2023 @01:08PM
(#36523321)
I am thinking back to when I was a wunderkind. If I'd had access to modern technology (software and hardware) back then, could I have done anything like this? NO!
Re:A 32-Bit Computer Inside Terraria [video]
by russellbeattie on Thursday June 29, 2023 @01:50PM
(#36524044)
I was already impressed, then I got to the part where he wrote a tool chain with Rust and a test suite for RISC-V which runs in game.
Then I decided the kid was a young whippersnapper who's way too big for his britches and "kids these days" and all the other things old people think to make themselves feel better when they're being obsoleted.
Re:A 32-Bit Computer Inside Terraria [video]
by ok_dad on Thursday June 29, 2023 @02:46PM
(#36524923)
I figure I would never have competed with this kid; he’s making people like jwz or antirez obsolete, not me! I’ll always be way more mediocre than this person.
Re:A 32-Bit Computer Inside Terraria [video]
by smaudet on Thursday June 29, 2023 @11:56PM
(#36530346)
I don't think he's dumb, but I also think a lot of people underestimate what they are capable of. Its a neat project, but it is one of those lots-of-grinding projects. Any tech professional should be able to pull this off, reasons abound why they won't (not motivated/mentally exhausted from work BS/have lives and no longer have infinite free time).
So I think "intelligent, and hard working", not "oh man could I never do something like that". Most of us spend time doing other, less geeky things, like reading, media consumption (spending time on HN).
Sure, as we get older, we "slow down", but that's OK - I could write up game engines or other complex projects in a couple weeks when I was younger, but I would also make a lot of mistakes. Stuff is mostly intuitive now.
Re:A 32-Bit Computer Inside Terraria [video]
by dillutedfixer on Thursday June 29, 2023 @04:33PM
(#36526312)
I just want to say that this is incredibly impressive on so many levels. Your technical skills are obviously amazing but I really love how you were able to put this all together into an entertaining and well-produced video that anyone could understand. If you ever want to get paid 1/4 of what I'm sure you'll make as an engineer, you'd make a great teacher ;)
Re:A 32-Bit Computer Inside Terraria [video]
by misprit7 on Thursday June 29, 2023 @11:00PM
(#36530016)
Thanks, was definitely hard to strike a balance between being understandable for non-nerds but also convey all the technical difficulties/achievements, but I'm pretty happy with how it turned out .
Re:A 32-Bit Computer Inside Terraria [video]
by ftxbro on Thursday June 29, 2023 @10:54PM
(#36529974)
That is amazing I understand how powerful of nerd skills it took to do all those steps. Maybe the most amazing one to me is that terraria mod to speed up their wiring code without changing any other behavior, and the combination of skills to do such nerdy stuff and also finish the project in a form that normies can appreciate and also making a popularization video of it. It's a very useful combo of skills and interests.
I guess I have a question, I know you did it yourself but it looks like you were in some community. Is it like a discord channel or was it some of your classmates or what?
Re:A 32-Bit Computer Inside Terraria [video]
by misprit7 on Thursday June 29, 2023 @10:58PM
(#36530008)
It was pretty much just me by myself on this other than for the raycaster engine, which was done by a friend of mine near the end. I'm on a few Discord servers on Minecraft computing, but it's pretty vastly different and the biggest parallel is just with high level accelerator stuff.
Re:A 32-Bit Computer Inside Terraria [video]
by ftxbro on Thursday June 29, 2023 @11:53PM
(#36530332)
> "ReLogic if you ever read this although I doubt it"
They should definitely pay you to add this. They can do it by just hiring you remote for a little while even if you are still a student and you add this wiring code. You speeded up their code so many orders of magnitude without even having access to it. Most people would have a hard time doing it even if they can see the source code.
Also I have a question, what do you think about RISC-V? I never cared about embedded code until recently when I saw that you can buy an ESP32 chip for like five dollars and it's as powerful as a computer from the 90s and it has bluetooth and wifi, I was like wtf. I saw the most recent version ESP32-S3 uses RISC-V, and the new Arduino R4 uses ESP32-S3. Also related to RISC-V I saw this Jim Keller youtube video where he is all-in on RISC-V https://www.youtube.com/watch?v=_MrGNlXRi9M
Re:A 32-Bit Computer Inside Terraria [video]
by misprit7 on Friday June 30, 2023 @12:53AM
(#36530651)
I think it has a lot of technical merit and I heavily appreciate the fact that it's open source which is why I used it here. That being said in terms of microcontrollers I don't think it's doing anything fundamentally that much better than ARM, most of it's competitive advantage just comes from the fact that it's open source.
Edit: just as a disclaimer I've never actually written any ARM assembly/silicon design so I'm probably not the most qualified to have an opinion on this
Re:A 32-Bit Computer Inside Terraria [video]
by hospitalJail on Thursday June 29, 2023 @03:24PM
(#36525483)
I started the video as a cynic who thought this person was wasting their time(I still kind of think they are), and that they are re-inventing the wheel since all of this stuff is documented and you basically can follow a drawing to build a computer.
Then he said that instead of using logic gates, he is using pulses.
Wat
Maybe I haven't thought about the implications, but I'm a bit mind blown they continued.
As I watched more, I suppose it makes sense. But I'd probably move onto something else at that point.
Re:A 32-Bit Computer Inside Terraria [video]
by kortex on Thursday June 29, 2023 @03:31PM
(#36525566)
Man, rustc compiling of binaries that run on this computer, docker, github CI, this kid's going places (no idea how old he is, but he's squarely younger than me, a millennial, ergo, kid).
You start with a NAND gate (NOT AND) and built the simple gates, multiplexers, ALU, machine language, VM, compiler for a high level lang, OS, graphics engine, culminating with a game you design that runs on this computer.
Re:A 32-Bit Computer Inside Terraria [video]
by emrah on Thursday June 29, 2023 @06:54PM
(#36527992)
People were able to build computers in many games like minecraft, factoria, terreria etc. I haven't played these games so I'm curious what kind of features allow for "computers" to be built inside games?
Re:A 32-Bit Computer Inside Terraria [video]
by serf on Thursday June 29, 2023 @09:52PM
(#36529566)
in-game constructors that represent either logic gates, or in some cases rudimentary circuit primitives that can then be used to product logic gates themselves.
Rust (the game) for example has a wiring system that is somewhat reminiscent of electrical wires (there is an amperage/electron concept that makes it tick), but the appliances that plug into the electrical system represent logic gates like AND/OR/NOR/XOR, etc; so that system kind of hits both the electricity and the logic metaphors. One can make complex memory structures/counters/timers/etc, and they may output/control in-game structures like doors/turrets/alarms/displays/etc.
a popular example would be a turret that fires upon an enemy that has been trapped in a house upon triggering a motion sensing device, initating a countdown, and powering up the turret.
Re:A 32-Bit Computer Inside Terraria [video]
by vintermann on Friday June 30, 2023 @06:42AM
(#36532716)
I'm pretty sure the first "computer in a sandbox game" was Jong's computer in Dwarf Fortress, implemented in that game's fluid pressure mechanics, in early 2010.
That was certainly what inspired many others to add deliberately circuit-y things to their games that could be be used to build computers - most notably Minecraft's redstone and Terraria's wires.
In theory all you need is a way to implement a nand gate, and really good simulation speed.
Then I decided the kid was a young whippersnapper who's way too big for his britches and "kids these days" and all the other things old people think to make themselves feel better when they're being obsoleted.
So I think "intelligent, and hard working", not "oh man could I never do something like that". Most of us spend time doing other, less geeky things, like reading, media consumption (spending time on HN).
Sure, as we get older, we "slow down", but that's OK - I could write up game engines or other complex projects in a couple weeks when I was younger, but I would also make a lot of mistakes. Stuff is mostly intuitive now.
I guess I have a question, I know you did it yourself but it looks like you were in some community. Is it like a discord channel or was it some of your classmates or what?
They should definitely pay you to add this. They can do it by just hiring you remote for a little while even if you are still a student and you add this wiring code. You speeded up their code so many orders of magnitude without even having access to it. Most people would have a hard time doing it even if they can see the source code.
Also I have a question, what do you think about RISC-V? I never cared about embedded code until recently when I saw that you can buy an ESP32 chip for like five dollars and it's as powerful as a computer from the 90s and it has bluetooth and wifi, I was like wtf. I saw the most recent version ESP32-S3 uses RISC-V, and the new Arduino R4 uses ESP32-S3. Also related to RISC-V I saw this Jim Keller youtube video where he is all-in on RISC-V https://www.youtube.com/watch?v=_MrGNlXRi9M
Edit: just as a disclaimer I've never actually written any ARM assembly/silicon design so I'm probably not the most qualified to have an opinion on this
I think you might do quite well.
Then he said that instead of using logic gates, he is using pulses.
Wat
Maybe I haven't thought about the implications, but I'm a bit mind blown they continued.
As I watched more, I suppose it makes sense. But I'd probably move onto something else at that point.
You start with a NAND gate (NOT AND) and built the simple gates, multiplexers, ALU, machine language, VM, compiler for a high level lang, OS, graphics engine, culminating with a game you design that runs on this computer.
There's also a book with the same contents (https://www.nand2tetris.org/book).
Rust (the game) for example has a wiring system that is somewhat reminiscent of electrical wires (there is an amperage/electron concept that makes it tick), but the appliances that plug into the electrical system represent logic gates like AND/OR/NOR/XOR, etc; so that system kind of hits both the electricity and the logic metaphors. One can make complex memory structures/counters/timers/etc, and they may output/control in-game structures like doors/turrets/alarms/displays/etc.
a popular example would be a turret that fires upon an enemy that has been trapped in a house upon triggering a motion sensing device, initating a countdown, and powering up the turret.
That was certainly what inspired many others to add deliberately circuit-y things to their games that could be be used to build computers - most notably Minecraft's redstone and Terraria's wires.
In theory all you need is a way to implement a nand gate, and really good simulation speed.