Re: [racket] Fwd: Snooze & Transactions

2010-12-19 Thread Noel Welsh
Hi Russell, You'll find examples of transactions in the tests for it: http://planet.plt-scheme.org/package-source/untyped/snooze.plt/2/8/snooze-transaction-test.ss It should be fairly simple to get working. Note that Snooze on Planet is ancient. Up-to-date but undocumented and hence unrelease

Re: [racket] Fwd: Snooze & Transactions

2010-12-19 Thread Russell Adams
On Sun, Dec 19, 2010 at 11:50:16PM +, Dave Gurnell wrote: > Hi Russell, > > Don't know if this is your problem, but it bit me recently. If SSL > is on, you're going to get an order of magnitude slowdown. Having > SSL on seems to be the default for the packages on some > distributions, so you ma

[racket] Fwd: Snooze & Transactions

2010-12-19 Thread Dave Gurnell
Hi Russell, Don't know if this is your problem, but it bit me recently. If SSL is on, you're going to get an order of magnitude slowdown. Having SSL on seems to be the default for the packages on some distributions, so you may want to look at that. That said, there are undoubtedly optimisation

Re: [racket] regexp-match* that returns clusters?

2010-12-19 Thread Eli Barzilay
Yesterday, Todd O'Bryan wrote: > Is there some equivalent of regexp-match* that returns a list of all > the (non-overlapping) matches in a string. > > I want something like: > > > (regexp-match*-clusters #px"(?:^|\\s+)([A-Z])" "This gets Initial CAPS, I > > hope") > '(("T" "T") (" I" "I") (" C"

Re: [racket] regexp-match* that returns clusters?

2010-12-19 Thread Todd O'Bryan
I wrote the following function (define/contract (regexp-match-all re str) (regexp? string? . -> . (listof (listof (or/c string? #f (map (λ (s) (regexp-match re s)) (regexp-match* re str))) I don't know if it would be worth including among the standard regexp operators. Todd On Sa