Re: [racket-dev] shared no longer works on cons?!?

2011-10-20 Thread Shriram Krishnamurthi
Yeah, I caught that in the patch, thanks. I think it's the lesser of two evils for me right now (to export car as first, etc), and the price here is indeed very low. But thanks for the reminder, so I'm alert to it. _ For list-related administrativ

Re: [racket-dev] shared no longer works on cons?!?

2011-10-20 Thread Robby Findler
FWIW, the reason for the change to the teaching languages was so that 'first' doesn't say "car" in its error message. Robby On Thu, Oct 20, 2011 at 10:46 PM, Shriram Krishnamurthi wrote: > Thanks for the help with the patch.  But because I'm providing my own > language, I think there's a cleane

Re: [racket-dev] shared no longer works on cons?!?

2011-10-20 Thread Shriram Krishnamurthi
Thanks for the help with the patch. But because I'm providing my own language, I think there's a cleaner solution. I anyway planned to release a new version of the course language in the morning that turned on shared printing, so this would mesh nicely. Shriram __

Re: [racket-dev] shared no longer works on cons?!?

2011-10-20 Thread Ryan Culpepper
On 10/20/2011 09:24 PM, Robby Findler wrote: On Thu, Oct 20, 2011 at 10:11 PM, Ryan Culpepper wrote: Looks like it works in 5.0.2 (November 2010) but fails in 5.1 (February 2011). You're talking about in the teaching languages, right? Right, I was talking about just the teaching languages.

Re: [racket-dev] shared no longer works on cons?!?

2011-10-20 Thread Shriram Krishnamurthi
Since I'm anyway providing my own custom language, can I provide car as first and cdr as rest? Can you think of any unexpected consequences offhand that would prevent that? (The only one I can think of so far is that second and friends don't work either, so I have to provide first, second, ... te

Re: [racket-dev] shared no longer works on cons?!?

2011-10-20 Thread Robby Findler
On Thu, Oct 20, 2011 at 10:29 PM, Matthew Flatt wrote: >> Robby privately wrote to say it should be regarded as a bug. > > That is the correct behavior for `racket': [...] Just in case this was not clear from my other messages, I still consider this a bug (not in #lang racket). Our customers (li

Re: [racket-dev] shared no longer works on cons?!?

2011-10-20 Thread Robby Findler
Shriram, In case you didn't follow the implication of Ryan's message, you can the diff below to your tree and your program below will run (I tested by applying the diff to the latest git version, but I think it will still work for 5.1.3.) If you wish, you can make a .plt file that you can distr

Re: [racket-dev] shared no longer works on cons?!?

2011-10-20 Thread Matthew Flatt
At Fri, 21 Oct 2011 05:14:28 +0200, Shriram Krishnamurthi wrote: > Ryan, I noticed this seems to be a problem in full Racket as well: try > > #lang racket > > (define web-colors > (shared ([W (cons "white" G)] > [G (cons "grey" W)]) >W)) > > (rest web-colors) > > Robby privately

Re: [racket-dev] shared no longer works on cons?!?

2011-10-20 Thread Robby Findler
On Thu, Oct 20, 2011 at 10:27 PM, Ryan Culpepper wrote: > On 10/20/2011 09:14 PM, Shriram Krishnamurthi wrote: >> >> Ryan, I noticed this seems to be a problem in full Racket as well: try >> >> #lang racket >> >> (define web-colors >>  (shared ([W (cons "white" G)] >>           [G (cons "grey" W)]

Re: [racket-dev] shared no longer works on cons?!?

2011-10-20 Thread Ryan Culpepper
On 10/20/2011 09:14 PM, Shriram Krishnamurthi wrote: Ryan, I noticed this seems to be a problem in full Racket as well: try #lang racket (define web-colors (shared ([W (cons "white" G)] [G (cons "grey" W)]) W)) (rest web-colors) Robby privately wrote to say it should be regar

Re: [racket-dev] shared no longer works on cons?!?

2011-10-20 Thread Robby Findler
On Thu, Oct 20, 2011 at 10:11 PM, Ryan Culpepper wrote: > Looks like it works in 5.0.2 (November 2010) but fails in 5.1 (February > 2011). You're talking about in the teaching languages, right? In #lang racket, I see the first-produces-error behavior back to 5.0: [robby@penghu] /Applications/Rac

Re: [racket-dev] shared no longer works on cons?!?

2011-10-20 Thread Shriram Krishnamurthi
Ryan, I noticed this seems to be a problem in full Racket as well: try #lang racket (define web-colors (shared ([W (cons "white" G)] [G (cons "grey" W)]) W)) (rest web-colors) Robby privately wrote to say it should be regarded as a bug. Shriram ___

Re: [racket-dev] shared no longer works on cons?!?

2011-10-20 Thread Ryan Culpepper
Looks like it works in 5.0.2 (November 2010) but fails in 5.1 (February 2011). The ultimate problem seems to be that deinprogramm/signature/signature-unit uses first from racket/list (checks list?, ie non-cyclic) rather than mzlib/list (only checks pair?). Ryan On 10/20/2011 08:38 PM, Shri

[racket-dev] shared no longer works on cons?!?

2011-10-20 Thread Shriram Krishnamurthi
According to my class notes from last year, the following examples worked just fine in ASL: (define web-colors (shared ([W (cons "white" G)] [G (cons "grey" W)]) W)) ; Will fail with error: ; (length web-colors) (check-expect (equal? web-colors (rest web-colors)) false) (check-e

Re: [racket-dev] Pre-Release Checklist for v5.2, Second Call

2011-10-20 Thread Kathy Gray
On 20 Oct 2011, at 8:36:28, Ryan Culpepper wrote: > * Kathy Gray > - Test Engine Tests Done -Kathy _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/dev

[racket-dev] Mac OS X default build: 64-bit for 10.6, 10.7

2011-10-20 Thread Matthew Flatt
I've changed `configure' so that 64-bit mode is no longer disabled by default for Mac OS X builds. The build now uses the default mode of the compiler, which is typically 64-bit mode for Mac OS X 10.6 and 10.7. To get a 32-bit mode build when your compiler's default is 64-bit mode, configure with

[racket-dev] Pre-Release Checklist for v5.2, Second Call

2011-10-20 Thread Ryan Culpepper
Checklist items for the v5.2 release (using the v5.1.900.1 release candidate build) Search for your name to find relevant items, reply when you finish an item (please indicate which item/s is/are done). Also, if you have any commits that should have been picked, make sure that the changes are i

Re: [racket-dev] while resizing drawing into a canvas is off

2011-10-20 Thread Robby Findler
On Thu, Oct 20, 2011 at 11:34 AM, Marijn wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Hi Robby, > > On 10/20/11 18:15, Robby Findler wrote: >> Generally, the -c, -v, keybindings (and friends) >> come about via the menus, not via a keymap% object. And those >> menus come in via a fr

Re: [racket-dev] while resizing drawing into a canvas is off

2011-10-20 Thread Marijn
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Robby, On 10/20/11 18:15, Robby Findler wrote: > Generally, the -c, -v, keybindings (and friends) > come about via the menus, not via a keymap% object. And those > menus come in via a frame. I'm not sure how you're using your > library, but you mi

Re: [racket-dev] while resizing drawing into a canvas is off

2011-10-20 Thread Marijn
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 10/20/11 18:12, Matthew Flatt wrote: > At Thu, 20 Oct 2011 17:58:08 +0200, Marijn wrote: Another thing. How do you enable simple select/copy/cut/paste behavior with standard key-bindings in an editor? >>> >>> Apply `(current-text-key

Re: [racket-dev] while resizing drawing into a canvas is off

2011-10-20 Thread Robby Findler
Generally, the -c, -v, keybindings (and friends) come about via the menus, not via a keymap% object. And those menus come in via a frame. I'm not sure how you're using your library, but you might want to consider some of the mixins in the framework whose names start with "frame:". Robby On Thu, O

Re: [racket-dev] while resizing drawing into a canvas is off

2011-10-20 Thread Matthew Flatt
At Thu, 20 Oct 2011 17:58:08 +0200, Marijn wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On 10/20/11 14:53, Matthew Flatt wrote: > > At Thu, 20 Oct 2011 11:16:59 +0200, Marijn wrote: > >> Could you perhaps comment on the slowness of the cursor appearing > >> in a clicked cell? It se

Re: [racket-dev] while resizing drawing into a canvas is off

2011-10-20 Thread Marijn
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 10/20/11 14:53, Matthew Flatt wrote: > At Thu, 20 Oct 2011 11:16:59 +0200, Marijn wrote: >> Could you perhaps comment on the slowness of the cursor appearing >> in a clicked cell? It seems to have something to do with the >> timer frequency, because

Re: [racket-dev] 5.2.0.1: displayln appears to write to console from where drracket was launched

2011-10-20 Thread Sam Tobin-Hochstadt
On Thu, Oct 20, 2011 at 9:29 AM, Robby Findler wrote: > On Thu, Oct 20, 2011 at 8:25 AM, Sam Tobin-Hochstadt > wrote: >> I've certainly wanted this in the past.  Ryan came up with some tricks that >> made it easier, but I think a separate REPL that basically ran >> (begin-for-syntax (print e)) w

Re: [racket-dev] 5.2.0.1: displayln appears to write to console from where drracket was launched

2011-10-20 Thread Eli Barzilay
An hour and a half ago, Robby Findler wrote: > On Thu, Oct 20, 2011 at 2:08 AM, Eli Barzilay wrote: > > > > Well, at this point you're talking about an optimization that > > happens to be possible because of the on-line check syntax.  But I > > still think that there is too many differences betwee

Re: [racket-dev] 5.2.0.1: displayln appears to write to console from where drracket was launched

2011-10-20 Thread Robby Findler
On Thu, Oct 20, 2011 at 8:25 AM, Sam Tobin-Hochstadt wrote: > I've certainly wanted this in the past.  Ryan came up with some tricks that > made it easier, but I think a separate REPL that basically ran > (begin-for-syntax (print e)) would be a very nice addition. > > I'm also with Eli in thinking

Re: [racket-dev] 5.2.0.1: displayln appears to write to console from where drracket was launched

2011-10-20 Thread Sam Tobin-Hochstadt
I've certainly wanted this in the past. Ryan came up with some tricks that made it easier, but I think a separate REPL that basically ran (begin-for-syntax (print e)) would be a very nice addition. I'm also with Eli in thinking that this should be separate from online check syntax, unless we make

Re: [racket-dev] 5.2.0.1: displayln appears to write to console from where drracket was launched

2011-10-20 Thread Robby Findler
On Thu, Oct 20, 2011 at 8:16 AM, Matthias Felleisen wrote: > > On Oct 20, 2011, at 8:21 AM, Robby Findler wrote: > >> I also believe that we don't support these programs well as it is. > > I didn't program with closures until I experienced them in Scheme 84 in 1984. > Perhaps people haven't progra

Re: [racket-dev] 5.2.0.1: displayln appears to write to console from where drracket was launched

2011-10-20 Thread Matthias Felleisen
On Oct 20, 2011, at 8:21 AM, Robby Findler wrote: > I also believe that we don't support these programs well as it is. I didn't program with closures until I experienced them in Scheme 84 in 1984. Perhaps people haven't programmed in syntax REPLs because there aren't any. But then again, perha

Re: [racket-dev] while resizing drawing into a canvas is off

2011-10-20 Thread Matthew Flatt
At Thu, 20 Oct 2011 11:16:59 +0200, Marijn wrote: > Could you perhaps comment on the slowness of the cursor appearing in a > clicked cell? It seems to have something to do with the timer > frequency, because if I decrease the frequency the first time that the > cursor appears is also sooner after c

Re: [racket-dev] 5.2.0.1: displayln appears to write to console from where drracket was launched

2011-10-20 Thread Robby Findler
On Thu, Oct 20, 2011 at 2:08 AM, Eli Barzilay wrote: > 7 hours ago, Robby Findler wrote: >> On Wed, Oct 19, 2011 at 6:56 PM, Eli Barzilay wrote: >> > >> > But this is very different from what the online check syntax is >> > doing, and the current problem of letting the output go to the >> > conso

Re: [racket-dev] while resizing drawing into a canvas is off

2011-10-20 Thread Marijn
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Matthew, On 10/18/11 17:10, Matthew Flatt wrote: > At Tue, 18 Oct 2011 16:32:54 +0200, Marijn wrote: >> the attached program draws a grid in a canvas and paints a few of >> the cells so created. When resizing the window, the grid is also >> dynamic

Re: [racket-dev] 5.2.0.1: displayln appears to write to console from where drracket was launched

2011-10-20 Thread Eli Barzilay
7 hours ago, Robby Findler wrote: > On Wed, Oct 19, 2011 at 6:56 PM, Eli Barzilay wrote: > > > > But this is very different from what the online check syntax is > > doing, and the current problem of letting the output go to the > > console still needs to be solved.  (And IMO, it should be > > disc