Live data from Hacker News

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

youtube.com

61–70 of 162 posts

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

#61

Cool! Now build it in Turing Complete and export it to an FPGA

From KiCad https://en.wikipedia.org/wiki/KiCad :

> KiCad is a free software suite for electronic design automation (EDA). It facilitates the design and simulation of electronic hardware. It features an integrated environment for schematic capture, PCB layout, manufacturing file viewing, SPICE simulation, and engineering calculation. Tools exist within the package to create bill of materials, artwork, Gerber files, and 3D models of the PCB and its components.

https://www.kicad.org/discover/spice/ :

> KiCad integrates the open source spice simulator ngspice to provide simulation capability in graphical form through integration with the Schematic Editor.

PySpice > Examples: https://pyspice.fabrice-salvaire.fr/releases/v1.6/examples/i... :

+ Diode, Rectifier (AC to DC), Filter, Capacitor, Power Supply, Transformer, [Physical Relay Switche (Open/Closed) -> Vacuum Tube Transistor -> Solid-state [MOSFET,]] Transistor,

From the Ngspice User's Manual https://ngspice.sourceforge.io/docs/ngspice-37-manual.pdf :

> Ngspice is a general-purpose circuit simulation program for nonlinear and linear analyses.*

> Circuits may contain resistors, capacitors, inductors, mutual inductors, independent or dependent voltage and current sources, loss-less and lossy transmission lines, switches, uniform distributed RC lines, and the five most common semiconductor devices: diodes, BJTs, JFETs, MESFETs, and MOSFETs.

> [...] Ngspice has built-in models for the semiconductor devices, and the user need specify only the pertinent model parameter values. [...] New devices can be added to ngspice by several means: behavioral B-, E- or G-sources, the XSPICE code-model interface for C-like device coding, and the ADMS interface based on Verilog-A and XML.

Turing completeness: https://en.wikipedia.org/wiki/Turing_completeness :

> In colloquial usage, the terms "Turing-complete" and "Turing-equivalent" are used to mean that any real-world general-purpose computer or computer language can approximately simulate the computational aspects of any other real-world general-purpose computer or computer language. In real life this leads to the practical concepts of computing virtualization and emulation. [citation needed]

> Real computers constructed so far can be functionally analyzed like a single-tape Turing machine (the "tape" corresponding to their memory); thus the associated mathematics can apply by abstracting their operation far enough. However, real computers have limited physical resources, so they are only linear bounded automaton complete. In contrast, a universal computer is defined as a device with a Turing-complete instruction set, infinite memory, and infinite available time.

Church–Turing thesis: https://en.wikipedia.org/wiki/Church%E2%80%93Turing_thesis ... Lamda calculus (Church): https://en.wikipedia.org/wiki/Lambda_calculus

HDL: Hardware Description Language > Examples: https://en.wikipedia.org/wiki/Hardware_description_language#...

HVL: Hardware Verification Language: https://en.wikipedia.org/wiki/Hardware_verification_language

awesome-electronics > Free EDA Packages: https://github.com/kitspace/awesome-electronics#free-eda-pac...

https://github.com/TM90/awesome-hwd-tools

EDA: Electronic Design Automation: https://en.wikipedia.org/wiki/Electronic_design_automation

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

#62

Earlier quoted context omitted.

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

gatekeeping. Get it? Ahahaha.....

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

#64

Pretty cool. 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's redstone mechanics. The processor was emulated for development, but the demo is running on MCHPRS, a Minecraft server that uses Wasmtime's Cranelift to JIT the redstone operations, which are represented as a weighted directed graph.…

With MCHPRS the demo takes 9 hours to run, it would take decades using Minecraft. Ok, to clarify, is MCHPRS a functioning Minecraft Server that can support a player logging in and mining? This story is seeming a lot more like "A 1Hz CPU made on something that has mechanical similarities to Minecraft".

Yes it is a real Minecraft server implementation you can connect a standard client to but it is not a vanilla survival implementation. It's a redstone sandbox.

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

#65

How would someone get into designing/simulating CPUs and computers other than Minecraft? Is there any software for learning and implementing "simple" logic circuits, memory, etc?

Sorry for being this rough but, what a naive question this is. Of course there is.

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

#66

How would someone get into designing/simulating CPUs and computers other than Minecraft? Is there any software for learning and implementing "simple" logic circuits, memory, etc?

Sorry for being this rough but, what a naive question this is. Of course there is.

It's expected that there are tools, clearly, since people seem to know how to do this kind of thing. Good tools that an interested beginner can use as a lab are another thing.

If you skip back to the first question, then. It isn't naive. You chose to be short when you could have said nothing.

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

#67

How would someone get into designing/simulating CPUs and computers other than Minecraft? Is there any software for learning and implementing "simple" logic circuits, memory, etc?

Look at this game : https://store.steampowered.com/app/1444480/Turing_Complete/

Basically you go from building logic circuits to building your own CPU and writing assembly for it.

I only added it to my wishlist, didn't try it yet.

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

#68

Pretty cool. 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's redstone mechanics. The processor was emulated for development, but the demo is running on MCHPRS, a Minecraft server that uses Wasmtime's Cranelift to JIT the redstone operations, which are represented as a weighted directed graph.…

With MCHPRS the demo takes 9 hours to run, it would take decades using Minecraft. Ok, to clarify, is MCHPRS a functioning Minecraft Server that can support a player logging in and mining? This story is seeming a lot more like "A 1Hz CPU made on something that has mechanical similarities to Minecraft".

Seems like splitting hairs. The redstone mechanics needed to run the computer are implemented exactly the same as the real game. The computer can be loaded into real minecraft and runs as expected.

MCHPRS just takes out what the computer doesn't use and optimizes the simulation of it.

I would call that a computer running in minecraft, but you could argue either way.

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

#69
post #28

Will it run Doom?

I don't know if I'm more impressed that a coffee maker can run Doom, that another game can run Doom from inside it like this, or that Doom is just this portable

I think my favourite was the recent “Doom can run Doom”.

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

#70
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?

As mentioned by others the Rust code shown in the video is for the Minecraft server implementation. But the game itself running on the in-game CHUNGUS 2 was written in another language, and then they have a custom assembler that translates that code into Minecraft blocks to be loaded as the 8kb ROM.
Post reply on HN