Re: [racket] Program works OK in DrRacket, not as an executable

2012-07-15 Thread Jussi Salmela
On Mon, Jul 16, 2012 at 5:13 AM, Robby Findler wrote: > As a clarification question: have executables created with old versions > stopped working, or is it only executables created with the pre-release > version that fail to work? > > Robby The exe versions built with Racket versions 5.1, 5.2 and

Re: [racket] Program works OK in DrRacket, not as an executable

2012-07-15 Thread Robby Findler
As a clarification question: have executables created with old versions stopped working, or is it only executables created with the pre-release version that fail to work? Robby On Sunday, July 15, 2012, Jussi Salmela wrote: > Versions: Win 7 & Racket 5.3.0.13--2012-07-05(467bde3/a) > > I have a

Re: [racket] Program works OK in DrRacket, not as an executable

2012-07-15 Thread Robby Findler
Thanks. I believe this is the same as the test suite failure we're seeing in DrDr: http://drdr.racket-lang.org/24901/collects/tests/drracket/teaching-lang-executable-creation.rkt so we're aware of the problem and hope to have fix before the next release. Robby On Sun, Jul 15, 2012 at 1:19 PM, J

[racket] Program works OK in DrRacket, not as an executable

2012-07-15 Thread Jussi Salmela
Versions: Win 7 & Racket 5.3.0.13--2012-07-05(467bde3/a) I have a program starting like this: #lang racket/gui (require 2htdp/batch-io) (require racket/mpair) (require srfi/13) ;;; Jussi Salmela, http://www.saunalahti.fi/jussalme ;;; ;;; This program produces graphs for blood pressure monitor (

Re: [racket] Some struct questions

2012-07-15 Thread Adolfo Pérez Álvarez
Hi, Section 4 of the Racket reference says this about `define-struct': """ Like struct, except that the syntax for supplying a super-id is different, and a constructor-id that has a make- prefix on id is implicitly supplied via #:extra-constructor-name. This form is provided for backwards compat

[racket] Some struct questions

2012-07-15 Thread Harry Spier
1) In section 8 of the Racket reference there is this example: --- Examples: (define-struct tree (val left right)) > (match (make-tree 0 (make-tree 1 #f #f) #f) [(tree a (tree b _ _) _) (list a b)]) '(0 1) -- but I wasn

[racket] Performance of delay/force vs lambda/apply

2012-07-15 Thread Adolfo Pérez Álvarez
Hi everyone, While playing around with delay/force I got some unexpected results. It seems that the performance of delay/force is far worse than that of an equivalent construction based on lambda/apply. For example, this implementation of the tak function: (define-syntax-rule (mdelay expr) (dela