Thursday, February 09, 2017

Piet is a language that interprets graphic files as source code.



This is “Hello World” in Piet:


It could also be written this way:


Piet is an esoteric language that interprets graphic files as source code. Each block of color is interpreted according to its hue, its brightness, and its size. There’s nothing missing in either of these examples; there’s no written code hiding behind the pictures. If you load either of these graphics into a Piet interpreter, you’ll get the console output “Hello World”.

https://www.quora.com/What-programming-language-has-a-cool-Hello-World-program
http://www.dangermouse.net/esoteric/piet.html
https://esolangs.org/wiki/Piet
http://www.majcher.com/code/piet/Piet-Interpreter.html
https://www.bertnase.de/npiet/

It runs a Stack based machine code similar to the Java JVM Virtual Machine so it should possible to compile real code in to these and run them.


No comments: