TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

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

872 pointsby reimertzover 2 years ago

35 comments

Comeviusover 2 years ago
Pretty cool.<p>The program itself was written in an existing intermediate language called URCL, which was then compiled to CHUNGUS2 assembly. CHUNGUS2 is the processor made with Minecraft&#x27;s redstone mechanics. The processor was emulated for development, but the demo is running on MCHPRS, a Minecraft server that uses Wasmtime&#x27;s Cranelift to JIT the redstone operations, which are represented as a weighted directed graph. Before MCHPRS, optimizing redstone performance using compiler techniques was not thought to be possible. With MCHPRS the demo takes 9 hours to run, it would take decades using Minecraft.<p><a href="https:&#x2F;&#x2F;github.com&#x2F;sammyuri&#x2F;minecraft" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;sammyuri&#x2F;minecraft</a><p><a href="https:&#x2F;&#x2F;github.com&#x2F;MCHPR&#x2F;MCHPRS" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;MCHPR&#x2F;MCHPRS</a><p>As for CHUNGUS2 itself, it&#x27;s a proper RISC processor, it has a 4-stage instruction pipeline, 64 byte 8-way associative data cache, even branch prediction.<p><a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=FDiapbD0Xfg" rel="nofollow">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=FDiapbD0Xfg</a>
评论 #32904319 未加载
评论 #32903958 未加载
评论 #32915863 未加载
评论 #32907340 未加载
reimertzover 2 years ago
This is truly amazing.<p>Comment from one of the creators;<p><i>This build does NOT run in real time. It runs on MCHPRS, the server developed by StackDoubleFlow, which speeds up the game roughly 10-20,000x while running redstone. That brings the framerate to a much more reasonable 0.1fps, so the long timelapses in the video only took 9 hours to record in in total.</i>
评论 #32903386 未加载
评论 #32903401 未加载
评论 #32903489 未加载
whatisthisevenover 2 years ago
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.<p>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.<p>I think the most challenging aspect wasn&#x27;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&#x2F;command lines to hook the modules together.
评论 #32903798 未加载
kibwenover 2 years ago
Don&#x27;t miss the other video showing the overview of the CPU, it&#x27;s seriously impressive: <a href="https:&#x2F;&#x2F;youtube.com&#x2F;watch?v=FDiapbD0Xfg" rel="nofollow">https:&#x2F;&#x2F;youtube.com&#x2F;watch?v=FDiapbD0Xfg</a>
SCLeoover 2 years ago
I think we will see more of these amazing Minecraft technical creations as people who played Minecraft as children are now finishing up their higher educations.
评论 #32907137 未加载
tablespoonover 2 years ago
The video description says:<p>&gt; 3D Minecraft in Minecraft with no command blocks, no datapacks and no mods. Features include an 8x8x8 fully 3D-rendered world with 16 different block types, 32 different items, and dozens of game mechanics including mining, crafting, smelting, building, chests, random ticks<p>Is &quot;3D Minecraft&quot; a Minecraft clone for low-powered hardware? It looks like their emulated CPU only has &lt;10KB RAM and a 96x64 display, which screams &quot;TI-83 program&quot; to me.
评论 #32903940 未加载
评论 #32909638 未加载
评论 #32903827 未加载
swayvilover 2 years ago
The 0.1fps time scale makes no difference to people living within this minecraft universe. From their perspective a second is a second and a day is a day. Funny.<p>See Greg Egan&#x27;s <i>PERMUTATION CITY</i> for more on that.
评论 #32908171 未加载
评论 #32906032 未加载
评论 #32969284 未加载
评论 #32911113 未加载
PaulHouleover 2 years ago
My son has gotten into designing logic circuit with Redstone. I wish I could get him to do the same with 74xx&#x2F;54xx parts.
评论 #32902895 未加载
评论 #32905435 未加载
评论 #32921860 未加载
评论 #32912273 未加载
skwirlover 2 years ago
This is exactly the type of content I hope to see when I check HN. Awesome.
felipelalliover 2 years ago
Now it&#x27;s time for the next step: build another CPU inside that one.
评论 #32903295 未加载
评论 #32903543 未加载
Cieplakover 2 years ago
Reminds me of Conway’s Game of Life, emulated inside Conway’s Game of Life:<p><a href="https:&#x2F;&#x2F;m.youtube.com&#x2F;watch?v=xP5-iIeKXE8" rel="nofollow">https:&#x2F;&#x2F;m.youtube.com&#x2F;watch?v=xP5-iIeKXE8</a>
boredpuddingover 2 years ago
I wonder if it&#x27;s possible to run this outside of Minecraft in some way. I assume the developers weren&#x27;t debugging the program in Minecraft itself.
评论 #32902947 未加载
system2over 2 years ago
I wish to have the patience and excitement about something to build like this. I admire people like this youtuber.
brapover 2 years ago
What&#x27;s with the code?<p>I don&#x27;t know much about Minecraft, but I assumed the CPU would be built purely from blocks which act like transistors. Yet there&#x27;s a part of the video where the show code written in-game(?). What&#x27;s up with that? Isn&#x27;t it cheating?
评论 #32903348 未加载
评论 #32903377 未加载
评论 #32903826 未加载
评论 #32905073 未加载
评论 #32903383 未加载
评论 #32903385 未加载
Liambpover 2 years ago
Can someone explain to a clueless person (me) how a 1Hz CPU manages to achieve even 0.1fps frame rates. That is only ten clock cycles per frame. I don&#x27;t know what the IPC of Chungus 2 is but that doesn&#x27;t seem a lot of cycles to calculate each new frame.<p>Thinking about this another way. Real world CPUs have clock speeds at least 1 billion times faster than this and they only run Minecraft a few 1000 times faster than is claimed here. How do these numbers add up?
评论 #32908984 未加载
teekertover 2 years ago
If you like to ponder physiological implications and deeper themes of such worlds in worlds and what it can mean, in a fun way, I recommend the (sci-fi) book Permutation City (Greg Egan), from 1994. It also contains an artificial world, called the Autoverse that felt to me like Minecraft when I read the story. But it is taken a lot further...
评论 #32926334 未加载
unethical_banover 2 years ago
How would someone get into designing&#x2F;simulating CPUs and computers other than Minecraft? Is there any software for learning and implementing &quot;simple&quot; logic circuits, memory, etc?
评论 #32904932 未加载
评论 #32949651 未加载
评论 #32907042 未加载
评论 #32904843 未加载
inetknghtover 2 years ago
Cool! Now build it in Turing Complete and export it to an FPGA
评论 #32903073 未加载
评论 #32904688 未加载
cpreciosoover 2 years ago
Any guesses on when we will get Factorio running on Factorio?
mensetmanusmanover 2 years ago
A lot you can do with NOR gates!<p>A fun thought experiment is whether you could ever imagine that block build growing complex enough and becoming intelligent.<p>If AI can become intelligent (generally, i.e. GAI), then it could be implemented with redstone. If human level intelligence requires something more, then it can not, and the search for redstone 2.0 continues…
ok_dadover 2 years ago
I like that part about the bees at the beginning. Also, the CPU definitely did blow my mind. Amazing work by the builder!
Cyberdogover 2 years ago
Ha, that&#x27;s so needlessly inefficient! Now let me get back to work with my Electron code editor while I communicate with my team in four different Electron chat apps and code a web page which requires 2.5MB of assets to load (not counting the massive autoplaying background video).
评论 #32910397 未加载
imwillofficialover 2 years ago
This is how skynet really happened
dexwizover 2 years ago
Do people use circuit simulators and compile to blocks, or copy&#x2F;paste units from previous projects? Seems like such a massive undertaking where a single misplaced item ruins everything.
ineedasernameover 2 years ago
Pft, only monochrome? &#x2F;s Pretty awesome, kudos
sadjadover 2 years ago
Will it run Doom?
评论 #32903741 未加载
评论 #32904207 未加载
评论 #32904208 未加载
twostorytowerover 2 years ago
Incredible. Next do Minecraft in Minecraft in Minecraft.
pleb_nzover 2 years ago
Ha... It&#x27;s not even a color display &#x2F;s
skcover 2 years ago
Nick Bostrom is silently smiling somewhere.
mesozoicover 2 years ago
Now make Minecraft in that Minecraft.
abrax3141over 2 years ago
You’re all going to hate on me for this, so first let me say that this is amazing. I’m awed by it. Truly. And I am very familiar with minecraft and even have been known to do a bit of redstone hacking myself I love seeing the cool things some folks do with it. (I’ve some redstone sorting algorithms and I’m esp fond of redstone Turing machines!)<p>But this! This is like sending a person to mars!<p>And I have the same question for the geniuses who did this that I have for the ones working on that:<p>Aren’t there cures for cancer and perovskite solar cells to discover? Why are you using your excellent minds, and apparently enormous amount of free time, building cool but very slow virtual computers out of virtual sand, when you could be proving the smoothness of the Navier–Stokes equations?<p>It’s one thing, to my mind, when athletes climb huge mountains because they’re there. It’s quite another, again, to me, when obvious genius goes to waste.<p>There. I feel better for having said it. I only wish I could say it to Elon Musk re Mars, and get my son to spend a fifth as much time on his math homework as he does playing minecraft. This incredibly cool hack is just going to exacerbate the situation! :-)
评论 #32909416 未加载
评论 #32909931 未加载
评论 #32909220 未加载
评论 #32921952 未加载
评论 #32912225 未加载
Arbortheusover 2 years ago
This is incredible!
curious_tenetover 2 years ago
meta game of life lol
评论 #32905677 未加载
reimertzover 2 years ago
Derp: here is the video link: <a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=-BP7DhHTU-I" rel="nofollow">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=-BP7DhHTU-I</a><p>@dang can you update this post to link to the video?
评论 #32902597 未加载
kleer001over 2 years ago
Did you mean to link to the video?