Re: [racket] QuickCheck-like testing library?

2012-08-04 Thread Michael Sperber
Ismael Figueroa Palet writes: > I was wondering if there is something like Haskell's QuickCheck for testing > in Racket? In the docs there is only mention of Racket Unit, and google > it's not helping much... There's actually an undocumented QuickCheck clone (done for the teaching languages) in

Re: [racket] Problems trying to do non-blocking I/O and a reactor loop

2012-08-04 Thread Neil Van Dyke
Matthew Flatt wrote at 08/03/2012 07:56 PM: I see that you're using `read-bytes-avail!-evt', which has problems in v5.2.1 that are fixed for v5.3. The problems include triggering a bug in `sync', which is also fixed for v5.3. I am extremely interested in these bugs. How do I find more info

Re: [racket] QuickCheck-like testing library?

2012-08-04 Thread Matthias Felleisen
Would it make sense to factor out this library and to write up docs? If they are in German, I am willing to translate and scribble -- Matthias On Aug 4, 2012, at 2:58 AM, Michael Sperber wrote: > > Ismael Figueroa Palet writes: > >> I was wondering if there is something like Haskell's Quick

Re: [racket] Problems trying to do non-blocking I/O and a reactor loop

2012-08-04 Thread Sam Tobin-Hochstadt
On Sat, Aug 4, 2012 at 6:24 AM, Neil Van Dyke wrote: > Matthew Flatt wrote at 08/03/2012 07:56 PM: > >> I see that you're using `read-bytes-avail!-evt', which has problems in >> v5.2.1 that are fixed for v5.3. The problems include triggering a bug >> in `sync', which is also fixed for v5.3. >> > >

Re: [racket] Problems trying to do non-blocking I/O and a reactor loop

2012-08-04 Thread Matthew Flatt
At Fri, 3 Aug 2012 20:51:37 -0400, Greg Hendershott wrote: > 1. Bad news: The reqs/sec seem much lower than before. i.e. Does the > bug fix have a performance hit? That's not expected. It's possible that the broken version took shortcuts that happened to work out much of the time, but I'm not sure

Re: [racket] Problems trying to do non-blocking I/O and a reactor loop

2012-08-04 Thread Matthew Flatt
At Sat, 4 Aug 2012 09:33:09 -0400, Sam Tobin-Hochstadt wrote: > On Sat, Aug 4, 2012 at 6:24 AM, Neil Van Dyke wrote: > > Matthew Flatt wrote at 08/03/2012 07:56 PM: > > > >> I see that you're using `read-bytes-avail!-evt', which has problems in > >> v5.2.1 that are fixed for v5.3. The problems inc

Re: [racket] Problems trying to do non-blocking I/O and a reactor loop

2012-08-04 Thread Neil Van Dyke
Greg Hendershott wrote at 08/03/2012 08:51 PM: I wonder can anyone else elicit these problems trying to run it, too? Your test seems to fail for me (on Debian Stable GNU/Linux, 32-bit x86) after around 26K to 27K requests (with "-c 10"), using a pre-release Racket from several days ago.

Re: [racket] Problems trying to do non-blocking I/O and a reactor loop

2012-08-04 Thread Neil Van Dyke
Matthew Flatt wrote at 08/04/2012 12:33 PM: At Fri, 3 Aug 2012 20:51:37 -0400, Greg Hendershott wrote: 3. Bad news: I just got it to happen again, with 5.3.0.16: I see how that could happen, and I've pushed a repair --- mostly by improving the guarantees about progress evts. (I think

Re: [racket] First RacketCon 2011 video now available

2012-08-04 Thread Rodolfo Carvalho
I'm super happy with the videos! And I sure I'm not alone ;) Thanks! Rodolfo Carvalho On Fri, Aug 3, 2012 at 10:03 PM, Greg Hendershott wrote: > This is really awesome to have. Big thanks to everyone who helped make > it happen. > > > p.s. Off the cuff idea: For future events, perhaps we coul

Re: [racket] QuickCheck-like testing library?

2012-08-04 Thread Michael Sperber
Matthias Felleisen writes: > Would it make sense to factor out this library and to write up docs? > If they are in German, I am willing to translate and scribble -- > Matthias It would make sense to write docs period. I'm afraid I don't even have German ones at the moment. I'll put it on my

[racket] Unicode regexp character classes?

2012-08-04 Thread Charles Hixson
Are there any unicode regular expression character classes? I'm hoping for something similar to [:alpha:], etc. that are based around, say, the first letter of the unicode character classification. I *can* do what I want by disassembling strings by hand and using tests based on char-general-c

Re: [racket] Unicode regexp character classes?

2012-08-04 Thread Matthew Flatt
I think you're looking for #px"\\p{L}". See the "\p" production and the non-terminal in http://docs.racket-lang.org/reference/regexp.html#(part._regexp-syntax) At Sat, 04 Aug 2012 14:45:30 -0700, Charles Hixson wrote: > Are there any unicode regular expression character classes? > > I'm ho

Re: [racket] Unicode regexp character classes?

2012-08-04 Thread Charles Hixson
Thank you, yes, that is what I was looking for. I must have read right over it 3-4 times without seeing it. On 08/04/2012 02:59 PM, Matthew Flatt wrote: I think you're looking for #px"\\p{L}". See the "\p" production and the non-terminal in http://docs.racket-lang.org/reference/regexp.ht