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.

 

espbook

 

Comments




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

 

Banner


Fermyon's Spin WebAssembly Version 3.0 Released
26/11/2024

The open source developer tool for building, distributing, and running serverless WebAssembly applications reaches version 3.0. What's new?



Kafka 3.9 Adds Dynamic KRaft Quorums
16/12/2024

Kafka 3.9 has been released. The team says this is a major release and the final in the 3.x line. It This will also be the final major release to feature the deprecated Apache ZooKeeper mode. Kafka is [ ... ]


More News

Last Updated ( Friday, 29 March 2013 )