spdegabrielle
2021-1-28 14:08:46

Yes - I’m not sure about gif but I’ve seen video


spdegabrielle
2021-1-28 14:09:56

It certainly does animations



spdegabrielle
2021-1-28 14:11:52

Some examples


yilin.wei10
2021-1-28 20:32:24

Suppose I have a loop which recursively calls parameterize such that the recursive call is within the parameterize block and there are no statements after. Am I right in thinking that it’s going to leak memory until the loop is exited?


samth
2021-1-28 20:34:43

the body of parameterize is in tail position with respect to the whole parameterize form, if that’s what you’re asking


sorawee
2021-1-28 20:35:46

Memory should be constant, not linear to the depth of recursion.


yilin.wei10
2021-1-28 20:50:35

Oh awesome!


notjack
2021-1-28 23:18:10

….how on earth does that work? magic


notjack
2021-1-28 23:18:59

or does it only work if you’re setting the same parameter each time the loop executes?


samth
2021-1-28 23:21:26

If you are parameterizing an unbounded number of parameters then it will use unbounded space


samth
2021-1-28 23:22:52

But if you alternate between two of them, say, it still uses constant space


notjack
2021-1-28 23:23:05

O_o


samth
2021-1-28 23:23:38

It’s just continuation marks


samth
2021-1-28 23:24:11

You can think of parameters as a continuation mark that maps to a hash


notjack
2021-1-28 23:24:53

heh I just worked out that analogy right before you said it


notjack
2021-1-28 23:25:27

alright this makes sense, and is very cool


samth
2021-1-28 23:40:55

It’s actually not an analogy, that’s how it’s implemented