Thursday, 19 November 2020
BrainFuck
Brainfuck is <>+-[],. I think.
R is the current register, an integer.
*R is the register at R.
< - mov to the left, increment R
> - move to the right, decriment R
+ + increment ring/register at R
- - decrement register/ring at R
[ - start loop, loop continues if *R is non-zero
] - end loop, loop continues if *R is non-zero
, - output register
. - read into register
! - initialize register, set to zero
? - deallocate register, add to free pool
Brainfuck is a Turing Machine with more than 1 bit per place.
Any character tht is not in the above set is passed through.
That means this is a legal brainfuck document.
Who knows what it computes though.
Let's find out.
X
The Pick Data Structure
A pick is a Markoff Chain.
I am not a piack in Clarity.
x is a b c and d is a list in Clarity.
y is a b c or d is a pick in Clarity.
x with a probabity of 50%.
x is a half the time, b a quarter of the time, c or d.
What does that mean?
50% of the time x is a
25% of the time x is b
12.5% of the time x is c
12.6% of the time x is d
x is a b c and d is the list a b c and d all of the time.b
That is an assertion. It can be checked by a background process.
x is x all of the time
x is y half of the time.
That is an error or some sort, not quite a contradiction.
I should learn more Prolog.
--
QED
Subscribe to:
Posts (Atom)
Latin Rap (Saphion Assembly)
I made up Latin Rap. Wanna hear some? mova sita nope trie What that does I have no idea. But I know what it does as a programming languag...
-
Welcome to the Quill Language blog, a place where I share and discuss a language I am working on titled 'quill'. It is a Common Li...
-
A pick is a Markoff Chain. I am not a piack in Clarity. x is a b c and d is a list in Clarity. y is a b c or d is a pick in Clarity. x w...
-
Brainfuck is +-[],. I think. R is the current register, an integer. *R is the register at R. - move to the right, decriment R + + increme...