Mystical, a programming language like a magic circle



Programming languages such as Java, C++, and Python include ' a posteriori languages ' that use natural languages such as English, and a priori languages that are made up of completely original keywords. A priori languages can be freely set up like artificial languages, as all you need to do is match commands with tasks. The original programming language ' Mystical ' uses magic circle-like figures instead of letters as commands, so the source code can be written like a grimoire.

Mystical
https://suberic.net/~dmm/projects/mystical/README.html



Mystical's structure is based around 'rings' with inner and outer borders - the outermost ring starts at the 3 o'clock position and flows counterclockwise, performing tasks depending on the shape it describes.



Also, when rings are connected by lines as shown below, the other ring is called an 'auxiliary ring.' In the image below, start with the upper left ring with the triangle symbol indicating the start, perform tasks counterclockwise, then move to the auxiliary ring by the line and perform tasks counterclockwise in the same way.



Below are some of the symbols used in Mystical.



Below is a pseudocode (left) of the classic algorithm 'Euclidean GCD algorithm ( Euclidean algorithm )' for finding the greatest common divisor of two natural numbers, and the source code written in Mystical (right). In this way, using Mystical, you can write it like a magic circle in a grimoire, because the source code is connected to a figure that combines circles and symbols.



When Mystical became a hot topic on Hacker News, some users commented that it reminded them of the 'crypto code' that children draw on the ground with chalk in the anime ' Dennou Coil ' to access the cyber world. In addition, in the movie ' Arrival, ' a story about a boy trying to understand a unique language to communicate with aliens , a language called 'Heptapod A/B' is visualized, which expresses a sentence with symbols based on circles without any direction to read the letters, and some users were reminded of this when they saw Mystical.

You can download Mystical from GitHub.

GitHub - denismm/mystical_ps
https://github.com/denismm/mystical_ps



in Software, Posted by log1e_dh