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…


This content originally appeared on DEV Community and was authored by Mia

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.

hieroglphen.jpg

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 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


This content originally appeared on DEV Community and was authored by Mia


Print Share Comment Cite Upload Translate Updates
APA

Mia | Sciencx (2021-11-15T08:57:11+00:00) The Rosetta Code Project. Retrieved from https://www.scien.cx/2021/11/15/the-rosetta-code-project/

MLA
" » The Rosetta Code Project." Mia | Sciencx - Monday November 15, 2021, https://www.scien.cx/2021/11/15/the-rosetta-code-project/
HARVARD
Mia | Sciencx Monday November 15, 2021 » The Rosetta Code Project., viewed ,<https://www.scien.cx/2021/11/15/the-rosetta-code-project/>
VANCOUVER
Mia | Sciencx - » The Rosetta Code Project. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2021/11/15/the-rosetta-code-project/
CHICAGO
" » The Rosetta Code Project." Mia | Sciencx - Accessed . https://www.scien.cx/2021/11/15/the-rosetta-code-project/
IEEE
" » The Rosetta Code Project." Mia | Sciencx [Online]. Available: https://www.scien.cx/2021/11/15/the-rosetta-code-project/. [Accessed: ]
rf:citation
» The Rosetta Code Project | Mia | Sciencx | https://www.scien.cx/2021/11/15/the-rosetta-code-project/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.