Re: [racket-users] Question about generating urls with dispatch-rules from imported modules

2020-04-25 Thread Yury Bulka
Oops, small correction: > The x-expressions need to include hyperlinks to urls > defined via dispatch-rules in main.rkt, i.e., call the url-generating > function. Should be `routing.rkt` instead of `main.rkt`. -- Yury Bulka https://mamot.fr/@setthemfree #NotOnFacebook Yury Bulk

[racket-users] Question about generating urls with dispatch-rules from imported modules

2020-04-25 Thread Yury Bulka
to `render-post`. I also thought about putting the url-generating function into a parameter, but `render-post` also needs access to the request handlers. What approach should I take? -- Yury Bulka https://mamot.fr/@setthemfree #NotOnFacebook -- You received this message because you

Re: [racket-users] Question about generating urls with dispatch-rules from imported modules

2020-04-26 Thread Yury Bulka
the main distribution, but the main distribution is the place where newcomers like me are going to look first. -- Yury Bulka https://mamot.fr/@setthemfree #NotOnFacebook Bogdan Popa writes: > I solved this in koyo by defining an alternate version[1] of > `dispatch-rules' whose generated `rever

Re: [racket-users] Question about generating urls with dispatch-rules from imported modules

2020-04-26 Thread Yury Bulka
solution (for instance, the rules in dispatch-rules and the route-names can go out of sync if one forgets to update either of them) and they are not dynamic. But for an ultra-minimalistic application this might do when you don't feel like adding a new external dependency. -- Yury Bulka https://mamot.fr

Re: [racket-users] Re: Question about generating urls with dispatch-rules from imported modules

2020-04-29 Thread Yury Bulka
Greg Hendershott writes: > Although I haven't tried to use it hands-on, the description of the > imperative flavor makes me think it might be intended to help with this? > > https://docs.racket-lang.org/web-server/dispatch.html#%28part._.Imperative_.Dispatch_.Containers%29 Hm, that's

Re: [racket-users] for/stream and values

2020-05-03 Thread Yury Bulka
Sorawee Porncharoenwase writes: >> >> Thank you for the package! So, do I understand correcty that it is >> impossible to produce multi-valued streams with for/stream? If so, maybe >> it's worth adding a note about it to the documentation of for/stream? >> > > That is correct. Feel free to

[racket-users] for/stream and values

2020-05-02 Thread Yury Bulka
b._racket%2Fstream..rkt%29._stream-ref%29%29 What am I doing wrong here? P.S. The context is that I'm trying to create a function that would return results from an API as a stream that can be iterated with the for family of forms, and would yield multiple values per iteration. -- Yury Bulka htt

Re: [racket-users] for/stream and values

2020-05-02 Thread Yury Bulka
(sorry for the typos - obviously, it should be racket/stream) -- Yury Bulka https://mamot.fr/@setthemfree #NotOnFacebook Yury Bulka writes: > Hello everyone, > > I have a question about creating a steam that yields multiple values on > each iteration. Given something like:

Re: [racket-users] for/stream and values

2020-05-03 Thread Yury Bulka
are inefficient in the default implementation of Racket. Since I'm using generators too, I'm curious about the performance implications - where can I read more about it? Best, -- Yury Bulka https://mamot.fr/@setthemfree #NotOnFacebook Sorawee Porncharoenwase writes: > I just created a pack

Re: [racket-users] Is there a way to open (and just view) a Racket file (e. g. .rkt or .scrbl extensions) from Google Drive?

2020-07-07 Thread Yury Bulka
> maybe the racket-away paste(bin) will be handy? that should have been racket-*aware*, sorry for the typo. -- Yury Bulka https://mamot.fr/@setthemfree #NotOnFacebook -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To uns

Re: [racket-users] Is there a way to open (and just view) a Racket file (e. g. .rkt or .scrbl extensions) from Google Drive?

2020-07-07 Thread Yury Bulka
, and it has a "Code" document type that has Scheme syntax highligthing (and end-to-end encryption). Best, -- Yury Bulka https://mamot.fr/@setthemfree #NotOnFacebook Sorawee Porncharoenwase writes: > A quick Google returns this site: > https://superuser.com/questions/659666/how

Re: [racket-users] Re: [racket] Web Framework Benchmarks

2020-06-08 Thread Yury Bulka
. As is #4 most likely. #2 is something that seems to require manual work in the client code, but maybe that can be made easier on web-server-lib side somehow. Curious how much do #3 contribute. Big thanks again for everyone investing time in investigating this. -- Yury Bulka https://mamot.fr

[racket-users] Racket / [B]SL / HTDP in a workshop context

2020-12-12 Thread Yury Bulka
in this 5-step process: http://htdp.org/2020-8-1/Book/part_preface.html#%28counter._%28figure._fig~3athe-design-recipe%29%29 Is this too ambitious plan at all? Does it require _way_ more time or is it doable? Thank you for any thoughts, -- Yury Bulka https://mamot.fr/@setthemfree #NotOnFacebook -- You

Re: [racket-users] Racket / [B]SL / HTDP in a workshop context

2020-12-12 Thread Yury Bulka
> 1) “authenticity”; will the participants feel that programming in > Racket is “real” programming? Do you mean as opposed to a more popular language like Python or JavaScript? Or in some other regard (like building GUI apps)? -- Yury Bulka https://mamot.fr/@setthemfree #NotOnFacebook

Re: [racket-users] Racket / [B]SL / HTDP in a workshop context

2020-12-12 Thread Yury Bulka
Thanks for the feedback. In my case, most likely, the participants will be around 16-22 years old, no particular specialisation but curious about programming. -- Yury Bulka https://mamot.fr/@setthemfree #NotOnFacebook John Clements writes: > My opinion: it depends on lots of things, bu

Re: [racket-users] Racket / [B]SL / HTDP in a workshop context

2020-12-13 Thread Yury Bulka
think of at the momemnt is to do my best to communicate in advance the intent of the workshop? To emphasize the fact that this is not going to be about Python or JavaScript specifically (and not Scratch either). -- Yury Bulka https://mamot.fr/@setthemfree #NotOnFacebook -- You received this m

Re: [racket-users] An Apology

2021-06-22 Thread Yury Bulka
d a blog post I saw the other day on Software Freedom Conservancy's blog: https://sfconservancy.org/blog/2021/apr/20/how-to-apologize/ I think it has many constructive points. Best, -- Yury Bulka https://mamot.fr/@setthemfree #NotOnFacebook Siddhartha Kasivajhula writes: > I just want

Re: [racket-users] Registered on irc.libera.chat

2021-05-26 Thread Yury Bulka
#haskell seems to have been taken over: https://www.reddit.com/r/haskell/comments/nl74hc/freenode_has_unilaterally_taken_over_haskell/ -- Yury Bulka https://mamot.fr/@setthemfree #NotOnFacebook David Bremner writes: > Hendrik Boom writes: > >> >> Experience in other

Re: [racket-users] Freenode -> libera.chat

2021-05-22 Thread Yury Bulka
, if there are a Friendly Environment Policy violation or other issue, there is (or isn't) a way to handle that. Or simply when there is a need to establish a process for making a qpolicy decision regarding a particular channel (like migration or non-migration from freenode to libera). -- Yury Bulka https

Re: [racket-users] Add Link to the racket Discord to the racket website?

2021-04-29 Thread Yury Bulka
uld authenticate with NickServ: https://matrix-org.github.io/matrix-appservice-irc/latest/usage.html#customising-your-experience -- Yury Bulka https://mamot.fr/@setthemfree #NotOnFacebook Paulo Matos writes: > Yury Bulka writes: > >> I would just clarify that in the case of Racket,

Re: [racket-users] Add Link to the racket Discord to the racket website?

2021-04-29 Thread Yury Bulka
it out. > >John > >> On Apr 20, 2021, at 1:45 AM, Yury Bulka > wrote: >> >> Just my 5 cents... >> >> Recently I had to register on a discord "server" to ask a question >> within another community - and the experience was of a high ba

Re: [racket-users] Racket Dev Sessions Streamed on Twitch

2021-03-26 Thread Yury Bulka
Thank you for sharing! Looking forward to watching :) -- Yury Bulka https://mamot.fr/@setthemfree #NotOnFacebook Lindsey Handley writes: > Shameless plug here... > > For the past several months, Stephen Foster <https://github.com/srfoster/> > and I have been live

Re: [racket-users] Method gen:custom-write of a struct not working within lists

2021-03-04 Thread Yury Bulka
Wow, so great to hear the a SuperCollider client in Racket is on the horizon:) -- Yury Bulka https://mamot.fr/@setthemfree #NotOnFacebook Dimaugh Silvestris writes: > I have a struct defined as: > (struct ugen sc.unit (name rate inputs) > #:methods gen:custom-write > [(defin

[racket-users] A dict? question

2021-02-27 Thread Yury Bulka
Dear Racketeers, I have noticed something I don't understand: > (dict? '(yay)) #f > (dict? '('yay)) #t > (dict-ref '('yay) 'yay) ; dict-ref: no value for key: 'yay in: '('yay) I'm puzzled - what makes '('yay) a dict compared to '(yay)? (Running Racket 7.8 on Linux). -- Yury Bu

Re: [racket-users] A dict? question

2021-02-27 Thread Yury Bulka
Indeed, > (dict-keys '('yay)) '(quote) > (dict-values '('yay)) '((yay)) > (dict-ref '('yay) 'quote) '(yay) So... this boils down to: > (equal? '('yay) '((quote yay))) #t -- Yury Bulka https://mamot.fr/@setthemfree #NotOnFacebook William J. Bowman writes: > try (dict-ref

Re: [racket-users] Add Link to the racket Discord to the racket website?

2021-04-20 Thread Yury Bulka
d. The IRC + Matrix combination is much more open and inclusive I think. And there is a question of transparency of governance and moderation of course. -- Yury Bulka https://mamot.fr/@setthemfree #NotOnFacebook Adam Golding writes: > I'm not so sure now: https://groups.google.com/g/rac

Re: [racket-users] Sticky scrollable nav bar in docs

2021-02-18 Thread Yury Bulka
scrollbar, but still be sticky in the sense that it would keep itself within the viewport). -- Yury Bulka https://mamot.fr/@setthemfree #NotOnFacebook Sam Tobin-Hochstadt writes: > This seems like it would be a nice addition. I think starting with a > PR is the right place to begin. > &g