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

2018-05-22 Thread Alex Harsanyi
I am trying to create a path named "/foo/bar" in Racket on a windows machine. build-path produces "/foo\\bar" and build-path/convention-type does not seem to work: > (path->string (build-path "/" "foo" "bar")) "/foo\\bar" ; I am running on a Windows machine, so this is expected >

Re: [racket-users] Racket 7 multi core support

2018-05-22 Thread Sam Tobin-Hochstadt
Just like with current Racket, both futures and places run in a single process. Sam On Tue, May 22, 2018, 2:39 AM Piyush Katariya wrote: > Thanks Sam. > > When you say Racket 7's "cs" variant can use Future and Places to leverage > multiple CPU cores, is it one OS process or multiple ? > > -- >

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

2018-05-22 Thread Matthew Flatt
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 #"/") (bs->p #"foo") (bs->p #"bar")) Roughly, strings don't work, because they have to

[racket-users] Using Racket's raco on on Guix(SD)

2018-05-22 Thread Christopher Lemmer Webber
Hello all! Sorry for the cross-post, but I've been doing more development in Racket lately from GuixSD... and who wouldn't want a scheme-based distribution and a scheme language's tooling to get along better? Unfortunately when I try to install packages with "raco pkg install" I get errors like t

Re: [racket-users] Announcing Event-lang

2018-05-22 Thread Eric Griffis
On Mon, May 21, 2018 at 11:21 AM Jay McCarthy wrote: > This is very cute! Can you point to a fun example? I looked through > the repo and it wasn't obvious where some tests and examples were. > > Jay > Here's a variety of small examples. Sometimes, I just want to wait until a bunch of stuff is

Re: [racket-users] Announcing Event-lang

2018-05-22 Thread Matthew Butterick
I'm sure I'm not the only one who would like to see these (and other examples you have handy) added to your `event-lang` docs. > On May 22, 2018, at 7:29 AM, Eric Griffis wrote: > > Here's a variety of small examples. -- You received this message because you are subscribed to the Google Grou

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

2018-05-22 Thread Alex Harsanyi
Hi Matthew, Thanks for clarifying this. It seems to me that `build-path/convention-type` is very difficult to use correctly: it is very easy for someone working on a Linux machine to just use this function with a 'unix convention and plain strings, under the assumption that it will work corre

Re: [racket-users] html-parsing package 5.0 changes

2018-05-22 Thread Neil Van Dyke
FYI, I made another potentially breaking change to `html-parsing`, and so have incremented the major version number, to 6.0. Sorawee Porncharoenwase found a case in which the parser was doing the wrong thing for a real-world example of contemporary HTML.  It turned out to be in some 17 year-ol