Linux Format

APL: going strong after all these years

OUR EXPERT

Mike Bedford might not use it in anger, but he’s been fascinated by APL’s quirkiness since he first saw how it could generate prime numbers in just 20 characters.

The classic IBM 5110 luggable, as we discovered in LXF291, ran APL, which stands for A Programming Language, yes really. Despite APL – according to the TIOBE index of the popularity of programming languages – languishing somewhere between the 50th and 100th positions, we were surprised to find that APL still has an enthusiastic following among enthusiasts and for developing commercial applications.

As always, the unexpected is the trigger for articles, and we’re delving into classic programming languages and why some coders choose APL over today’s latest and greatest languages, and what types of application benefit from its different approach to problem solving.

APL overview

Before starting to look at how and why APL is used today, we ought to paint a picture of it. Common descriptions range from unusual to downright bizarre. In fact, a professor of computer science at an American university is on record as saying that “APL is a language designed by a mad-man”. Part of the reason that APL is considered strange is its use of special symbols, instead of keywords, for many of its functions. We also have to say that it is terse in the extreme, as you can see from the following hieroglyphics: , which is a variant of the commonly cited code for displaying all prime numbers up to a maximum of X. Part of the reason that APL code is so concise is that, although some newer variants

You’re reading a preview, subscribe to read more.

More from Linux Format

Linux Format2 min read
OBS Studio
Version: 30.0.2 Web: https://obsproject.com There are lots of good options for recording screencasts, but if you want to live-stream T your desktop, one of the best options is OBS Studio. The app works with all the major online streaming providers, s
Linux Format1 min read
Wine For Wayland
2023 was a great year for the Wayland driver for Wine. The goal was to move forward from the experimental phase and make the driver a proper upstream component. A year later, after several merge requests, many people are now already able to use the l
Linux Format2 min read
Back Issues Missed One?
ISSUE 313 April 2024 Product code: LXFDB0313 In the magazine Discover how to use the ultimate hacker’s toolkit, staying out of trouble while doing so. And join us as we take the Puppy Linux developer’s new distro for a run and explore its container

Related