Created
September 28, 2011 15:54
-
-
Save neizod/1248316 to your computer and use it in GitHub Desktop.
Hello Gist!
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<-.>------.++++++++++.+.>+.>. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
adapted from wikipedia's hello world | |
+++++ +++++ initialize counter (cell #0) to 10 | |
[ use loop to set the next four cells to 70/100/30/10 | |
> +++++ ++ add 7 to cell #1 | |
> +++++ +++++ add 10 to cell #2 | |
> +++ add 3 to cell #3 | |
> + add 1 to cell #4 | |
<<<< - decrement counter (cell #0) | |
] | |
> ++ . print 'H' | |
> + . print 'e' | |
+++++ ++ . print 'l' | |
. print 'l' | |
+++ . print 'o' | |
> ++ . print ' ' | |
<< - . print 'G' | |
> ----- - . print 'i' | |
+++++ +++++ . print 's' | |
+ . print 't' | |
> + . print '!' | |
> . print '\n' |
its brainf*ck language http://en.wikipedia.org/wiki/Brainfuck
so geek man!
just adapted from wiki's hello world. seem like i'm going to use gist much more, so i prepared with this hello world.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
what?