News for hackers. Stuff that matters.
Re:Computing primes with CSS by wanda on Friday September 30, 2016 @06:37AM (#12611625)
This is way cooler: http://silon.slaks.net
Re:Computing primes with CSS by aji on Friday September 30, 2016 @01:55PM (#12614050)
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."

Re:Computing primes with CSS by wanda on Friday September 30, 2016 @01:59PM (#12614070)
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.

Re:Computing primes with CSS by aji on Friday September 30, 2016 @02:03PM (#12614108)
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
Re:Computing primes with CSS by wanda on Friday September 30, 2016 @03:45PM (#12614789)
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.

Re:Computing primes with CSS by minitech on Friday September 30, 2016 @02:00PM (#12614078)
Yes, it is. Almost-arbitrary boolean expressions vs. completely straightforward and obvious use of a CSS selector.
Re:Computing primes with CSS by eriknstr on Friday September 30, 2016 @10:51AM (#12612773)
That's not just cool, that's crazy!
Re:Computing primes with CSS by adeel4 on Friday September 30, 2016 @12:46PM (#12613582)
wait, what?!