[ prog / sol / mona ]

prog


What are you working on?

14 2018-12-27 01:07

>>13

Are you a different anon?

It's only been the two of us in this thread so far.

I saw your latest spiral on /lambda/ I really like the look of this one. I think it's my favourite aesthetically.

Thanks. Feel free to critique the code if you have cairo experience or see something that could be improved.

Some further observations:
- (extract-5 position end) is computed twice on the alternate branch of copy-path-iter!.
- The slice-length computation of copy-slice-append-iter contains an inlined version of (min 32 (- read-end read-position)). Making this explicit seems cleaner to me.
- Your code uses both (modulo read-position 32) and (logand position #b11111), which is a bit curious.
- A named let near the top level, like the *-iters, is perfectly fine. But named lets that are buried deep inside other computations, like largest-divisible-exponent-32 or the two versions of make-path, seem a bit excessive. They might be good candidates for splitting out into helper functions, like pow32? is split out.

These are still only superficial observations, mainly because your use of the continuation parameter of naive-append-vector is a nice trick that I still need to have a think on.

199


VIP:

do not edit these