Talk:Brainfoctal

From Esolang
Jump to navigation Jump to search

Numbering system

The command `]` should be zero. That way it's not just unlikely that the first valid command is a zero is actually impossible. Rdebath (talk) 10:32, 11 November 2018 (UTC)

This is perfect! Thank you! I wish I hadn't rushed through and used the first solution to the zero problem I came up with without checking for a better one... this seems obvious now. I think I will have to change it because fixes problems I have run into with coding using math functions. Currently the pointer-left operator has to be handled differently, for no good reason. Following your suggestion, to be valid code, each Brainfoctal number will need as many 0b111s (7) as 0b000s (0), and to close off n loops, simply multiply by 8**n, which is very elegant, and far better than the current numbering. Based on your suggestion I think I'll update the numbering to the table below and recalculate the affected examples (which is most of them). Kinda annoying to have to update the main definition, but I think it's such a good improvement...
This works sometimes, but it's not complete, for example ++][+++++. does have matching counts, but not matching brackets. Rdebath (talk) 07:48, 14 November 2018 (UTC)
Thanks for the Ruby interpreter too, very nice! Made me think it could be hosted online as a TrivialBrainfuckSubstitution("a","b","c","d","e","f","g","h") API for generating interpreters, and links with the right params could be added to all the TBS pages :) Salpynx (talk) 10:08, 12 November 2018 (UTC)
Heh, almost, but only a few are quite that unimaginative for most of them (eg: La_Weá) you have to mess with it a little bit Rdebath (talk) 07:48, 14 November 2018 (UTC)

proposed numbering revision:

bf > < + - . , [ ]
bf8 1 2 3 4 5 6 7 0

# of bits in a hydrogen atom (question posed at bottom of boctal page)

For this, I'll go one step further and calculate the number of bits in the whole observable universe.

Going by this, the hydrogen atom has 110 distinct & easily keepable states. To my knowledge, there is 10^82 atoms in the observable universe. Thus, the observable universe (just for atom states, not positions or anything like that) has 110^(10^82) or about 10^2041392685158195546979763339628198812033394699681726502968330000000000000000000000 states. This means that the observable universe has roughly 6,781,359,713,524,561,627,885,044,871,345,783,755,184,715,729,628,530,618,254,614,598,529,242,297,777,096,078 (about 6.781 sexvigintillion) bits in it, assuming every atom has the same amount of states as a hydrogen atom. CreeperBomb (talk) 03:55, 18 April 2023 (UTC)