1K JavaScript Madness
An anonymous reader writes "JS1k has a simple goal: to get programmers producing demos written in JavaScript that are 1k in size or less. That's just 1024 bytes to play with. There's even additional bonus points on offer if a demo's code can fit inside a single tweet. Now that the contest is finished and there is a top-ten, I'm wondering what they can do if given some extra bytes." I like the Tetris clone. The pulsing wires demo is neat too but kinda stuttery on my machine.
About javascript in their tweets...
>I'm wondering what they can do if given some extra bytes.
In a few weeks you'll find out at js1337.com ;0)
Is there a Javascript app for "This site has been Slashdotted"?
Liberal? Conservative? Compare perspectives at Left-Right
"Hey slashdot kids. It's 4pm east coast. Here's 10 games you can play, hosted on this site here. See you all at the coffee machine in 180 seconds."
slashdot: where everyone yells sarcastic metaphors to themselves to understand the issue
Is the site melting or do I just need Chrome?
...you can't castle queen side.
I'm wondering what they can do if given some extra bytes."
If they use bankswitching, maybe they can pull off Asteroids
Give me Classic Slashdot or give me death!
can they produce a 1k jQuery?
Legend Of The Bouncing Beholder
Tiny chess
Tetris with sound
WOLF1K and the rainbow characters
Binary clock
Mother fucking lasers
Graphical layout engine
Crazy multiplayer 2-sided Pong
Morse code generator
Pulsing 3d wires
Would it be feasible to take a current simple game like Pacman, write a driver to check it for proper functionality on an x86 CPU, spawn thousands of them in minor variations, and use a genetic algorithm to keep the smallest?
If video games influenced behavior the Pac Man generation would be eating pills and running away from their problems.
This is obviously something a large percentage of /.'ers would be checking out, so can we please play it safe and add .nyud.net as a precaution next time?
Apparently they should have made their size requirement smaller. 1024 is apparently taking too much time for their site to handle.
It is a bold demonstration as to why we
http://www.the5k.org/ Does anyone remember this site? It was a contest back in 2000-2002 to create the coolest website with only 5KB. Looks like it had a spiritual successor too: http://10k.aneventapart.com/
Chess in 1024 bytes and I can't win it. What a shame.
Interesting idea. Thirty years ago many people were introduced to programming by printed (ink on mashed up trees) anthologies of programs that were generally around a page long (8.5 x 11). Don't know how pervasive the term was, but in my personal circles these programs were called "K-Byters" because they were ~1 K long (or less).
Got beaten by the feckin' 1K chess game in about a dozen moves. Feck!
>>Now that the contest is finished and there is a top-...
WTF tell me I can win shit then say it's over >:/
I'm wondering what they can do if given some extra bytes
Get them all to work in Internet Explorer. Most demos give errors in IE8x64.
1024 bytes of JavaScript is about 1024 bytes too many.
I bet any of these demos could be implemented in Commodore 64 assembly code in less than 1K and still be faster than javascript on today's computers...
It'd be truly impressive if it were *human-readable* source code that fit under 1k.
I wonder what java code could be ported with the google web toolkit and remain under the 1K limit.
impressed that they fit in a reasonable A.I. into the thing!
www.RacquetUp.org - Helping Detroit Youth
You want a static code analysis tool that can perform dead code elimination. It looks like Google's Closure Complier will do that for JavaScript code.
"There's even additional bonus points on offer if a demo's code can fit inside a single tweet."
So that kid that made the self-posting Twitter worm the other day wins by default?
My first computer was Tandy 16K color computer, one of the contest in the old Rainbow Magazine was how much you could put in one line of basic code. Still great to see people be creative within a limited space of memory.
where http://biy.ly/XXXXXX redirects to some file with a minimum size of 1 MB.
It just hit me--think of all the stuff you could do in a Perl program that would fit into one tweet?
Coder's Stone: The programming language quick ref for iPad
I can't believe this story's been up for nearly two hours and no one's rushed in to explain that these are one kibibyte demos, thus depriving us of our right to make fun of them and their dumb-sounding pet units.
Dewey, what part of this looks like authorities should be involved?
Dummies never learn.
k = kilo = 1000
K = K = 1024
CS 1001
It must be nice to not include the entire infrastructure of code that is actually doing the heavy lifting as this fantasy that in only 1K you too can do x,y and z.
Demoscene site Pouet.net search finds a few dozens of javascript demos.
http://pouet.net/prodlist.php?platform[]=JavaScript
Here's the making of of WOLF1K and the rainbow characters the Wolfenstein 3D-ish game sans violence in 1k that game #4
Hardly any on those work in IE9.
Raymarching using Distance Fields in 1K Fast on Chrome and Opera http://js1k.com/demo/704
madness...?? this... is... javascript!!!!