Earlier quoted context omitted.
Using a lookup table is a valid way to implement something. It is used often for precalculating expensive functions. (trig tables are very common). This is just one extreme of the runtime-vs-memory trade-off.
On FPGAs, it's actually how most logic functions are implemented. FPGAs are a big grid of SRAM-based lookup tables, some latches and fixed function blocks, and a whole ton of interconnections.
Silon – Adders and Logic Gates in Pure CSS
21–30 of 40 posts
Re: Silon – Adders and Logic Gates in Pure CSS
#22Re: Silon – Adders and Logic Gates in Pure CSS
#23Re: Silon – Adders and Logic Gates in Pure CSS
#24Earlier quoted context omitted.
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. o.o am i doing it??
I highly recommend checking out LESS -- even if you ignore all of it's features, being able to define variables alone is worth it :)
Re: Silon – Adders and Logic Gates in Pure CSS
#25Earlier quoted context omitted.
Sure, but if the headline was "CSS can be used to implement a lookup table", it would be much less eye-catching. More to the point, Boolean expressions and truth tables are not equivalent representations that should be treated on an equal footing; there's an exponential blowup involved when converting from one to the other. Just try extending that 4-bit adder to 16 or 32 bits. The functions that can be tractably repr…
The difficulting in actually creating some of these larger lookup tables is, of course, very true. That doesn't mean that sometimes , depending on the problem you're solving, lookup tables can still be a useful (or preferred) implementation method. It is the programmer's job to decide what point on the "using storage" "using CPU time" continuum is appropriate for the current problem. Obviously, larger chained adders…
Edit: Just to clarify, the disappointment is from being excited that something like this could be wired up the way we initially thought. The result remains cool and clever all the same.
Re: Silon – Adders and Logic Gates in Pure CSS
#26Earlier quoted context omitted.
Using a lookup table is a valid way to implement something. It is used often for precalculating expensive functions. (trig tables are very common). This is just one extreme of the runtime-vs-memory trade-off.
On FPGAs, it's actually how most logic functions are implemented. FPGAs are a big grid of SRAM-based lookup tables, some latches and fixed function blocks, and a whole ton of interconnections.
Re: Silon – Adders and Logic Gates in Pure CSS
#27You 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...
CSS is already turing complete: - http://stackoverflow.com/questions/2497146/is-css-turing-com... This project doesn't use rule 110, it uses LESS which sorts out the logic while compiling and spits out the results in css.
Re: Silon – Adders and Logic Gates in Pure CSS
#28Re: Silon – Adders and Logic Gates in Pure CSS
#29Hey heads up Steve Gibson of the Security Now podcast just shared your website. You might be getting a ton of traffic, if thats a concern