Get Your Interpreters Ready—This Year's BASIC 10-Liner Competition Is Open For Entries

Write a complete game using fewer characters than this blog post

2 min read
Feels Like a City was the 2020 winner in the "PUR-80" category.
Feels Like a City was the 2020 winner in the "PUR-80" category.
Image: RoePipi

Tired of slicing Python lists? Can’t face coding up another class in C++? Take break and try your hand at writing a little BASIC—very little, in fact, because the goal here is to write a game in just 10 lines!

The annual BASIC 10-Liner competition is now taking entries for the 2021 contest. Run almost every year by Gunnar Kanold since 2011, contestants must submit game programs written for any 8-bit home computer for which an emulator is available. Using the program to load a machine code payload is forbidden. 

Some of the entries in previous years have been nothing short of astounding, leveraging the abilities of classic computers like the the TRS-80, Commodore 64, and Atari 800. Back in 2019, IEEE Spectrum interviewed Kanold about the contest, and he gave some tips if you’re thinking about throwing your hat into the ring:

While some contestants are expert programmers who have written “special development tools to perfect their 10 Liners,” the contest is still accessible to neophytes: “The barriers to participation are low. Ten lines [is] a manageable project.” …  Kanold points to programing tutorials that can be found on YouTube or classic manuals [PDF] and textbooks that have been archived online. “But the best resource is the contest itself,” he says. “You can find the 10 Liners from the previous years on the home page, most of them with comprehensive descriptions. With these excellent breakdowns, you can learn how the code works.”

So take a look, download an emulator of your favorite machine (if you don’t already have a favorite, I’m partial to the BBC Micro myself) and start programming! This year’s deadline is 27 March, 2021.

Correction: A previous version of this article incorrectly referenced the Amiga 800, rather than the Atari 800 (or Amiga 600 or 1000 or any number of other models). 

The Conversation (0)

The Future of Deep Learning Is Photonic

Computing with light could slash the energy needs of neural networks

10 min read

This computer rendering depicts the pattern on a photonic chip that the author and his colleagues have devised for performing neural-network calculations using light.

Alexander Sludds

Think of the many tasks to which computers are being applied that in the not-so-distant past required human intuition. Computers routinely identify objects in images, transcribe speech, translate between languages, diagnose medical conditions, play complex games, and drive cars.

The technique that has empowered these stunning developments is called deep learning, a term that refers to mathematical models known as artificial neural networks. Deep learning is a subfield of machine learning, a branch of computer science based on fitting complex models to data.

Keep Reading ↓ Show less