知乎问答
回答 (2017)
是时候表演真正的技术了。
- 有一大类编程语言叫Esoteric programming languages,维基百科:https://en.m.wikipedia.org/wiki/Esoteric_programming_language
- 这里有个hello world in esoteric languages大集合: https://esolangs.org/wiki/Hello_world_program_in_esoteric_languages
- 更新:上一个链接打不开的话可以试试我存的evernote: Hello world program in esoteric languages - Esolang
- 更新:发现一个吊炸天的在线编译器,亲测可以运行brainfuck, Shakespeare, Unicat, Whitespace等语言:Try It Online
- 附:正经语言hello world集http://rosettacode.org/wiki/Hello_world/Graphical
贴几个我喜欢的hello world:
**brainfuck **(先来个最有名的)
++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>.
Brainloller
image
Fugue
image
Sacred
() () () () () () () () () () ( )) () () () () () () () )) () () () () () () () () () () )) () () () )) () (( (( (( (( )( ) )) () () ((( )) () ((( () () () () () () () ((( ((( () () () ((( )) () () ((( (( (( () () () () () () () () () () () () () () () ((( )) ((( () () () ((( )( )( )( )( )( )( ((( )( )( )( )( )( )( )( )( ((( )) () ((( )) (((
Shakespeare
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]
Unicat
(由于知乎貌似不支持这些表情,只有截图)
image
DNA#
AT
T--A
A----T
T-----A
T-----A
G----C
T--A
GC
CG
C--G
A----T
A-----T
T-----A
A----T
A--T
GC
AT
C--G
T----A
C-----G
T-----A
G----C
C--G
CG
AT
A--T
T----A
A-----T
A-----T
G----C
A--T
GC
TA
G--C
T----A
G-----C
C-----G
C----G
A--T
GC
TA
G--C
A----T
G-----C
A-----T
C----G
A--T
CG
GC
A--T
A----T
C-----G
A-----T
C----G
A--T
CG
GC
A--T
T----A
G-----C
A-----T
G----C
A--T
CG
GC
A--T
G----C
A-----T
A-----T
T----A
A--T
TA
AT
T--A
G----C
A-----T
A-----T
A----T
G--C
AT
AT
G--C
T----A
G-----C
A-----T
G----C
G--C
AT
TA
T--A
A----T
G-----C
G-----C
A----T
A--T
TA
AT
T--A
A----T
T-----A
G-----C
A----T
T--A
TA
AT
G--C
A----T
T-----A
A-----T
T----A
G--C
AT
TA
T--A
A----T
G-----C
G-----C
A----T
A--T
AT
AT
T--A
G----C
A-----T
Whitespace
(由于知乎编辑器的相关strip,本部分代码未予显示,233)
少年,你想学哪门?还是自己写一个?