Hacker GitHub

← All repos

SLaks/Silon

View on GitHub ↗ ★ 343 HTML

Logic Gates and Adders in pure CSS

5 mentions on Hacker News by 5 people: 0 stories, 5 comments · first 2015-05-18 · latest 2026-02-24

Mentions per year 5 mentions · busiest year 2015 (2)
20082026
  1. It has been a while. This project that implemented logic gates in CSS is 10+ years old: https://github.com/SLaks/Silon Linked from here: https://gwern.net/turing-complete#surprisingly-turing-comple...
  2. …this would be implemented by recreating a calculator logic gates using nothing but css selectors. https://github.com/SLaks/Silon
  3. 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…
    comment by aji · 2016-09-30 · in Computing primes with CSS
  4. Note that that's all computed by LESS code. https://github.com/SLaks/Silon#implementation-details https://github.com/SLaks/Silon/blob/gh-pages/styles/_operato... The actual declarations end up being nicely simple; see…
  5. In case you're wondering what makes it tick: https://github.com/SLaks/Silon/blob/gh-pages/styles/basic-ga...