12

Sooooo.... I just read that CSS 3 is actually Turing complete. So ha to all of you that say CSS isn't a programming language. It's been proven that it is. HA. This is the second greatest day of my life, only after finding out that Powerpoint is Turing complete. Yeah.

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

Comments
  • 2
    I'm sorry to tell you that css is not, in fact, Turing complete. Turing completeness requires the ability for a program to feedback into itself, i.e it requires some sort of looping of recursion. Without that, while you may be able to calculate a step of a program - or, indeed, duplicate your code to make that multiple steps - you can't work on arbitrarily long processes, which are required for Turing completeness.

    The canonical example for css being Turing complete, the rule 110 implementation, actually requires significant user interaction and/or Javascript to drive it. The interaction is more than just clicking "next step", too - it's entering the entire output of one step into the next.
  • 1
    @configurator but Wikipedia says it's true so it must be true... 😋
  • 2
    I'm not sure that there's a real definition to "programming language", and that it would include Turing completeness :)
    Plus, CSS3 isn't Turing complete by itself, it needs HTML and user interaction

    And even if it was a programming language, styling with CSS still isn't programming!
Add Comment