TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

CSS Turing Machine

57 pointsby mr_tyzicover 4 years ago

3 comments

bidirectionalover 4 years ago
I disagree that this proves the Turing completeness of CSS. Part of the definition of Turing machines is access to unbounded memory. In Python, for example, we meet this requirement by saying that any underlying request to new memory will succeed, or we can imagine an implementation of Python without a stack limit and lambda-encode everything. Ultimately, Python as an abstract language has no memory limitations, that&#x27;s just an artifact of us implementing it on real-world machines. The same could be said for Haskell or Javascript.<p>CSS on the other hand (or at least the encoding presented here), requires us to state upfront, in the CSS file, how many cells we need. This is equivalent to non-Turing complete finite state machines. If we must encode memory bounds in the program, we can solve the halting problem, can&#x27;t translate certain Python programs, can solve the Busy Beaver problem via a lookup table, etc. One of the main goals of Turing when defining computability was describing potentially infinite processes with a finite language.
评论 #25785037 未加载
评论 #25790913 未加载
评论 #25789105 未加载
评论 #25789696 未加载
mr_tyzicover 4 years ago
More on this:<p><a href="https:&#x2F;&#x2F;notlaura.com&#x2F;is-css-turing-complete&#x2F;" rel="nofollow">https:&#x2F;&#x2F;notlaura.com&#x2F;is-css-turing-complete&#x2F;</a><p><a href="https:&#x2F;&#x2F;stackoverflow.com&#x2F;questions&#x2F;2497146&#x2F;is-css-turing-complete" rel="nofollow">https:&#x2F;&#x2F;stackoverflow.com&#x2F;questions&#x2F;2497146&#x2F;is-css-turing-co...</a>
dane-pgpover 4 years ago
&gt; You need to enable JavaScript to run this app.<p>That seems like it&#x27;s cheating, somehow.
评论 #25785116 未加载