JS1K 2013 Amazing 1K JavaScript Programs
Written by Lucy Black   
Friday, 29 March 2013

If you have never heard of JS1K then you are missing a treat. It is a competition for the best JavaScript program in under 1024 bytes.

What can you cram into 1K bytes? If you think the answer is "not a lot, then you need to take a look at this year's entries. 

The competition has been going for just short of four years and there seems to be no end in sight at the moment of new ideas for 1K of JavaScript. The prizes are not huge, around $300, but the glory is worth the effort. The 2013 competition is about to draw to a close on the last day of March so you might just have time to get a submission in - after all it's only just over 1000 bytes!

You do get a little help - there is a basic runtime environment which includes a canvas element. You can also use audio and video but not WebGL. The program has to run in Firefox, Chrome and Opera - not IE and Opera because they are OS specific. 

What is the point of it all?

Well, if you have to ask there is no way you are going to get it, but there is a simple pleasure in achieving a lot with a little. It also forces programmers to be creative in miniature and it is difficult to see how some of the artistic masterpieces would have come about without a limitation on resources. 

Take, for example, "You Are Here" by Oakley Jurgens - a rotating globe with the browser's location marked:

js1kworld

 

Would such a creation have been as sparse without the 1K limit?

Of course there are also lots of impressive random artworks such as Oldskool Plasma by Juhani Imberg:

js1kplasma

 

or Flower of Life by Tristan Brehaut:

js1kflower

 

There are also lots of favorites such as Life, Pac Man, analog clock, fractal trees and so on. There are also a few games, which is surprising in only 1K. My favorite is Tree Ninja by Lars, which might not be strategic but is still addictive:

js1ktrees

However, for sheer amazing impressive ability to pack features into 1K, it is difficult not to mention 1K Meteors by Oscar Toledo G. The animation is smooth, the shooting is fun and it is difficult to win!

 js1kmetor

 

There are lots more demos at the JS1K site and you can read the code to find out how it all works. 

If you find one that you think deserves to win then post a comment here. 

 

JS1Klogo

 

Further Information

JS1K

Related articles

Tearable Cloth In JavaScript

Go Beyond Responsive Design With JavaScript Capturing

Tetris In 140 Bytes

Ray Tracer in JavaScript

 

To be informed about new articles on I Programmer, install the I Programmer Toolbar, subscribe to the RSS feed, follow us on, Twitter, FacebookGoogle+ or Linkedin,  or sign up for our weekly newsletter.

 

raspberry pi books

 

Comments




or email your comment to: comments@i-programmer.info

 

Banner


Eclipse JKube 1.16 Goes GA
08/04/2024

Eclipse JKube makes deploying your Java application to a Kubernetes cluster a breeze. Let's find out what's new.



Angular and Wiz To Merge
27/03/2024

Two web development frameworks used at Google are merging. One, Angular is open source and widely known, while the other, Wiz, is an internal web framework developed and used by Google for some o [ ... ]


More News

Last Updated ( Friday, 29 March 2013 )