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.

15 of 131 comments (clear)

  1. I'm sure Twitter is delighted by space_jake · · Score: 3, Funny

    About javascript in their tweets...

    1. Re:I'm sure Twitter is delighted by WrongSizeGlass · · Score: 4, Funny

      About javascript in their tweets...

      If they aren't just give it some time ... I'm sure it will worm its way into their hearts ;-)

  2. js1337 by user24 · · Score: 3, Funny

    >I'm wondering what they can do if given some extra bytes.

    In a few weeks you'll find out at js1337.com ;0)

  3. And BOOM by Anonymusing · · Score: 3, Funny

    Is there a Javascript app for "This site has been Slashdotted"?

    --
    Liberal? Conservative? Compare perspectives at Left-Right
    1. Re:And BOOM by WrongSizeGlass · · Score: 5, Funny

      I'm not impressed ... maybe I'll try again, but this time I'll turn off NoScript.

  4. Re:Internet Explorere cannot open... by Yvan256 · · Score: 3, Funny

    That's a joke, right? Do you really expect Internet Explorer to run cutting-edge web stuff?

    Try Chrome, Safari, Opera or Firefox.

  5. Asteroids by Hatta · · Score: 3, Interesting

    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!
  6. 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/

  7. Re:Found a bug in tiny ches... by Iamthecheese · · Score: 5, Funny

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

    --
    If video games influenced behavior the Pac Man generation would be eating pills and running away from their problems.
  8. Re:Genetic approach by TelavianX · · Score: 4, Insightful

    This is possible, but how many valid javascript programs are 1024 characters or less? A very large amount!

    Checking each if it followed the predefined rules would be time consuming. For instance, in Pacman, you might have to have the computer play a full game to check if the rules are met.

    Almost all the programs would be utter nonsense.

  9. 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/

  10. Chess by Dthief · · Score: 3, Interesting

    impressed that they fit in a reasonable A.I. into the thing!

    --
    www.RacquetUp.org - Helping Detroit Youth
  11. 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.