Chinaunix首页 | 论坛 | 博客
  • 博客访问: 592395
  • 博文数量: 207
  • 博客积分: 10128
  • 博客等级: 上将
  • 技术积分: 2440
  • 用 户 组: 普通用户
  • 注册时间: 2004-10-10 21:40
文章分类

全部博文(207)

文章存档

2009年(200)

2008年(7)

我的朋友

分类:

2009-05-04 12:30:26

最后一张图片真可爱  

1. Ook!

If you've ever felt like a monkey just banging away at a keyboard, then will make you feel right at home. It's a language designed primarily for primates, specifically the orangutan. With Ook! you only use three syntax elements:
  • Ook.
  • Ook?
  • Ook!
Here are a few examples of Ook! in action:
  1. Ook. Ook?   
  2. Move the Memory Pointer to the next array cell.  
  1. Ook? Ook.   
  2. Move the Memory Pointer to the previous array cell.  
  1. Ook. Ook.   
  2. Increment the array cell pointed at by the Memory Pointer.  
  1. Ook! Ook!   
  2. Decrement the array cell pointed at by the Memory Pointer.  
  1. Ook. Ook!   
  2. Read a character from STDIN and put its ASCII value into the cell pointed at by the Memory Pointer.  
Getting the idea? Yeah, me neither...


Photo by .

2. Piet

For those appreciative of fine art, is a language that you'll surely enjoy. Inspired by the abstract artist Piet Mondrian, Piet is a programming language that converts programs into abstract geometric paintings. Programs are made up of 20 different colors, and then read by the compiler based on hex values to run a program. Check out some of the crazy that Piet programmers have come up with.


3. Whitespace

Unfortunately, the name for this programming language is exactly what it does: creates programs based off of... whitespace. The Whitespace website has a great description of how the language works.
Most modern programming languages do not consider white space characters (spaces, tabs and newlines) syntax, ignoring them, as if they weren't there. We consider this to be a gross injustice to these perfectly friendly members of the character set. Should they be ignored, just because they are invisible? Whitespace is a language that seeks to redress the balance. Any non whitespace characters are ignored; only spaces, tabs and newlines are considered syntax.


4. LOLCODE

is my personal favorite among esoteric languages. The language is based off of the phenomenon, and uses LOLCats syntax to make programs run. Or something like that. Just looking at a sample bit of an LOLCODE program will explain why it's a fan favorite.
  1. HAI   
  2. CAN HAS STDIO?   
  3. PLZ OPEN FILE "LOLCATS.TXT"?   
  4. AWSUM THX   
  5. VISIBLE FILE   
  6. O NOES   
  7. INVISIBLE "ERROR!"  
  8. KTHXBYE  
Surprisingly, LOLCODE has captured interest in parts of the programming community. The official site lists in languages like PHP, Python, Perl, .NET and Java. Who knows, maybe someday we'll see LOL programming courses taught in schools...

5. Shakespeare

Shakespeare is not as simple as LOLCODE to wrap your head around. In case you haven't figured it out yet, Shakespeare is a programming language based on the writings of the great playwright. Each program contains a title, acts, scenes and characters to make brilliant source code that's actually fun to read. Here's Act I, Scene I of "Hello World":
  1. The Infamous Hello World Program.   
  2.   
  3. Romeo, a young man with a remarkable patience.   
  4. Juliet, a likewise young woman of remarkable grace.   
  5. Ophelia, a remarkable woman much in dispute with Hamlet.   
  6. Hamlet, the flatterer of Andersen Insulting A/S.   
  7.   
  8. Act I: Hamlet's insults and flattery.  
  9. Scene I: The insulting of Romeo.  
  10. [Enter Hamlet and Romeo]  
  11. Hamlet:  
  12. You lying stupid fatherless big smelly half-witted coward!  
  13. You are as stupid as the difference between a handsome rich brave  
  14. hero and thyself! Speak your mind!  
  15. You are as brave as the sum of your fat little stuffed misused dusty  
  16. old rotten codpiece and a beautiful fair warm peaceful sunny summer's   
  17. day. You are as healthy as the difference between the sum of the   
  18. sweetest reddest rose and my father and yourself! Speak your mind!   
  19.   
  20. You are as cowardly as the sum of yourself and the difference   
  21. between a big mighty proud kingdom and a horse. Speak your mind.   
  22.   
  23. Speak your mind!   
  24.   
  25. [Exit Romeo]  


6. Befunge

The goal for Chris Pressey, creator of the programming language, was simple: Create a language that was as difficult to compile as possible. Befunge accomplishes this by the two main features of the daunting language:
  1. Self modifying - the p instruction can write new instructions into the playfield; and
  2. Multi-dimensional – the same instruction can be executed in four different contexts (in a left-to-right series of instructions, or right-to-left, or upward or downward.)
Regardless, there are very smart people, (with way too much free time), who have created compilers for Befunge.

\

7. reMorse

is a language intended to look like morse code. Visions of submarines and telegrams come to mind with this simple yet incredibly challenging language. Here's the reMorse version of "Hello World":
  1. - - - ..- ...-.---.;newline   
  2. - - - .-. - ..-.- ...-. ---.;!   
  3. - - - ...- . . -.---.;d   
  4. ----. . . -.---.;l   
  5. ----. . -...---.;r   
  6. ----. -...---.;o   
  7. ----...-.- ..-. ---.;W   
  8. //author didn't feel like doing this part   
  9. -..............;output all characters  
This language might be a tad on the difficult side for the rest of us (with the exception of amateur radio specialists). You know it's a bear to program when the author of the language won't finish all of the basic example, due to complexity.

8. FALSE

With an appropriate negative connotation, is a language meant to discourage even the cleverest programmers. Based on the language, FALSE uses a punctuation based syntax (gross!) to help sour the programming experience. From the FALSE creator himself:
I designed this language with two particular objectives: confusing everyone with an obfuscated syntax, and designing as powerful a language as possible with a tiny implementation: in this case a compiler executable of just 1024 bytes (!), written in pure 68000 assembler.
Yet FALSE isn't the most ridiculous of the esoteric languages, and could actually serve real world purposes, as the operations are reasonably sensible and the language isn't extremely complex. Maybe somebody, someday, will make a useful real-world application out of the language...

False.

9. Whenever

Imagine a surly teenager as a programming language, and you've got yourself . Whenever is a simple language that does what it wants, when it wants.
It takes the program code and treats each line as an item in a to-do list. The interpreter chooses an item from the list at random to execute, and executes the statement. In some cases, the statement will contain a clause that specifies that it cannot be executed until certain conditions apply. This results in the statement being deferred and placed back on the to-do list.
Don't think for a minute you can actually control a Whenever program. Imagine how hard this makes programming something like "99 Bottles of Beer"! The program would return something that read like it had already consumed all 99.
  1. defer (4 || N(1)   
  2. defer (4 || N(1)==N(2)) print("Take one down and pass it around,");   
  3. defer (4 || N(2)==N(3)) print(N(1)+" bottles of beer on the wall.");   
  4. 1#98,2#98,3#98;  

Photo by .

10. l33t

Ever wanted to speak like a "l33t H4xX0r5"? Now you can by learning the programming language. Check out the l33t "Hello World" application:
  1. // Note that the views expressed in this source code do not necessarily coincide with those of the author :o)   
  2.   
  3. Gr34t l33tN3$$?   
  4. M3h...   
  5. iT 41n't s0 7rIckY.  
  6. l33t sP33k is U8er keWl 4nD eA5y wehn u 7hink 1t tHr0uGh.  
  7. 1f u w4nn4be UB3R-l33t u d3f1n1t3lY w4nt in 0n a b4d4sS h4xX0r1ng s1tE!!! ;p  
  8. w4r3Z c0ll3cT10n2 r 7eh l3Et3r!  
  9. Qu4k3 cL4nS r 7eh bE5t tH1ng 1n teh 3nTIr3 w0rlD!!!  
  10. g4m3s wh3r3 u g3t to 5h00t ppl r 70tAl1_y w1cK1d!!  
  11. I'M teh fr4GM4stEr aN I'lL t0t41_1Ly wIpE teh phr34k1ng fL00r ***j3d1 5tYlE*** wItH y0uR h1dE!!!! L0L0L0L!  
  12. t3lEphR4gG1nG l4m3rs wit mY m8tes r34lLy k1kK$ A$$  
  13. l33t hAxX0r$ CrE4t3 u8er- k3wL 5tUff lIkE n34t pR0gR4mm1nG lAnguidGe$...  
  14. s0m3tIm3$ teh l4nGu4gES l00k jUst l1k3 rE41_ 0neS 7o mAkE ppl Th1nk th3y'r3 ju$t n0rMal lEE7 5pEEk but th3y're 5ecRetLy c0dE!!!!  
  15. n080DY unDer5tAnD$ l33t SpEaK 4p4rT fr0m j3d1!!!!!  
  16. 50mE kId 0n A me$$4gEb04rD m1ghT 8E a r0xX0r1nG hAxX0r wH0 w4nT2 t0 bR34k 5tuFf, 0r mAyb3 ju5t sh0w 7eh wAy5 l33t ppl cAn 8E m0re lIkE y0d4!!! hE i5 teh u8ER!!!!  
  17. 1t m1ght 8E 5omE v1rus 0r a Pl4ySt4tI0n ch34t c0dE.  
  18. 1t 3v3n MiTe jUs7 s4y "H3LL0 W0RLD!!!" u ju5t cAn'T gu3s5.   
  19. tH3r3's n3v3r anY p0iNt l00KiNg sC3pT1c4l c0s th4t, be1_1Ev3 iT 0r n0t, 1s whAt th1s 1s!!!!!   
  20.   
  21. 5uxX0r5!!!L0L0L0L0L!!!!!!!  
In real life, l33t is "teh sUxX0r" due to the fact that you can't use it for anything useful. Ah well, back to hacking with all the other script kiddies and trolls!

阅读(2003) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~