No, not me, well okay…kind of me. However i hope you’ll understand where I’m coming from when you read this
(85-90% of you can stop reading now) While i was programming last week i came across a language I hadn’t seen before, it’s called ‘Brainfuck’ (Real Programming language…)
<geekery>Minimalistic esoteric programming language created in 1993, and only has 8 true commands, everything else it does is only an adaption of such, was invented to try and be a Turing-complete language, with the smallest possible compiler, and it looks something like this
The following code displays fibonacci numbers under 100…
+++++++++++ >+>>>>++++++++++++++++++++++++++++++++++++++++++++ >++++++++++++++++++++++++++++++++<<<<<<[>[>>>>>>+> +<<<<<<<-]>>>>>>>[<<<<<<<+>>>>>>>-]<[>++++++++++[- <-[>>+>+<<<-]>>>[<<<+>>>-]+<[>[-]<[-]]>[<<[>>>+<<< -]>>[-]]<<]>>>[>>+>+<<<-]>>>[<<<+>>>-]+<[>[-]<[-]] >[<<+>>[-]]<<<<<<<]>>>>>[+++++++++++++++++++++++++ +++++++++++++++++++++++.[-]]++++++++++<[->-<]>++++ ++++++++++++++++++++++++++++++++++++++++++++.[-]<< <<<<<<<<<<[>>>+>+<<<<-]>>>>[<<<<+>>>>-]<-[>>.>.<<< [-]]<<[>>+>+<<<-]>>>[<<<+>>>-]<<[<+>-]>[<+>-]<<<-]
Hope you join me in saying wthat the fuck…
And in Java
public class Fibonacci {
public static long fib(int n) {
if (n <= 1) return n;
else return fib(n-1) + fib(n-2);
}
public static void main(String[] args) {
int N = Integer.parseInt(args[0]);
for (int i = 1; i <= N; i++)
System.out.println(i + ": " + fib(i));
}
}
To the average person, both of those may look complete bollocks, just thought I’d share my recent findings, feel free to offer your opinions
</geekery>
Ash
