3 ms·
There's already a bunch of ways to make "something close to Turing Complete CSS", but there's usually some caveat. This change, when applied with css transitio
by OtherShrezzing 3y ago
There's already a bunch of ways to make "something close to Turing Complete CSS", but there's usually some caveat.
This change, when applied with css transition to split commands, would allow you to create loops, and enable you to implement the commands MOV, JMP, INC, and DEC. It should be possible to compile an arbitrary C program with just those commands (some papers have shown just MOV will do). In the most inefficient scenario, you should be able to draw a series of AND/OR and NOT/NAND gates to a HTML document, and colour in different outputs based on their inputs.
So CSS should be Turing Complete without caveats after this feature is introduced. I'm not sure what the output of such an application could be. I guess just the satisfaction of knowing that some computation is occurring, if that counts?
- miohtama 3y agoInteresting. CSS can generate content, so it can actually output text like any other console.