Computer Science Canada

Programming from Hell

Author:  wtd [ Fri Mar 05, 2004 12:35 am ]
Post subject:  Programming from Hell

Just for fun:

http://www.mines.edu/students/b/bolmstea/malbolge/

Malbolge: designed to be the hardest programming language to get anything done with.

Author:  jonos [ Fri Mar 05, 2004 8:11 am ]
Post subject: 

sounds like fun. that's interesting why anyone would want that, but i probably would too. what's brainfuck?

Author:  Catalyst [ Fri Mar 05, 2004 3:30 pm ]
Post subject: 

the devil

Author:  jonos [ Fri Mar 05, 2004 3:45 pm ]
Post subject: 

is it a programming language?

Author:  Tony [ Fri Mar 05, 2004 3:59 pm ]
Post subject: 

yeah Laughing its a programming language. the syntax is a continues string of 8 different characters Twisted Evil purpose is to have the program be as small as possible... compiler itself is 200 bytes Shocked

code:

//example that prints Hello World!

>+++++++++[<++++++++>-]<.>+++++++[<++++>-]<+.+++++++..+++.>>>++++++++[<++++>-]
<.>>>++++++++++[<+++++++++>-]<---.<<<<.+++.------.--------.>>+.

Author:  jonos [ Fri Mar 05, 2004 4:04 pm ]
Post subject: 

that is crazy, has anyone ever done anything productive with it?

edit:
would that mean that it would be really easy to parse everything then?

Author:  wtd [ Fri Mar 05, 2004 9:35 pm ]
Post subject: 

jonos wrote:
that is crazy, has anyone ever done anything productive with it?


Probaby, though that's not what it was created for. Wink

Quote:
would that mean that it would be really easy to parse everything then?


Any language that is composed of tokens that are never longer than one character is really easy to parse. Wink

And for fun, "Hello, World!" in Befunge

code:
                v
>v"Hello world!"<
,:
^_a,@


The real challenge is writing quines, which if memory serves, are programs that print their own source.

Author:  jonos [ Fri Mar 05, 2004 9:37 pm ]
Post subject: 

what was brainfuck made for. or you could just give me a link or point me in the right direction.

Author:  wtd [ Fri Mar 05, 2004 9:46 pm ]
Post subject: 

http://www.muppetlabs.com/~breadbox/bf/

It was essentially an academic experiment.

http://www.99-bottles-of-beer.net/b.html#Brain****

Author:  jonos [ Fri Mar 05, 2004 10:03 pm ]
Post subject: 

yeah, ive been looking into it, the c compiler is so damn short. but i tried compiling it and it didn't work, i don't know what im supposed to do with it. i want a interpretor or compiler but i can't figure how to do it.

Author:  wtd [ Sat Mar 06, 2004 12:17 am ]
Post subject: 

Lots of good Brain**** resources here.

Author:  jonos [ Sat Mar 06, 2004 12:21 am ]
Post subject: 

i went there, but after i compiled one of the c interpretors, it still didn't work.

Author:  apomb [ Sat Mar 06, 2004 12:28 am ]
Post subject: 

That has got to be the most pointless site ever, it just sais that "i don't have permission" or some bull like that whats up with that!?!?

Author:  wtd [ Sat Mar 06, 2004 1:02 am ]
Post subject: 

jonos wrote:
i went there, but after i compiled one of the c interpretors, it still didn't work.


Yeah, I got that, then realized they left their includes out of the source. Add the following to the top of the file:

code:
#include <stdio.h>
#include <stdlib.h>


I'm currently looking at refactoring the code a bit.

I've attached a zip file with the source code and an executable compiled with MinGW.

Author:  jonos [ Sat Mar 06, 2004 1:08 am ]
Post subject: 

no ,i added stdlib.h, i tried again and it still doesnt work. does anyone know of windows onw already compiled. this brankfuck could be fun.


: