Post B5WUjSPZQyy8EghtuC by aleteoryx@labyrinth.zone
(DIR) More posts by aleteoryx@labyrinth.zone
(DIR) Post #B5WTkzzlxJKwjJoNLE by neauoire@merveilles.town
0 likes, 0 repeats
Possibly stumbled onto the high-level language of my dreams.
(DIR) Post #B5WUARtzKuKWWLF2PI by neauoire@merveilles.town
0 likes, 0 repeats
@mnl It's this: https://wiki.xxiivv.com/site/rejoiceThe only operation is multiplication.
(DIR) Post #B5WUJSuKxzl0FIhi3k by neauoire@merveilles.town
0 likes, 0 repeats
@RealGene this is postfix, but there's no stack.
(DIR) Post #B5WUjSPZQyy8EghtuC by aleteoryx@labyrinth.zone
0 likes, 0 repeats
@neauoire oh the way of expressing 'loop until x is 12' is so cool
(DIR) Post #B5WUjSbygqtSrAVoFE by neauoire@merveilles.town
0 likes, 0 repeats
@aleteoryx yes!! This one liner packs a lot!
(DIR) Post #B5WUxbHlEmotoQnXzU by neauoire@merveilles.town
0 likes, 0 repeats
@RealGene it is, but cells in memory are fractions, instead of unsigned integers. The only possible operation is the multiplication of fractions.So, if a program has these 3 cells: 2^2 3/2 5/6[] 2^2 3/2 5/[2 3] [2^2] 3/2 5/[2 3] [2 3] 5/[2 3] [5] Reached in 4 steps.https://wiki.xxiivv.com/etc/rejoicerepl/
(DIR) Post #B5YsvkWmgr3r77OZiy by mia@cathode.church
0 likes, 0 repeats
@neauoire stole some ideas from this to print Pascal's Triangle
(DIR) Post #B5YsvkkFslpvmthKim by neauoire@merveilles.town
0 likes, 0 repeats
@mia nicely done!! Did you study math or are you self-taught?
(DIR) Post #B5YsvktpJBUcGaAydk by mia@cathode.church
0 likes, 0 repeats
@neauoire I finished my PhD in set theory last year, heh
(DIR) Post #B5Ysvl2KnYIYgy9ltw by neauoire@merveilles.town
0 likes, 0 repeats
@mia that checks out X)
(DIR) Post #B5YsvmSFWgcd5dHyvw by mia@cathode.church
0 likes, 0 repeats
( Pascal's Triangle )size^12 indent^size indentres( first row ) .\s\s^indent .\s\s\s1\n @Row n/indent ( first term & padding ) .\s\s^indent .\s\s\s1 @Col k ( calc next term ) ( a=n+1-k ) a^n a/a^k ( tmp = res*a ) 'tmp^res/a ( res = tmp/k ) []/res^res 'res/tmp^k ( print ) .\s [Skip-c res^100]/res^100 .\s @Skip-c [Skip-d res^10]/res^10 .\s @Skip-d .#res []/k^n [Col k]/k []/n^size [Row n .\n]/n