HackerReposA FIELD GUIDE TO OPEN SOURCE
ProSponsor the shelf♧ 0
← Back to top all-time
yrd
tm2css
SCSS2024–2024
yrd / tm2css

tm2css

Turing machine built exclusively using CSS (with a bit of HTML)

2Distinct people
2Mentions
0Explicit recommenders
0GitHub stars
REPOSITORY AT A GLANCE

What to know before exploring

What it is

Turing machine built exclusively using CSS (with a bit of HTML)

GitHub

Where it is used

No documented product use has been verified yet.

What people are saying

No recommendation phrase was found in the indexed comments.

No classified warning is attached to this page. Read the discussions before treating silence as approval.

Also in these discussions

No other repository is repeatedly linked in the same discussions.

This week on Hacker News

Nov 7–Nov 14 UTC · Direct repository links and separately labeled related project stories. Indexed through 11/14/2026, 1:49:46 PM UTC.

No direct repository links were found in the indexed HN discussions over the past seven days. Older discussions are available below.

Mentions over time

HN mentions by hour2 dated mentions

Observed mentions: 2024-09-05 08:58:13 UTC to 2024-09-05 10:36:50 UTC.

012024-09-05 08:00:00 UTC to 2024-09-05 09:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 commentsSep 5, 08:002024-09-05 09:00:00 UTC to 2024-09-05 10:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 commentsSep 5, 09:002024-09-05 10:00:00 UTC to 2024-09-05 11:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 commentsSep 5, 10:00

Counts come from the repository’s dated source evidence. Index cutoff: 2026-11-02 08:16:59 UTC.

View mention counts and date ranges
UTC ranges include their start and exclude their end. Select a period to filter the source evidence.
PeriodStart (UTC)End (exclusive, UTC)MentionsSubmissionsComments
Sep 5, 08:002024-09-05 08:00:00 UTC2024-09-05 09:00:00 UTC101
Sep 5, 09:002024-09-05 09:00:00 UTC2024-09-05 10:00:00 UTC000
Sep 5, 10:002024-09-05 10:00:00 UTC2024-09-05 11:00:00 UTC101

What Hacker News says

2 sources
CSS has been very, very, very close. I would had had, had - "has" not been had, expected sooner, but atlas. But the aforementioned ":has": : The :has() pseudo-class cannot be nested within another :has(). This is because many pseudo-elements exist conditionally based on the styling of their ancestors and allowing these to be queried by :has() can introduce cyclic querying. Pseudo-elements are also not valid selectors within :has() and pseudo-elements are not valid anchors for :has(). Note the two limits, "cyclic querying" and self-referential parameters. The former is required for a basic computational model, the latter for one that supports recursive-ness and thus some optimizations . "Rule 110" This is just lambada calculus and has no tape movement - requires checkin boxes, still, and thinking about whether or not to halt - whic
Read the rest
h actually kinda is its own asterisk (not the usual 'infinite tape' kind). Turing Machines would halt on some input; your calculator goes until the actual computer, you, halts, or stops actually checking(computing) the state for a HALT/desired state. You'd think someone woulda parasol'd the checkboxes and at least attempted to use :onHover with grid to require minimal mouse movement to trigger input instead. Or, a bounding box input state driven hack - like when your cursor is "in between" elements, changing every frame. pure HTML+CSS, e.g. https://github.com/yrd/tm2css seems cool, actually. SASS repeats CSS exhaustively through HTML-encoded steps until a valid one is painted - that valid one being the HALT/output. You do have to specify the number of steps, though. You would have to know whether or not it halts, the answer, and how many steps it took to compute to functionally (heavy-lifting in this context) use it - or else it would have to reference itself....which would make it a higher grammar. But it can't: https://www.w3.org/TR/css-variables/#cycles This can create cyclic dependencies where a custom property uses a var() referring to itself, or two or more custom properties each attempt to refer to each other....If there is a cycle in the dependency graph, all the custom properties in the cycle are invalid at computed-value time. Very close. But you must beg the question (ie. know the answer) in both step count and thus the answer, else you'd have an infinite HTML page. Which is fine in math (HTML is a Type 2, can be infinite, no self-reference, no self-children, nor orphans), but not really much of a simulation/emulation though - if it can only produce valid machines at (essentially) compile time.
In CSS @property and the new style

MAKE YOURSELF AT HOME

A few shortcuts

/
Search the collection
?
Open this guide
Esc
Close dialogs and navigation

Your saved repositories and interests stay in this browser.