Scott Richmond scott
  • Joined on 2023-07-29
scott commented on issue twc/ludus#93 2024-06-21 03:51:45 +00:00
Turtle graphics protocol

One quick question here is whether we want a "turtle graphics protocol" or a more general I/O protocol, which starts with turtle graphics. To wit:

{ "turtle_graphics": [["forward",
scott opened issue twc/ludus#93 2024-06-21 03:46:50 +00:00
Turtle graphics protocol
scott commented on issue twc/ludus#81 2024-06-21 03:30:05 +00:00
Turtle position should correctly report location in turtle coordinates

There is almost certainly a way to use p5 transformations to make this work, but I reckon the thing to do here, now that computer class is all over, is to stand up a turtle graphics protocol out…

scott commented on issue twc/ludus#85 2024-06-21 03:24:48 +00:00
home! should reset orientation, not just location

Is this right? I think there's probably a reason to have home!, reset!, and clear! turtle commands:

  • home! brings the turtle back to the origin
  • reset! brings the turtle back to…
scott commented on issue twc/ludus#87 2024-06-21 03:22:49 +00:00
Called keywords should work in do forms

The issue is that the interpreter uses call-fn and should actually use apply-synth-term in passing the previous result to the next term in a do form. In other words, do should be sugar for…

scott commented on issue twc/ludus#86 2024-06-21 02:58:47 +00:00
Disallow shadowing?

Is the correct?

Technically, what happens when a function body is a block?

Well, a block is a new scope. So when the function body is a new block, it's a child scope, with the parent scope…

scott commented on issue twc/ludus#88 2024-06-20 22:01:12 +00:00
Empty blocks should cause parsing or validation errors

Done in 705be69661

scott closed issue twc/ludus#88 2024-06-20 22:01:12 +00:00
Empty blocks should cause parsing or validation errors
scott pushed to main at twc/ludus 2024-06-20 22:00:58 +00:00
705be69661 validation error on empty blocks
scott commented on issue twc/ludus#89 2024-06-20 21:57:25 +00:00
Calling not a function should cause a panic

Done in 0363d5a091

scott closed issue twc/ludus#89 2024-06-20 21:57:25 +00:00
Calling not a function should cause a panic
scott pushed to main at twc/ludus 2024-06-20 21:56:43 +00:00
3b65092267 add clause for join with empty list and separator
0363d5a091 calling something other than a function causes a panic
887d192c8a 0.1.24
f0176548de build
Compare 4 commits »
scott opened issue twc/ludus#92 2024-06-20 21:50:32 +00:00
split should work with "" as splitter
scott opened issue twc/ludus#91 2024-06-20 21:48:07 +00:00
chars should give a list of chars in a string
scott opened issue twc/ludus#90 2024-06-20 21:47:52 +00:00
at should work with strings
scott commented on issue twc/ludus#84 2024-06-20 20:57:33 +00:00
Show and hide turtles

I did this!

scott closed issue twc/ludus#84 2024-06-20 20:57:33 +00:00
Show and hide turtles
scott opened issue twc/ludus#89 2024-06-20 20:56:51 +00:00
Calling not a function should cause a panic
scott pushed to main at twc/ludus 2024-06-20 20:36:09 +00:00
bf7dfe94bd fix fold/empty list bug
694b8adc60 0.1.23
f070076e2b build
Compare 3 commits »
scott pushed to main at twc/ludus 2024-06-20 20:19:00 +00:00
42492c8a09 fix bug in rest with error on empty list
2c1de39161 0.1.22
58d70483cf build
Compare 3 commits »