Email or username:

Password:

Forgot your password?
Devine Lu Linvega

Waiting for wood projects to dry, implemented the Sierpiński triangle fractal in Modal.
git.sr.ht/~rabbits/modal/tree/

Source for the fractal displayed in the Left text-editor.
5 comments
Devine Lu Linvega

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.

Instead of a long list of cons, I explode a string token instead. It's cuter, trust me.
(wryl)

@neauoire A lone particle, bouncing between walls. Forever.

>. -> .>
.< -> <.
>| -> <|
|< -> |>

|>........|

patchlore

@neauoire very compelling. Have you tried using it for music generation yet? This stuff vaguely reminds me of some of the grammar based approaches used in algorithmic music.

Devine Lu Linvega

@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.

patchlore

@neauoire hmm. I'll have to think about that...

Go Up