The Rosetta Code Project

Up to the next level

Now that we have covered the basics of PicoLisp, I think it makes sense to study examples to get used to the syntax and programming style before we move on to new topics such as Web Application Programming.

In many ways, a programming language works the same way like a human language. There is a syntax and a vocabulary, and there are things that can be expressed in every language, while other things are quite difficult to translate. The more languages you learn, the more you get aware of the potential of each language.

So how can we do this? There is a very interesting project called “The Rosetta Code Project” named after the famous Rosetta Stone.

The Rosetta Stone is a stele from 194 BC that has inscriptions in three language: Ancient Egyptian, ancient Greek and Demotic. Now the point is that the meaning of the text is the same in all three languages. Since ancient Greek was well known, it was possible to finally decipher the Ancient Egyptian hieroglyphs after the stone was discovered in 1799.

From Stone to Code

The Rosetta Code Project follows the “Same text, Different languages” idea by presenting implementations of famous algorithms (like the “Dining Philosophers”, “Knapsack Problem” or “Towers of Hanoi”) in many different programming languages. Besides “standard” languages like C, Python, Java, you will find also many examples for historical or minor languages, which is quite fun to read. Among them of course you will also find many many examples of PicoLisp.

During this loose series, we will pick out some interesting code examples and highlight how the algorithmn is implemented and what are its key points. It will also help us to grasp the difference between a functional implementation of a code vs. for example an object-oriented one.

We will start tomorrow with the PicoLisp translation of the Caesar Cipher, which is a very simple cryptographic system. We will mainly need the string and list functions for this one. Stay tuned :)

Sources

Cover: upload.wikimedia.org/wikipedia/commons/thum..
rosettacode.org/wiki/Rosetta_Code

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Mia Temma

Mia Temma

These are cross-posts from my blog https://picolisp-explored.com. I’m writing about PicoLisp for beginners. Welcome!