What can I say? I don't think I did that bad on the code. The way I constrained the numbers to unsigned bytes is kinda cheaty... but who cares?
Here's a pastebin link:
http://pastebin.com/6Yz2JFj1
Enjoy!
P.S. I also set up the file I/O so that you can specify your code as the first command line argument. (Windows slang: You can drag your BF code onto the python file and it will run it.
It's kind of un-pythonic, yeah. And guess what? I made some updates and now there are more lines!
More lines == Brainstorming == 10 years later Brain bleeding == Serious damage == Surgery == Complications == Serious complications == Death. Your program causes our death
++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>. Sorry Evil if your head hurts now.
>+++++[<+++++>-]<++++++++++.>++++++++[<++++++++>-]<++++++.+++++.>+++[<--->-]<--.+++++++++.+++++++++.>++++[<---->-]<-.+.>++++++++[<-------->-]<-----.>+++++[<+++++>-]<+++.>+++++++[<+++++++>-]<++++++.+.>++++[<---->-]<.+++++.++++++.>++++++++[<-------->-]<-.>+++++++[<+++++++>-]<+++++++++.>++++++[<------>-]<------.>+++++++[<------->-]<---.>+++++++++[<+++++++++>-]<++++++++.>+++[<+++>-]<+++.-.+++++.+.>+++++++++[<--------->-]<---.>++++++++[<++++++++>-]<+++++++++.+++++.++++++.>+++++++++[<--------->-]<---.>++++++[<++++++>-]<+++++++++.>+++[<--->-]<---.>++++[<++++>-]<+++++++.+++++++.>+++++[<----->-]<--.+.>+++[<+++>-]<++.++++.>+++[<--->-]<---.>++++++[<------>-]<----.>+++++[<+++++>-]<++++.>+++++[<----->-]<----.>++++[<++++>-]<+.-..----.>+++[<--->-]<---.>++++++[<++++++>-]<+++++++++.--------.++++++++.>++++[<++++>-]<++.>+++[<--->-]<---.----------.>++++[<++++>-]<+.>++++[<---->-]<-----.>++++++[<------>-]<-.>+++++[<+++++>-]<++++.>+++++[<----->-]<----.>++++[<++++>-]<+++.---....>+++[<+++>-]<++.>+++++++[<------->-]<.>++++[<++++>-]<++++++.>++++[<---->-]<------.>+++++++++[<+++++++++>-]<++++++++++++++.+++++.++++++.>+++++++++[<--------->-]<---.>++++++++[<++++++++>-]<+++++++++++++.>+++[<--->-]<---.++++++++.+++++.>++++++++[<-------->-]<------.>++++++++[<++++++++>-]<+.+++++.++++++.>+++++++++[<--------->-]<---.>++++++++[<++++++++>-]<+.>++++[<++++>-]<+.>+++[<--->-]<--.----.>+++++++[<------->-]<------.>+++[<--->-]<---.>++++++++[<++++++++>-]<+++.+++++.-------.>++++[<++++>-]<+.>+++++++++[<--------->-]<-.++++++++++..>+++++++[<+++++++>-]<++++++.>++++[<++++>-]<+.>+++[<--->-]<--.>+++[<+++>-]<++++++.>++++++++[<-------->-]<-------------.---------.>+++++++++[<+++++++++>-]<++++++++++.>++++++++++[<---------->-]<-------------.-.>+++++++++[<+++++++++>-]<+++++++++++++++.---.>+++++++[<------->-]<-------------.>+++++++[<+++++++>-]<++++++++.>++++[<++++>-]<+.>+++[<--->-]<--.----.>++++++++[<-------->-]<---.>+++++[<+++++>-]<+++.+.>+++++[<----->-]<----.>++++[<++++>-]<+.--------.---------.>+++++++++[<+++++++++>-]<++++++++++.>+++++++++[<--------->-]<----------.>++++++++[<++++++++>-]<++++++++++++++++.++.---------.+++++.++++++.>+++[<--->-]<-----.>+++++++[<------->-]<-------------.------.>+++++++[<+++++++>-]<++++++.>++++[<++++>-]<++++++.++++++.>+++++++++[<--------->-]<----.>++++++++[<++++++++>-]<++++++++.-------.>++++[<++++>-]<+++++.>++++[<---->-]<-.>++++++++[<-------->-]<-----.>+++++++++[<+++++++++>-]<+++.-----.>++++++++[<-------->-]<---------------.>+++++++++[<+++++++++>-]<++.---.>+++[<--->-]<--.--.++++++.---.>++++[<++++>-]<+++.>+++++++++[<--------->-]<--------.>++++++++[<++++++++>-]<+.>++++++++[<-------->-]<-.>++++++++[<++++++++>-]<++++++.+++.+++.-------.+++++++++.>+++[<--->-]<----.>+++[<+++>-]<+++.--------.>+++++++[<------->-]<------.>+++[<--->-]<-----.>+++++++[<+++++++>-]<++++.>+++++[<+++++>-]<+++++.>++++[<---->-]<--.++++++.--.>++++++[<------>-]<-------.>+++++[<+++++>-]<+++++++++.>++++[<++++>-]<++.>+++++++[<------->-]<-.>++++++[<++++++>-]<+++++.>++++[<++++>-]<+++.>++++[<---->-]<---.--.>++++[<++++>-]<++.-.>++++[<---->-]<---.+.++++++++++.-------.>++++++[<------>-]<---.>+++++[<----->-]<-----.>+++++[<+++++>-]<+++.++++++.++++.>++++++[<------>-]<--.>++++++++[<++++++++>-]<++++++.+++.+++.-------.+++++++++.>+++[<--->-]<----.>+++[<+++>-]<+++.--------.>++++++[<------>-]<---.>+++++[<+++++>-]<+++++.>++++[<++++>-]<++.>++++++++[<-------->-]<------------.+++++++.>++++[<++++>-]<++.>+++++[<----->-]<--.>+++++++++[<+++++++++>-]<+.>+++[<--->-]<----.>+++[<+++>-]<++++++.+.---.----.>++++++++[<-------->-]<--------------.>++++[<++++>-]<.>+++[<+++>-]<++.>+++++[<----->-]<--.>+++++++++[<+++++++++>-]<++++++++++++.>++++++++++[<---------->-]<---------------.-.>+++++++++[<+++++++++>-]<+++++++++.+++++.-------.>++++[<++++>-]<+.>+++++++++[<--------->-]<-.>++++++++[<++++++++>-]<+++++++++++++.--------.++++++++.>++++[<---->-]<--.>+++[<--->-]<-----.--------.++++++++.>++++[<++++>-]<++.>+++[<--->-]<---.----------.>++++[<++++>-]<+.>++++[<---->-]<-----.>++++[<++++>-]<++++++++.>+++++[<----->-]<---------.>+++++[<----->-]<--.>+++[<+++>-]<++++++..>+++[<--->-]<------.>++++[<++++>-]<+++.---.----.++++...>++++[<---->-]<.>++++++++[<++++++++>-]<+++++++++.++++++++++.>+++++++++[<--------->-]<--.>++++++++[<++++++++>-]<++++.+.+.-----.>++++[<++++>-]<++++.---------.++++++++.>+++++++++[<--------->-]<---.>+++++++++[<+++++++++>-]<++++++.>+++[<--->-]<-----.>+++[<+++>-]<++.>+++[<--->-]<---.>++++++++[<-------->-]<--------.>+++++[<+++++>-]<+++++++++.>++++++[<++++++>-]<++++++++++++.>++++[<---->-]<-.++++++++.+++++.--------.>+++[<+++>-]<++++++.>++++[<---->-]<--.++++++++.>+++++++++[<--------->-]<----------------.-.>+++++++++[<+++++++++>-]<+++++++++++++++.+++++.++++++.>+++++++++[<--------->-]<---.>++++++++[<++++++++>-]<++++++++++++.---.+++++.----------.+.>++++[<++++>-]<+++.>+++++[<----->-]<----.>+++[<--->-]<-----.>+++[<--->-]<---.>++++[<++++>-]<+++++++.+++++++.>+++++[<----->-]<--.+.>+++[<+++>-]<++.++++.>+++[<--->-]<---.>++++[<++++>-]<+++++.>+++++[<----->-]<---------.>+++++++[<------->-]<.-.>+++++++++[<+++++++++>-]<+++++++++++++++.+++++.++++++.>+++++++++[<--------->-]<---.>++++++++[<++++++++>-]<++++.+.>+++[<+++>-]<++.++++.>+++[<--->-]<---.>++++++++[<-------->-]<--------.>+++++[<+++++>-]<++++.>+++++[<----->-]<----.>++++[<++++>-]<.----.>+++[<--->-]<---.>++++++++[<++++++++>-]<++++++++++++.-------.+++++++++.>++++++++[<-------->-]<--------------.>+++++[<+++++>-]<++++.>+++++[<----->-]<----.>++++[<++++>-]<.----.>+++[<--->-]<---.>++++++++[<++++++++>-]<++++++++++++++++.++++.--.>+++++++++[<--------->-]<-.>+++++[<+++++>-]<++++.>+++++[<----->-]<----.>++++[<++++>-]<.>+++[<+++>-]<++.>+++++++[<------->-]<.-.>+++++++[<+++++++>-]<++++++++++++.+++.+++.-------.>++++++[<------>-]<-.++++++++++.>+++++++[<+++++++>-]<+++++++++++.>++++++++[<-------->-]<------.>+++++[<+++++>-]<++++.>+++++[<----->-]<----.>++++++++[<++++++++>-]<++++++.+++++++++.+.>+++[<--->-]<--.+++++++++.>++++++++[<-------->-]<------.>+++++++[<+++++++>-]<++++++++.>++++[<++++>-]<+.>+++[<--->-]<--.>+++[<+++>-]<++++++.>+++++[<----->-]<--.>++++++[<------>-]<------.>++++++[<++++++>-]<++++++++.>+++++++[<------->-]<.>+++[<--->-]<---.++.>++++++++[<++++++++>-]<++++++++++++++++.>++++++++[<-------->-]<----------------.+++++++.>++++[<++++>-]<++.>+++++++[<------->-]<.-.>+++++++++[<+++++++++>-]<+++++++++++++++.---.>+++++++[<------->-]<-------------.>+++++++[<+++++++>-]<+++++++++++++.>++++++++[<-------->-]<------.>+++++[<+++++>-]<++++..>+++++[<----->-]<----.>++++[<++++>-]<.-------.---------.>+++++++++[<+++++++++>-]<++++++++++.>+++++++++[<--------->-]<----------.>++++++++[<++++++++>-]<++++++++++++++++.++.---------.+++++.++++++.>+++[<--->-]<-----.>+++++++[<------->-]<-------------.------.>++++++[<++++++>-]<+++.>++++++[<++++++>-]<+.++++++++.>++++[<---->-]<-----.>+++[<+++>-]<++.---.-----.>++++++++[<-------->-]<----.>++++++++[<++++++++>-]<++++++.+++.+++.-------.+++++++++.>+++[<--->-]<----.>+++[<+++>-]<+++.--------.>++++++[<------>-]<-------.>+++++[<----->-]<-.+++++.>++++++++[<++++++++>-]<++++++++++++++.>++++[<---->-]<-------.>++++[<++++>-]<++.>++++++++[<-------->-]<------------.++++++++++.>+++[<--->-]<---.>++++++++[<++++++++>-]<+.>++++[<++++>-]<+.>+++[<--->-]<--.>+++[<+++>-]<++++++.>+++++[<----->-]<--.>++++++[<------>-]<------.>++++++[<++++++>-]<++++++++.>+++++++[<------->-]<---.>++++[<++++>-]<++.>+++++[<----->-]<--.>+++++++++[<+++++++++>-]<+.>+++[<--->-]<----.>+++[<+++>-]<++++++.+.---.----.>++++++++[<-------->-]<--------------.>++++[<++++>-]<.>+++[<+++>-]<++.>+++++[<----->-]<--.>+++++++++[<+++++++++>-]<++++++++++++.>++++++++++[<---------->-]<---------------.-.>+++++++++[<+++++++++>-]<+++++++++++++++.+++++.++++++.>+++++++++[<--------->-]<---.>++++++++[<++++++++>-]<+++.>++++[<++++>-]<++.---..>+++++++[<------->-]<------.>+++++[<----->-]<--.>+++++++++[<+++++++++>-]<++++++.>+++[<--->-]<------.+.+++.-------.>+++++++[<------->-]<------------..>+++++++[<+++++++>-]<++++++++++.>++++[<++++>-]<++.---..>+++++++++[<--------->-]<-.>+++++[<+++++>-]<++++.>+++++[<----->-]<----.>++++++++[<++++++++>-]<++++++.+.--.>+++[<+++>-]<++++++.>++++[<---->-]<-.>+++++++[<------->-]<----------.>+++++++[<+++++++>-]<+++++++++++++.>+++++++[<------->-]<------------..---------.+.>+++++[<+++++>-]<+++.>+++++[<----->-]<----.>++++++[<++++++>-]<+.++++++++++.---------.>+++++[<----->-]<----.---------..>++++[<---->-]<------.-.>++++++++++[<++++++++++>-]<++++++++++++++.>++++++++++[<---------->-]<-------------.-..>++++++++++[<++++++++++>-]<++++++.++++.>+++[<--->-]<-----.>+++[<+++>-]<++.>++++[<---->-]<-.+++++.>++++++++[<-------->-]<..>+++++++[<+++++++>-]<++++++++++.+++++.-------.>++++[<++++>-]<+.>++++++++[<-------->-]<---------.---------.>++++++++[<++++++++>-]<+++.>++++[<++++>-]<++.---..>++++++++[<-------->-]<---------.>+++++[<----->-]<------.-..>++++++++++[<++++++++++>-]<++++++++++++++.>++++++++++[<---------->-]<-------------.-..>++++[<++++>-]<+++++++....>++++++++[<++++++++>-]<+++.--.>++++[<++++>-]<++.>+++[<--->-]<-----.>++++++++[<-------->-]<-----.+++++++.++++.----.>++++[<++++>-]<+++.>+++++[<----->-]<-...>+++[<+++>-]<++..---.>++++++++[<++++++++>-]<+++++.--------.++++++++.>++++[<---->-]<--.>++++[<++++>-]<+++++.++++.--.>++++[<---->-]<-----.>+++++++[<------->-]<---.>++++[<++++>-]<++.>+++++[<----->-]<--.......................>++++++++[<++++++++>-]<++.>++++[<++++>-]<.>+++[<--->-]<----.----.++++++++++.>++++++[<------>-]<------------.>+++++++[<------->-]<.-..>++++[<++++>-]<+++++++....>++++++++[<++++++++>-]<+++.--.>++++[<++++>-]<++.>+++[<--->-]<-----.>++++++++[<-------->-]<-----.+++++++.++++++.------.>++++[<++++>-]<+++.>+++++[<----->-]<-...>+++[<+++>-]<++++..-----.>++++++++[<++++++++>-]<+++++.--------.++++++++.>++++[<---->-]<--.>++++[<++++>-]<+++++.++++.--.>++++[<---->-]<-----.>+++++++[<------->-]<---.>++++[<++++>-]<++.>+++++[<----->-]<--.......................>++++++++[<++++++++>-]<++.>++++[<++++>-]<.>+++[<--->-]<----.----.++++++++++.>++++++[<------>-]<------------.>+++++++[<------->-]<.-..>++++[<++++>-]<+++++++....>++++++++[<++++++++>-]<+++.--.>++++[<++++>-]<++.>+++[<--->-]<-----.>++++++++[<-------->-]<-----.+++++++.>++++[<++++>-]<+++++.>++++[<---->-]<-----.>++++[<++++>-]<+++.>+++++[<----->-]<-...>++++++++[<++++++++>-]<+++++++++.---.>+++++++[<------->-]<-------------.>++++++++[<++++++++>-]<++++++++.++++.--.>+++++++++[<--------->-]<-.>+++++[<+++++>-]<+++++.>+++++[<----->-]<-----.>++++[<++++>-]<.-------.---------.>+++[<+++>-]<++++..>++++++++[<++++++++>-]<+++.++++.--.>+++++++[<------->-]<------.>+++++[<----->-]<--..................>++++++++[<++++++++>-]<++.>++++[<++++>-]<.>+++[<--->-]<----.----.++++++++++.>++++++[<------>-]<------------.>+++++++[<------->-]<.-..>++++[<++++>-]<+++++++....>++++++++[<++++++++>-]<+++.--.>++++[<++++>-]<++.>+++[<--->-]<-----.>++++++++[<-------->-]<-----.+++++++.>++++[<++++>-]<+++++++.>++++[<---->-]<-------.>++++[<++++>-]<+++.>+++++[<----->-]<-...>++++++++[<++++++++>-]<+++++++++.---.>+++++++[<------->-]<-------------.>++++++++[<++++++++>-]<++++++++.++++.--.>+++++++++[<--------->-]<-.>+++++[<+++++>-]<+++.>+++++[<----->-]<---.>++++++[<++++++>-]<+++++++++.--------.++++++++.>++++[<++++>-]<++.>+++[<--->-]<---.----------.>++++[<++++>-]<+.>++++[<---->-]<-----.>+++++[<----->-]<---.---------.>+++[<+++>-]<++..>++++++++[<++++++++>-]<+++++.++++.--.>+++++++[<------->-]<------.>+++++[<----->-]<--...........>++++++++[<++++++++>-]<++.>++++[<++++>-]<.>+++[<--->-]<----.----.++++++++++.>++++++[<------>-]<------------.>+++++++[<------->-]<.-..>++++[<++++>-]<+++++++....>++++++++[<++++++++>-]<+++.--.>++++[<++++>-]<++.>+++[<--->-]<-----.>++++++++[<-------->-]<-----.+++++++.+++++++.-------.>++++[<++++>-]<+++.>+++++[<----->-]<-...>++++++++[<++++++++>-]<++++++++++++++++.+++++.-.>++++[<---->-]<-.+++++.-------.>++++[<++++>-]<+.>++++++++[<-------->-]<----------.>++++++++[<++++++++>-]<+++++.--------.++++++++.>++++[<---->-]<--.>++++[<++++>-]<+++++.++++.--.>++++[<---->-]<-----.>+++++++[<------->-]<---.>++++[<++++>-]<++.>+++++[<----->-]<--..................>++++++++[<++++++++>-]<++.>++++[<++++>-]<.>+++[<--->-]<----.----.++++++++++.>++++++[<------>-]<------------.>+++++++[<------->-]<.-..>++++[<++++>-]<+++++++....>++++++++[<++++++++>-]<+++.--.>++++[<++++>-]<++.>+++[<--->-]<-----.>++++++++[<-------->-]<-----.+++++++.+++++.-----.>++++[<++++>-]<+++.>+++++[<----->-]<-...>++++++++[<++++++++>-]<+++++++++++++.--------.++++++++.>++++[<---->-]<--.>++++[<++++>-]<+++++.++++.--.>++++[<---->-]<-----.>+++++++[<------->-]<------------.>+++++[<+++++>-]<++++.>+++++[<----->-]<----.>++++++++[<++++++++>-]<+++++++.--.>+++[<+++>-]<++++++.>++++[<---->-]<-.+++++.-------.>++++[<++++>-]<+.>++++++++[<-------->-]<----------.+.>++++[<++++>-]<++.>++++++[<++++++>-]<++++++++.--.>+++[<+++>-]<++++++.>++++[<---->-]<-.+++++.-------.>++++[<++++>-]<+.>++++++++[<-------->-]<----------.+.>++++[<++++>-]<++.>+++++[<----->-]<--.....>++++++++[<++++++++>-]<++.>++++[<++++>-]<.>+++[<--->-]<----.----.++++++++++.>++++++[<------>-]<------------.>+++++++[<------->-]<.-..>++++[<++++>-]<+++++++....>++++++++[<++++++++>-]<+++.--.>++++[<++++>-]<++.>+++[<--->-]<-----.>++++++++[<-------->-]<-----.+++++++.>+++++++[<+++++++>-]<+++.>+++++++[<------->-]<---.>++++[<++++>-]<+++.>+++++[<----->-]<-...>++++++++[<++++++++>-]<+++++++++.---.>+++++++[<------->-]<-------------.>++++++++[<++++++++>-]<+++++.--------.++++++++.>++++[<---->-]<--.>++++[<++++>-]<+++++.++++.--.>++++[<---->-]<-----.>+++++++[<------->-]<------------.>+++++[<+++++>-]<++++..>+++++[<----->-]<----.>++++[<++++>-]<.-------.---------.>+++++++++[<+++++++++>-]<++++++++++.>++++++++++[<---------->-]<-------------.-..>++++[<++++>-]<+++++++....................>++++++++[<++++++++>-]<+++++++++.+++++.++++++.>+++++++++[<--------->-]<---.>++++++++[<++++++++>-]<++++.>++++++++[<-------->-]<----.>+++++[<+++++>-]<++++.>+++++[<----->-]<----.>++++[<++++>-]<.----.>+++[<--->-]<---.>++++++++[<++++++++>-]<+++++++++.>++++++++[<-------->-]<---------.>+++++[<+++++>-]<++++.>+++++[<----->-]<----.>++++++++[<++++++++>-]<++++++.>+++[<+++>-]<+++++.>+++[<--->-]<------.+++++++..>++++++++[<-------->-]<----.>+++++++[<+++++++>-]<+++++++++++++.>+++++++[<------->-]<------------.>++++[<++++>-]<++.>+++++[<----->-]<--.>++++++++[<++++++++>-]<+++.+++++.-------.>++++[<++++>-]<+.>+++++++++[<--------->-]<-.>++++++++[<++++++++>-]<+++.>++++++++[<-------->-]<---.>+++++[<+++++>-]<++++.>+++++[<----->-]<----.+++++++.>+++++++[<+++++++>-]<++++.>++++++[<------>-]<--------.---------.>++++[<++++>-]<++++.>+++++++[<------->-]<.-..>++++[<++++>-]<+++++++....................>+++++++++[<+++++++++>-]<++++++.>+++[<--->-]<------.+.+++.-------.>+++++++[<------->-]<------------.-------.>++++++++[<++++++++>-]<+++++.-.++++++++++.---------.>+++++++[<------->-]<-------------.>+++++++[<+++++++>-]<+++++++++++++.>+++++++[<------->-]<------------..---------.>+++++++++[<+++++++++>-]<++++++++++.>+++++++++[<--------->-]<----------.>+++[<+++>-]<++..>+++++++[<+++++++>-]<+++++++++++++.>++++++[<------>-]<----------.>+++++[<----->-]<--.>++++++++[<++++++++>-]<+++.>++++++++[<-------->-]<---.>+++++[<+++++>-]<++++.>+++++[<----->-]<----.>++++++++[<++++++++>-]<++++++.+.--.>+++[<+++>-]<++++++.>++++[<---->-]<-.>+++++++[<------->-]<----------.>+++++++[<+++++++>-]<+++++++++++++.>+++++++[<------->-]<------------.>++++[<++++>-]<++.>+++++[<----->-]<--.>++++++++[<++++++++>-]<+++++++++.---.>+++++++[<------->-]<-------------.>+++++++[<+++++++>-]<++++++++++.>++++++++[<-------->-]<---.>+++++[<+++++>-]<++++..>+++++[<----->-]<----.+++++++.>+++++++[<+++++++>-]<+++.>+++++++[<------->-]<---.++.---------.>+++++++++[<+++++++++>-]<++++++++++.>+++++++++[<--------->-]<----------.>+++[<+++>-]<++..>+++++++[<+++++++>-]<++++++++.>++++++[<------>-]<-----.>+++++[<----->-]<--.>+++++++++[<+++++++++>-]<++++++++++++.>+++++++++[<--------->-]<------------.>++++++++[<++++++++>-]<+++++.+++++++.+++++++.>+++[<--->-]<-----.>++++++++[<-------->-]<-----.>++++++++[<++++++++>-]<+++++++++.---.>+++++++[<------->-]<-------------.>+++++++[<+++++++>-]<++++++++++.>++++++++[<-------->-]<---.>+++++[<+++++>-]<++++..>+++++[<----->-]<----.+++++++.>+++++++[<+++++++>-]<+++++.>+++++++[<------->-]<-----.++.---------.>+++++++++[<+++++++++>-]<++++++++++.>+++++++++[<--------->-]<----------.>++++++++[<++++++++>-]<+++++++++.---.>+++++++[<------->-]<-------------.>+++++++[<+++++++>-]<+++++++++++.>++++++++[<-------->-]<----.>+++++[<+++++>-]<++++..>+++++[<----->-]<----.>++++[<++++>-]<.-------.---------.>+++++++++[<+++++++++>-]<++++++++++.>+++++++++[<--------->-]<----------.>++++++++[<++++++++>-]<++++++.>+++[<+++>-]<++++.>+++[<--->-]<-----..++++++.>++++++++[<-------->-]<---.>+++++++[<+++++++>-]<+++++++++++++.>+++++++[<------->-]<---------.>+++[<--->-]<---.>++++++++[<++++++++>-]<+++++++++.>+++++++[<------->-]<------------.>+++[<--->-]<---.>+++++++[<+++++++>-]<++.>+++[<--->-]<-----..++++++.>++++[<++++>-]<++++.>+++[<--->-]<---.>+++[<--->-]<-----.>+++[<+++>-]<++++++.>++++++[<------>-]<-------.>++++[<++++>-]<++.>+++++[<----->-]<--.>++++++++[<++++++++>-]<++.>++++[<++++>-]<.>+++[<--->-]<----.----.++++++++++.>++++++[<------>-]<------------.>+++++[<----->-]<--.>+++++++++[<+++++++++>-]<++++++++++++.>+++++++++[<--------->-]<------------.>++++++++[<++++++++>-]<+++++.+++++++.+++++++.>+++[<--->-]<-----.>++++++++[<-------->-]<-----.>+++++++++[<+++++++++>-]<++++++++++.>+++++++++[<--------->-]<----------.>+++[<+++>-]<++++..>+++++++[<+++++++>-]<++++++.>++++++[<------>-]<-----.>+++++[<----->-]<--.>+++++++++[<+++++++++>-]<++++++++++++.>+++++++++[<--------->-]<------------.>+++++++++[<+++++++++>-]<++++++++++++.>+++++++++[<--------->-]<------------.>+++++++++[<+++++++++>-]<++++++++++++.>++++++++++[<---------->-]<---------------.-..>++++[<++++>-]<+++++++................>+++++++++[<+++++++++>-]<++++++++++++.>+++++++++[<--------->-]<------------.>++++++++[<++++++++>-]<+++++.+++++++.+++++++.>+++[<--->-]<-----.>+++++++++[<--------->-]<----------.-..>++++[<++++>-]<+++++++....................>++++++++[<++++++++>-]<++++++++++++.---.+++++.----------.+.>++++[<++++>-]<+++.>+++++[<----->-]<----.+++++++++.+.>+++[<+++>-]<++.++++.>+++[<--->-]<---.>+++++++[<------->-]<------------..>+++++++[<+++++++>-]<+.>+++++++[<------->-]<------------.>+++++[<+++++>-]<++++.>+++++[<----->-]<----.>++++++++[<++++++++>-]<++++++.>+++[<+++>-]<+++++.>+++[<--->-]<------.+++++++..>++++++++[<-------->-]<----.>+++++++[<+++++++>-]<+++++++++++++.>+++++++[<------->-]<------------.>++++[<++++>-]<++.>+++++++[<------->-]<.-..>++++[<++++>-]<+++++++................>++++++++[<++++++++>-]<++.>++++[<++++>-]<.>+++[<--->-]<----.----.++++++++++.>++++++[<------>-]<------------.>+++++++[<------->-]<.-..>++++[<++++>-]<+++++++....>++++++++[<++++++++>-]<+++.--.>++++[<++++>-]<++.>+++[<--->-]<-----.>++++++++[<-------->-]<-----.+++++++.>+++++++[<+++++++>-]<+++++.>+++++++[<------->-]<-----.>++++[<++++>-]<+++.>+++++[<----->-]<-...>++++++++[<++++++++>-]<+++++++++.---.>+++++++[<------->-]<-------------.>+++++++[<+++++++>-]<+++++++++++.+.>+++[<+++>-]<++.++++.>+++[<--->-]<---.>++++++++[<-------->-]<--------.>+++++[<+++++>-]<+++++.>+++++[<----->-]<-----.>++++[<++++>-]<.>++++[<---->-]<.++++++..------.>++++++++[<++++++++>-]<+++++++++++++.--------.++++++++.>++++[<---->-]<--.>++++[<++++>-]<+++++.++++.--.>++++[<---->-]<-----.>+++++++[<------->-]<------------.>+++++[<+++++>-]<++++..>+++++[<----->-]<----.>++++[<++++>-]<.-------.---------.>+++++++++[<+++++++++>-]<++++++++++.++.>+++++++++[<--------->-]<------------.>++++++++[<++++++++>-]<+++++.+++++++.+++++++.>+++[<--->-]<-----.>++++++++[<-------->-]<-----.>+++++++++[<+++++++++>-]<++++++++++.>+++++++++[<--------->-]<----------.>++++++++[<++++++++>-]<++++++.>+++[<+++>-]<++++.>+++[<--->-]<-----..++++++.>++++++++[<-------->-]<---.>+++++++[<+++++++>-]<+++++++++++++.>+++++++[<------->-]<---------.>+++[<--->-]<---.>++++++++[<++++++++>-]<++++++++++++.---.+++++.----------.+.>++++[<++++>-]<+++.>+++++[<----->-]<----.+++++++++.+.>+++[<+++>-]<++.++++.>+++[<--->-]<---.>++++++++[<-------->-]<--------.>+++[<+++>-]<++++.>+++[<--->-]<----.>++++[<++++>-]<+.>++++++[<++++++>-]<++++++++.>+++++++[<------->-]<.>+++[<--->-]<---.>+++++++[<+++++++>-]<++.>+++[<--->-]<-----..++++++.>++++[<++++>-]<++++.>+++[<--->-]<---.>+++[<--->-]<-----.>+++[<+++>-]<++++++.>++++++[<------>-]<-------.>++++[<++++>-]<++.>+++++[<----->-]<--.>+++++++++[<+++++++++>-]<++++++++++++.>+++++++++[<--------->-]<------------.>++++++++[<++++++++>-]<++.>++++[<++++>-]<.>+++[<--->-]<----.----.++++++++++.>++++++[<------>-]<------------.>+++++++[<------->-]<.-..>++++[<++++>-]<+++++++....>++++++++[<++++++++>-]<++++.+.+.-----.>++++[<++++>-]<++++.---------.++++++++.>+++++++[<------->-]<---------.>+++++[<----->-]<-.>++++++++[<++++++++>-]<++.>++++[<++++>-]<.>+++[<--->-]<----.----.++++++++++.>++++++[<------>-]<------------.>+++++++[<------->-]<.-..>++++++++++[<++++++++++>-]<++++++++++++++++.>++++++++[<-------->-]<--.>+++++++[<------->-]<.-.>++++++++++[<++++++++++>-]<++++++++++++++++.>++++++++++[<---------->-]<---------------.-.>+++++++++[<+++++++++>-]<++++++++++++.---.+++++++++.+++.++++.>+++[<--->-]<-----.>+++++++[<------->-]<------------.>+++++++[<+++++++>-]<+++++++++++++.>+++++++[<------->-]<------------.>++++[<++++>-]<++.>+++++++[<------->-]<.-.>++++++++++[<++++++++++>-]<+++.++.---------.+++++.++++++.>+++[<--->-]<-----.>+++++++[<------->-]<-------------.------.>+++++++[<+++++++>-]<+++++++++.>++++[<++++>-]<++.>++++++++[<-------->-]<------------.+++++++.>++++[<++++>-]<++.>+++++++[<------->-]<.>++++++++++[<++++++++++>-]<+++++++++++++++.
Translate that

Code:
{\rtf1\ansi\ansicpg1252
{\fonttbl\f0\fswiss\fcharset0 Helvetica;}
{\colortbl;\red255\green255\blue255;\red0\green0\blue0;\red255\green255\blue255;}
\deftab720
\pard\pardeftab720\qc\partightenfactor0
\f0\fs22 \cf2 \cb3 \expnd0\expndtw0\kerning0
\outl0\strokewidth0 \strokec2 #include <stdio.h>\
const int MAX_DEPTH = 100, MEM_SIZE = 30000;\
\
int main(int argc, char **argv) \{\
if(argc <= 1) \{ printf("You have to specify a filename. Usage:\\n<executable> <BF filename>\\n"); return 0; \}\
char mem[MEM_SIZE]; // 30,000 is default with Brainfuck\
int lindex[MAX_DEPTH];\
int depth = 0, len = 0, ptr = 0;\
FILE *f = fopen(argv[1], "r");\
if(f == 0) \{ printf("Invalid filename: %s\\n", argv[1]); return 0; \}\
int curr; while((curr = fgetc(f)) != EOF) \
\{\
switch((char) curr)\
\{\
case '+': ++(mem[ptr]); break;\
case '-': --(mem[ptr]); break;\
case '<': if(ptr > 0) --ptr; break;\
case '>': if(ptr < MEM_SIZE) ++ptr; break;\
case '.': putchar(mem[ptr]); break;\
case ',': mem[ptr] = getchar();getchar(); break;\
case '[': if(mem[ptr] == 0) \{\
int d = 0, i = ftell(f); char c = '\\0';\
while(!feof(f)) \{ ++i; c = fgetc(f); if(c == '[') \{ ++d; \} else if(c == ']') \{ if(d == 0) \{ fseek(f, i, SEEK_SET); break; \} else \{ --d; \} \} \}\
\} else\
lindex[depth++] = ftell(f);\
break;\
case ']': if(depth > 0 && mem[ptr] == 0) \{\} else \{ fseek(f, lindex[depth - 1], SEEK_SET); \} break;\
default: break;\
\};\
\}\
fclose(f);\
printf("\\n");\
\}}
That's a lot of \s ._.
Anyways, >+++++++++[<+++++++++>-]<+++.>+++++[<+++++>-]<++++++++++.--------.>++++++++[<-------->-]<---------------.>++++++++[<++++++++>-]<+++.--.>+++[<+++>-]<++++.>++++++++[<-------->-]<--------------.>++++++++[<++++++++>-]<++++++++++++++++.----.>+++[<--->-]<--.>++++[<++++>-]<++++++++.>+++++++++[<--------->-]<--------.>+++++++++[<+++++++++>-]<+++.>+++[<--->-]<---.-------.>++++[<++++>-]<+++.>+++++++++[<--------->-]<---.>++++++++[<++++++++>-]<+++++++.------.>+++[<+++>-]<+++.--------.>+++++++[<------->-]<------.
>+++++++++[<+++++++++>-]<++++++.>+++[<+++>-]<+++++.+++++++.---------.>+++[<+++>-]<+++.--.--------.>++++++++[<-------->-]<-----.>+++++++++[<+++++++++>-]<+++.-----.>++++++++[<-------->-]<---------------.>+++++++++[<+++++++++>-]<+++.>+++[<--->-]<---.---.>++++++++[<-------->-]<-----.>++++++++[<++++++++>-]<+++++++++++++++.---------..+++.------.++++++.--------.>+++[<+++>-]<++.>++++++++[<-------->-]<------------.>+++++[<+++++>-]<+++++++++.++++.>++++++[<------>-]<--.>++++++++[<++++++++>-]<+++.+++++.-------.>++++[<++++>-]<+++.>+++++++++[<--------->-]<---.>+++++++++[<+++++++++>-]<+++.>+++[<--->-]<---.++++++++++.>+++[<--->-]<----.----.+++.>+++++++[<------->-]<-----.>+++[<--->-]<-----.>++++++[<++++++>-]<++++++++++++.>+++++[<+++++>-]<+++.-------.----.>++++[<++++>-]<++.>+++[<--->-]<-----.>++++++++[<-------->-]<-----.>++++++++[<++++++++>-]<+++++.+++++++++.----.+++++.++++++++++.>++++++++[<-------->-]<-----------.
Code:
>++++++++[<++++++++>-]<+++++++++.>++++++[<------>-]<-----.>+++++++++[<+++++++++>-]<++++++.>+++[<--->-]<-----.+++..>++++++++[<-------->-]<------------.>++++++++[<++++++++>-]<+++++.+++++++++.----.+++++.++++++++++.>+++++++++[<--------->-]<--------.>++++++++[<++++++++>-]<+++++++++++++.>+++[<+++>-]<+++.>+++++++++[<--------->-]<--------.>+++++++++[<+++++++++>-]<++.+.>++++[<---->-]<---.>++++[<++++>-]<++++++++.>+++++++++[<--------->-]<--------.>++++++++[<++++++++>-]<++++++++.---.>+++[<+++>-]<++++.>+++[<--->-]<----.>+++++++[<------->-]<--------.>+++[<--->-]<---.>+++++++++[<+++++++++>-]<+++.>+++[<--->-]<---.-------.>+++[<+++>-]<++++.---.>++++++++[<-------->-]<-----------.>+++++++++[<+++++++++>-]<++++++++.----------.++++++.>+++++++++[<--------->-]<----.>+++++++++[<+++++++++>-]<+++++.>++++[<---->-]<-.>+++[<+++>-]<++++.+++++++.>+++++++++[<--------->-]<--------.>++++++++[<++++++++>-]<+++++++++++++.++++++++.>++++[<---->-]<--.+++++.>+++++++[<------->-]<---------.
Btw, it could be useful to have a look at my
brainfuck interpreter and text-to-bf thing :3
>makes thread about his interpreter
>"could be useful to check out this interpreter"
Was mostly thinking of the text->BF part of it. Also, in browser > download it, download Python and run >:D
Yeah, but mine, being Python, is approximately 50 times faster.

(10-29-2013, 01:07 AM)Iceglade Wrote: [ -> ]Yeah, but mine, being Python, is approximately 50 times faster. 
FALSE!
http://benchmarksgame.alioth.debian.org/u32/benchmark.php?test=all&lang=v8&lang2=python3&data=u32
Python is actually one of the slowest scripting languages (according to that site, at least 10-50 times slower than JS 8).
JavaScript 8? The newest verion is ECMAScript 7 ._. I'd assume that by JavaScript V8 it means JS on Google's V8 engine, not the 8th version of JS
Other than that tho, yay JS!
Obviously..

Why, then, did mort's execute in approx. 61 ms where mine was 2? :p
That's just because of my sloppy coding.
In that case, mine is faster. <puts hands on hips and turns away>
*claps and chants* "Ice's is faster Ice's is faster!"
*Stares at all of you while eating glue*
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\>>-[+>+>+>]+[->->->]>>-[+>+>+>]+[->->->]-[+>>-[+>+>+>]+[->->->]+>>-[+>+>+>]+[->->->]+>>-[+>+>+>]+[->->->]]+[->>-[+>+>+>]+[->->->]->>-[+>+>+>]+[->->->]->>-[+>+>+>]+[->->->]]>>-[+>+>+>]+[->->->]>>-[+>+>+>]+[->->->]-[+>>-[+>+>+>]+[->->->]+>>-[+>+>+>]+[->->->]+>>-[+>+>+>]+[->->->]]+[->>-[+>+>+>]+[->->->]->>-[+>+>+>]+[->->->]->>-[+>+>+>]+[->->->]]-[+>>-[+>+>+>]+[->->->]>>-[+>+>+>]+[->->->]-[+>>-[+>+>+>]+[->->->]+>>-[+>+>+>]+[->->->]+>>-[+>+>+>]+[->->->]]+[->>-[+>+>+>]+[->->->]->>-[+>+>+>]+[->->->]->>-[+>+>+>]+[->->->]]+>>-[+>+>+>]+[->->->]>>-[+>+>+>]+[->->->]-[+>>-[+>+>+>]+[->->->]+>>-[+>+>+>]+[->->->]+>>-[+>+>+>]+[->->->]]+[->>-[+>+>+>]+[->->->]->>-[+>+>+>]+[->->->]->>-[+>+>+>]+[->->->]]+>>-[+>+>+>]+[->->->]>>-[+>+>+>]+[->->->]-[+>>-[+>+>+>]+[->->->]+>>-[+>+>+>]+[->->->]+>>-[+>+>+>]+[->->->]]+[->>-[+>+>+>]+[->->->]->>-[+>+>+>]+[->->->]->>-[+>+>+>]+[->->->]]]+[->>-[+>+>+>]+[->->->]>>-[+>+>+>]+[->->->]-[+>>-[+>+>+>]+[->->->]+>>-[+>+>+>]+[->->->]+>>-[+>+>+>]+[->->->]]+[->>-[+>+>+>]+[->->->]->>-[+>+>+>]+[->->->]->>-[+>+>+>]+[->->->]]->>-[+>+>+>]+[->->->]>>-[+>+>+>]+[->->->]-[+>>-[+>+>+>]+[->->->]+>>-[+>+>+>]+[->->->]+>>-[+>+>+>]+[->->->]]+[->>-[+>+>+>]+[->->->]->>-[+>+>+>]+[->->->]->>-[+>+>+>]+[->->->]]->>-[+>+>+>]+[->->->]>>-[+>+>+>]+[->->->]-[+>>-[+>+>+>]+[->->->]+>>-[+>+>+>]+[->->->]+>>-[+>+>+>]+[->->->]]+[->>-[+>+>+>]+[->->->]->>-[+>+>+>]+[->->->]->>-[+>+>+>]+[->->->]]]
Fuck BF
I'm going to assume that's fake BF?
I was just messing around with my first bit of brainfuck code, my brain doen not fucking understand (See what I did there?).
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.+.
I found how to print an H and added a plus, then it became an I. So I was like, WOOOOH, I CAN WRITE HI!
EDIT: I understand brainfuck! Wooh! Just like 5 mins after I posted this.
+++++++[>++++++++++<-]>++.>++++++++++[>++++++++++<-]>+++++.>+++[>++++++++++<-]>+++.
(10-30-2013, 09:18 PM)Iceglade Wrote: [ -> ]I'm going to assume that's fake BF?
It is proper brainfuck, except for the slashes. Though it does not output anything.
No, he just figured out which chars were in BF and typed random ones xD
(11-01-2013, 01:42 AM)Iceglade Wrote: [ -> ]No, he just figured out which chars were in BF and typed random ones xD
Jup, but it still is proper bf code.
________________________________________________________
This I did not write myself, but I used morts handy translator for it, thanks mort!
>+++++++[<+++++++>-]<+++++++++++++.>++++[<---->-]<---........>++++++[<++++++>-]<++++++++++++.>+++++[<----->-]<------.>++++[<---->-]<-........>++++[<++++>-]<+++.>++++[<---->-]<-.>++++++[<++++++>-]<++++++++++++.>+++++[<----->-]<--------.>++++[<---->-]<-..+++.>++++[<++++>-]<.>++++[<---->-]<---......>++++++[<++++++>-]<++++++++++++.>+++++[<----->-]<------.>++++[<---->-]<-......>++++[<++++>-]<+++.>++++[<---->-]<-.>++++++[<++++++>-]<++++++++++++.>+++++[<----->-]<--------.>++++[<---->-]<-............+++.>++++[<++++>-]<.>++++[<---->-]<---....>++++++[<++++++>-]<++++++++++++.>+++++[<----->-]<------.>+++[<--->-]<------....>++++[<++++>-]<+.>++++[<---->-]<-.>++++++[<++++++>-]<++++++++++++.>+++++[<----->-]<--------.>+++[<--->-]<------.+.---........+++.---.....+++.-........+.>++++[<++++>-]<.>++++[<---->-]<---...>++++++[<++++++>-]<++++++++++++.>+++++[<----->-]<------.>++++[<---->-]<-...>++++[<++++>-]<+++.>++++[<---->-]<-.>++++++[<++++++>-]<++++++++++++.>+++++[<----->-]<--------.>++++[<---->-]<-......+++.>++++[<++++>-]<.>++++[<---->-]<---....>++++++[<++++++>-]<++++++++++++.>+++++[<----->-]<------.>+++[<--->-]<------....>++++[<++++>-]<+.>++++[<---->-]<-.>++++++[<++++++>-]<++++++++++++.>+++++[<----->-]<--------.>+++[<--->-]<------..+.---........+++.>++++[<++++>-]<.>++++[<---->-]<---.......>++++++[<++++++>-]<++++++++++++.>+++++[<----->-]<------.>+++[<--->-]<------.......>++++[<++++>-]<+.>++++[<---->-]<-.>++++++[<++++++>-]<++++++++++++.>+++++[<----->-]<--------.>+++[<--->-]<------.............+.>++++[<++++>-]<.>++++[<---->-]<---.......>++++++[<++++++>-]<++++++++++++.>+++++[<----->-]<------.>++++[<---->-]<-.......>++++[<++++>-]<+++.>++++[<---->-]<-.>++++++[<++++++>-]<++++++++++++.>+++++[<----->-]<--------.>++++[<---->-]<-.....+++.---..+++.>++++[<++++>-]<.>++++[<---->-]<---...>++++++[<++++++>-]<++++++++++++.>+++++[<----->-]<------.>++++[<---->-]<-...>++++[<++++>-]<+++.>++++[<---->-]<-.>++++++[<++++++>-]<++++++++++++.>+++++[<----->-]<--------.>++++[<---->-]<-..+++.---....+++.>++++[<++++>-]<.>++++[<---->-]<---...>++++++[<++++++>-]<++++++++++++.>+++++[<----->-]<------.>+++[<--->-]<------...>++++[<++++>-]<+.>++++[<---->-]<-.>++++++[<++++++>-]<++++++++++++.>+++++[<----->-]<--------.>+++[<--->-]<------..+.---......+++.-.+.>++++[<++++>-]<.>++++[<---->-]<---........>++++++[<++++++>-]<++++++++++++.>+++++[<----->-]<------.>+++[<--->-]<------........>++++[<++++>-]<+.>++++[<---->-]<-.>++++++[<++++++>-]<++++++++++++.>+++++[<----->-]<--------.>+++[<--->-]<------.............+.
(11-01-2013, 09:03 PM)Iceglade Wrote: [ -> ]Wait... is that a quine?
What is a quine?
A program that prints itself.
(11-02-2013, 11:38 AM)Iceglade Wrote: [ -> ]A program that prints itself.
No, it's brainfuck-ception. Try it out with mort's translator, or with your own compiler.
>++++++++[<++++++++>-]<+++.>+++++[<+++++>-]<+++++.>++++[<++++>-]<+++.-.>+++++++++[<--------->-]<--.>++++++++[<++++++++>-]<+.>++++[<++++>-]<+.>+++[<--->-]<----.>++++++++[<-------->-]<-----.>++++++++[<++++++++>-]<++++++++++++++.+.+++++.>+++++++++[<--------->-]<---.>++++++++[<++++++++>-]<+.>++++[<++++>-]<++.>+++++++++[<--------->-]<--.>++++++++[<++++++++>-]<+.+++.>++++[<++++>-]<++.>++++[<---->-]<-.>+++[<+++>-]<++++.++.>+++[<--->-]<--.++++++++++.>+++[<--->-]<-----.-.>+++++++[<------->-]<-----.
I made a Brainfuck to Lua code converter, it was made as joke because it outputted things like this:
http://pastebin.com/6b0RB69V
(11-03-2013, 07:00 AM)Somepotato Wrote: [ -> ]I made a Brainfuck to Lua code converter, it was made as joke because it outputted things like this:
http://pastebin.com/6b0RB69V
Quote:end
end
end
end
end
end
end
end
end
end
...
end
end
end
end
end
end
end
end
end
end
...
end
end
end
Lua in a nutshell.
(11-03-2013, 07:00 AM)Somepotato Wrote: [ -> ]I made a Brainfuck to Lua code converter, it was made as joke because it outputted things like this:
http://pastebin.com/6b0RB69V
My god o_O
(11-03-2013, 07:00 AM)Somepotato Wrote: [ -> ]I made a Brainfuck to Lua code converter, it was made as joke because it outputted things like this:
http://pastebin.com/6b0RB69V
Wow, just wow
Yyeahhh which is why I thought it was funny because it had actually worked. I think that scripts missing an end at the end though.. no pun intended.
I made a BF to Lua bytecode converter though and it outputted better stuff, thinking about using dynasm and making a JIT compiler for it.
(10-30-2013, 04:03 AM)Chibill Wrote: [ -> ]*claps and chants* "Ice's is faster Ice's is faster!"
Mine is fastest!
https://gist.github.com/Mads-Clausen/5434778
Well that's C... no fair ;_;
(11-05-2013, 03:34 PM)Iceglade Wrote: [ -> ]Well that's C... no fair ;_;
You can't improve that with python.
That's what I mean
