Slashdot Mirror


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.

5 of 131 comments (clear)

  1. Re:Found a bug in tiny ches... by Anonymous Coward · · Score: 4, Informative

    "[...]it will validate moves, queen-only promotion, without castling and en passant." http://nanochess.110mb.com/

  2. Re:Found a bug in tiny ches... by ix42 · · Score: 3, Informative

    Today, a day that will live in infamy, I was beaten by a 1000 byte program.

    Whippersnapper. I seem to recall being beaten more than two decades ago by a 1k chess program on a Timex/Sinclair 1000 (aka ZX81).

    Possibly even this one:
    http://users.ox.ac.uk/~uzdm0006/scans/1kchess/

  3. Closure by pavon · · Score: 3, Informative

    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.