[racket-users] please encourage people to use racket-users (Was: Help understanding cond expression)

2019-01-12 Thread Neil Van Dyke
 Google+ forum BTW, Google+ is disappearing soon[1], which is yet another reason to encourage people to -- rather than fragment our small community amongst every upstart you're-the-product social media play -- instead use the official `racket-users` forum (available as both email list and

Re: [racket-users] Help understanding cond expression

2019-01-12 Thread Hassan Shahin
Thanks Jon. yes. I did, and you are right. I posted the same question a Google+ forum (https://plus.google.com/108613325307702875646/posts/1BaDJFoat4D), and I also got a reply that: "John is being parsed as a variable, and thus, its binding is looked up in the local environment. Of course,

Re: [racket-users] Help understanding cond expression

2019-01-12 Thread Jon Zeppieri
On Sun, Jan 13, 2019 at 12:37 AM Hassan Shahin wrote: > Thanks Jack and Mike! > > You are right. Arguments to procedures will be evaluated before the > invocation of the procedure. > This is true, but it's not really the issue in your case. Even in #lang lazy, which does not eagerly evaluate

Re: [racket-users] Help understanding cond expression

2019-01-12 Thread Hassan Shahin
Thanks Jack and Mike! You are right. Arguments to procedures will be evaluated before the invocation of the procedure. I thought that because (if) is not an ordinary procedure, and because one can express if in terms of cond (or vice versa) that my procedure is also a non ordinary procedure,

Re: [racket-users] Help understanding cond expression

2019-01-12 Thread Jack Rosenthal
On Sat, 12 Jan 2019 at 21:12 -0800, Hassan Shahin wrote: > When I apply the procedure to 'John it will evaluate to 'symbol. The idea > of the procedure is to check the "type" of the given item, which is not > decided aprior. If I give it 'John I know it is a symbol. > May be my question should

Re: [racket-users] Help understanding cond expression

2019-01-12 Thread Hassan Shahin
Thanks Mike. When I apply the procedure to 'John it will evaluate to 'symbol. The idea of the procedure is to check the "type" of the given item, which is not decided aprior. If I give it 'John I know it is a symbol. May be my question should be formulated as this: Since John is not a pair, an

Re: [racket-users] Help understanding cond expression

2019-01-12 Thread Mike MacHenry
You need to apply the function to 'John, with a single quote in front of it. The word John without that quote is just a variable reference to something that you have not actually defined. On Sat, Jan 12, 2019 at 11:34 PM Hassan Shahin wrote: > I have this definition for a procedure: > > (define

[racket-users] Help understanding cond expression

2019-01-12 Thread Hassan Shahin
I have this definition for a procedure: (define type-of (lambda (item) (cond [(pair? item) 'pair] [(null? item) 'empty-list] [(number? item) 'number] [(symbol?

Re: [racket-users] Making evaluators / handin server setup

2019-01-12 Thread Jordan Johnson
Hi Matthew et al., Following up some work from last fall: On Oct 6, 2018, at 15:58, Matthew Flatt wrote: > At Wed, 26 Sep 2018 15:57:12 -0700, Jordan Johnson wrote: >>> (require racket/sandbox) >>> (make-evaluator "beginner-lang.rkt") >> . . ../../../../../../../../Applications/Racket >>

[racket-users] FIGLIO DI PUTTANA ANGELO LIETTI DI MEDIOLANUM, NDRANGOLANUM, MAFIOLANUM, HITLERANUM! TENEVA I RAPPORTI CON GLI IMPRENDITORI ASSASSINI DI COSA NOSTRA: FRANCESCO ZUMMO E IGNAZIO ZUMMO! AI

2019-01-12 Thread 'ROBERTO GORINI 4-UPPER LTD LUGANO-LA-SUISSE' via Racket Users
FIGLIO DI PUTTANA ANGELO LIETTI DI MEDIOLANUM, NDRANGOLANUM, MAFIOLANUM, HITLERANUM! TENEVA I RAPPORTI CON GLI IMPRENDITORI ASSASSINI DI COSA NOSTRA: FRANCESCO ZUMMO E IGNAZIO ZUMMO! AI TEMPI DELL'ARRESTO DELL'AVVOCATO PEDOFILO E NAZI: PAOLO SCIUME'! VERME SCHIFOSISSIMO ANGELO LIETTI:

Re: [racket-users] Re: FYI Racket & DrRacket tagged projects on GitHub

2019-01-12 Thread Hendrik Boom
On Sat, Jan 12, 2019 at 06:44:26PM +0100, Tomasz Rola wrote: > On Sat, Jan 12, 2019 at 11:10:27AM +0100, 'Paulo Matos' via Racket Users > wrote: > > > > > > On 11/01/2019 17:23, Greg Trzeciak wrote: > > > What would be really neat if https://pkgs.racket-lang.org/ would include > > > date-added

Re: [racket-users] Getting errors running PLT-Redex book example

2019-01-12 Thread Mike MacHenry
Thanks Ben. Good to know. Hey Robbie, it's been a while. Hope everything is going well. Great book. :) -mike On Jan 12, 2019 12:04, "Robby Findler" wrote: Hi Mike! Thanks for pointing this out. I've updated the errata (Thanks, Ben for those links; I was having trouble finding the date of the

Re: [racket-users] Re: FYI Racket & DrRacket tagged projects on GitHub

2019-01-12 Thread Tomasz Rola
On Sat, Jan 12, 2019 at 11:10:27AM +0100, 'Paulo Matos' via Racket Users wrote: > > > On 11/01/2019 17:23, Greg Trzeciak wrote: > > What would be really neat if https://pkgs.racket-lang.org/ would include > > date-added to all the packages. This way one could create automatic list > > of newly

Re: [racket-users] Getting errors running PLT-Redex book example

2019-01-12 Thread Robby Findler
Hi Mike! Thanks for pointing this out. I've updated the errata (Thanks, Ben for those links; I was having trouble finding the date of the change.) Robby On Sat, Jan 12, 2019 at 4:41 AM Mike MacHenry wrote: > > Hey everyone, > > I'm having an issue with one of the examples from Semantics

Re: [racket-users] Getting errors running PLT-Redex book example

2019-01-12 Thread Ben Greenman
You discovered a backwards incompatible change to Redex. Changing M and N to A and B is a good fix. (The errata really should talk about this.) Here are two related threads: https://groups.google.com/d/msg/racket-users/be54SG881GU/bndA4eiGAQAJ

[racket-users] Racket-openCV package use?7

2019-01-12 Thread Stephen De Gabrielle
Hi Can can anyone point me to any package or other Racket code that uses the Racket OpenCV package ? https://github.com/oetr/racket-opencv Kind regards, Stephen -- -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from

Re: [racket-users] Issue about tcp port, server doesn't receive bytes using read-bytes-avail!* and client using write-bytes

2019-01-12 Thread Jay McCarthy
You need to flush-output On Sat, Jan 12, 2019 at 10:55 AM Zhonghua Zhu wrote: > I am writing a tcp server program. > Server uses non-blocking reading and client uses write-bytes, then server > never read any bytes and write-bytes returns the right value. > But when I change client's write-bytes

[racket-users] Issue about tcp port, server doesn't receive bytes using read-bytes-avail!* and client using write-bytes

2019-01-12 Thread Zhonghua Zhu
I am writing a tcp server program. Server uses non-blocking reading and client uses write-bytes, then server never read any bytes and write-bytes returns the right value. But when I change client's write-bytes to write-bytes-avail, server receives bytes immediately. I don't know why this

Re: [racket-users] Re: FYI Racket & DrRacket tagged projects on GitHub

2019-01-12 Thread Greg Trzeciak
I don't think I mentioned newsletter before but I did raise the issue of missing date-added in packages before - my expertise is in data usefulness/usability so it really hurts my feelings ;) I agree about hidden gems I stumble upon by pure chance. >From time to time I try to search pkgs site

[racket-users] Getting errors running PLT-Redex book example

2019-01-12 Thread Mike MacHenry
Hey everyone, I'm having an issue with one of the examples from Semantics Engineering With PLT Redex. Specifically in 12.3 on page 225, the definition for the iswim-standard reduction relation. As printed in the book, I get the error "reduction-relation: shortcut name may not be a non-terminal

Re: [racket-users] Re: FYI Racket & DrRacket tagged projects on GitHub

2019-01-12 Thread 'Paulo Matos' via Racket Users
On 11/01/2019 17:23, Greg Trzeciak wrote: > What would be really neat if https://pkgs.racket-lang.org/ would include > date-added to all the packages. This way one could create automatic list > of newly added packages and let's say distribute it in the newsletter Which newsletter are you