Sharp flat

From Esolang
Jump to navigation Jump to search
The title of this article is not correct because of technical limitations. The correct title is actually #b.

#b is a Brainfuck-equivalent esolang created by User:None1.

Why is it named #b

In music, there are two signs, sharp (#) and flat (b). # has an odd ASCII value, while b has an even ASCII value, that's the trick.

In #b, all characters with an odd ASCII value is treated as #, and all characters (except line feed) with an even ASCII value is treated as b.

Execution

Every character (except line feed) in a #b program can be treated as # and b, and Brainfuck has 8 opcodes. Because 2**3=8, three characters make a brainfuck opcode, remaining characters are ignored.

Here is the #b to Brainfuck conversion table:

#b   Brainfuck
bbb  +
bb#  >
b#b  ,
#bb  [
b##  ]
#b#  .
##b  <
###  -

Example Programs

Hello World:

bbbbbbbbbbbbbbbbbbbbbbbb#bbbb#bbbbbbbbbbbbbbbbbbbbbbbb##b###b##bb#bbbbbbbbbbbbbbbbbbbbb
bbb#b#bb#bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb#bbbb#bbbbbbbbbbbbbbbbbbbbbbbb##b###b##bb#
bbbbbbbbbbbbbbb#b#bbbbbbbbbbbbbbbbbbbbb#b##b#bbbbbbbbb#b#bb#bbbbbbbbbbbb#bbbb#bbbbbbbbb
bbbbbbbbbbbbbbb##b###b##bb##b###b##b##b##bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
#b#bb#bb##b#bbbbbbbbb#b####################b##########################b#bb#bb#bbb#b#

Or, if you wanna be crazy:

NjzDrpXLZldbvdZVNxdDDrHzILfHtcvjPvPlhpJHxjrDHJLHzfNRzNASjmYIhyIjDqZzPdVfHJdXppHdTLXhxjd
JjFaVodHgfxBBJzbxPBzbFDnpDTjzbRhhLvlbxRtzDlrVKvjXBetbzFBxTTlTvRXPZnlnFhzjVfiiFQMePAwdbI
XXFDxjZNfpBnblPOnWjtRXLdBhtDnXJHTVrtpdxMnWAncXjTlBXJZfuFIVbcrXbvDltLLnpDADnZBAJPzrxzHVl
vntjTJXZLtBnHnRkmZkskhsqJxSQfgMMnGwDQuPwQNPVpDxXDZXBtdRVNZBtRhffPzvvVzLVZFbzjrhdLnpnpDF
srEpTydNaQzMZtRnNbdpByncyUWGKOSkukeUCWagqGYRAEwQemEYuGUSoCMWWMSmIGWcgaLoVnoZXETTFcnm

Cat program:

bbb#bbb#b#b#b##

Or, if you wanna be crazy:

dXzyHhtQVCfMFAS

Self documenting:

Rypet  in_put!!

Reverse one line of input:

bb#bbb#bbbb#bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb#b##############################b####b#bb##bb##bb####bb##bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb#b####b#bb#b###bb##

Or, if you wanna be crazy:

PpyTPLmbxtRybhnFFvRPPXRtJTrpbnzBrrBRTBThLnBmlYaagwskuuEEQYGcyawSWwAemesWUgOlAoCyRaTfKwNJuShNWSmeLLsabvTjbHLNrnhDhHPfxZrHHJdPbnnNLlLNvVixAcwajIrdMZSsAvdsA

Truth Machine:

b#bbb#bbbbbbbbbbbbbbbbbb#bb##b########################bb####b####b#bbbb#bbbbb
bbbbbbbbbbbbb#bb##bbbbbbbbbbbbbbbbbbbbbbbbbbb####b####b#bb#b#b##b##bbbbbbbbbbbbbbbb
bb#bb##bbbbbbbbbbbbbbbbbbbbbbbbbbb####b####b#b#

Or, if you wanna be crazy:

VAzVDsfjrdNPhxlZfjFvVhlZWZvqIDWAAsAOgMWwqOokmugIwoIYGaZheWYivOWkAnqppnxudlnjF
BPHppjXXrzxJVYNtqKFZBBDVzlDDbFrZPfJrlFdZfbzJvOGkahwESOlGzFSVaJkGzAixnXdbHbNtjhlvbVR
vVwTPAszXTnBBblXBrpNvbdJhzhrtLjPzjwcuqdgkocJeJq

Interpreter