Re: [racket] Onlisp's condlet macro in Racket

2013-01-02 Thread Matthias Felleisen
On Jan 2, 2013, at 5:46 PM, Sean Kanaley wrote: > What makes you say condlet is questionable? Are there built in racket > primitives or library extensions that achieve similar goals? It is just a > bad way to program, perhaps because of "randomly" bound nulls? (condlet ((false (x 0))

Re: [racket] Onlisp's condlet macro in Racket

2013-01-02 Thread Sean Kanaley
Thanks all for the help. Stephan: Good point about let*--I should've thought of it. Depending on how sufficiently-smart (tm) Racket is, is it not very slightly slower to create more bindings at run time (I suppose it could analyze bindings not used or immediately shadowed and drop them)? I'm no

Re: [racket] Onlisp's condlet macro in Racket

2013-01-02 Thread Matthias Felleisen
I meant to rewrite with syntax-parse before emailing out to show error checking. Out of time. On Jan 2, 2013, at 11:37 AM, Robby Findler wrote: > > > > On Wed, Jan 2, 2013 at 10:33 AM, Matthias Felleisen > wrote: > > Sean, it took me a while to figure out condlet but here is how a Racke

Re: [racket] Onlisp's condlet macro in Racket

2013-01-02 Thread Robby Findler
On Wed, Jan 2, 2013 at 10:33 AM, Matthias Felleisen wrote: > > Sean, it took me a while to figure out condlet but here is how a Racketeer > would write this (questionable) macro: > > (define-syntax (condlet stx) > (syntax-case stx () > [(condlet ((c (x e) ...) ...) body ...) > #'(cond >

Re: [racket] Onlisp's condlet macro in Racket

2013-01-02 Thread Vincent St-Amour
At Tue, 1 Jan 2013 17:59:21 -0500, Sean Kanaley wrote: > While I've ultimately succeeded in having it return the correct output for > a sample input, I'm not positive it's correct in general and I *am *positive > it's written poorly, as I don't fully understand both syntax-case and > syntax objects

Re: [racket] Onlisp's condlet macro in Racket

2013-01-02 Thread Matthias Felleisen
Sean, it took me a while to figure out condlet but here is how a Racketeer would write this (questionable) macro: (define-syntax (condlet stx) (syntax-case stx () [(condlet ((c (x e) ...) ...) body ...) #'(cond [c (let* ((x '()) ... ...) (let ((x e) ...)

Re: [racket] editor%

2013-01-02 Thread Yvan Godin
2013/1/2 Robby Findler > The text% class is not really designed with large files in mind, but that > does sound suspiciously slow. Can you perhaps post the code you use to load > the file so we can double check it? > > Are you just doing: > #lang racket/gui > (define t (new text%)) > (time (send

Re: [racket] editor%

2013-01-02 Thread Robby Findler
The text% class is not really designed with large files in mind, but that does sound suspiciously slow. Can you perhaps post the code you use to load the file so we can double check it? Are you just doing: #lang racket/gui (define t (new text%)) (time (send t load-file ".../path/to/the/large/file

[racket] editor%

2013-01-02 Thread Yvan Godin
Hello I have wrote little program with editor-canvas% but it is terrific slow for big text log file loading. So my question is, Why is the Racket Editor (DrRacket or mred/edit demo) so slow when loading big text file (over 1.5Mo) even for non colorized text? Scite ou Geany or Java Eclipse load my

[racket] Onlisp's condlet macro in Racket

2013-01-02 Thread Sean Kanaley
While I've ultimately succeeded in having it return the correct output for a sample input, I'm not positive it's correct in general and I *am *positive it's written poorly, as I don't fully understand both syntax-case and syntax objects vs. datums. If someone could look it over and provide a more

[racket] bad video link on RacketCon

2013-01-02 Thread Yvan Godin
Hello I don't know if this is the good list for this request but I wanted to see Distributed places video, unfortunately seem there is a mismatch with the Honu one. 1:50–2:00 Kevin Tew Distributed Places [slides] [video]