Print This Post Print This Post

reading programs (part 4)

November 2nd, 2009 by Joerg Piringer | Filed under -NP-Software, -NP-Theory/Critical, Joerg Pringer

it’s getting readable again before i turn back into the illegible at the following and last chapter. the first language for this fourth part of my small series is called

ORK

short for Objects R Kool. ORK is an object oriented language with a very verbose syntax. Unlike most of the esoteric programming languages you have to write a lot of code even to get the most simple task done.

a simple hello world-program would be written like this:

When this program starts:
There is a scribe called Writer.
Writer is to write "Hello, world!"

or a script that outputs the input could be like:

There is such a thing as a mouse.
A mouse can be_eaten.
A mouse has a status which is a word.
A mouse has a voice which is a scribe.
A mouse has an input which is an inputter.
When a mouse is to be_eaten:
There is a word called squeaky sound.
input is to readOne squeaky sound.
If input says it's done then status is "eaten".
voice is to write squeaky sound.
There is such a thing as a cat.
A cat can eat a mouse.
A cat has a Lingo which is a linguist
When a cat is to eat a mouse:
The mouse is to be_eaten.
Lingo's first operand is the mouse's status.
Lingo's second operand is "eaten".
Lingo is to compare.
If Lingo says it's not equal then I am to loop.
When this program starts:
There is a cat called Lucifer Sam.
There is a mouse called Gerald.
Gerald's status is "alive".
Lucifer Sam is to eat Gerald.

more info:
http://codu.org/eso/#ORK

and one of the possibly most verbose languages is called

English

i rather quote the Esoteric Programming Languages-wiki than write about English myself:

English is a declarative programming language. Many people are familiar with it even if they don’t know any other programming language.
[…]
A compiler of English (usually to some other high-level language) is called a ‘programmer’. They are usually humans and they err.

a hello world example program:

This program writes "Hello World" (without quotes) to the output.

a fibonacci sequence program:

Read an article about the Fibonacci sequence. Now write a program that computes it.

more info:
http://www.askoxford.com/

there’s a huge number of similar languages (around 6500 that are still in use).

This is Insane
  • Print
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • Blogplay
tag_icon

You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

Leave a comment.

To leave a comment, please fill in the fields below.