Aww, after seeing that I'm a little disappointed. Each CSS file is basically just a giant truth table that describes which state each bit should be in under all possible combinations of inputs.
It makes for a cool demo of how simple Boolean circuits work, but you can't really say it's "doing computation" in CSS when all of the actual computation has been done ahead of time.
You can implement an adder in CSS? Somehow this reminds me of C++ templates. These things seem to gain power and have new features until they become turing-complete. And beyond...
It's not really any surprise that templates (or CSS) could be Turing complete, as all the lambda() function does is the same thing a template does - replacing the macros in a template with an argument.
This is actually an important lesson that is often missed: if the app you're writing gives the anonymous users any kind of find/replace macro capability, you're giving them a fully Turing complete language (though it's probably not easy, but that rarely stops anyone) and all the potential problems that can bring.
haha, thats a funny thought. I like CSS. I would love for it to have variables so I could consolidate changes and edit them via JS. Sorta like all the CSS-libraries.
[+] [-] jacquesm|11 years ago|reply
https://github.com/SLaks/Silon/blob/gh-pages/styles/basic-ga...
[+] [-] teraflop|11 years ago|reply
It makes for a cool demo of how simple Boolean circuits work, but you can't really say it's "doing computation" in CSS when all of the actual computation has been done ahead of time.
Still, it's clever.
[+] [-] vardump|11 years ago|reply
[+] [-] spartanatreyu|11 years ago|reply
This project doesn't use rule 110, it uses LESS which sorts out the logic while compiling and spits out the results in css.
[+] [-] pdkl95|11 years ago|reply
This is actually an important lesson that is often missed: if the app you're writing gives the anonymous users any kind of find/replace macro capability, you're giving them a fully Turing complete language (though it's probably not easy, but that rarely stops anyone) and all the potential problems that can bring.
[+] [-] yellowapple|11 years ago|reply
I get shivers just thinking about all the fun I can have breaking web semantics this way.
[+] [-] devsquid|11 years ago|reply
o.o am i doing it??
[+] [-] devsquid|11 years ago|reply
[+] [-] nosir33|11 years ago|reply
[+] [-] slaks|11 years ago|reply
[+] [-] tombh|11 years ago|reply
I didn't realise you could click on them until after a good while though.
[+] [-] devsquid|11 years ago|reply
[+] [-] nickysielicki|11 years ago|reply
[+] [-] pkghost|11 years ago|reply
[+] [-] jacquesm|11 years ago|reply
[+] [-] crimsonalucard|11 years ago|reply