[racket-users] Re: Installing Racket Package `gregor` inside a Docker container

2017-12-29 Thread Jack Firth
With the Docker images I use for Racket, gregor installs fine. I ran the command `docker run -it jackfirth/racket:6.11 raco pkg install --auto gregor` and it completed without error. You can find the dockerfile being used to produce those images in the Github repo

Re: [racket-users] beautiful racket: trying a first dsl of my own

2017-12-29 Thread Matthias Felleisen
> On Dec 29, 2017, at 10:41 PM, Matthew Butterick wrote: > > > The `define-macro` used in the `br/quicklang` language is not the same as the > one in Racket's "legacy macro" library. [1] Rather, it's a simplified version > of `syntax-parse`. [2] > Mea culpa. Then may I recommend to teach s

Re: [racket-users] beautiful racket: trying a first dsl of my own

2017-12-29 Thread Matthew Butterick
> On Dec 29, 2017, at 3:31 PM, Robert Girault > wrote: > > (define-macro (prelude/connect-to HOST PORT) > #'(begin > (require racket/tcp) > (require racket/port) > (define-values (input-port output-port) > (tcp-connect HOST PORT

Re: [racket-users] Byte Order Mark: alter display of symbols containing nonprinting characters?

2017-12-29 Thread 'John Clements' via Racket Users
Very well… I concede :). John > On Dec 28, 2017, at 09:51, Matthew Butterick wrote: > > >> On Dec 27, 2017, at 10:15 PM, 'John Clements' via Racket Users >> wrote: >> >> Again, there may be a reason why this is a bad idea, but I don’t think I’ve >> heard it yet :). > > Speaking as a user

Re: [racket-users] beautiful racket: trying a first dsl of my own

2017-12-29 Thread Matthias Felleisen
When you use the macro with (prelude/connect-to www.google.com 80) you are asking it to place the identifier www.google.com wherever HOST shows up in the right-hand-side of the macro definition. I prefer to teach syntax transformers using

[racket-users] beautiful racket: trying a first dsl of my own

2017-12-29 Thread Robert Girault
I thought I had understood mostly everything I learned in Beautiful Racket. But I must be very confused as a whole. I gave myself the task of translating something like this #lang tcp connect www.google.com 80 text GET / HTTP/1.1 text Host: www.google.com text read-until-eof exit into something

Re: [racket-users] Racket PPA updated for v6.11

2017-12-29 Thread 'Reuben Thomas' via users-redirect
On 17 December 2017 at 20:18, Reuben Thomas wrote: > On 4 November 2017 at 17:43, Asumu Takikawa wrote: > >> Hi everyone, >> >> The Ubuntu PPA has been updated for v6.11. The PPA is available here: >> >> https://launchpad.net/~plt/+archive/ubuntu/racket >> >> It's currently available for zesty