[racket] runtime-path + dynamic-require ?

From: Laurent (laurent.orseau at gmail.com)
Date: Fri Sep 10 15:29:25 EDT 2010

On Fri, Sep 10, 2010 at 19:01, Matthew Flatt <mflatt at cs.utah.edu> wrote:

> I've been planning to add something like `define-runtime-module-path'
> that does not require the module but that causes all of its
> dependencies to be included in an executable. I'll move that up on my
> list of things to do.
>

Excellent!
May I ask you to inform me when/if that is done?
Thanks a lot, thank you all for your answers.
Laurent



>
> At Fri, 10 Sep 2010 11:02:59 -0500, Robby Findler wrote:
> > DrRacket does not, that's right. I think you'd have to do something to
> > tell your distribution packer about the dynamically required files
> > from the outside, I'm sorry to say.
> >
> > AT least I don't see a better way, but maybe others do.
> >
> > Robby
> >
> > On Fri, Sep 10, 2010 at 10:41 AM, Laurent <laurent.orseau at gmail.com>
> wrote:
> > >
> > >
> > > On Fri, Sep 10, 2010 at 17:38, Robby Findler <
> robby at eecs.northwestern.edu>
> > > wrote:
> > >>
> > >> On Fri, Sep 10, 2010 at 10:18 AM, Laurent <laurent.orseau at gmail.com>
> > >> wrote:
> > >> >
> > >> >
> > >> > On Fri, Sep 10, 2010 at 17:06, Laurent <laurent.orseau at gmail.com>
> wrote:
> > >> >>
> > >> >>
> > >> >> On Fri, Sep 10, 2010 at 16:43, Sam Tobin-Hochstadt <
> samth at ccs.neu.edu>
> > >> >> wrote:
> > >> >>>
> > >> >>> On Fri, Sep 10, 2010 at 10:34 AM, Laurent <
> laurent.orseau at gmail.com>
> > >> >>> wrote:
> > >> >>> >
> > >> >>> > So now, how do I make things work with `dynamic-require' ?
> > >> >>> > Do all paths need to be defined as runtime-paths in my
> "splash.rkt",
> > >> >>> > to use only normal relative paths in dynamically required files?
> > >> >>> > Or can I get completely rid of runtime-path?
> > >> >>>
> > >> >>> I believe that you should add:
> > >> >>>
> > >> >>> (define-runtime-module-path name require-path)
> > >> >>>
> > >> >
> > >> > One caveat though:  since such modules sub-dependencies are not
> "files"
> > >> > anymore,
> > >> > framework/splash won't recognize them, and then gauge in the
> > >> > splashscreen
> > >> > will not
> > >> > animate smoothly but will be binary.
> > >>
> > >> I think the splash doesn't animate anymore because the files are
> > >> already loaded by define-runtime-module-path.
> > >>
> > >
> > > Is there a way around this?
> > >
> > > Or does this mean DrRacket does not use define-runtime-module-path?
> > >
> > >
> > >
> > _________________________________________________
> >   For list-related administrative tasks:
> >   http://lists.racket-lang.org/listinfo/users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20100910/0c0aedaa/attachment.html>

Posted on the users mailing list.