[Release] 3DBFI - A 3DS Brainf*ck Interpreter

Discussion in '3DS - Homebrew Development and Emulators' started by josamilu, Jul 8, 2015.

  1. josamilu
    OP

    josamilu GBAtemp Fan

    Member
    383
    213
    Feb 1, 2015
    Gambia, The
    Saturn is better than Jupiter :P
    3DSBFI - A 3DS Brainf*ck Interpreter
    Introduction

    3DSBFI is a simple and minimalistic, WIP but mostly finished Brainf*ck Interpreter for 3DS. Not to be mixed up with FBI xD
    It includes a menu with a special Brainf*ck editor, output and Tutorial.
    In future versions it will also include input and loading and saving .bf files.
    Here a short introduction to Brainf*ck :
    Brainf*ck is an esoteric programming language, with extreme minimalism.
    There are only 8 Operators :

    • "+" Which increases the number of the current cell
    • "-" Which decreases the number of the current cell
    • ">" Which sets the pointer to the next cell right
    • "<" Which sets the pointer to the next cell left
    • "." Which outputs a char (f.ex. 65 = A)
    • "," Which reads a char
    • "[" Which opens a loop
    • "]" Which closes a loop
    In the current version of 3DSBFI the operator "," isn't implemented yet, because I am still working on the imput.
    Also I added an extra operator :

    • ";" Which outputs the value of the current cell as decimal
    If you want to read more about Brainf*ck, how it works, and how you can program it look at the article on Wikipedia : https://en.wikipedia.org/wiki/Brainfuck

    Media
    Screenshots

    Video is comming SOON.

    How it works

    3DSFBI is easy to use. You can write your entire Brainf*ck programm on your 3DS.
    Here are the Controlls :

    • A : "+"
    • B : "-"
    • X : ">"
    • Y : "<"
    • D_UP : ";"
    • D_RIGHT : "]"
    • D_DOWN : "."
    • D_LEFT : "["
    • L : Delete Last Character
    • R : Run Code
    • START : Exit Programm
    Example Scripts

    Here are also some example scripts for you to try out :
    • A Script, which outputs "Hello World!"
    Code:
    ++++++++[->++++++++<]>++++++++.---.+++++++..+++.>>++++[-<++++++++>]<.<++++++++.--------.+++.------.--------.>+.  

    • A Script, which multiplies 4 with 2 and prints the result
    Code:
    ++++[->++<]>;  

    • More if you want! :)
    Download and Source
    I would be really happy, if you would contribute to my GitHub, if you want to add something, or find a bug. Just send me a pull request and I will add it.

    I recommend the .3dsx build. I haven't tested the .cia or .3ds builds, but they should work.

    The are some bugs, and I am fixing them. Also I take no responsibility for any harm to your 3DS, because of Bugs in the Application or your Brainf*ck script.

    I also don't take responsibility for acute brain damage. :D

    Currently i am working on some features, like additional operators and the input operator.

    Changelog

    Changelog

    Credits

    • 3DSBFI written by josamilu
    • All the guys , who are working on ctrulib
    Last Words

    I wrote this programm over the last 2 days, and i can say, It is fun. It is a great feeling to release it to the public and hear the comments. My code isn't good but it may help you if you want to make your own homebrews. 3DS Homebrews have a lot of potential, and I am always happy if i see a new Homebrew released here on the forums.

    Say me what you think about the programm and the post (I invested a lot of time in it!).


    Also, if you have written something funny in Brainf*ck, share it with us :D .

    I hope you have fun with it,

    - Josamilu


    (Also don't blame me because of my english, I'm not a native speaker xD)
     

    Attached Files:

    Last edited by josamilu, Jul 10, 2015
  2. Cid2mizard

    Cid2mizard GBAtemp Fan

    Member
    364
    210
    Aug 16, 2007
    France
    Maubeuge
    Excellent works :). Thanks...
     
    josamilu likes this.
  3. WulfyStylez

    WulfyStylez SALT/Bemani Princess

    Member
    1,149
    2,609
    Nov 3, 2013
    United States
    I was literally talking about writing in brainfuck for the 3ds the other day. Nice!
     
    josamilu and WhoAmI? like this.
  4. josamilu
    OP

    josamilu GBAtemp Fan

    Member
    383
    213
    Feb 1, 2015
    Gambia, The
    Saturn is better than Jupiter :P
    Thanks! :)

    There you have it, thanks for your reply! :)


    I also just uploaded V1.1, which adds a menu and some new modes. Currently I am working on the input operator and loading .bf files. Sadly I won't be able to programm that much in the next week, because I'm going to be on vacation soon.
     
    Cid2mizard likes this.
  5. WeedZ

    WeedZ Possibly an Enlightened Being

    Member
    GBAtemp Patron
    WeedZ is a Patron of GBAtemp and is helping us stay independent!

    Our Patreon
    2,937
    5,870
    Jan 13, 2015
    United States
    The State of Denial
    That is the first time i have ever seen anyone other than myself use the word "esoteric". ya'll are some linguistic motherfuckers.
    Oh yeah, nice app too.
     
    josamilu likes this.
  6. sarkwalvein

    sarkwalvein More coffee, please!

    Member
    GBAtemp Patron
    sarkwalvein is a Patron of GBAtemp and is helping us stay independent!

    Our Patreon
    5,425
    5,847
    Jun 29, 2007
    Germany
    Niedersachsen
    Congratulations on your new interpreter for this beautyfoul language!
    It's good to see new homebrew apps, this will sure be a godsend for masochists on the go.

    PS: You should also add a disclaimer not taking responsibility for brain damage of the user.
     
    josamilu likes this.
  7. josamilu
    OP

    josamilu GBAtemp Fan

    Member
    383
    213
    Feb 1, 2015
    Gambia, The
    Saturn is better than Jupiter :P
    Thanks! I discovered it a white ago, with some other languages. Some of them are pretty crazy or funny, like ArnoldC or LOLCODE xD

    Haha, that was a nice one :D I'll add this :D
     
  8. dubbz82

    dubbz82 GBAtemp Advanced Maniac

    Member
    1,512
    815
    Feb 2, 2014
    United States
    Thing about LOLCODE, is it is one of the few esoteric languages that actually borders on being properly usable. If you want to see one that ISN'T....well this one qualifies, as does Whitespace.
     
  9. Coto

    Coto GBAtemp Addict

    Member
    2,385
    426
    Jun 4, 2010
    Chile
    that's the right way to code!
     
    josamilu likes this.
  10. NicEXE

    NicEXE GBAtemp Fan

    Member
    397
    124
    Dec 6, 2009
    Cyprus
    I kid you not, I once thought of making a brainfuck interceptor for 3ds
     
  11. WhoAmI?

    WhoAmI? PASTA's dirty animal

    Member
    1,273
    1,009
    Mar 15, 2015
    Poké Ball
    You love the idea of fu*king, don't you? Hehe.
     
  12. rewrewrew123

    rewrewrew123 GBAtemp Regular

    Member
    265
    27
    Aug 20, 2014
    Italy
    Wow...awesome! I will try it!
     
    josamilu likes this.
  13. DarkFlare69

    DarkFlare69 GBAtemp Psycho!

    Member
    4,765
    2,619
    Dec 8, 2014
    United States
    Ohio
    People actually use brainfuck?
     
  14. dubbz82

    dubbz82 GBAtemp Advanced Maniac

    Member
    1,512
    815
    Feb 2, 2014
    United States
    For anything serious? I'd suspect not. For spiffy proof of "look what i did on the most barebones programming language in existence", yeah.
     
    josamilu likes this.
  15. josamilu
    OP

    josamilu GBAtemp Fan

    Member
    383
    213
    Feb 1, 2015
    Gambia, The
    Saturn is better than Jupiter :P
    Haha, you shouldn't look at the code, because it's the worst thing i have ever written, it's inefficent and complicated to understand, but it works :D

    Thanks!

    Yes me :D

    It was just for the lulz :D
     
    DarkFlare69 and WhoAmI? like this.
  16. DarkFlare69

    DarkFlare69 GBAtemp Psycho!

    Member
    4,765
    2,619
    Dec 8, 2014
    United States
    Ohio
    [​IMG]
     
    josamilu and WhoAmI? like this.
  17. josamilu
    OP

    josamilu GBAtemp Fan

    Member
    383
    213
    Feb 1, 2015
    Gambia, The
    Saturn is better than Jupiter :P
    It isn't that hard, after you understood the system behind it ;)
     
  18. DarkFlare69

    DarkFlare69 GBAtemp Psycho!

    Member
    4,765
    2,619
    Dec 8, 2014
    United States
    Ohio
    Im not gonna bother to learn a language that can't be used for anything besides putting text on a screen lol
     
  19. josamilu
    OP

    josamilu GBAtemp Fan

    Member
    383
    213
    Feb 1, 2015
    Gambia, The
    Saturn is better than Jupiter :P
    Yeah. Those esoteric languages are just for fun :D
     
  20. 4ur0r

    4ur0r GBAtemp Fan

    Member
    373
    86
    Feb 7, 2015
    Italy
    Will definitely try that. Thanks for your work!
     
    josamilu likes this.