Waiting for wood projects to dry, implemented the Sierpiński triangle fractal in Modal.
https://git.sr.ht/~rabbits/modal/tree/master/item/examples/sierpinski.modal
Waiting for wood projects to dry, implemented the Sierpiński triangle fractal in Modal. 5 comments
@patchlore yeah, that's been my focus for the past few days, that's why I was asking about song examples that I could encode into modal rules and expand a song from a given program input. I think there's huge potential for that stuff here. |
Realized after posting that I could have used an exploding lambda to initialize the memory. It's a bit prettier.
I like this way of programming, it feels like ascii physics. The replacement steps shows my little cursor `>` moving across the cons cells until it collides with (), and then bounces back out of the list. It's like Orca, there's no hidden state, everything that relates to the evaluation has to be present in the source, pausing the evaluation at any moment yields a valid program.