Is there any decent programmers here?

09/23/2011 10:37 BaussHacker#1
You're not decent, before you can figure this out:
Language = Brainfuck.
09/23/2011 11:23 Chalkie#2
99 bottles of beer ect ect, use know the song.
09/23/2011 11:36 Lateralus#3
This is what people who have never looked at any code think all code looks like. Seriously.
09/23/2011 11:54 m7mdxlife#4
I believe thats how an egy see's the english language...
09/23/2011 12:29 Benguin#5
it said Bauss is the best camel everrr
09/23/2011 12:39 BaussHacker#6
Quote:
Originally Posted by Benguin View Post
it said Bauss is the best camel everrr
True story.
09/23/2011 13:26 JobvdH#7
Maybe the egys wants to learn english and type some crap in the hope they finally learned english..
09/23/2011 14:05 BaussHacker#8
Quote:
Originally Posted by JobvdH View Post
Maybe the egys wants to learn english and type some crap in the hope they finally learned english..
You don't get that it's a programming language? lool
The Egy joke died in 1960.
09/23/2011 14:54 Korvacs#9
You dont actually need to be a decent programmer to know brainfuck, you just need to know brainfuck....
09/23/2011 14:56 m7mdxlife#10
Quote:
Originally Posted by Korvacs View Post
You dont actually need to be a decent programmer to know brainfuck, you just need to know brainfuck....
care to make a guide? o.O
09/23/2011 15:12 BaussHacker#11
Quote:
Originally Posted by Korvacs View Post
You dont actually need to be a decent programmer to know brainfuck, you just need to know brainfuck....
"Last Thursday, Urban Müller decided to snort a straight ton of coke laced with acid, and then ate a shroom for good measure. Brainfuck -- an esoteric turing test that isn't even suitable as a programming language -- was born. "

This is where I got this:
[Only registered and activated users can see links. Click Here To Register...]

So you need to be on coke to understand brainfuck.. hmmm...

I thought about learning it, it's basically all about pointers.

Brainfuck | C equivalent
Code:
> 	++ptr;
< 	--ptr;
+ 	++*ptr;
- 	--*ptr;
. 	putchar(*ptr);
, 	*ptr=getchar();
[ 	while (*ptr) {
] 	}
http://en.wikipedia.org/wiki/Brainfuck
09/23/2011 20:42 Korvacs#12
Shame that isnt true, and that the real reason it was made was to be able to write the smallest compiler ever made.

Heres hello world:

Code:
+++++ +++++             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 'W'
> .                     print 'o'
+++ .                   print 'r'
----- - .               print 'l'
----- --- .             print 'd'
> + .                   print '!'
> .                     print '\n'
09/23/2011 21:43 BaussHacker#13
Quote:
Originally Posted by Korvacs View Post
Shame that isnt true, and that the real reason it was made was to be able to write the smallest compiler ever made.

Heres hello world:

Code:
+++++ +++++             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 'W'
> .                     print 'o'
+++ .                   print 'r'
----- - .               print 'l'
----- --- .             print 'd'
> + .                   print '!'
> .                     print '\n'
I know it isn't true. Look at the source :P Just had to share the lol.
09/24/2011 02:37 pwerty#14
ffs its Criss Angel .. please sign my post.
09/24/2011 11:11 BaussHacker#15
I think I might know a way to do this somehow. By parsing it all and converting it to C, however it wouldn't work that well. It would still be a fucked up code.