ooh
Jump to navigation
Jump to search
ooh is a estrotic programming language that will make you go ooh! every time you see a program written in it.
ooh uses 1 instruction only.
Instruction | Description |
---|---|
o | increase ascii value by 1 |
newline | print ascii value |
(its technically two instructions but its still looks like 1)
Hello world program
oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo ooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo ooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo
(it only writes hello but its basically the same)
due to it only being able to print ascii characters, (almost all of them) the langauge is pretty much useless (like most esolangs) however, since you need to write out an o for the value of each character, programs can get BIG. like this one
Program that outputs the first Harry Potter book
oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo ooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo oooooooooooooooooooooooo (this goes on for 5,847,284,722,283,091,839 characters)
of course an implementation has been made because of how simple it is
Python implementation
while True: code=input(">") for c in code.splitlines(): g=1; for i in c: if i!="o":g=0 if g:print(chr(len(c)))
optimzed (by User:Ractangle):
while True: code=input(">");g=0;s=[] for c in code: if c=="o":g+=1;s.append(c) print(chr(len(s)))
C implementation
coming soon?
that's all to it