Turing Complete · published
I think of the logic abstraction stack as having three major layers:
Digital circuits
Assembly
Programming
Turing Complete 1.0 was mainly about digital circuits, the first layer of the stack.
Turing Complete 2.0 added among other things a powerful assembler platform, the second layer.
Turing Complete 3.0 will add the final layer, an easy C like programing language.
The compiler for the language will use the .isa files and be able to compile to more or less any computer you build in the game. This will allow us to add levels about operating systems, simple graphics and many other things. In fact I would not be surprised if a majority of the levels end up being about programming in the long run.
We still have a lot of work to do to complete the new compiler toolchain for the game. But one of the breaking changes I want to mention here is related to an internal compiler milestone we have reached. In order for the compiler to use the same assembly system that the game uses, we first had to upgrade the assembly system so it can support assembling x86 at reasonable speeds (we need x86 for self hosting and other things later). Previously, when the assembler saw an instruction like "add r1, r2, r3", it would scan through an array of possible instructions and test them one by one until a match was found. In the new version we turn the syntax into a hash and store the possible instructions in a hashmap, which means we now assemble x86 10 times faster. Unfortunately, in order to hash the syntax we had to change a few things, the main breaking change being that we no longer allow arbitrary field names, now only letters and underscore is allowed (and dot and numbers if it's not the first character). While it is sad to limit creative control in the game, I think assembly will eventually mostly be something players read as compiler output and players will have lots of new creative freedom in the way they design operating systems.
The second breaking change is related to adding mouse input to the game. We combined it with the Keyboard component and created a single Input Event component. Since mouse events are always relative to a screen, the component has changed shape so it slots into the screen the same way ports slot into RAM components. Read the manual for more information. Note these updates will be released for alpha and beta channels first.