Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Programming from Hell
Index -> General Discussion
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
wtd




PostPosted: 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.
Sponsor
Sponsor
Sponsor
sponsor
jonos




PostPosted: Fri Mar 05, 2004 8:11 am   Post subject: (No subject)

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




PostPosted: Fri Mar 05, 2004 3:30 pm   Post subject: (No subject)

the devil
jonos




PostPosted: Fri Mar 05, 2004 3:45 pm   Post subject: (No subject)

is it a programming language?
Tony




PostPosted: Fri Mar 05, 2004 3:59 pm   Post subject: (No 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!

>+++++++++[<++++++++>-]<.>+++++++[<++++>-]<+.+++++++..+++.>>>++++++++[<++++>-]
<.>>>++++++++++[<+++++++++>-]<---.<<<<.+++.------.--------.>>+.
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
jonos




PostPosted: Fri Mar 05, 2004 4:04 pm   Post subject: (No 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?
wtd




PostPosted: Fri Mar 05, 2004 9:35 pm   Post subject: (No 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.
jonos




PostPosted: Fri Mar 05, 2004 9:37 pm   Post subject: (No subject)

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




PostPosted: Fri Mar 05, 2004 9:46 pm   Post subject: (No subject)

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

It was essentially an academic experiment.

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




PostPosted: Fri Mar 05, 2004 10:03 pm   Post subject: (No 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.
wtd




PostPosted: Sat Mar 06, 2004 12:17 am   Post subject: (No subject)

Lots of good Brain**** resources here.
jonos




PostPosted: Sat Mar 06, 2004 12:21 am   Post subject: (No subject)

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




PostPosted: Sat Mar 06, 2004 12:28 am   Post subject: (No 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!?!?
wtd




PostPosted: Sat Mar 06, 2004 1:02 am   Post subject: (No 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.



bf.zip
 Description:

Download
 Filename:  bf.zip
 Filesize:  5.1 KB
 Downloaded:  115 Time(s)


brainfuck.c
 Description:
Ugly code factored out. It could probably be refined a bit more, even in terms of memory consumption.

Download
 Filename:  brainfuck.c
 Filesize:  1.14 KB
 Downloaded:  144 Time(s)

jonos




PostPosted: Sat Mar 06, 2004 1:08 am   Post subject: (No 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.
Display posts from previous:   
   Index -> General Discussion
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 15 Posts ]
Jump to:   


Style:  
Search: