Linux Format

LISP - exploring the original AI language

Credit: www.gnu.org/software/gcl/

In the previous instalment in our series on classic programming languages, we examined I ALGOL, and this month we’re delving into another archaic language, LISP. However, the fact they both date back to the 1950s is about the only thing the two have in common; in most other respects they couldn’t be more different. In all probability, virtually all languages you’ve ever used are of the type referred to as imperative languages. LISP, on the other hand, is a declarative language. To put it simply, programming in an imperative language involves defining a set of operations that, when executed sequentially, provide the desired functionality. The fact that there’s an alternative might be surprising, but in a declarative language, the end result is defined, leaving the system to figure out how to achieve the goal.

The two approaches have been likened to the instructions provided with a piece of self-assembly furniture. In the imperative approach, the instructions comprise a detailed list of instructions; with the declarative method, you’re just shown a picture of the assembled furniture. In fact, this isn’t our first foray into declarative programming in recent months. In LXF293,we learned about Prolog, the language that almost vanished into obscurity in the 1980s before making a recent come-back, fuelled by the AI revolution.

A declaration for LISP

We need to define LISP more accurately by saying that it’s not devoid of imperative

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

More from Linux Format

Linux Format1 min read
Neofetch Is Dead
On 26th April, Dylan Araps, creator of Neofetch, archived the GitHub repository for the project. This didn’t come as much of a surprise to the community, as the utility has only been updated infrequently in the past few years. Araps updated the Readm
Linux Format13 min readInternet & Web
HotPicks
Version: 2.2.1 Web: https://drawpile.net Krita offers everything you need to create digital art on the Linux desktop, but what if you need to work with other artists to conjure up your masterpiece? Drawpile is a cross-platform drawing app whose main
Linux Format9 min read
Create Old-school Pixel Art Images
Credit: www.gimp.org Think of retro games and you’ll probably think of the pixellated look of titles released on consoles such as the NES. Games such as Bomberman and Kid Icarus worked within the limitations of ’80s technology, yet offered hours of f

Related