Re:Computing primes with CSS
by wanda on Friday September 30, 2016 @06:37AM
(#12611625)
This is way cooler: http://silon.slaks.net
[ Parent
| on HN ]
is it, though?
https://github.com/SLaks/Silon#implementation-details
"Silon is implemented using LESS to generate CSS selectors for every combination of inputs that will turn each gate on. In effect, I created a LESS-based DSL that expresses (almost-)arbitrary boolean expressions."
Yes, I know a preprocessor is involved, much like many single-element/background-image hacks and CSS-only glitch effects which translate to fifty-keyframe animations.
It's still cooler than the OP.
it's definitely shinier than the OP, but I personally think encoding a sieve of Eratosthenes in a CSS selector is cooler than encoding truth tables in a CSS selector
I was always more interested in the philosophy of mathematics than prime numbers.
Actually, I'm interested in philosophy in general, especially early Wittgenstein & Gödel.
So I'm biased.
Yes, it is. Almost-arbitrary boolean expressions vs. completely straightforward and obvious use of a CSS selector.
That's not just cool, that's crazy!