( Hailstone function in Rejoice )<br><br>n^7 @Hailstone<br> .#[url=https://social.nouveau.community/tags/n]n[/url] .\n<br><br> done [n^2]/[n^2 done] [Halt]/done<br><br> @Parity <br> [a^2 Parity]/n^2<br> even [odd n]/[even n]<br> @Parity.A->N [n Parity.A->N]/a<br><br> [Even]/even [Odd]/odd<br><br> @Even ( n = n/2 )<br> [a Even]/n^2<br> @Even.A->N [n Even.A->N]/a<br> Hailstone<br><br> @Odd ( n = 3n + 1 )<br> [a^3 Odd]/n a<br> @Odd.A->N [n Odd.A->N]/a<br> Hailstone<br><br>@Halt<br>(cc @neauoire)
Devine Lu Linvega
in reply to ... and and and and ... • • •aye X) you're doing backflips already, meanwhile I'm eating putty..
red^2 blue^2 yellow^2
violet/[red blue]
green/[blue yellow]
orange/[red yellow]
black/[violet green orange]
🎨
... and and and and ...
in reply to Devine Lu Linvega • • •I did write a whole game in Vera for December Adventure 2024
One bottleneck became things like "your rules to check for the parity of a register is 40 rules deep, but there are 5 step. So, it's really 200 rules deep. But, it is also part of a hot-loop and takes 20,000 rules to finish".
Second issue was things like "rules submit all values in one transaction". So, you had to awkwardly spread actions over many rules to enforce sequence of individual steps.
December Adventure 2024
www.sheeeeeeeep.artDevine Lu Linvega
in reply to ... and and and and ... • • •you've been contending with this limitations much more than I have I think, a lot of the languages you've explored since Vera looks like stabs at cutting across large rulesets like that.
The hailstone function works amazingly well 🙌
... and and and and ...
in reply to Devine Lu Linvega • • •