Re: [racket-dev] mzscheme executable broken when using --enable-shared

2011-04-18 Thread Marijn
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Matthew, On 04/18/11 04:00, Imran Rafique wrote: Ah, that would explain it (Marijn is packaging racket for gentoo, as part of the gentoo-lisp group). Binaries are stripped by default pre-installation by the emerge packager. Imran is correct.

Re: [racket-dev] exact nonnegative integers as sequences?

2011-04-18 Thread Robby Findler
FWIW, I don't like that any of these 'in-*' thigns are optional. I was recently reading over a script that was used to build web pages from the output of testing runs for my compilers class and there were several nested for loops without in-* thingies and it was painfully difficult for me to

Re: [racket-dev] exact nonnegative integers as sequences?

2011-04-18 Thread Sam Tobin-Hochstadt
On Mon, Apr 18, 2011 at 9:25 AM, Matthew Flatt mfl...@cs.utah.edu wrote: I often write  (for ([i (in-range N)]) ...) In cases where the loop overhead is not significant (i.e., I don't care whether the compiler can tell that I'm iterating through integers), Or in cases where you're using

Re: [racket-dev] exact nonnegative integers as sequences?

2011-04-18 Thread Matthias Felleisen
I have written (for ([i N]) ..) many times only to remember that it's in-range. On Apr 18, 2011, at 9:25 AM, Matthew Flatt wrote: I often write (for ([i (in-range N)]) ...) In cases where the loop overhead is not significant (i.e., I don't care whether the compiler can tell that

Re: [racket-dev] exact nonnegative integers as sequences?

2011-04-18 Thread Sam Tobin-Hochstadt
On Mon, Apr 18, 2011 at 9:58 AM, Robby Findler ro...@eecs.northwestern.edu wrote: I also don't buy Sam's implicit argument for my example. If I had tried to port this to code to typed racket to just read off the types, I would have spent far longer as debugging via TR's error messages is going

[racket-dev] DrRacket crash

2011-04-18 Thread Pierpaolo Bernardi
Hello, the attached program, invoked with (fa 2000 -2) in DrRacket, both in 5.1 and in 5.1.0.5, on windows XP, causes DrRacket to crash (after 20 minutes, on my machine). This appears to be repeatable on my machine. I tested with No debugging or profiling, don't Preserve stacktrace, and

Re: [racket-dev] DrRacket crash

2011-04-18 Thread Robby Findler
The limits in the DrRacket executable are not the same as the limits that you might expect from just looking at the amount of memory you have on that machine and, judging from a quick look at the program, it seems to be using a lot of memory. So, I'd suggest you either lower the memory limit or

Re: [racket-dev] exact nonnegative integers as sequences?

2011-04-18 Thread Eli Barzilay
9 minutes ago, Matthew Flatt wrote: Thanks for the clarifications, and I now agree that it's not about genericity. I think it's about scripts to programs, though. In a script, not having to type `(in-range )' or `(in-list )' feels worthwhile. You make a good point that those

Re: [racket-dev] exact nonnegative integers as sequences?

2011-04-18 Thread Eli Barzilay
Three minutes ago, Robby Findler wrote: On Mon, Apr 18, 2011 at 9:59 AM, Eli Barzilay e...@barzilay.org wrote: 9 minutes ago, Matthew Flatt wrote: Thanks for the clarifications, and I now agree that it's not about genericity. I think it's about scripts to programs, though. In a script,

Re: [racket-dev] exact nonnegative integers as sequences?

2011-04-18 Thread Matthew Flatt
At Mon, 18 Apr 2011 11:04:18 -0400, Eli Barzilay wrote: An hour and a half ago, Matthew Flatt wrote: I often write (for ([i (in-range N)]) ...) In cases where the loop overhead is not significant (i.e., I don't care whether the compiler can tell that I'm iterating through

Re: [racket-dev] exact nonnegative integers as sequences?

2011-04-18 Thread Robby Findler
FWIW, it would make sense to me if TR's regexp-match function accepted only regexps in the first argument (ditto for Racket and then Scracket could take strings (which of course are hashes mapping integers to chars)). Robby On Mon, Apr 18, 2011 at 10:09 AM, Eli Barzilay e...@barzilay.org wrote:

Re: [racket-dev] exact nonnegative integers as sequences?

2011-04-18 Thread Eli Barzilay
Two minutes ago, Robby Findler wrote: FWIW, it would make sense to me if TR's regexp-match function accepted only regexps in the first argument (ditto for Racket and then Scracket could take strings (which of course are hashes mapping integers to chars)). I think that Sam's usual policy for

Re: [racket-dev] exact nonnegative integers as sequences?

2011-04-18 Thread Robby Findler
On Mon, Apr 18, 2011 at 10:18 AM, Eli Barzilay e...@barzilay.org wrote: Two minutes ago, Robby Findler wrote: FWIW, it would make sense to me if TR's regexp-match function accepted only regexps in the first argument (ditto for Racket and then Scracket could take strings (which of course are

Re: [racket-dev] DrRacket crash

2011-04-18 Thread Pierpaolo Bernardi
On Mon, Apr 18, 2011 at 16:49, Pierpaolo Bernardi olopie...@gmail.com wrote:  And there's plenty of free ram when it happens. To be more precise, I ran the test once more: the machine has 2 GB of RAM, DrRacket at the moment of the crash uses about 900 MB, and there are more than 300 MB of

Re: [racket-dev] exact nonnegative integers as sequences?

2011-04-18 Thread Shriram Krishnamurthi
Which also raises an idea: now that TR is getting going, maybe we should have another step on this scripts-to-programs slope that is _lower_ than Racket. A language where we really only have one single datatype and everything just works on it, hashes being the obvious one (altho we probably

Re: [racket-dev] [plt] Push #22468: master branch updated

2011-04-18 Thread Eli Barzilay
30 minutes ago, ro...@racket-lang.org wrote: 100b4d3 Robby Findler ro...@racket-lang.org 2011-04-18 10:31 : | make the close icon clicky thingy not grab the focus | closes PR 10380 : M collects/mrlib/close-icon.rkt |2 +- So how about including both of these? -- ((lambda

Re: [racket-dev] exact nonnegative integers as sequences?

2011-04-18 Thread Eli Barzilay
50 minutes ago, Robby Findler wrote: On Mon, Apr 18, 2011 at 10:18 AM, Eli Barzilay e...@barzilay.org wrote: As for Scratchit (obviously the right spelling), it does sound like a good idea, but the nice thing about the untyped - TR route is that you get to keep your code, whereas a

Re: [racket-dev] [plt] Push #22468: master branch updated

2011-04-18 Thread Eli Barzilay
About a minute ago, Eli Barzilay wrote: 30 minutes ago, ro...@racket-lang.org wrote: 100b4d3 Robby Findler ro...@racket-lang.org 2011-04-18 10:31 : | make the close icon clicky thingy not grab the focus | closes PR 10380 : M collects/mrlib/close-icon.rkt |2 +- So how about

Re: [racket-dev] exact nonnegative integers as sequences?

2011-04-18 Thread Robby Findler
I dunno. Do some search again-ing? On Mon, Apr 18, 2011 at 11:06 AM, Eli Barzilay e...@barzilay.org wrote: 50 minutes ago, Robby Findler wrote: On Mon, Apr 18, 2011 at 10:18 AM, Eli Barzilay e...@barzilay.org wrote: As for Scratchit (obviously the right spelling), it does sound like a good

Re: [racket-dev] exact nonnegative integers as sequences?

2011-04-18 Thread Matthias Felleisen
1. Racket should obviously use S-expressions as the one-and-only data structure. That's where we come from, and we're different that way. 2. I played with the idea of gluing code like that together some 10 years ago. The idea was to glue together units (no modules yet) where on one side you

Re: [racket-dev] DrRacket crash

2011-04-18 Thread Stephen Chang
I dont have any insight into the crashing, but fwiw, I ran your program on two machines and both completed. The first machine has windows7 and 12gb ram and the second is xp and has 2gb (and pretty much took all day to complete). I ran both times with unlimited memory in drracket. Here is the