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

josamilu

Well-Known Member
OP
Member
Joined
Feb 1, 2015
Messages
383
Trophies
0
Location
Saturn is better than Jupiter :P
XP
319
Country
Gambia, The
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
bfi1.jpg

bfi2.jpg

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

V1.1 :
  • Added a menu, with 6 options
  • Added a fullscreen editing and running mode
  • Fixed the programm's name and added an icon
  • Bugfixes
V1.0 :
  • Initial Release

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)
 

Attachments

  • 3DSBFI_v1.1.zip
    647.1 KB · Views: 425
Last edited by josamilu,

josamilu

Well-Known Member
OP
Member
Joined
Feb 1, 2015
Messages
383
Trophies
0
Location
Saturn is better than Jupiter :P
XP
319
Country
Gambia, The
Excellent works :). Thanks...
Thanks! :)

I was literally talking about writing in brainfuck for the 3ds the other day. Nice!
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.
 
  • Like
Reactions: Cid2mizard

sarkwalvein

There's hope for a Xenosaga port.
Member
Joined
Jun 29, 2007
Messages
8,506
Trophies
2
Age
41
Location
Niedersachsen
XP
11,221
Country
Germany
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.
 
  • Like
Reactions: josamilu

josamilu

Well-Known Member
OP
Member
Joined
Feb 1, 2015
Messages
383
Trophies
0
Location
Saturn is better than Jupiter :P
XP
319
Country
Gambia, The
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.
Thanks! I discovered it a white ago, with some other languages. Some of them are pretty crazy or funny, like ArnoldC or LOLCODE xD

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.
Haha, that was a nice one :D I'll add this :D
 

dubbz82

Well-Known Member
Member
Joined
Feb 2, 2014
Messages
1,572
Trophies
0
Age
41
XP
1,215
Country
United States
Thanks! I discovered it a white ago, with some other languages. Some of them are pretty crazy or funny, like ArnoldC or LOLCODE xD

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.
 

dubbz82

Well-Known Member
Member
Joined
Feb 2, 2014
Messages
1,572
Trophies
0
Age
41
XP
1,215
Country
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.
 
  • Like
Reactions: josamilu

josamilu

Well-Known Member
OP
Member
Joined
Feb 1, 2015
Messages
383
Trophies
0
Location
Saturn is better than Jupiter :P
XP
319
Country
Gambia, The
that's the right way to code!
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

Wow...awesome! I will try it!
Thanks!

People actually use brainfuck?
Yes me :D

For anything serious? I'd suspect not. For spiffy proof of "look what i did on the most barebones programming language in existence", yeah.
It was just for the lulz :D
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    Xdqwerty @ Xdqwerty: damn wifi