Bored, I spent the past few hours writing a small, 100% useless language. It doesn't have a name, so I call it UNBABTIZED (as in: has not been given a name yet), which is, right there, a self-contradiction. And, its even a wrong spelling of UNBAPTIZED! What a good start!

Having said that, its a procedural language in that its not a functional one, and is probably best thought of as one very elaborate excursion away from brainfuck.


You can download the whole UNBABTIZED distribution here.


You can write integer literals: 0, 1, and so on.

UNBABTIZED has an array of 1000 memory cells. You can refer to memory cells: °0 is the first memory cell, °1 is the second memory cell, and °999 is the last memory cell.

You can assign data to memory cells:

!x,y will assign the value y (either literal or memory cell) to the memory cell of index x. Obviously, you cannot assign values to literals.

Instructions are separated by ., so A.B.C means three consecutive instructions A, B and C.

You can do basic arithmetic:

will set memory[x] to memory[x]+memory[y]
will set memory[x] to memory[x]-memory[y]
will set memory[x] to memory[x]*memory[y]
will set memory[x] to memory[x]/memory[y]

and evaluation

will set memory[x] to memory[x]<memory[y]
will set memory[x] to memory[x]<=memory[y]
will set memory[x] to memory[x]==memory[y]
will set memory[x] to memory[x]>memory[y]
will set memory[x] to memory[x]>=memory[y]
will set memory[x] to memory[x]<>memory[y]

If you need logic functions, write wrapper code using arithmetic functions and evaluation. You can do output

will write x as char,
will write x as integer.

There is no input. There is a philosophy behind this, you know! To my view, there are two kinds of input, user input and hardcoded input. User input sucks, and hardcoded input rules, so there.

You can do a DO-WHILE-NOT style loop better expressed as a computed goto. This c-code

	if( memory[x] ) goto loop

is written as

(instructions go here)

Loops can be nested (at least in theory, but I haven't tested this ;).

There are no comments. Comments are for wimps! Note that Newlines, Tabs, Spaces etc. are considered comments, too, so they are not allowed either. Get an editor that can handle long lines, if you want to mess with UNBABTIZED.

Examples? This


will print "Hello, World", and this


will print the first ten fibonacci numbers.

The interpreter reqiures Python 2.2 (or higher ;) because of the changes in lambda-scope. I'm using some of my lambda tricks here. The code looks very pythonesque, IMHO:

import sys

f = sys.argv[1]

o = [0,[],[0]*1000,lambda x:o[4]("o[2]")+"x,o[2][x]%sy)" %x,
     lambda x:x+".__setitem__(",open(f).read().split("."),0,
     1,None,lambda x,y:o.__setitem__(x,y),lambda:o[9](7,o[6]
     .find("&deg;")),lambda:len(o[6][o[8]:o[8]+1]) and o[6][o[8]
     :o[8]+1] in "0123456789",lambda:o[9](6,o[6][:o[7]]+"o["\
     )and(o[9](8,o[8]+1),o[13]())or 0),lambda:o[7]>=0 and(o[
     9](8,o[7]+1),o[13](),o[12]()),lambda:"(lambda x=None,y"\
     "nd(o[0])",'-':"o[2][x] and ("+o[4]("o")+"0,o[1][0]-1)"\
     ",o[1].__setslice__(1,len(o[1]),o[1][1:]))or 0",}[o[6][
     ),eval(o[15]()),o[9](0,o[0]+1)),lambda:o[0] < len(o[5])