logoalt Hacker News

mbreesetoday at 12:36 PM2 repliesview on HN

This is a cool demo, but it tells me that CSS might be too complex now. Why should you be able to emulate a CPU with a styling language? I’m not sure what you get by using a Turing complete language for visual styling.


Replies

FartyMcFartertoday at 12:50 PM

I don't know much about CSS, but Turing completeness is notorious for showing up in systems unintentionally.

It doesn't take much to be Turing-complete - if a system provides unbounded read/write memory plus branching or conditional recursion you're usually there.

As an example, Magic The Gathering (the card game) is Turing-complete: https://arxiv.org/abs/1904.09828 . You can use creature tokens as memory and various game mechanics to do flow control. Was this intentional by the designers? Most likely not...

show 2 replies
namuoltoday at 5:30 PM

Less JavaScript is a bad thing now?