Email or username:

Password:

Forgot your password?
2 posts total
mostlypat

Tinkering around with a FRACTRAN library I wrote in Common Lisp :^)

I was too lazy to add sequential functions, but it is possible if you assign a unique prime to each function (as it will permit only that function)

Prime numbers just happen to be a powerful way to express the concept of "distinct" objects. In this case, the "objects" are registers/memory addresses. Might try replacing primes with strings...

patpatpat.xyz/data/fractran.li

#lisp #commonlisp #emacs #fractran #esolang

mostlypat

Oh wait, they already are strings (symbols) because I used a plist. Neat!

mostlypat

is this anything? a turing machine language? essentially a readable brainfuck?

use < and > to move the tape head, and any (non-reserved) word gets written at the current head position

the if statements compare the current word against the argument given in parenthesis

there are no variables. you can only write data to the tape and hope you remember where you left it

it will be interesting to see if i can make the tape store instructions, not just data

#catlang #forth #asm #brainfuck

Go Up