[racket-users] Happy Hacktoberfest!

2019-10-01 Thread Jack Firth
Every October, DigitalOcean and GitHub run an event called Hacktoberfest . If you sign up for it and you open at least four pull requests on GitHub during the month of October, you'll get a free T-shirt. To get Racketeers in the Hacktoberfest spirit, I'v

[racket-users] Ensuring that channels are GC'd when the child thread terminates

2019-10-01 Thread David Storrs
I have a server with a main dispatcher loop that receives messages and farms them out to processing threads. I'd like to have able to have later messages inform the behavior of earlier message processing -- an example would be "message 1: here is a file to download" followed by "stop downloading i

Re: [racket-users] gen:equal+hash on hashes or other non-struct data structure

2019-10-01 Thread David Storrs
Perfect. Thank you, Philip. The example definition is: (define-custom-hash-types string-hash #:key? string? string=? string-length) 'string-length' in the above is the "optional hash function". What does that mean? It's not demonstrated in the example code. On Tue, Oct 1, 2019 at 10:38 PM P

Re: [racket-users] gen:equal+hash on hashes or other non-struct data structure

2019-10-01 Thread Philip McGrath
On Tue, Oct 1, 2019 at 10:21 PM David Storrs wrote: > For example, there's a hash, hasheqv, and hasheq. Is there a way to > have a hash with a user-provided key-comparison function? > You probably want `define-custom-hash-types` and the related functions: https://docs.racket-lang.org/reference/

[racket-users] gen:equal+hash on hashes or other non-struct data structure

2019-10-01 Thread David Storrs
Is it possible to put gen:equal+hash on something other than a struct? For example, there's a hash, hasheqv, and hasheq. Is there a way to have a hash with a user-provided key-comparison function? -- You received this message because you are subscribed to the Google Groups "Racket Users" group

Re: [racket-users] Re: i18n / translations

2019-10-01 Thread Alexander Shopov
We should be able to convert to and from po format to racket's own one. На вт, 1.10.2019 г. в 11:11 ч. Bogdan Popa написа: > This is great! Thank you. > > Roman Klochkov writes: > > > Now we have gettext: https://docs.racket-lang.org/gettext/index.html > > > > суббота, 9 февраля 2019 г., 18:56:

Re: [racket-users] Re: i18n / translations

2019-10-01 Thread Bogdan Popa
This is great! Thank you. Roman Klochkov writes: > Now we have gettext: https://docs.racket-lang.org/gettext/index.html > > суббота, 9 февраля 2019 г., 18:56:59 UTC+5 пользователь cwebber написал: >> >> How are people currently translating their programs? >> I expected to see a gettext library o

[racket-users] Re: i18n / translations

2019-10-01 Thread Roman Klochkov
Now we have gettext: https://docs.racket-lang.org/gettext/index.html суббота, 9 февраля 2019 г., 18:56:59 UTC+5 пользователь cwebber написал: > > How are people currently translating their programs? > I expected to see a gettext library or something, but haven't. > > I see that DrRacket is trans