Re: [racket] Strange difference between (define (for-syntax)) and (define-for-syntax)

2012-08-30 Thread Danny Yoo
> >> Is require-for-syntax even a form in #lang racket? I thought it doesn't >> exist outside the mzscheme legacy language, at least according to >> >> http://docs.racket-lang.org/mzscheme/Old_Syntactic_Forms.html#(form._((lib._mzscheme/main..rkt)._require-for-syntax)) > > I agree with you. It is

Re: [racket] wikipedia on IDE's

2012-08-30 Thread Ramakrishnan Muthukrishnan
On Fri, Aug 31, 2012 at 10:21 AM, John Clements wrote: > > On Aug 30, 2012, at 9:26 PM, Ramakrishnan Muthukrishnan wrote: > >> On Fri, Aug 31, 2012 at 9:25 AM, Ramakrishnan Muthukrishnan >> wrote: >>> On Fri, Aug 31, 2012 at 3:22 AM, John Clements >>> wrote: On Aug 30, 2012, at 2:43 PM

Re: [racket] wikipedia on IDE's

2012-08-30 Thread John Clements
On Aug 30, 2012, at 9:26 PM, Ramakrishnan Muthukrishnan wrote: > On Fri, Aug 31, 2012 at 9:25 AM, Ramakrishnan Muthukrishnan > wrote: >> On Fri, Aug 31, 2012 at 3:22 AM, John Clements >> wrote: >>> >>> On Aug 30, 2012, at 2:43 PM, Eduardo Bellani wrote: >>> What holds me personally to em

Re: [racket] wikipedia on IDE's

2012-08-30 Thread Ramakrishnan Muthukrishnan
On Fri, Aug 31, 2012 at 9:25 AM, Ramakrishnan Muthukrishnan wrote: > On Fri, Aug 31, 2012 at 3:22 AM, John Clements > wrote: >> >> On Aug 30, 2012, at 2:43 PM, Eduardo Bellani wrote: >> >>> What holds me personally to emacs is paredit for now. DR is rocking these >>> days, >>> specially debuggin

Re: [racket] wikipedia on IDE's

2012-08-30 Thread John Clements
On Aug 30, 2012, at 8:55 PM, Ramakrishnan Muthukrishnan wrote: > On Fri, Aug 31, 2012 at 3:22 AM, John Clements > wrote: >> >> On Aug 30, 2012, at 2:43 PM, Eduardo Bellani wrote: >> >>> What holds me personally to emacs is paredit for now. DR is rocking these >>> days, >>> specially debugging

Re: [racket] wikipedia on IDE's

2012-08-30 Thread Ramakrishnan Muthukrishnan
On Fri, Aug 31, 2012 at 3:22 AM, John Clements wrote: > > On Aug 30, 2012, at 2:43 PM, Eduardo Bellani wrote: > >> What holds me personally to emacs is paredit for now. DR is rocking these >> days, >> specially debugging wise. > > Really? We've got most of what paredit offers, including mapping r

Re: [racket] call-with-composable-continuation and DrRacket

2012-08-30 Thread Harry Spier
OK I think I grok it. When I write in the definitions window of DrRacket #lang racket (+ 100 (call-with-composable-continuation (λ (k) (+ (k 1) 1000 what actually gets executed is at least: (call-with-values (+ 100 (call-with-composable-continuation (λ (k) (+ (k 1) 1000

Re: [racket] wikipedia on IDE's

2012-08-30 Thread Asumu Takikawa
On 2012-08-30 15:19:21 -0700, John Clements wrote: > Come to think of it, I'm not sure how commenting-out works in paredit. > What if I insert a semicolon that comments out several close parens, > and no open parens? I would try it myself, but it looks like paredit > is something that needs to be i

Re: [racket] My new Racket blog....

2012-08-30 Thread Joe Gilray
Hi Jay, Since your post, I've been reading and thoroughly enjoying your blog... thank you! Some newbie questions and comments: 1) I clicked the "download" button on your boggle posting and read it into DrRacket (5.3). When I hit run I get: ..\..\..\Program Files\Racket\collects\mred\private\sn

Re: [racket] wikipedia on IDE's

2012-08-30 Thread Neil Van Dyke
John Clements wrote at 08/30/2012 06:19 PM: My recollection is that DivaScheme wasn't well-integrated into the existing editor, and relied on re-parsing the input after each keystroke. I think that if you wanted something more like paredit, it might simply suffice to add bindings for the "clo

Re: [racket] rackunit not in textual?

2012-08-30 Thread Ryan Culpepper
On 08/30/2012 04:53 PM, J G Cho wrote: I am greeted by ... collection not found collection: "rackuint" in my v5.3 (textual). Is it because rackunit relies/depends on some graphics/window? Is there an alternative? FWIW, rackunit (the non-gui parts) will be included in the textual distributi

Re: [racket] call-with-composable-continuation and DrRacket

2012-08-30 Thread Galler
call-with-continuation-prompt is your friend in the definitions window (call-with-continuation-prompt (λ _ (+ 100 (call-with-composable-continuation (λ (k) (+ 1000 (k 1

Re: [racket] wikipedia on IDE's

2012-08-30 Thread John Clements
On Aug 30, 2012, at 3:04 PM, Neil Van Dyke wrote: > Eduardo Bellani wrote at 08/30/2012 06:00 PM: >> Paredit is more structured than what I can get out of emacs. It does >> not allow me >> to get my sexps unbalanced. For instance, to close and align all the >> parens I just go on pressing ')' unt

Re: [racket] call-with-composable-continuation and DrRacket

2012-08-30 Thread Matthias Felleisen
On Aug 30, 2012, at 5:48 PM, Harry Spier wrote: > When I run this in the definitions window of DrRacket > #lang racket > (+ 100 > (call-with-composable-continuation >(λ (k) (+ 1000 (k 1) > > it prints > 101 > 1201 > in the interactions window. > Why doesn't it just print 1201 ? As Jo

Re: [racket] wikipedia on IDE's

2012-08-30 Thread Neil Van Dyke
Eduardo Bellani wrote at 08/30/2012 06:00 PM: Paredit is more structured than what I can get out of emacs. It does not allow me to get my sexps unbalanced. For instance, to close and align all the parens I just go on pressing ')' until I hit the end of the function I'm working on. There was

Re: [racket] wikipedia on IDE's

2012-08-30 Thread Eduardo Bellani
*get out of DR On Thu, Aug 30, 2012 at 7:00 PM, Eduardo Bellani wrote: > Paredit is more structured than what I can get out of emacs. It does > not allow me > to get my sexps unbalanced. For instance, to close and align all the > parens I just go on pressing ')' until I > hit the end of the funct

Re: [racket] wikipedia on IDE's

2012-08-30 Thread Eduardo Bellani
Paredit is more structured than what I can get out of emacs. It does not allow me to get my sexps unbalanced. For instance, to close and align all the parens I just go on pressing ')' until I hit the end of the function I'm working on. On Thu, Aug 30, 2012 at 6:54 PM, Ray Racine wrote: > I've ena

Re: [racket] wikipedia on IDE's

2012-08-30 Thread Ray Racine
I've enabled auto parens and square with highlight et al in DR and use the sexp movement key combos and I'm pretty happy with it. I was never a heavy user of paredit in emacs, though an admirer. On Thu, Aug 30, 2012 at 5:43 PM, Eduardo Bellani wrote: > What holds me personally to emacs is pared

Re: [racket] call-with-composable-continuation and DrRacket

2012-08-30 Thread John Clements
On Aug 30, 2012, at 2:48 PM, Harry Spier wrote: > When I run this in the definitions window of DrRacket > #lang racket > (+ 100 > (call-with-composable-continuation >(λ (k) (+ 1000 (k 1) > > it prints > 101 > 1201 > in the interactions window. > Why doesn't it just print 1201 ? > > Ex

Re: [racket] wikipedia on IDE's

2012-08-30 Thread John Clements
On Aug 30, 2012, at 2:43 PM, Eduardo Bellani wrote: > What holds me personally to emacs is paredit for now. DR is rocking these > days, > specially debugging wise. Really? We've got most of what paredit offers, including mapping raw left-paren to matched-pair (this option is currently called "

[racket] call-with-composable-continuation and DrRacket

2012-08-30 Thread Harry Spier
When I run this in the definitions window of DrRacket #lang racket (+ 100 (call-with-composable-continuation (λ (k) (+ 1000 (k 1) it prints 101 1201 in the interactions window. Why doesn't it just print 1201 ? Executing it in the interactions window gives the expected result of 1201.

Re: [racket] wikipedia on IDE's

2012-08-30 Thread Eduardo Bellani
What holds me personally to emacs is paredit for now. DR is rocking these days, specially debugging wise. On Thu, Aug 30, 2012 at 6:27 PM, Ray Racine wrote: > FWIW, I've used the high quality Quack and then the glorious Geiser for > several years. During this same period, on occasion I'd give DR

Re: [racket] wikipedia on IDE's

2012-08-30 Thread Ray Racine
FWIW, I've used the high quality Quack and then the glorious Geiser for several years. During this same period, on occasion I'd give DR a trial only to quickly retreat. That is no longer the case as of several months ago. I've switched solely to DR and haven't mulled for a moment about reversing

Re: [racket] rackunit not in textual?

2012-08-30 Thread Neil Van Dyke
J G Cho wrote at 08/30/2012 04:53 PM: ... collection not found collection: "rackuint" in my v5.3 (textual). Is it because rackunit relies/depends on some graphics/window? If it does, I assume that this could be changed, and perhaps should be. Having a non-GUI option for running test sui

[racket] rackunit not in textual?

2012-08-30 Thread J G Cho
I am greeted by ... collection not found collection: "rackuint" in my v5.3 (textual). Is it because rackunit relies/depends on some graphics/window? Is there an alternative? jGc Racket Users list: http://lists.racket-lang.org/users

Re: [racket] wikipedia on IDE's

2012-08-30 Thread Neil Van Dyke
I moved Geiser to before Quack in that table, since I understand Geiser is fancier as an IDE (and can use Quack for the editing part). But hopefully the forthcoming Meow will give Geiser a run for its money in the Emacs fanciness department. :) Neil Racket Users list:

Re: [racket] wikipedia on IDE's

2012-08-30 Thread Danny Yoo
On Thu, Aug 30, 2012 at 5:21 AM, Matthias Felleisen wrote: > > Thanks! I guess all we need now is a WeScheme link -- Matthias Ok, I've added a WeScheme page with some content. Racket Users list: http://lists.racket-lang.org/users

Re: [racket] 5.3's "mzc optimizer" log-debug, and log "facility" in general

2012-08-30 Thread Robby Findler
(Sorry guys, I should have read ahead in my mailbox. Please disregard.) On Thu, Aug 30, 2012 at 11:52 AM, Robby Findler wrote: > On Thu, Aug 30, 2012 at 9:32 AM, Greg Hendershott > wrote: >> Thanks, Robby. >> >> Do you mean I could do something like this? >> >> (define (enable-log-output level)

Re: [racket] 5.3's "mzc optimizer" log-debug, and log "facility" in general

2012-08-30 Thread Robby Findler
On Thu, Aug 30, 2012 at 9:32 AM, Greg Hendershott wrote: > Thanks, Robby. > > Do you mean I could do something like this? > > (define (enable-log-output level) > (let ([r (make-log-receiver (current-logger) level)]) > (thread > (lambda () >(let loop () > (match (sync r)

Re: [racket] 5.3's "mzc optimizer" log-debug, and log "facility" in general

2012-08-30 Thread Neil Van Dyke
Matthew Flatt wrote at 08/30/2012 11:28 AM: At Thu, 30 Aug 2012 10:50:01 -0400, Greg Hendershott wrote: So you can define multiple and hierarchical loggers. It seems like this is the intended way to handle something like a "facility"? It looks like we're going to add a `current-opti

Re: [racket] 5.3's "mzc optimizer" log-debug, and log "facility" in general

2012-08-30 Thread Greg Hendershott
Right, I'm not saying these log messages are bad. Because if they're bad, then I'm being evil. My http and aws collections are loaded with log-debug, at a detail of every HTTP request and response header line. Being able to do this was critical to getting it working, and keeping it there to keepin

Re: [racket] 5.3's "mzc optimizer" log-debug, and log "facility" in general

2012-08-30 Thread Matthew Flatt
At Thu, 30 Aug 2012 10:50:01 -0400, Greg Hendershott wrote: > So you can define multiple and hierarchical loggers. It seems like > this is the intended way to handle something like a "facility"? It looks like we're going to add a `current-optimization-logger' parameter to Racket, and the optimizer

Re: [racket] 5.3's "mzc optimizer" log-debug, and log "facility" in general

2012-08-30 Thread Sam Tobin-Hochstadt
On Thu, Aug 30, 2012 at 10:49 AM, Matthias Felleisen wrote: > > I conjecture that the log messages you are seeing are > intended for the optimization coach only. It is worth > our while to check into making these messages 'private'. These messages were indeed added for the optimization coach, but

Re: [racket] 5.3's "mzc optimizer" log-debug, and log "facility" in general

2012-08-30 Thread Greg Hendershott
I just looked at the "14.5 Logging" docs for the first time in a year or more. So you can define multiple and hierarchical loggers. It seems like this is the intended way to handle something like a "facility"? I'll ponder this more and see if I

Re: [racket] 5.3's "mzc optimizer" log-debug, and log "facility" in general

2012-08-30 Thread Matthias Felleisen
I conjecture that the log messages you are seeing are intended for the optimization coach only. It is worth our while to check into making these messages 'private'. -- Matthias On Aug 30, 2012, at 10:32 AM, Greg Hendershott wrote: > Thanks, Robby. > > Do you mean I could do something like t

Re: [racket] 5.3's "mzc optimizer" log-debug, and log "facility" in general

2012-08-30 Thread Greg Hendershott
Thanks, Robby. Do you mean I could do something like this? (define (enable-log-output level) (let ([r (make-log-receiver (current-logger) level)]) (thread (lambda () (let loop () (match (sync r) [(vector lvl msg v) (printf "; [~a] ~a\n"

Re: [racket] 5.3's "mzc optimizer" log-debug, and log "facility" in general

2012-08-30 Thread Robby Findler
On Thu, Aug 30, 2012 at 6:29 AM, Greg Hendershott wrote: > I have some code with copious log-debug calls. Occasionally I set > ",log debug" to see the output. > > New in 5.3, I'm seeing many dozens of outputs like the following: > > ; [debug] mzc optimizer: inlining: involving: core727 in: unpack7

Re: [racket] wikipedia on IDE's

2012-08-30 Thread Matthias Felleisen
Thanks! I guess all we need now is a WeScheme link -- Matthias On Aug 29, 2012, at 11:54 PM, Jose A. Ortega Ruiz wrote: > On Fri, Aug 24 2012, Matthias Felleisen wrote: > >> Geiser is it. Thanks. > > I've updated the details for Geiser in the Wikipedia page on IDE > comparison [0]. Thanks!

[racket] 5.3's "mzc optimizer" log-debug, and log "facility" in general

2012-08-30 Thread Greg Hendershott
I have some code with copious log-debug calls. Occasionally I set ",log debug" to see the output. New in 5.3, I'm seeing many dozens of outputs like the following: ; [debug] mzc optimizer: inlining: involving: core727 in: unpack728 in module: 's3 size: 149 threshold: 320 These are interleaved wi