Log in

View Full Version : lolcode



MoRmEnGiL
05-06-2008, 17:25
Persinh idea, xrhsimopoiei lolcat kai icanhascheesburger l33t language gia dhmiourgia mias glwssas.

paradeigmata:


HAI
CAN HAS STDIO?
VISIBLE "HAI WORLD!"
KTHXBYE


HAI
CAN HAS STDIO?
I HAS A VAR
GIMMEH VAR
IZ VAR BIGGER THAN 10?
YARLY
BTW this is true
VISIBLE "BIG NUMBER!"
NOWAI
BTW this is false
VISIBLE "LITTLE NUMBER!"
KTHX
KTHXBYE


HAI
CAN HAS STDIO?
I HAS A VAR
IM IN YR LOOP
UPZ VAR!!1
VISIBLE VAR
IZ VAR BIGR THAN 10? GTFO. KTHX
KTHX
KTHXBYE

HAI kai KTHXBYE anoigoun kai kleinoun to programma, BTW bazei comments, KTHX kleinei loop, I HAS A dhlwnei metablhth kai de symmazeuete.

nta3 exw leiwsei sta gelia.

Site: http://lolcode.com/home

Phoebus
05-06-2008, 18:14
Old as Greece.

Δες την γλώσσα Vatican...

Deggial
05-06-2008, 22:42
Whitespace ρε μουνιά.

MoRmEnGiL
06-06-2008, 05:54
e postarete kai paradeigmata e, mh bargieste.

Deggial
06-06-2008, 10:12
Ε, για την Whitespace είναι εύκολο:

Deggial
06-06-2008, 10:23
Α, επίσης γαμάει η Shakespeare Programming Language. Το παρακάτω είναι το Hello World σε SPL:



The Infamous Hello World Program.

Romeo, a young man with a remarkable patience.
Juliet, a likewise young woman of remarkable grace.
Ophelia, a remarkable woman much in dispute with Hamlet.
Hamlet, 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]

ikonoklast
06-06-2008, 13:10
χαχαχαχα έπος η spl.

MoRmEnGiL
06-06-2008, 15:29
Brainfuck: (http://en.wikipedia.org/wiki/Brainfuck)


Brainfuck's symbols are: < > + - [ ] . , All other characters are comments and are ignored.

The following program prints "Hello World!" and a newline to the screen:

++++++++++
[>+++++++>++++++++++>+++>+<<<<-] The initial loop to set up useful values in the array
>++. Print 'H'
>+. Print 'e'
+++++++. Print 'l'
. Print 'l'
+++. Print 'o'
>++. Print ' '
<<+++++++++++++++. Print 'W'
>. Print 'o'
+++. Print 'r'
------. Print 'l'
--------. Print 'd'
>+. Print '!'
>. Print newline

For readability, this code has been spread across many lines and comments have been added. Brainfuck ignores all characters but +-<>[],. so no special syntax for comments is needed. The code could just as well have been written as:

++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>.

Befunge (http://en.wikipedia.org/wiki/Befunge):

Befunge is a stack-based, reflective, esoteric programming language. It differs from conventional languages in that programs are arranged on a two-dimensional grid. "Arrow" instructions direct the control flow to the left, right, up or down, and loops are constructed by sending the control flow in a cycle.


vv < <
2
^ v<
v1<?>3v4
^ ^
> >?> ?>5^
v v
v9<?>7v6
v v<
8
. > > ^
^<

This is an example of the classic "Hello World!" program. First the letters "olleH" are pushed onto the stack as ASCII numbers. These are then popped from the stack in LIFO order and output as text characters to give "Hello". A space is character number 32 in ASCII, which here is constructed by multiplying 4 and 8, before being output as text. The remaining code then outputs "World!" in a similar way, followed by ASCII character 10 (a line feed character, moving the output cursor to a new line).

XRISTOS dld.

epishs
http://www.dangermouse.net/esoteric/piet.html
http://en.wikipedia.org/wiki/SCAB_computer
k genika: http://en.wikipedia.org/wiki/Category:E ... _languages (http://en.wikipedia.org/wiki/Category:Esoteric_programming_languages)

Once_Emperor
09-06-2008, 18:34
Κάπου είχα πετύχει έναν που είχε γράψει thread library για brainfuck. Tώρα κοιτάω και την έκανε άλλη γλώσσα που υποστηρίζει κανονικά multithreading και λέγεται Flow.

brainfuck όνομα και πράγμα...