Show HN: You can program without loop and recursion and×÷- is all you need
github.com
github.com
In the words of it's inventor, John Conway:
Makes workday really easy! FRACTRAN needs no complicate programming manual. It's entire syntax can be learned in 10 seconds, and programs for quite complex and interesting functions can be written almost at once. The entire configuration of a FRACTRAN computer at any instant is a single integer - no messy "tapes" or other foreign concepts to be understood by the fledging programmer.
What's not to like? This is a good introduction for someone seriously considering doing their next project in FRACTRAN: https://raganwald.com/2020/05/03/fractran.htmlWhen given a number n, and you want to display them, how will you actually compute the numbers from 1 to n? If you precalculate a table - then how will you do n+1? What about n+2?
I don't agree that the language is turning complete due to the lack of any runtime dynamic aspect of the language.
It's akin to compiling a simple c program with loops unrolled and fully static variables and claiming the subset of generated assembly is turning complete.
> It's akin to compiling a simple c program with loops unrolled and fully static variables
Yes, and optimizing compilers take this to an extreme. It turns out that "computing" a factorial only requires my runtime language to have `mov` and `ret` instructions: https://godbolt.org/z/3Y6bGcsba
P.S. precomputing even a single int64 space is going to be really really hard, 2^64 possible values is a lot
Epigram 54.
Beware of the Turing tar-pit
in which everything is possible
but nothing of interest is easy.