At Mon, 12 Feb 2018 15:55:44 +0300, Dmitry Pavlov wrote:
> I measure the time taken to execute a program in two different ways:
> 1. raco make <myprogram>; time racket <myprogram>
> 2. raco make my-runner.rkt; raco make <myprogram>; time racket my-runner.rkt
> To load it dynamically in my-runner.rkt, I use the following function
> kindly provided by Matthew Flatt a few years ago on this mailing list:
> (define (require-input-port p [name (gensym)])
> (define module-name (make-resolved-module-path name))
> (parameterize ([current-module-declare-name module-name])
> (eval-syntax (check-module-form ; ensures that `module` is bound
> (lambda ()
> (read-syntax (object-name p) p)))
> (dynamic-require module-name #f))
I'm not clear on why you're using `require-input-port` here instead of
`dyanmic-require` with <myprogram>'s path. Does the port `p` contain
the source text for <myprogram>, or does it contain the bytecode from
the ".zo" file created by `raco make <myprogram>?
You received this message because you are subscribed to the Google Groups
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
For more options, visit https://groups.google.com/d/optout.