Archiv für die Kategorie ‘Computernerdigkeit/Nerdyta Jynn-Amontya’
Nerdspielzeug. “Weil’s geht” als Maxime.
Diesen kurzen Eintrag poste ich über die iBlogger-Applikation von meinem iPod Touch. Nicht, weil es bequemer ist – dergleichen zu behaupten, wäre eine allzu freche Lüge – sondern weil’s geht. Ich erfreu mich also am Proof of Concept. Wer das nicht nachvollziehen kann, hat das innere Kind und damit seinen inneren Geek vermutlich schon erdrosselt.
Ad “Hello world!”: 3. Teil / A-dro dhe “Hello world!”: tressa rann
Wieder einmal geht es um esoterische Programmiersprachen, und zwar weiterhin unter dem Motto “Wie blöd Hello-world-Programme ausschauen können”. Diesmal: Programmiersprachen, deren Kommandos ausschließlich aus Tierlauten bestehen.
Da wäre zuerst Ook!, das in der Wikipedia wie folgt beschrieben wird:
Ook! ist eine Variante der esoterischen Programmiersprache Brainfuck für Orang-Utans, entwickelt von David Morgan-Mar.
Damit, und da wird mir die p.t. Leserschaft wohl zustimmen, ist schon fast alles gesagt. Ein paar Details noch: die Sprache kommt mit acht Befehlen aus, die aus unterschiedlichen Zweierkombinationen der Elemente “Ook!”, “Ook.” und “Ook?” zusammengesetzt sind. Ein Hello-World-Programm sieht also aus wie folgt:
Ook. Ook? Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook! Ook? Ook? Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook? Ook! Ook! Ook? Ook! Ook? Ook. Ook! Ook. Ook. Ook? Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook! Ook? Ook? Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook? Ook! Ook! Ook? Ook! Ook? Ook. Ook. Ook. Ook! Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook! Ook. Ook! Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook! Ook. Ook. Ook? Ook. Ook? Ook. Ook? Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook! Ook? Ook? Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook? Ook! Ook! Ook? Ook! Ook? Ook. Ook! Ook. Ook. Ook? Ook. Ook? Ook. Ook? Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook! Ook? Ook? Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook? Ook! Ook! Ook? Ook! Ook? Ook. Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook. Ook? Ook. Ook? Ook. Ook? Ook. Ook? Ook. Ook! Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook! Ook. Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook. Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook. Ook. Ook? Ook. Ook? Ook. Ook. Ook! Ook.
Eine bestrickende Verbindung von Simplizität und Ästhetik, möchte ich meinen.
Für Computernerds, die sich mehr zum Bovinen hingezogen fühlen, empfiehlt sich dagegen die Sprache Cow. Sie folgt einem ganz ähnlichen Prinzip und kennt zwölf Befehle, die durch variierte Groß- und Kleinschreibung der drei Buchstaben MOO abgebildet werden: Moo, moo, MOo etc. Bei zwei Befehlen wird ein bisserl geschummelt, weil es sich bei ihnen um die Sequenzen MMM und OOO handelt. Auf der Homepage des Entwicklers werden folgende Überlegungen angestellt:
The COW programming language was designed with the bovine in mind. Given that cows have somewhat limited vocabulary skills, it seemed natural to incorporate only the words they know into the language. As a result, all instructions are some variation on “moo” which just so happens to be the only word they really understand.
Und das finde ich wirklich rücksichtsvoll.
Ad “Hello world!”: 2. Teil / A-dro dhe “Hello world!”: nessa rann
Um meine gestrige Einfallslosigkeit wieder wettzumachen, die sich nicht zuletzt darin geäußert hat, ein Hello-world-Programm in einem langweiligen interpretierten Basic-Dialekt der 1970er anzuführen (neuere Varianten wie z.B. das von mir verwendete Blitz sind a) compiliert und b) objektorientiert), werde ich solche Programme in ein paar sogenannten esoterischen Programmiersprachen anführen.
Ich beginne heute mit meinem persönlicher Liebling, Shakespeare. Das Wundervolle an dieser Sprache ist, dass die eigentliche Absicht (nämlich schlicht “Hello world!” zu schreiben) völlig im Code untergeht. Die Wikipedia gibt folgendes Hello-world-Programm an, das sich die p.t. Leserschaft einmal auf der Zunge zergehen lassen sollte. Ja, es eignet sich zum Vorlesen:
Romeo, a young man with a remarkable patience.
Juliet, likewise young woman of remarkable grace.
Ophelia, a remarkable woman much in dispute with Hamlet.
Ophelia, the flatterer of Andersen Insulting A/S.
Act I: Hamlet’s insults and flattery.
Scene I: The insulting of Romeo.
[Enter Hamlet and Romeo]
Hamlet:
You lying stupid fatherless big smelly half-witted coward! You are as
stupid as the difference between a handsome rich brave hero and thyself!
Speak your mind!
You are as brave as the sum of your fat little stuffed misused dusty
old rotten codpiece and a beautiful fair warm peaceful sunny summer’s
day. You are as healthy as the difference between the sum of the
sweetest reddest rose and my father and yourself! Speak your mind!
You are as cowardly as the sum of yourself and the difference
between a big mighty proud kingdom and a horse. Speak your mind.
Speak your mind!
[Exit Romeo]
Scene II: The praising of Juliet.
[Enter Juliet]
Hamlet:
Thou art as sweet as the sum of the sum of Romeo and his horse and his
black cat! Speak thy mind!
[Exit Juliet]
Scene III: The praising of Ophelia.
[Enter Ophelia]
Hamlet:
Thou art as lovely as the product of a large rural town and my amazing
bottomless embroidered purse. Speak thy mind!
Thou art as loving as the product of the bluest clearest sweetest sky
and the sum of a squirrel and a white horse. Thou art as beautiful as
the difference between Juliet and thyself. Speak thy mind!
[Exeunt Ophelia and Hamlet]
Act II: Behind Hamlet’s back.
Scene I: Romeo and Juliet’s conversation.
[Enter Romeo and Juliet]
Romeo:
Speak your mind. You are as worried as the sum of yourself and the
difference between my small smooth hamster and my nose. Speak your
mind!
Juliet:
Speak YOUR mind! You are as bad as Hamlet! You are as small as the
difference between the square of the difference between my little pony
and your big hairy hound and the cube of your sorry little
codpiece. Speak your mind!
[Exit Romeo]
Scene II: Juliet and Ophelia’s conversation.
[Enter Ophelia]
Juliet:
Thou art as good as the quotient between Romeo and the sum of a small
furry animal and a leech. Speak your mind!
Ophelia:
Thou art as disgusting as the quotient between Romeo and twice the
difference between a mistletoe and an oozing infected blister! Speak
your mind!
[Exeunt]
Das Wundervolle daran ist neben der Produktion randomisierter Literaturparodie die unglaubliche Umständlichkeit: im Prinzip funktioniert Shakespeare wie ein Assembler, bietet also ein Minimum an Komfort – das dafür mit einem Maximum an Komplikation verbunden ist. So mag ich das.
Kommentare (3)