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:
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:
or Flower of Life by Tristan Brehaut:
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:
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!
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.
Further Information
Related articles
Go Beyond Responsive Design With JavaScript Capturing
To be informed about new articles on I Programmer, install the I Programmer Toolbar, subscribe to the RSS feed, follow us on, Twitter, Facebook, Google+ or Linkedin, or sign up for our weekly newsletter.
Comments
or email your comment to: comments@i-programmer.info
Google AI Studio Does Angular
27/10/2025
Google's AI Studio can now generate Angular applications. Add the Web Codegen Scorer tool on top and you get a pretty solid Angular development platform.
Microsoft Announces GitHub Copilot App For Java And .NET
27/10/2025
GitHub Copilot has been updated with app modernization features for Java and .NET applications. The news was announced by Microsoft at last month's Migrate and Modernize Summit, alongside new ag [ ... ]
- Missing The Point Of LLMs
- Vibe Coding Is Collins Word of the Year 2025
- Scouting America Launches AI And Cybersecurity Badges
- Epic Settles With Google - Abandons The Rest Of Us
- Exploring The Microsoft Agent Framework
- Chrome DevTools To Benefit From MCP
- Windows XP Crocs Now On Sale
- TestSprite 2.0 Sees User Growth
- Jules Coding Agent Upgraded
- Visual Studio Adds Planning Mode To Copilot
- Edera Open Sources Sprout
- W3C Adopts A New Logo
- Join The Protest Against The Closing Of Android