News for hackers. Stuff that matters.
Re:Show HN: You can program without loop and recursion and×÷... by rstuart4133 on Monday July 22, 2024 @06:45AM (#41032926)
Why over complicate it? FRACTRAN is a Turning complete language based on only one operation: multiplication. It's Wikipedia entry gives a short FRACTRAN program that finds all primes. https://en.wikipedia.org/wiki/FRACTRAN

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.html
Re:Show HN: You can program without loop and recursion and×÷... by raoof on Monday July 22, 2024 @12:00PM (#41035928)
FRACTRAN has a goto instruction so it is not a total model of computation but my claim is that Ar is a total model of computation