and the data: uri
data:text/html;charset=utf-8;base64,PGJvZHkgb25sb2FkPW49dT12PTA7d2hpbGUobisrPDJlNSlyPU1hdGgucmFuZG9tKCkqOTkscjwxND9yPDE/KHU9MCx2Lz02KTp2PXUvNCt2LzQrKHI8Nz8odT11LzUtdi80LDEuNyk6KHU9di8zLXUvNywuNCkpOnU9dSouODUrdi8yNSswKih2PXYqLjg1LXUvMjUrMS42KSxkb2N1bWVudC5ib2R5Lmxhc3RDaGlsZC5nZXRDb250ZXh0KCcyZCcpLmZpbGxSZWN0KDUwKnUrMTQwLDUyNS01MCp2LDEsMSk+PGNhbnZhcyBoZWlnaHQ9NTUwPg==
242 bytes, only canvas, but you have to click on it to show the fern.
<canvas height=550 onclick=n=u=v=0;while(n++<2e5)r=Math.random()*99,r<14?r<1?(u=0,v/=6):v=u/4+v/4+(r<7?(u=u/5-v/4,1.7):(u=v/3-u/7,.4)):u=u*.85+v/25+0*(v=v*.85-u/25+1.6),document.body.lastChild.getContext('2d').fillRect(50*u+140,525-50*v,1,1)>
You should use double quotes instead of single quotes. Although they may look like they weigh more, in fact the ASCII value is less, and has fewer bits set.
Name:
Anonymous2009-06-14 18:04
>>50
That runs about 3 times as fast in Chrome than it does on Firefox trunk nightlies. Goddamn, they should just use V8. Fireshit is starting to hold the web back.
Name:
Anonymous2009-06-14 18:17
>>53
Firefox has never been a fast browser, what did you expect?
Name:
Anonymous2009-06-14 18:40
>>54
They claimed their "new" Tracemonkey JS engine was as fast or faster as V8. I have yet to see a single instance of that being true (it might be for some microbenchmark with some very tight invariant loop, but for any real program of reasonable size, it's a fucking failure)
Name:
Anonymous2009-06-14 19:30
>>55
it is faster for some microbenchmarks, but it fails horribly on anything that doesn't look like it was written by a FIOCfag.
Name:
Anonymous2009-06-14 19:45
>>56
What's the FIOCfag code writing craracteristic you're talking about? I don't think indentation can affect execution speed much
>>59
Oddly enough, sans no functional programming functional programmers seem to foot this bill better than python programmers. Hey guys, why would anyone use a conditional when they can simulate the effect by continuation passing curried $ applied arguments to a catamorphic functor who evaluates the given idempotent unary function parameter and folds it based on an independent data type with accompanying functor to ensure catamorphic conformance.
Name:
Anonymous2009-06-14 21:57
>>60
i don't think you understand the "only doing one thing per line" part...
n=0
u=0
v=0
n2e5 = n < 2e5
while(n){
n = n + 1
r = Math.random()
r = r * 99
r14 = r < 14
if(r14){
r1 = r < 1
if(r1){
u = 0
v = v / 6} // Dammit braces are so ugly and redundant.
else{
v = v / 4
u4 = u / 4
v = v + u4
r7 = r < 7
if(r7){
u = u / 5
v4 = v / 4
u = u + v4
x = 1.7} // I really hate braces.
else{
u = u / 7
v3 = v / 3
u = u + v3
x = 0.4 }
v = v + x}} // Don't you hate braces too?
else{
u = u * 0.85
v25 = v / 25
u = u + v25
v = v * 0.85
u25 = u / 25
v = v + u25
v = v + 1.6} // Ok that's it if I have to type one more closing brace, I'm going to throw a huge tantrum until someone adds support for Python scripting to Firefox.
u = u * 50
u = u + 140
v = v * 50
v = 525 - v
c = this.getContext('2d')
c.fillRect(u, v, 1, 1)
except an FIOCfag split up into about 20 smaller functions so there's no more than two levels of loop/conditional nesting in each function instead of the four levels here.
Name:
Anonymous2009-06-15 13:26
How do you pronounce``FIOCfag''?
1) Fy-ock fag
2) Fee-ock fag
3) Eff Eye Oh See fag (faggot)
4) My other car is a cudder.
Name:
Anonymous2009-06-15 13:37
>>25
can be reduced by one byte to 322 by using a different way of defining functions
Also, both "good" versions can be improved with no loss of quality by distributing the factors. Hence, a black-and-white non-animated 209 byte version:
>>73 Some hacker artists create art by writing computer code, and others, by developing hardware. Some create with existing software tools such as Adobe Photoshop or GIMP.1
____________ http://en.wikipedia.org/wiki/Hacker_artist
I will paste it into my URL bar and then it will draw a fern.
Name:
FrozenVoid2009-06-23 8:33
>>78
create "test.html" write the <canvas stuff in and open with Firefox. Not rocket science
Base64 is actually b]larger[/b] then normal text,so you don't save space by it.