Re: [racket-users] Does password reset work on pkgs.racket-lang.org?

2021-02-01 Thread Jay McCarthy
I just checked it and I got an email, but it was put into spam. If you can't identify a problem on your side, contact me off list and we can debug together. Jay -- Jay McCarthy Associate Professor @ CS @ UMass Lowell http://jeapostrophe.github.io Vincit qui se vincit. On Sat, Jan 30, 2021 at

[racket-users] Re: How to draw an arc with module `graphics/turtles`?

2021-02-01 Thread making-a-racket
Turtles can only turn or move forward with or without drawing. To draw an arc, you'll need to combine these methods to do that. I highly recommend the book *Turtle Geometry* by Abelson and diSessa .

[racket-users] Re: Looking for idiomatic way to represent very similar but different data types

2021-02-01 Thread making-a-racket
Turns out that I don't see a way to calculate the #:auto-value using the constructor fields, so I don't see how to make something like (struct test (x y z [data #:auto]) #:auto-value #(x y z)) work. So I've decided to go with something like this: (struct color (r g b) #:transparent) (struct

[racket-users] Re: Looking for idiomatic way to represent very similar but different data types

2021-02-01 Thread jackh...@gmail.com
To make your vector+ operation take an arbitrary number of arguments, this is what I'd do: (define (vector+ . vectors) (vector (for/sum ([v (in-list vectors)]) (vector-i v)) (for/sum ([v (in-list vectors)]) (vector-j v)) (for/sum ([v (in-list vectors)]) (vector-k v (module+

[racket-users] Racket News - Issue 45 - The Anniversary Issue

2021-02-01 Thread Paulo Matos
Hi everyone, Here's Racket News Issue 45, the anniversary issue. RN turns 2! https://racket-news.com/2021/02/racket-news-issue-45.html Enjoy! Paulo Matos -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and

[racket-users] Re: Looking for idiomatic way to represent very similar but different data types

2021-02-01 Thread making-a-racket
Thanks for the suggestion and for the macro implementation. I'll have to pour over that a bit. I wanted to do map because I wanted to make it easy to idiomatically implement addition and other such operators on my data types such that they accept arbitrary amounts of arguments and provide the

Re: [racket-users] Does password reset work on pkgs.racket-lang.org?

2021-02-01 Thread 'John Clements' via Racket Users
FWIW, I recall problems like this as well, about four years ago. I think we wound up resetting it manually, at the time. John > On Feb 1, 2021, at 8:48 AM, Jay McCarthy wrote: > > I just checked it and I got an email, but it was put into spam. > > If you can't identify a problem on your

[racket-users] How to draw an arc with module `graphics/turtles`?

2021-02-01 Thread 'Killian Zhuo (KDr2)' via Racket Users
I am imitating the Logo API to draw some shapes with `graphics/turtles`, but in it I only find functions to draw lines, is there a way to draw an arc? Greetings. Killian Zhuo (KDr2, https://kdr2.com) -- You received this message because you are subscribed to the Google Groups "Racket

[racket-users] Re: Looking for idiomatic way to represent very similar but different data types

2021-02-01 Thread making-a-racket
Apologies. By fourth optional argument, I meant a fourth field with the #auto field option. I'm experimenting with this now. On Monday, February 1, 2021 at 3:24:49 PM UTC-6 making-a-racket wrote: > Thanks for the suggestion and for the macro implementation. I'll have to > pour over that a bit.