Amazing what code can do (diff languages)
inininc No.13
some interesting codes available today
inininc No.13
some interesting codes available today
- LOL Code
The language was created in 2007 by Adam Lindsay, researcher at the Computing Department of Lancaster University.It is an programming language which uses SMS language.
Ex1.
HAI
CAN HAS STDIO? VISIBLE "HAI WORLD!" KTHXBYE
Code Comment
HAI
In all LOLCODE programs, HAI ("Hi!") introduces the program.
CAN HAS [LIBRARY]?
In many programming languages, one of the first statements will be a library inclusion for common functions such as input and output. Typically this is included by a call such as #include <cstdio> [stdio standing for standard input/output library]. This command is a tongue-in-cheek corruption of that, asking if a library is obtainable, obtaining it if possible, and raising an exception if not.[5] It is there primarily for authenticity — in fact, it is ignored in current implementations of LOLCODE.
VISIBLE [MESSAGE]
prints a message to the screen.
KTHXBYE
Just as HAI
introduces the program, KTHXBYE
(meaning "OK thanks, bye") terminates it
Ex2.
HAI
CAN HAS STDIO?
PLZ OPEN FILE "LOLCATS.TXT"?
AWSUM THX
VISIBLE FILE
O NOES
INVISIBLE "ERRROR!"
KTHXBYE
- INTERCAL
INTERCAL has many other features designed to make it even more aesthetically unpleasing to the programmer: it uses statements such as “IGNORE” and “FORGET”, as well as modifiers such as “PLEASE”. This last keyword provides two reasons for the program’s rejection by the compiler: if “PLEASE” does not appear often enough, the program is considered insufficiently polite, and the error message says so; if too often, the program could be rejected as excessively polite.
- Piet is a language whose programs are bitmap graphics that look like abstract art. It was designed by David Morgan-Mar, who also created Chef. It is named after geometric abstract art pioneer, Piet Mondrian; the originally intended name, Mondrian, was already taken.
No comments:
Post a Comment