Re: [racket-users] Help narrow down problem using plt-web-server:

2019-01-10 Thread 'John Clements' via users-redirect
Apologies if this is obvious, but have you checked to see whether some other process is already listening on port 443? On a Linux server, it looks to me like you should be able to see what processes are listening on what ports by running sudo netstat -tulpn Also, you don’t mention what the res

[racket-users] Help narrow down problem using plt-web-server:

2019-01-10 Thread Don Green
I could use some help narrowing down this problem using plt-web-server: Context: I can successfully run all code described in: Continue: Web Applications in Racket, Chapters 1 through 17. However, 'Chapter 18: Using HTTPS' where I run plt-web-server is giving me a problem. (I am using OS:Linux/Ubun

Re: [racket-users] Re: Racket Weet 2019

2019-01-10 Thread Matthias Felleisen
> On Jan 10, 2019, at 2:19 PM, 'Jeff Ward' via Racket Users > wrote: > > Is there a description available for the "How to Design Languages" course? Not yet, but it will be quite similar to the 2018 Racket School. Probably in late Feb. — Matthias > > I assume that the "Beautiful Rack

[racket-users] Re: Racket Weet 2019

2019-01-10 Thread 'Jeff Ward' via Racket Users
Is there a description available for the "How to Design Languages" course? I assume that the "Beautiful Racket Workshop" is based on the book by Matthew Butterick. Is there a reference for the material covered in "How to Design Languages"? Is it related to the PLT Redex book? On Wednesday,

Re: [racket-users] Weird behavior when a ‘set’ is the result of ‘eval’

2019-01-10 Thread Robby Findler
Technically speaking, everything is a struct, both hashes and sets. The difference is that the function make-base-namespace shares the module that implements the struct for the hash tables and doesn't for sets. You can share it yourself, if you want to, tho. (See namespace-attach-module.) Robby O

Re: [racket-users] How to build unix paths on windows with build-path/convention-type

2019-01-10 Thread David K. Storrs
On Thursday, January 10, 2019 at 12:39:50 PM UTC-5, Matthew Flatt wrote: > > At Thu, 10 Jan 2019 09:06:50 -0800 (PST), "David K. Storrs" wrote: > > Hm. I'm not seeing it. Perl, Python, and (ugh) Java can all handle > > strings for paths and manage them portably. (e.g. Perl will understand >

Re: [racket-users] Weird behavior when a ‘set’ is the result of ‘eval’

2019-01-10 Thread 'Leandro Facchinetti' via Racket Users
👍 Got it. Thanks. -- Leandro Facchinetti https://www.leafac.com -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to racket-users+unsubscr...@googlegroups.com. For

Re: [racket-users] Weird behavior when a ‘set’ is the result of ‘eval’

2019-01-10 Thread Jens Axel Søgaard
A `set` is represented as a set structure. Structures are generative, so each instantiation of the set structure gives you different structure types (even though names and fields are identical). Creating a new namespace means you get different set structures. A hash is not represented as a structu

Re: [racket-users] Weird behavior when a ‘set’ is the result of ‘eval’

2019-01-10 Thread Matthias Felleisen
Structs are generative. So in different namespaces they mean different things. > On Jan 10, 2019, at 1:26 PM, 'Leandro Facchinetti' via Racket Users > wrote: > > Interesting. But what makes sets special? My original program works with > hashes, for example: > > #lang racket > (define h (e

Re: [racket-users] Weird behavior when a ‘set’ is the result of ‘eval’

2019-01-10 Thread 'Leandro Facchinetti' via Racket Users
Interesting. But what makes sets special? My original program works with hashes, for example: #lang racket (define h (eval '(begin (require racket/hash) (hash 1 2)) (make-base-namespace))) h ;; ⇒ '#hash((1 . 2)) (hash? h) ;; ⇒ #t (like I expected) -- Leandro Facchinetti https://www.leafac.co

Re: [racket-users] Weird behavior when a ‘set’ is the result of ‘eval’

2019-01-10 Thread Matthias Felleisen
> On Jan 10, 2019, at 11:50 AM, 'Leandro Facchinetti' via Racket Users > wrote: > > Please help me understand the following: > > #lang racket > (define s (eval '(begin (require racket/set) (set 1 2)) > (make-base-namespace))) > s ;; ⇒ (set 1 2) > (set? s) ;; ⇒ #f (but I expected ‘#t’) Wil

Re: [racket-users] How to build unix paths on windows with build-path/convention-type

2019-01-10 Thread Matthew Flatt
At Thu, 10 Jan 2019 09:06:50 -0800 (PST), "David K. Storrs" wrote: > Hm. I'm not seeing it. Perl, Python, and (ugh) Java can all handle > strings for paths and manage them portably. (e.g. Perl will understand > that, when on Windows, "/foo/bar" should be equivalent to "\\foo\\bar".) > Sure,

Re: [racket-users] How to build unix paths on windows with build-path/convention-type

2019-01-10 Thread David K. Storrs
On Thursday, January 10, 2019 at 11:45:02 AM UTC-5, gneuner2 wrote: > > > On 1/10/2019 9:14 AM, David K. Storrs wrote: > > On Tuesday, May 22, 2018 at 7:56:21 AM UTC-4, Matthew Flatt wrote: > >> To build paths for a convention other than the current machine's >> convention, you have to work in

Re: [racket-users] How to build unix paths on windows with build-path/convention-type

2019-01-10 Thread Matthew Flatt
At Thu, 10 Jan 2019 06:14:51 -0800 (PST), "David K. Storrs" wrote: > > > On Tuesday, May 22, 2018 at 7:56:21 AM UTC-4, Matthew Flatt wrote: > > > > To build paths for a convention other than the current machine's > > convention, you have to work in bytes instead of strings. > > > > (define (b

[racket-users] Weird behavior when a ‘set’ is the result of ‘eval’

2019-01-10 Thread 'Leandro Facchinetti' via Racket Users
Please help me understand the following: #lang racket (define s (eval '(begin (require racket/set) (set 1 2)) (make-base-namespace))) s ;; ⇒ (set 1 2) (set? s) ;; ⇒ #f (but I expected ‘#t’) -- Leandro Facchinetti https://www.leafac.com -- You received this message because you are subscribed t

Re: [racket-users] How to build unix paths on windows with build-path/convention-type

2019-01-10 Thread George Neuner
On 1/10/2019 9:14 AM, David K. Storrs wrote: On Tuesday, May 22, 2018 at 7:56:21 AM UTC-4, Matthew Flatt wrote: To build paths for a convention other than the current machine's convention, you have to work in bytes instead of strings.   (define (bs->p bs) (bytes->path bs 'unix))

Re: [racket-users] How to build unix paths on windows with build-path/convention-type

2019-01-10 Thread David K. Storrs
On Tuesday, May 22, 2018 at 7:56:21 AM UTC-4, Matthew Flatt wrote: > > To build paths for a convention other than the current machine's > convention, you have to work in bytes instead of strings. > > (define (bs->p bs) (bytes->path bs 'unix)) > (build-path/convention-type 'unix (bs->p #"/"