R eaders interested in programming languages will surely recognise the idea of a language being flavour of the month. However, in the interests of accuracy, we’d have to admit that the phrase “flavour of the year” or, more probably, “flavour of the decade” would be more appropriate. (looks at C++ – Ed)
What’s more, you’ll probably recognise the names of once-popular languages that are now little more than the stuff of history books. Indeed, once a language passes its peak of popularity, we might think that a steady decline to obscurity is surely inevitable, and it usually is. But statistics reveal one language that’s bucking the trend by coming back from the dead. That language is Prolog, and the revival in its fortunes is due, in no small part, to the artificial intelligence (AI) revolution.
Prolog is our subject here, but this isn’t an expose of yet another language because Prolog certainly isn’t a “also ran” programming language. By way of contrast, in featuring Prolog we’ll be introducing you to a language which, in all probability, looks totally unlike any other language you’ve ever seen before. Indeed, as we’ll see, it supports a totally different programming paradigm from the likes of Python, C++, Java, C# or even most of the golden oldies like FORTRAN, COBOL, PL/1 or Algol.
Prolog’s Resurrection
Prolog is no spring chicken – it clocks up its first half-century in 2022. Developed in a collaboration between the Universities of Aix-Marseille and Edinburgh, and introduced in 1972, it was designed specifically for programming AI applications. In particular, natural language processing was considered a particular strength. It wasn’t the first such– but, even today, the world still isn’t exactly awash with dedicated