Skip to main content


( 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)

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]

🎨

This entry was edited (12 hours ago)
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.

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 🙌

in reply to Devine Lu Linvega

haha, yeah, I push the rule oriented approach to very hard limits. So, I have been doodling ways to mix and match things.

Lo, thar be cookies on this site to keep track of your login. By clicking 'okay', you are CONSENTING to this.

⇧