Author Topic: Enhanced BF  (Read 8469 times)

0 Members and 1 Guest are viewing this topic.

Offline Scipi

  • Omni Kitten Meow~ =^ω^=
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1547
  • Rating: +192/-3
  • Meow :3
    • View Profile
    • ScipiSoftware
Enhanced BF
« on: October 07, 2011, 08:05:25 am »
Hello all,

After making a Brainf*ck interpreter located here, I thought it would be interesting if I improved the language and made it on par with most other languages.

So I ask you all, what do you want to see added to the language? So far my ideas are a second array of 30000 bytes that can be accessed for things like memory addresses, conditions, etc.

Here are some symbols I might add

{//For
}//EndFor
://If
;//EndIf
|//Goto
'//Write value
=//Copy Value address

I might call this new language, Mindf*ck! :P
« Last Edit: October 07, 2011, 08:06:25 am by HOMER-16 »

Imma Cat! =^_^= :3 (It's an emoticon now!)
Spoiler For Things I find interesting:
Spoiler For AI Programming:
Spoiler For Shameless advertising:

Spoiler For OldSig:





Spoiler For IMPORTANT NEWS!:
Late last night, Quebec was invaded by a group calling themselves, "Omnimaga". Not much is known about these mysterious people except that they all carried calculators of some kind and they all seemed to converge on one house in particular. Experts estimate that the combined power of their fabled calculators is greater than all the worlds super computers put together. The group seems to be holding out in the home of a certain DJ_O, who the Omnimagians claim to be their founder. Such power has put the world at a standstill with everyone waiting to see what the Omnimagians will do...

Wait... This just in, the Omnimagians have sent the UN a list of demands that must be met or else the world will be "submitted to the wrath of Netham45's Lobster Army". Such demands include >9001 crates of peanuts, sacrificial blue lobsters, and a wide assortment of cherry flavored items. With such computing power stored in the hands of such people, we can only hope these demands are met.

In the wake of these events, we can only ask, Why? Why do these people make these demands, what caused them to gather, and what are their future plans...

Offline turiqwalrus

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 840
  • Rating: +51/-2
  • Wheeeeeee~!
    • View Profile
Re: Enhanced BF
« Reply #1 on: October 07, 2011, 08:45:41 am »
but isn't brainf*ck supposed to be bare-bones and really hard to use?
IMO, adding that stuff would kinda ruin the point :P

Offline JustCause

  • CoT Emeritus
  • LV8 Addict (Next: 1000)
  • *
  • Posts: 810
  • Rating: +115/-5
    • View Profile
Re: Enhanced BF
« Reply #2 on: October 07, 2011, 09:03:03 am »
but isn't brainf*ck supposed to be bare-bones and really hard to use?
IMO, adding that stuff would kinda ruin the point :P
It'd still be ridiculously hard to use. The difference would be that you could actually make stuff with it. :D I support this.
See you, space cowboy...

Offline turiqwalrus

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 840
  • Rating: +51/-2
  • Wheeeeeee~!
    • View Profile
Re: Enhanced BF
« Reply #3 on: October 07, 2011, 09:24:17 am »
but isn't brainf*ck supposed to be bare-bones and really hard to use?
IMO, adding that stuff would kinda ruin the point :P
It'd still be ridiculously hard to use. The difference would be that you could actually make stuff with it. :D I support this.
true...
a lack of for loops limits it ALOT...
« Last Edit: October 07, 2011, 09:24:29 am by turiqwalrus »

Offline Scipi

  • Omni Kitten Meow~ =^ω^=
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1547
  • Rating: +192/-3
  • Meow :3
    • View Profile
    • ScipiSoftware
Re: Enhanced BF
« Reply #4 on: October 07, 2011, 01:27:12 pm »
lol I plan on having a small interpreter. (loops and such are EASY to emulate) And it will still be semi difficult (BF actually isn't all that hard imo)

I just want to actually be able to DO what you want it to do. :)

I just need ideas to implement. :D

Imma Cat! =^_^= :3 (It's an emoticon now!)
Spoiler For Things I find interesting:
Spoiler For AI Programming:
Spoiler For Shameless advertising:

Spoiler For OldSig:





Spoiler For IMPORTANT NEWS!:
Late last night, Quebec was invaded by a group calling themselves, "Omnimaga". Not much is known about these mysterious people except that they all carried calculators of some kind and they all seemed to converge on one house in particular. Experts estimate that the combined power of their fabled calculators is greater than all the worlds super computers put together. The group seems to be holding out in the home of a certain DJ_O, who the Omnimagians claim to be their founder. Such power has put the world at a standstill with everyone waiting to see what the Omnimagians will do...

Wait... This just in, the Omnimagians have sent the UN a list of demands that must be met or else the world will be "submitted to the wrath of Netham45's Lobster Army". Such demands include >9001 crates of peanuts, sacrificial blue lobsters, and a wide assortment of cherry flavored items. With such computing power stored in the hands of such people, we can only hope these demands are met.

In the wake of these events, we can only ask, Why? Why do these people make these demands, what caused them to gather, and what are their future plans...

Offline AngelFish

  • Is this my custom title?
  • Administrator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3242
  • Rating: +270/-27
  • I'm a Fishbot
    • View Profile
Re: Enhanced BF
« Reply #5 on: October 07, 2011, 03:23:27 pm »

true...
a lack of for loops limits it ALOT...

What? Regular brainf*ck has For loops...

Code: [Select]
++++[>+<-] is equivalent to For(4){+}

Also, using goto makes conforming to the original BF spec very difficult because it's difficult to confirm that each open bracket has a closing bracket.

PS: What do = and ' do? If = copies the value at the byte pointed to by the current memory cell into the current memory cell, then I think it's an excellent addition to the language.
« Last Edit: October 07, 2011, 03:25:39 pm by Qwerty.55 »
∂²Ψ    -(2m(V(x)-E)Ψ
---  = -------------
∂x²        ℏ²Ψ

Offline thepenguin77

  • z80 Assembly Master
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1594
  • Rating: +823/-5
  • The game in my avatar is bit.ly/p0zPWu
    • View Profile
Re: Enhanced BF
« Reply #6 on: October 07, 2011, 03:31:16 pm »
It'd still be ridiculously hard to use. The difference would be that you could actually make stuff with it. :D I support this.

I'd like to point out that BrainF*ck is turing-complete. What this means is that anything that can be done on any modern computer, can be done in BrainF*ck.

If you had a lot of time to spare, it is, by definition, possible to factor the Nspire OS key using only BrainF*ck.
« Last Edit: October 07, 2011, 03:31:45 pm by thepenguin77 »
zStart v1.3.013 9-20-2013 
All of my utilities
TI-Connect Help
You can build a statue out of either 1'x1' blocks or 12'x12' blocks. The 1'x1' blocks will take a lot longer, but the final product is worth it.
       -Runer112

Offline NecroBumpist

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 130
  • Rating: +14/-5
  • Master of Lua
    • View Profile
Re: Enhanced BF
« Reply #7 on: October 07, 2011, 03:37:04 pm »
The only things brainf*ck requires (do we actually need to censor this here at Omnimaga?) is subroutines.

I have no idea how to implement.
Developing Lua scripts for the NSpire ?
Check out the Necrotorium
Need a few routines to run faster ? Checkout the MODS Lua Assembly Toolkit.
Need to save space for your scripts ? Checkout LuaSrcDiet

Offline Scipi

  • Omni Kitten Meow~ =^ω^=
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1547
  • Rating: +192/-3
  • Meow :3
    • View Profile
    • ScipiSoftware
Re: Enhanced BF
« Reply #8 on: October 07, 2011, 04:37:12 pm »
Quote
Also, using goto makes conforming to the original BF spec very difficult because it's difficult to confirm that each open bracket has a closing bracket.

I'm thinking that when it checks it will skip goto statements for it.

Quote
The only things brainf*ck requires (do we actually need to censor this here at Omnimaga?) is subroutines.

Using goto will effectively allow for subroutines to be written. I'll just have to have a return command.

Quote
What do = and ' do? If = copies the value at the byte pointed to by the current memory cell into the current memory cell, then I think it's an excellent addition to the language

It will copy the value at the current cell to the cell pointed to by the corresponding cell in the other array. (MF will have two corresponding arrays for this kind of purpose) :D

' will just read the value in the current cell without the conversion to ASCII. So a 4D in the cell will print 4D or it's decimal counterpart.

Imma Cat! =^_^= :3 (It's an emoticon now!)
Spoiler For Things I find interesting:
Spoiler For AI Programming:
Spoiler For Shameless advertising:

Spoiler For OldSig:





Spoiler For IMPORTANT NEWS!:
Late last night, Quebec was invaded by a group calling themselves, "Omnimaga". Not much is known about these mysterious people except that they all carried calculators of some kind and they all seemed to converge on one house in particular. Experts estimate that the combined power of their fabled calculators is greater than all the worlds super computers put together. The group seems to be holding out in the home of a certain DJ_O, who the Omnimagians claim to be their founder. Such power has put the world at a standstill with everyone waiting to see what the Omnimagians will do...

Wait... This just in, the Omnimagians have sent the UN a list of demands that must be met or else the world will be "submitted to the wrath of Netham45's Lobster Army". Such demands include >9001 crates of peanuts, sacrificial blue lobsters, and a wide assortment of cherry flavored items. With such computing power stored in the hands of such people, we can only hope these demands are met.

In the wake of these events, we can only ask, Why? Why do these people make these demands, what caused them to gather, and what are their future plans...

Offline JustCause

  • CoT Emeritus
  • LV8 Addict (Next: 1000)
  • *
  • Posts: 810
  • Rating: +115/-5
    • View Profile
Re: Enhanced BF
« Reply #9 on: October 07, 2011, 06:31:01 pm »
It'd still be ridiculously hard to use. The difference would be that you could actually make stuff with it. :D I support this.

I'd like to point out that BrainF*ck is turing-complete. What this means is that anything that can be done on any modern computer, can be done in BrainF*ck.

If you had a lot of time to spare, it is, by definition, possible to factor the Nspire OS key using only BrainF*ck.
Okay, I'll modify my definition of "you" to exclude those gifted with extraordinary patience, extraordinary intelligence, and ESP. XD
« Last Edit: October 07, 2011, 06:31:07 pm by JustCause »
See you, space cowboy...

Offline Scipi

  • Omni Kitten Meow~ =^ω^=
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1547
  • Rating: +192/-3
  • Meow :3
    • View Profile
    • ScipiSoftware
Re: Enhanced BF
« Reply #10 on: October 08, 2011, 07:30:29 pm »
Interesting site I found listing different derivatives of BF. I might get some rather nice ideas off these! :D
http://esoteric.voxelperfect.net/wiki/Category:Brainfuck_derivatives
« Last Edit: October 08, 2011, 07:31:05 pm by HOMER-16 »

Imma Cat! =^_^= :3 (It's an emoticon now!)
Spoiler For Things I find interesting:
Spoiler For AI Programming:
Spoiler For Shameless advertising:

Spoiler For OldSig:





Spoiler For IMPORTANT NEWS!:
Late last night, Quebec was invaded by a group calling themselves, "Omnimaga". Not much is known about these mysterious people except that they all carried calculators of some kind and they all seemed to converge on one house in particular. Experts estimate that the combined power of their fabled calculators is greater than all the worlds super computers put together. The group seems to be holding out in the home of a certain DJ_O, who the Omnimagians claim to be their founder. Such power has put the world at a standstill with everyone waiting to see what the Omnimagians will do...

Wait... This just in, the Omnimagians have sent the UN a list of demands that must be met or else the world will be "submitted to the wrath of Netham45's Lobster Army". Such demands include >9001 crates of peanuts, sacrificial blue lobsters, and a wide assortment of cherry flavored items. With such computing power stored in the hands of such people, we can only hope these demands are met.

In the wake of these events, we can only ask, Why? Why do these people make these demands, what caused them to gather, and what are their future plans...

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55941
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Enhanced BF
« Reply #11 on: October 08, 2011, 11:36:27 pm »
@topic title: Enhanced Boyfriend? ???

J/k I think brainfuck was definitively made purposely hard to use, so if it was enhanced to be easier, it would kinda defeat its point, as pointed above :P
« Last Edit: October 08, 2011, 11:36:43 pm by DJ_O »

Offline AngelFish

  • Is this my custom title?
  • Administrator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3242
  • Rating: +270/-27
  • I'm a Fishbot
    • View Profile
Re: Enhanced BF
« Reply #12 on: October 08, 2011, 11:58:13 pm »
Brainf*ck was actually designed to have the smallest compiler possible for a Turing complete language.
∂²Ψ    -(2m(V(x)-E)Ψ
---  = -------------
∂x²        ℏ²Ψ

Offline NecroBumpist

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 130
  • Rating: +14/-5
  • Master of Lua
    • View Profile
Re: Enhanced BF
« Reply #13 on: October 09, 2011, 12:01:05 am »
Quote
The only things brainf*ck requires (do we actually need to censor this here at Omnimaga?) is subroutines.

Using goto will effectively allow for subroutines to be written. I'll just have to have a return command.

Meh, I would forego a return command in favor of having control over the PC (slightly more esoteric than simple call and return instructions).
# to load the PC into the current cell
@ to load the current cell into the PC

But then, whilst trying to make a shitty example, I realized this would make maintaining brainfuck code even more difficult without some form of labels.
Developing Lua scripts for the NSpire ?
Check out the Necrotorium
Need a few routines to run faster ? Checkout the MODS Lua Assembly Toolkit.
Need to save space for your scripts ? Checkout LuaSrcDiet

Offline Scipi

  • Omni Kitten Meow~ =^ω^=
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1547
  • Rating: +192/-3
  • Meow :3
    • View Profile
    • ScipiSoftware
Re: Enhanced BF
« Reply #14 on: October 09, 2011, 12:44:23 pm »
I actually have no intent on following the original principles of BF. (If you want a hard language to use, just use original BF) :D

I just want to increase it's functionality in order to make it do cooler things without extreme patience. :P

Imma Cat! =^_^= :3 (It's an emoticon now!)
Spoiler For Things I find interesting:
Spoiler For AI Programming:
Spoiler For Shameless advertising:

Spoiler For OldSig:





Spoiler For IMPORTANT NEWS!:
Late last night, Quebec was invaded by a group calling themselves, "Omnimaga". Not much is known about these mysterious people except that they all carried calculators of some kind and they all seemed to converge on one house in particular. Experts estimate that the combined power of their fabled calculators is greater than all the worlds super computers put together. The group seems to be holding out in the home of a certain DJ_O, who the Omnimagians claim to be their founder. Such power has put the world at a standstill with everyone waiting to see what the Omnimagians will do...

Wait... This just in, the Omnimagians have sent the UN a list of demands that must be met or else the world will be "submitted to the wrath of Netham45's Lobster Army". Such demands include >9001 crates of peanuts, sacrificial blue lobsters, and a wide assortment of cherry flavored items. With such computing power stored in the hands of such people, we can only hope these demands are met.

In the wake of these events, we can only ask, Why? Why do these people make these demands, what caused them to gather, and what are their future plans...