LoL Code

Posts 113 of 13 · Page 1 of 1
LoL Code
How do you guys think about lolcode?

Example 1:
Code:
HAI
CAN HAS STDIO?
VISIBLE "HAI WORLD!"
KTHXBYE
  • HAI and KTHXBYE are the start and stop block delimiters.
  • CAN HAS is a feature request, like require or include.
  • VISIBLE is a print statement.



Example 2:
Code:
ON CATURDAY
	IM IN YR BED
		I IZ SLEEPIN!!10
		VISIBLE "Z!"
	KTHX
KTHXBYE
So with this code fragment, we have an event block introduced with ON eventName, and terminated with the usual KTHXBYE. We have an effectively infinite loop, labelled “BED”. The only output is an occasional “Z!”.

Example 3:
Code:
HAI
CAN HAS STDIO?
I HAS A VAR
GIMMEH VAR
VISIBLE "You said " N VAR N " !!"
KTHXBYE
GIMMEH wins out over TXT ME A for inputting a line from the user.

N is particularly evil choice for a keyword, I think, but it feels right as a conjunction, akin to a comma in many other languages. I'm not keen on adding too many punctuation marks beyond ”, !, and ?.
its childish and retarded.
Quote Originally Posted by 'Bruno View Post
its childish and retarded.
Maybe it is
But the idea is pretty epic if u ask me.
Also it's meant for fun.
Funny in a different point of view, but still not going to be that used. It's like BrainFuck, it's epic but nobody cares.
Quote Originally Posted by user590177 View Post
Funny in a different point of view, but still not going to be that used. It's like BrainFuck, it's epic but nobody cares.
BrainFuck isn't that epic at all, super-verbose and limited. You want a cool looking language that's actually uber-functional? Try looking at K.
Quote Originally Posted by Jason View Post


BrainFuck isn't that epic at all, super-verbose and limited. You want a cool looking language that's actually uber-functional? Try looking at K.
2!!7!4
Reading from right to left the first ! is modulo division that is performed on 7 and 4 resulting in 3. The next ! is enumeration and lists the integers less than 3, resulting in the list 0 1 2. The final ! is rotation where the list on the right is rotated two times to the left producing the final result of 2 0 1.

That's just plain cancer.
Quote Originally Posted by Hell_Demon View Post
2!!7!4
Reading from right to left the first ! is modulo division that is performed on 7 and 4 resulting in 3. The next ! is enumeration and lists the integers less than 3, resulting in the list 0 1 2. The final ! is rotation where the list on the right is rotated two times to the left producing the final result of 2 0 1.

That's just plain cancer.
Take a look at some of the Project Euler answers, generally there's a J/K/APL solution near the top. For example:

Question:


Answers:


My poor eyes.
So apparently people really use that, that's so bad-ass :O
Quote Originally Posted by .::SCHiM::. View Post
So apparently people really use that, that's so bad-ass :O
Every Euler question I've answered so far has a K/J solution posted in the first results :3
Hello World in Malbolge. Get on my level.

Code:
 ('&%:9]!~}|z2Vxwv-,POqponl$Hjig%eB@@>}=<M:9wv6WsU2T|nm-,jcL(I&%$#"
 `CB]V?Tx<uVtT`Rpo3NlF.Jh++FdbCBA@?]!~|4XzyTT43Qsqq(Lnmkj"Fhg${z@>
Quote Originally Posted by Void View Post
Hello World in Malbolge. Get on my level.

Code:
 ('&%:9]!~}|z2Vxwv-,POqponl$Hjig%eB@@>}=<M:9wv6WsU2T|nm-,jcL(I&%$#"
 `CB]V?Tx<uVtT`Rpo3NlF.Jh++FdbCBA@?]!~|4XzyTT43Qsqq(Lnmkj"Fhg${z@>
copied straight from wikipedia
Quote Originally Posted by The Corvo View Post
How do you guys think about lolcode?

Example 1:
Code:
HAI
CAN HAS STDIO?
VISIBLE "HAI WORLD!"
KTHXBYE
  • HAI and KTHXBYE are the start and stop block delimiters.
  • CAN HAS is a feature request, like require or include.
  • VISIBLE is a print statement.



Example 2:
Code:
ON CATURDAY
	IM IN YR BED
		I IZ SLEEPIN!!10
		VISIBLE "Z!"
	KTHX
KTHXBYE
So with this code fragment, we have an event block introduced with ON eventName, and terminated with the usual KTHXBYE. We have an effectively infinite loop, labelled “BED”. The only output is an occasional “Z!”.

Example 3:
Code:
HAI
CAN HAS STDIO?
I HAS A VAR
GIMMEH VAR
VISIBLE "You said " N VAR N " !!"
KTHXBYE
GIMMEH wins out over TXT ME A for inputting a line from the user.

N is particularly evil choice for a keyword, I think, but it feels right as a conjunction, akin to a comma in many other languages. I'm not keen on adding too many punctuation marks beyond ”, !, and ?.
This is ugly, I despise it.
Posts 113 of 13 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Need help?