×
Create a new article
Write your page title here:
We currently have 3,189 articles on s23. Type your article name above or create one of the articles listed here!



    s23
    3,189Articles

    Brainfuck: Difference between revisions

    Content added Content deleted
    imported>(logged).red.bezeqint.net
    (VerticaSmile link)
    imported>mutante
    m (Reverted edits by 199.164.125.138 (Talk); changed back to last version by mutante)
     
    (8 intermediate revisions by 3 users not shown)
    Line 1: Line 1:
    http://www.muppetlabs.com/~breadbox/bf/
    * http://www.muppetlabs.com/~breadbox/bf/


    Brainfuck is the ungodly creation of Urban M�?�ller, whose goal was apparently to create a Turing-complete language for which he could write the smallest compiler ever, for the Amiga OS 2.0. His compiler was 240 bytes in size. (Though he improved upon this later -- he informed me at one point that he had managed to bring it under 200 bytes.)
    Brainfuck is the ungodly creation of Urban Müller, whose goal was apparently to create a Turing-complete language for which he could write the smallest compiler ever, for the [[Amiga]] OS 2.0. His [[compiler]] was 240 bytes in size. (Though he improved upon this later -- he informed me at one point that he had managed to bring it under 200 bytes.)


    The Language
    The Language
    Line 7: Line 7:
    A Brainfuck program has an implicit byte pointer, called "the pointer", which is free to move around within an array of 30000 bytes, initially all set to zero. The pointer itself is initialized to point to the beginning of this array.
    A Brainfuck program has an implicit byte pointer, called "the pointer", which is free to move around within an array of 30000 bytes, initially all set to zero. The pointer itself is initialized to point to the beginning of this array.


    The Brainfuck programming language consists of eight commands, each of which is represented as a single character.
    The Brainfuck [[programming language]] consists of eight commands, each of which is represented as a single character.

    <pre>
    <pre>
    > Increment the pointer.
    > Increment the pointer.
    Line 19: Line 20:
    </pre>
    </pre>


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


    http://esoteric.sange.fi/brainfuck/
    * http://esoteric.sange.fi/brainfuck/


    http://www.muppetlabs.com/~breadbox/software/tiny/bf.asm.txt
    * http://www.muppetlabs.com/~breadbox/software/tiny/bf.asm.txt


    http://itooktheredpill.dyndns.org/tuts/brainfuck.html
    * http://itooktheredpill.dyndns.org/tuts/brainfuck.html


    See also: VerticaSmile
    See also: [[VerticaSmile]]


    Brainfuck ist eine extrem einfach zu lernende und extrem nervtoetend zu nutzende Sprache, schaetzungsweise aus dem Jahre 1993. Autor dieser Sprache ist der Schweizer Urban Mueller, von dem auch der original Brainfuck-Interpreter und ein mittlerweile verschollener Compiler fuer den Amiga stammt.
    Brainfuck ist eine extrem einfach zu lernende und extrem nervtoetend zu nutzende Sprache, schaetzungsweise aus dem Jahre 1993. Autor dieser Sprache ist der Schweizer Urban Mueller, von dem auch der original Brainfuck-Interpreter und ein mittlerweile verschollener [[Compiler]] fuer den [[Amiga]] stammt.


    Die Sprache kennt zwei mathematische Funktionen (+ und -), Funktionen zum Einlesen und Ausgeben von Zeichen (, und .), die Moeglichkeit, eine Speicherstelle vorwaerts bzw. rueckwaerts zu gehen (> und <), sowie ein spezielles Schleifenkonstrukt ([]). Aus diesen Funktionen besteht der gesamte Sprachumfang von Brainfuck.
    Die Sprache kennt zwei mathematische Funktionen (+ und -), Funktionen zum Einlesen und Ausgeben von Zeichen (, und .), die Moeglichkeit, eine Speicherstelle vorwaerts bzw. rueckwaerts zu gehen (> und <), sowie ein spezielles Schleifenkonstrukt ([]). Aus diesen Funktionen besteht der gesamte Sprachumfang von Brainfuck.
    Line 36: Line 37:


    http://koeln.ccc.de/prozesse/zombies/brainfuck/index.htm
    http://koeln.ccc.de/prozesse/zombies/brainfuck/index.htm



    [[Category:Programming Languages]]

    [[Category:Computer]]

    Latest revision as of 17:59, 14 June 2007

    Brainfuck is the ungodly creation of Urban Müller, whose goal was apparently to create a Turing-complete language for which he could write the smallest compiler ever, for the Amiga OS 2.0. His compiler was 240 bytes in size. (Though he improved upon this later -- he informed me at one point that he had managed to bring it under 200 bytes.)

    The Language

    A Brainfuck program has an implicit byte pointer, called "the pointer", which is free to move around within an array of 30000 bytes, initially all set to zero. The pointer itself is initialized to point to the beginning of this array.

    The Brainfuck programming language consists of eight commands, each of which is represented as a single character.

    > 	Increment the pointer.
    < 	Decrement the pointer.
    + 	Increment the byte at the pointer.
    - 	Decrement the byte at the pointer.
    . 	Output the byte at the pointer.
    , 	Input a byte and store it in the byte at the pointer.
    [ 	Jump past the matching ] if the byte at the pointer is zero.
    ] 	Jump to the matching [.
    

    See also: VerticaSmile

    Brainfuck ist eine extrem einfach zu lernende und extrem nervtoetend zu nutzende Sprache, schaetzungsweise aus dem Jahre 1993. Autor dieser Sprache ist der Schweizer Urban Mueller, von dem auch der original Brainfuck-Interpreter und ein mittlerweile verschollener Compiler fuer den Amiga stammt.

    Die Sprache kennt zwei mathematische Funktionen (+ und -), Funktionen zum Einlesen und Ausgeben von Zeichen (, und .), die Moeglichkeit, eine Speicherstelle vorwaerts bzw. rueckwaerts zu gehen (> und <), sowie ein spezielles Schleifenkonstrukt ([]). Aus diesen Funktionen besteht der gesamte Sprachumfang von Brainfuck.


    http://koeln.ccc.de/prozesse/zombies/brainfuck/index.htm

    Cookies help us deliver our services. By using our services, you agree to our use of cookies.
    Cookies help us deliver our services. By using our services, you agree to our use of cookies.