develooper Front page | perl.perl6.users | Postings from July 2020

Re: Any sign of a fix for the 10 second compile time?

Thread Previous | Thread Next
From:
Tom Browder
Date:
July 31, 2020 23:41
Subject:
Re: Any sign of a fix for the 10 second compile time?
Message ID:
CAFMGiz9qRnxjwa1rED7kWhWB2V6tBRCrXuFCFkkBUMki_07-AA@mail.gmail.com
On Fri, Jul 31, 2020 at 5:38 PM ToddAndMargo via perl6-users
<perl6-users@perl.org> wrote:
> >> Todd, a couple of questions:
> >> 1. In your modules that change all the time, do have "use lib ...;"
> >> statements in any of them?
> >
> > No.  If I do, they crash
>
> # use lib '/home/linuxutil/p6lib';   # may not be precompiled; calling
> program must take care of this


Just for "-O fun", set up your modules as if they were to be public,
i.e., add a META6.jso for the module collection.
The collection being "/path/to/MyModules" and in MyModules create:

     META6.json # create it and add all your modules in it just like
you were going to publish the whole mess.
     ./lib/
        # my modules as moved or duped from "/home/linuxutil/p6lib"
     t/
        00-meta-test.t # some basic test to check your META6.json file

Then, in dir "/path/to/MyModules" try:

    $ zef install .  # <== that's a DOT/PERIOD, i.e., the current directory

If that works, then you should be able to "use" them from your program.

-Tom

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About