News for hackers. Stuff that matters.
Re:Show HN: MineSweeper implemented in 100% CSS and HTML – n... by aaroninsf on Wednesday July 22, 2020 @05:56PM (#23922028)
Idle question,

is CSS/HTML turing complete?

If so I look forward to a Show HN of a CSS/HTML emulator of JSMESS emulating a 386 running Windows 98.

Re:Show HN: MineSweeper implemented in 100% CSS and HTML – n... by pacificmint on Wednesday July 22, 2020 @06:04PM (#23922108)
My understanding is that:

Neither CSS nor HTML is turing complete.

The combination of CSS and HTML together is not quite turing complete either.

The combination of CSS and HTML plus an external source that repeated clicks the mouse is turing complete.

I could be remembering this wrong, however.

Re:Show HN: MineSweeper implemented in 100% CSS and HTML – n... by bawolff on Wednesday July 22, 2020 @08:07PM (#23922881)
It is (and has been since the css 2.0 era) if you include user clicking mouse.

There is a famous demo of rule110 in css at http://eli.fox-epste.in/rule110-full.html

Re:Show HN: MineSweeper implemented in 100% CSS and HTML – n... by potiuper on Wednesday July 22, 2020 @08:43PM (#23923075)
Mouse is not necessary using CSS 3 (animations); Minesweeper[1] is enough to show Turing completeness.

[1] http://web.mat.bham.ac.uk/R.W.Kaye/minesw/infmsw.pdf

Re:Show HN: MineSweeper implemented in 100% CSS and HTML – n... by James0x57 on Wednesday July 22, 2020 @08:52PM (#23923122)
edit: ^ previously said "with css variables to hold state" or something similar (or my wires got crossed and I saw that somewhere else)

CSS variables can't be set by animations yet without JS's CSS Houdini giving them a type - a CSS @ property is in the works to do it without JS though!

Re:Show HN: MineSweeper implemented in 100% CSS and HTML – n... by James0x57 on Wednesday July 22, 2020 @06:07PM (#23922134)
I would say no because the core boolean mechanic that allows CSS-Sweeper to exist cannot be inverted directly (NOT, !). In order to invert anything here, you have to start with an inverted copy of every bit and do the opposite calculation at every &, |, etc to always have a "NOT" var to reference. Like a shadowy, anti-vein, copy of the main logic.

There are several edge cases where a sort of simile of NOT is possible though. You can branch from truthy/falsey into falsy/truthy numbers. And if is something is falsey you can "else" into another action.

Just can't "else" from a truthy state without the ...anti-vein... always being present.

Re:Show HN: MineSweeper implemented in 100% CSS and HTML – n... by Wowfunhappy on Wednesday July 22, 2020 @06:01PM (#23922084)
It’s not.