[racket-dev] Seg Fault in GC with Pre-Release Racket

2012-04-19 Thread Williams, Doug
I have downloaded the latest pre-release for v5.3 (plt-5.2.901.1-bin-i386-win32.exe). All of my PLaneT collections load and run fine. But, my large application at work fails to run - it dies during startup with "Seg Fault (internal error during gc) at 58720044" printed (twice) in a new window. It's

Re: [racket-dev] Pre-Release Checklist for v5.3

2012-04-19 Thread Stephen Chang
> * Stephen Chang >  - Lazy Racket Tests >  - Lazy stepper tests All passed. _ Racket Developers list: http://lists.racket-lang.org/dev

Re: [racket-dev] Pre-Release Checklist for v5.3

2012-04-19 Thread Eli Barzilay
Three hours ago, John Clements wrote: > > Mac OS X (32-bit 64-bit) > > I'm guessing this was supposed to be > > Mac OS X (Intel 64-bit) Yes, that was a typo. -- ((lambda (x) (x x)) (lambda (x) (x x))) Eli Barzilay: http://barzilay.org/

Re: [racket-dev] current head doesn't compile?

2012-04-19 Thread Eli Barzilay
Just now, Matthew Flatt wrote: > I've pushed a fix. > > At Thu, 19 Apr 2012 16:55:10 -0700, John Clements wrote: > > Ooh… just looked at git log, perhaps this has something to do with > > 2b76d9e5b03ea97b8de155d2dda63e64256a3212 ? Yes, it was my fault. (I didn't try to build from scratch, so I

Re: [racket-dev] current head doesn't compile?

2012-04-19 Thread Matthew Flatt
I've pushed a fix. At Thu, 19 Apr 2012 16:55:10 -0700, John Clements wrote: > Apologies in advance if this is my fault; I can't see an obvious reason why > it > would be. > > I'm building from the head, and I rm'ed my build directory, and I get a build > failure that ends with: > > Compiling

Re: [racket-dev] Pre-Release Checklist for v5.3

2012-04-19 Thread John Clements
On Apr 18, 2012, at 8:00 AM, Ryan Culpepper wrote: > * John Clements > - Stepper Tests > Updates: > - Stepper Updates: update HISTORY > (updates should show v5.3 as the most current version; email me > to pick the changes when they're done, or tell me if there are no such > changes.) Done

Re: [racket-dev] Pre-Release Checklist for v5.3

2012-04-19 Thread John Clements
On Apr 18, 2012, at 8:00 AM, Ryan Culpepper wrote: > Checklist items for the v5.3 release > (using the v5.2.901.1 release candidate build) I'm confused by the OS X download options on the pre-release download page (http://pre.racket-lang.org/release/installers/). Specifically, one of the entr

Re: [racket-dev] pr 12683 and using something like text:nbsp->space?

2012-04-19 Thread Robby Findler
I think this is the kind of mixin that belongs in the framework and, if you don't want it, you don't mix it in. The preferences dialog additions could be DrRacket-specific, tho. Also, option 2 should probably have a button in the dialog that adjusts the preference to one of the two "silent" modes

Re: [racket-dev] pr 12683 and using something like text:nbsp->space?

2012-04-19 Thread Eli Barzilay
An hour ago, Danny Yoo wrote: > On Thu, Apr 12, 2012 at 5:26 PM, Robby Findler > wrote: > > Yes, normalization doesn't deal with those spaces. It does change > > the text in ways that are unfriendly and I often tell DrRacket > > "no" when it asks about normalization. I just wanted to put that > >

Re: [racket-dev] Is this legal submodule code?

2012-04-19 Thread Danny Yoo
On Thu, Apr 19, 2012 at 2:45 PM, Matthew Flatt wrote: > I've pushed a repair for this bug. Ah, thank you! I will try it out as soon as it hits the 5.3 release branch. _ Racket Developers list: http://lists.racket-lang.org/dev

Re: [racket-dev] `racket/string' extensions

2012-04-19 Thread David Vanderson
Thank you so much for this. This was definitely one area of difficulty when I started using Racket for scripting. On 04/19/2012 09:28 AM, Eli Barzilay wrote: But to allow other uses, make these arguments a string *or* a regexp, where a regexp is taken as-is. This leads to another simplicity p

Re: [racket-dev] Is this legal submodule code?

2012-04-19 Thread Matthew Flatt
I've pushed a repair for this bug. At Wed, 18 Apr 2012 13:02:05 -0400, Danny Yoo wrote: > I'm trying to wrap my head around submodules so I can get it working > with Whalesong, but I'm running into an issue: > > #lang racket > > (define (print-cake n) > #;(show " ~a " n #\.) > #;(show "

Re: [racket-dev] Pre-Release Checklist for v5.3

2012-04-19 Thread Michael Sperber
Ryan Culpepper writes: > * Mike Sperber > - DMdA Tests > - Stepper Tests > - Signature Tests Done. -- Cheers =8-} Mike Friede, Völkerverständigung und überhaupt blabla _ Racket Developers list: http://lists.racket-lang.org/dev

Re: [racket-dev] More low-level submodule questions, and changelog improvements?

2012-04-19 Thread Matthew Flatt
At Wed, 18 Apr 2012 14:41:46 -0400, Danny Yoo wrote: > >> I'm trying to wrap my head around submodules so I can get it working > >> with Whalesong > > > I see that the structure of 'mod' has changed a bit to accommodate > submodules; in particular, mod-name can now be a list of symbols vs > just

Re: [racket-dev] pr 12683 and using something like text:nbsp->space?

2012-04-19 Thread Danny Yoo
On Thu, Apr 12, 2012 at 5:26 PM, Robby Findler wrote: > Yes, normalization doesn't deal with those spaces. It does change the > text in ways that are unfriendly and I often tell DrRacket "no" when > it asks about normalization. I just wanted to put that into the mix > for this conversation, since

Re: [racket-dev] `racket/string' extensions

2012-04-19 Thread namekuseijin
On Thu, Apr 19, 2012 at 1:28 PM, Eli Barzilay wrote: >  (list-index list elt) >    Looks for `elt' in `list'.  This is a possible extension for >    `racket/list' that would be kind of obvious with adding the above. >    [*3*] I'm not sure if it should be added, but IIRC it was >    requested a fe

Re: [racket-dev] `racket/string' extensions

2012-04-19 Thread Laurent
I like it a lot. [...] > (string-split str [sep #px"\\s+"]) >Splits `str' on occurrences of `sep'. Unclear whether it should >do that with or without trimming, which affects keeping a >first/last empty part. [*1*] Possible solution: make it take a >`#:trim?' keyword, in analogy

[racket-dev] `racket/string' extensions

2012-04-19 Thread Eli Barzilay
Sorry for the new thread, but this is a kind of a summary on the extensions that I think we're converging to, with a way to resolve the exact meaning of arguments. Please read through and reply if you see any problems with it. There are three specific questions, which are marked with [*1*]...[*3b

Re: [racket-dev] `string-split'

2012-04-19 Thread Eli Barzilay
An hour and a half ago, Ryan Culpepper wrote: > Instead of trying to design a 'string-split' that is both > miraculously intuitive and profoundly flexible, why not design it > like a Model-T Invalid analogy: the issue is not flexibility, it's making something that is simple (first) and useful (sec

Re: [racket-dev] `string-split'

2012-04-19 Thread Laurent
> > (TL;DR: I'd suggest two functions: one (string-words str) > function that does Eli's way, and one (string-split str sep) that > does it Laurent's way). That would be a good option to me, considering that "my way" is with remaining ""s in the output list. The question remains if a string can b

Re: [racket-dev] Pre-Release Checklist for v5.3

2012-04-19 Thread Doug Williams
All of the plot routines work as expected. Done Doug On Wednesday, April 18, 2012, Ryan Culpepper wrote: > Checklist items for the v5.3 release > (using the v5.2.901.1 release candidate build) > > Search for your name to find relevant items, reply when you finish an > item (please indicate whi

Re: [racket-dev] my bf language no longer works; how to fix?

2012-04-19 Thread Matthew Flatt
At Wed, 18 Apr 2012 15:40:09 -0400, Danny Yoo wrote: > On Wed, Apr 18, 2012 at 3:09 PM, Danny Yoo wrote: > > This no longer appears to work in 5.3: > > > >    #lang planet dyoo/bf > >    ,[.,] > > > > I'm not sure how to fix this.  Help?  I see the following error message: > > > Ok, bug traced.

Re: [racket-dev] `string-split'

2012-04-19 Thread Michael W
(TL;DR: I'd suggest two functions: one (string-words str) function that does Eli's way, and one (string-split str sep) that does it Laurent's way). 50 minutes ago, Eli Barzilay wrote: > That doesn't seem right -- with this you get > > -> (string-split " st ring") > '("" "st" "" "ring") > >

Re: [racket-dev] `string-split'

2012-04-19 Thread Ryan Culpepper
Instead of trying to design a 'string-split' that is both miraculously intuitive and profoundly flexible, why not design it like a Model-T and then write a guide/cookbook for how to use regexps to do all of the common cases that the extremely limited 'string-split' doesn't handle? I suspect th

Re: [racket-dev] `string-split'

2012-04-19 Thread Laurent
> > 4. Related to Q3: what does "xy" as that argument mean exactly? > > a. #rx"[xy]" > > b. #rx"[xy]+" > > c. #rx"xy" > > d. #rx"(?:xy)+" > > > > Good question. d. would be the simplest case for newbies, but > > b. might be more useful. I think several other languages a

Re: [racket-dev] `string-split'

2012-04-19 Thread Eli Barzilay
Just now, Laurent wrote: > 1. Laurent: Does this make more sense? > > Yes, this definitely makes more sense to me. It would then treat > (string-split "aXXby" "X") just like the " " case. > > Although if you want to find the columns of a latex line like "x && > y & z" you will have the w

Re: [racket-dev] `string-split'

2012-04-19 Thread Laurent
> > 4. Related to Q3: what does "xy" as that argument mean exactly? >> a. #rx"[xy]" >> b. #rx"[xy]+" >> c. #rx"xy" >> d. #rx"(?:xy)+" >> > > Good question. d. would be the simplest case for newbies, but b. might be > more useful. > It would make more sense that a string really is a string,

Re: [racket-dev] Argument positions of string-... like functions

2012-04-19 Thread Eli Barzilay
A few minutes ago, Laurent wrote: >   (define (string-index-of sub str [start 0] [end (string-length str)]) > > I always need to go check the documentation for that kind of argument position > (like for (string-replace from str to) ). > To me, what makes more sense is to have the str argument

[racket-dev] Argument positions of string-... like functions

2012-04-19 Thread Laurent
> (define (string-index-of sub str [start 0] [end (string-length str)]) > I always need to go check the documentation for that kind of argument position (like for (string-replace from str to) ). To me, what makes more sense is to have the str argument on the first position, just like for a metho

Re: [racket-dev] `string-split'

2012-04-19 Thread Laurent
Continuing with this line, it seems that a better definition is as > follows: > > (define (string-split str [sep " "]) >(remove* '("") (regexp-split (regexp-quote (or sep " ")) str))) > > Except that the full definition could be a bit more efficient. > > Three questions: > > 1. Laurent: Does t

Re: [racket-dev] `string-replace'

2012-04-19 Thread Eli Barzilay
30 minutes ago, Laurent wrote: > > I meant this: > > (define (string-replace from str to) >    (regexp-replace* (regexp-quote from) str (regexp-replace-quote to))) 30 minutes ago, Matthew Flatt wrote: > > Surely Laurent meant > >(define (string-replace str from to) > (regexp-replace*

Re: [racket-dev] `string-split'

2012-04-19 Thread Eli Barzilay
[Meta-note: I'm not just flatly object to these, just trying to clarify the exact behavior and the possible effects on other functions.] 10 minutes ago, Laurent wrote: >   > >  (define (string-split str [sep #px"\\s+"]) >    (remove* '("") (regexp-split sep str))) > > Nearly, I meant som

Re: [racket-dev] `string-split'

2012-04-19 Thread Eli Barzilay
A few minutes ago, Laurent wrote: > > Then instead of #f one idea is to go one step further and consider > different useful cases based on input symbols like 'whitespaces, > 'non-alpha, etc. ? Or even a list of string/symbols that can be used > as a splitter. That would make a more powerful funct

Re: [racket-dev] `string-split'

2012-04-19 Thread Laurent
On Thu, Apr 19, 2012 at 14:53, Matthew Flatt wrote: > At Thu, 19 Apr 2012 14:43:44 +0200, Laurent wrote: > > On Thu, Apr 19, 2012 at 14:33, Matthew Flatt wrote: > > > > > I agree with this: we should add `string-split', the one-argument case > > > should be as Eli wrote, > > > > > > About this I

Re: [racket-dev] `string-split'

2012-04-19 Thread Matthew Flatt
At Thu, 19 Apr 2012 14:43:44 +0200, Laurent wrote: > On Thu, Apr 19, 2012 at 14:33, Matthew Flatt wrote: > > > I agree with this: we should add `string-split', the one-argument case > > should be as Eli wrote, > > > About this I'm not sure, as one cannot reproduce this behavior by providing > a

Re: [racket-dev] `string-split'

2012-04-19 Thread Laurent
On Thu, Apr 19, 2012 at 14:33, Matthew Flatt wrote: > I agree with this: we should add `string-split', the one-argument case > should be as Eli wrote, About this I'm not sure, as one cannot reproduce this behavior by providing an argument (or it could make the difference between string-as-not-r

Re: [racket-dev] `string-replace'

2012-04-19 Thread Laurent
On Thu, Apr 19, 2012 at 14:26, Eli Barzilay wrote: > Two hours ago, Laurent wrote: > > > Maybe also a `string-replace' could be useful, especially when one > > does not want regexps and has special characters that need to be > > quoted. > > Again, it's not clear how this shold look -- my guess: >

Re: [racket-dev] `string-replace'

2012-04-19 Thread Matthew Flatt
At Thu, 19 Apr 2012 08:26:20 -0400, Eli Barzilay wrote: > Two hours ago, Laurent wrote: > > > Maybe also a `string-replace' could be useful, especially when one > > does not want regexps and has special characters that need to be > > quoted. > > Again, it's not clear how this shold look -- my gue

Re: [racket-dev] `string-split'

2012-04-19 Thread Matthias Felleisen
I think Laurent pointed out in his initial message that beginners may be intimidated by regexps. I agree. Plus someone who isn't fluent with regexp may be more comfortable with string-split. Last but not least, a program documents itself more clearly with string-split vs regexp. On Apr 19,

Re: [racket-dev] `string-split'

2012-04-19 Thread Matthew Flatt
I agree with this: we should add `string-split', the one-argument case should be as Eli wrote, and the two-argument case should be as Laurent wrote. (Probably the optional second argument should be string-or-#f, where #f means to use #px"\\s+".) At Thu, 19 Apr 2012 14:30:31 +0200, Laurent wrote: >

Re: [racket-dev] `string-split'

2012-04-19 Thread Laurent
(define (string-split str [sep #px"\\s+"]) >(remove* '("") (regexp-split sep str))) > Nearly, I meant something more like this: (define (string-split str [splitter " "]) (regexp-split (regexp-quote splitter) str)) No regexp from the user POV, and much easier to use with little knowledge.

Re: [racket-dev] `string-split'

2012-04-19 Thread Sam Tobin-Hochstadt
On Thu, Apr 19, 2012 at 8:21 AM, Eli Barzilay wrote: > > Two hours ago, Laurent wrote: >> One string function that I often find useful in various scripting >> languages is a `string-split' (explode in php).  It can be done with >> `regexp-split', but having something more along the lines of a >> `

Re: [racket-dev] `string-replace'

2012-04-19 Thread Eli Barzilay
Two hours ago, Laurent wrote: > Maybe also a `string-replace' could be useful, especially when one > does not want regexps and has special characters that need to be > quoted. Again, it's not clear how this shold look -- my guess: (define (string-replace from str to) (regexp-replace* (rege

Re: [racket-dev] `string-split'

2012-04-19 Thread Eli Barzilay
[Changed title to talk about each one separately.] Two hours ago, Laurent wrote: > One string function that I often find useful in various scripting > languages is a `string-split' (explode in php). It can be done with > `regexp-split', but having something more along the lines of a > `string-spl

Re: [racket-dev] Fwd: [racket] Are There More String Functions?

2012-04-19 Thread Matthias Felleisen
I second that. On Apr 19, 2012, at 5:57 AM, Laurent wrote: > (sorry, I couldn't figure out how to reply properly from the list archive, as > I don't receive the dev-list emails.) > > One string function that I often find useful in various scripting languages > is a `string-split' (explode

Re: [racket-dev] Fwd: [racket] Are There More String Functions?

2012-04-19 Thread Laurent
(sorry, I couldn't figure out how to reply properly from the list archive, as I don't receive the dev-list emails.) One string function that I often find useful in various scripting languages is a `string-split' (explode in php). It can be done with `regexp-split', but having something more along

Re: [racket-dev] Pre-Release Checklist for v5.3

2012-04-19 Thread Kathy Gray
On 18 Apr 2012, at 16:00, Ryan Culpepper wrote: > * Kathy Gray > - Test Engine Tests Done -Kathy _ Racket Developers list: http://lists.racket-lang.org/dev