FSTDT Forums

Community => Science and Technology => Topic started by: CaseAgainstFaith on February 17, 2012, 11:52:06 am

Title: BrainF**k Computer Code
Post by: CaseAgainstFaith on February 17, 2012, 11:52:06 am
Anyone ever know this programming language existed?  Also has anyone programmed in this language before?

BTW this isn't a joke apparently Brainfuck is a real programming language

Brainfuck is an EsotericProgrammingLanguage. As a language, has some very good points:
   Fast learning curve
    Easy syntax
    200 byte compiler
    No trouble finding it on google (unlike with ForthLanguage, unless "put forth" and "go forth" are excluded; very few people say brainfuck in normal non-programming web sites)
        Hmm you might land on some sort of brain fetish site though
    One character per command. Easy to tokenize
    Makes a great learning language :)
    Code reuse is facilitated by an utter lack of variables and subroutines.
    It is TuringComplete, and making a C-to-brainfuck compiler would make your programs very portable in object format.

http://esoteric.sange.fi/brainfuck/ -- an archive of implementations, programs, and IDE's for brainfuck  (http://esoteric.sange.fi/brainfuck/)

source of all this - http://c2.com/cgi/wiki?BrainfuckLanguage (http://c2.com/cgi/wiki?BrainfuckLanguage)

Just curious on your thoughts since I have never heard of this programming language before.
Title: Re: BrainF**k Computer Code
Post by: Yla on February 17, 2012, 12:56:44 pm
I know Brainfuck. It's a semi-joke - while it's a complete language, only people interested in the challenge and masochists actually write short programs in Brainfuck.
Title: Re: BrainF**k Computer Code
Post by: Sleepy on February 17, 2012, 01:19:27 pm
I've seen Brainfuck. A guy in one of my classes has been playing with it for awhile because, as Yla said, he likes the challenge. But screw that, I'm not enough of a masochist to attempt it.

A standard Hello World example (http://en.wikipedia.org/wiki/Brainfuck#Examples). That makes me cringe.
Title: Re: BrainF**k Computer Code
Post by: Dan on February 17, 2012, 01:44:54 pm
I always preferred Whitespace (http://en.wikipedia.org/wiki/Whitespace_%28programming_language%29).
Title: Re: BrainF**k Computer Code
Post by: Yla on February 17, 2012, 02:54:00 pm
I find that list of advantages very funny.

Quote
   Fast learning curve
    Easy syntax
Snerk.

Quote
200 byte compiler
whose output will utterly paralyze your computer if you try to run more than a Hello World. If you want a serious executable, the compiler needs to optimize the code, which a 200B one won't do.

Quote
Code reuse is facilitated by an utter lack of variables and subroutines.
Ahahahahah.
Title: Re: BrainF**k Computer Code
Post by: Sleepy on February 17, 2012, 03:47:20 pm
Maaaan, I hadn't seen LOLCODE (http://en.wikipedia.org/wiki/LOLCODE) before. Not sure if amusing or depressing.
Title: Re: BrainF**k Computer Code
Post by: Captain Jack Harkness on February 17, 2012, 05:45:18 pm
Yeah, I've actually heard of this before.  Each command is meant to either traverse or manipulate bits to create different ASCII values, if I recall correctly.  I didn't click the link, and am just going off of memory.
Title: Re: BrainF**k Computer Code
Post by: Witchyjoshy on February 18, 2012, 01:27:44 am
I think it'd be less confusing to learn to program directly with binary O_o
Title: Re: BrainF**k Computer Code
Post by: Shane for Wax on February 18, 2012, 02:01:54 am
No thank you!
Title: Re: BrainF**k Computer Code
Post by: Distind on February 20, 2012, 06:29:35 am
I think it'd be less confusing to learn to program directly with binary O_o
Having effectively done that, I will say it's true. I'd rather fuck with binary byte codes again than deal with brainfuck.

Mind you I had to write out a couple hundreds of lines of bytecode instructions in notepad, and I'd still rather do that again than brainfuck.