p01.org — A pretty cool example of efficient code, showing what's possible with just 256 bytes. Consider the following for an idea of scale:1) Many Digg story descriptions (this one included) and user comments are longer than the code used for the effect.2) It's unlikely that this page can be Dugg out of service, or will suffer a large bandwidth bill. ;)
Mar 12, 2007 View in Crawl 4
cpbrownMar 12, 2007
yeh remember this is javascript .. and java is a verry heavy platform, so really this isn't very processor friendly, even if the downloaded code is very small.
xjvzMar 13, 2007
It doesn't work in Safari, yet it works just fine in Konqueror? Now that's odd; maybe the Unity project should be about updating Safari to use a newer version of KHTML/KJS.
lvsfinestMar 13, 2007
It repeats.
m4tt3rMar 13, 2007
All that program does is make [you] look like a retard. Why isn't it working?.... o wait.
mikewellerMar 13, 2007
Check this out:<a class="user" href="http://www.256b.com">http://www.256b.com</a>Programs written in ASM in 256 bytes or less. Some of these are amazing.
tanathMar 14, 2007
You lie.
sepulchreMar 14, 2007
I think it's cool - the kind of challenge we faced often in the '80s. Ok, it's not really efficient, but it is small. It's sad to see that programming elegance has been pushed aside for the sake of deadlines. Complaints about oversized, sluggish programming are now met with the cliche cop out: "Get better hardware!" Imagine what all the wonderful new hardware could do if efficient programming had remained a standard. Btw, it runs fine on my celery w/ 750m ram.
funnyusernameMar 18, 2007
Heh - just rewrote it into 254 bytes. can anyone get it lower?... body id=B bgColor=0> ...... left:'+(50+z*c(q))+'%;color:#'+((z>>3)?'fff':'555')+'>.' ...you can change the unicode characters to something else - e.g. q and r - to get it to run on "fussy" browsers; just be careful to watch the case when you change them.to answer the question regarding interval at 9ms, changing it to 25ms would add an extra byte!
iamp01Mar 19, 2007
You can gain 2 more bytes if you tweak the calculations of the projection and the top coordinate. Bringing the effect down to 209 bytes.