Live data from Hacker News

1Hz CPU made in Minecraft running Minecraft at 0.1fps [video]

youtube.com

11–20 of 162 posts

Re: 1Hz CPU made in Minecraft running Minecraft at 0.1fps [video]

#11

I wonder if it's possible to run this outside of Minecraft in some way. I assume the developers weren't debugging the program in Minecraft itself.

They cannot naturally run real Minecraft on their CPU. Instead, they have handcoded Minecraft like game for their custom CPU, so the title is a bit misleading. For this CPU/language you will find an emulator.

You can find more information in the explainer video https://youtu.be/xIMkqHb2-KM

Re: 1Hz CPU made in Minecraft running Minecraft at 0.1fps [video]

#12
I worked on a CPU in Minecraft years ago and designed it to be a 7-bit CPU. I chose that number because it gave me the an appreciable number of operations plus space for arguments. I had only 6 bytes of RAM and about 32bytes of ROM. The ROM was just a circle of transparent blocks (zero) and solid blocks (one) pushed around by pistons.

The whole thing was real slow, but it was so much fun trying to design something that would perform interesting calculations. I stopped working on it as at the time Minecraft had some odd bugs with pistons that would cause non-deterministic behavior.

I think the most challenging aspect wasn't the programming or circuits, which were well understood and mapped out, but trying to create modules I could copy-paste inside a special Minecraft save editor to make the machine quickly, then manually dragging out data/command lines to hook the modules together.

Re: 1Hz CPU made in Minecraft running Minecraft at 0.1fps [video]

#15

I wonder if it's possible to run this outside of Minecraft in some way. I assume the developers weren't debugging the program in Minecraft itself.

They cannot naturally run real Minecraft on their CPU. Instead, they have handcoded Minecraft like game for their custom CPU, so the title is a bit misleading. For this CPU/language you will find an emulator. You can find more information in the explainer video https://youtu.be/xIMkqHb2-KM

It's definitely a little misleading, but idea of running the entire JVM with graphics stack included is so insane that I'm willing to call this "minecraft in minecraft"

Re: 1Hz CPU made in Minecraft running Minecraft at 0.1fps [video]

#18

My son has gotten into designing logic circuit with Redstone. I wish I could get him to do the same with 74xx/54xx parts.

Why 74xx parts, other than nostalgia for an era that was over decades before he was born? If it's about building physical things rather than virtual things, consider Lego Mindstorms controllers; you can build digital logic in them using Scratch...and graduate to Python when he gets frustrated with the limitations. And there's tons of Minecraft-themed Lego contraptions, he could theoretically use Mindstorms logic, lig…

Talk about gatekeeping...

Re: 1Hz CPU made in Minecraft running Minecraft at 0.1fps [video]

#20
post #17

What's with the code? I don't know much about Minecraft, but I assumed the CPU would be built purely from blocks which act like transistors. Yet there's a part of the video where the show code written in-game(?). What's up with that? Isn't it cheating?

A glance at the code, it appears to be the code for generating the world.

Placing all those blocks by hand would be tedious.

I believe you are seeing a complier of code -> red stone, not code embedded into Minecraft.

(late edit: The file name is src/redpiler/mod.rs - a search brings up https://www.reddit.com/r/redstone/comments/md1xwy/redpiler_t... which is posted by the same author as the video creator... and that appears to be an optimized Redstone interpreter (terms get confusing here if you try to say that this is a that)...

> MCHPRS is an open source project with the goal of allowing high speed redstone execution. This speed was achieved by generating a graph structure of all redstone links. MCHPRS can compile redstone into a graph and execute based on it.

> This is what the generated graph looks like: https://imgur.com/a/J51nJvV

> Redpiler is just a proof of concept and I expect to be able to get much faster speeds in the future :D

/edit)

Post reply on HN