Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Python: Dev
Re: importlib is now bootstrapped (and what that means)
 

Index | Next | Previous | View Flat


rdmurray at bitdance

Apr 16, 2012, 9:15 AM


Views: 599
Permalink
Re: importlib is now bootstrapped (and what that means) [In reply to]

On Mon, 16 Apr 2012 11:21:34 -0400, Brett Cannon <brett [at] python> wrote:
> On Mon, Apr 16, 2012 at 10:07, "Martin v. Löwis" <martin [at] v> wrote:
>
> > > We have other instances of this (e.g. the Objects/typeslots.inc file
> > > is generated and checked in), but in the case of importlib, we have
> > > to use the ./python binary for freezing to avoid bytecode
> > > incompatibilities, which obviously is a problem if ./python isn't
> > > built yet.
> >
> > As for dependencies on byte code: we could consider using Cython instead
> > of freeze (not sure whether Cython would build the bootstrap correctly;
> > it may need to be fixed first). With that, we would get semi-readable
> > source code, which should also play more nicely with hg diffs. On the
> > down side, we would depend on Cython for evolving .
> >
>
> We could also just store the raw source code and use that if we are all
> willing to pay the performance cost of parsing and compiling the code at
> every startup.

I don't see how depending on Cython is better than depending on having
an existing Python. If the only benefit is semi-readable code, surely
we do have source code for the pre-frozen module, and it is just a matter
of convincing hg that the bytecode is binary, not text?

Brett's earlier thought of compiling from source as a *fallback* makes
sense to me. I'd rather not add overhead to startup that we can avoid.

--David

Subject User Time
importlib is now bootstrapped (and what that means) brett at python Apr 14, 2012, 11:12 AM
    Re: importlib is now bootstrapped (and what that means) g.brandl at gmx Apr 14, 2012, 12:37 PM
        Re: importlib is now bootstrapped (and what that means) martin at v Apr 16, 2012, 7:07 AM
            Re: importlib is now bootstrapped (and what that means) brett at python Apr 16, 2012, 8:21 AM
            Re: importlib is now bootstrapped (and what that means) stefan_ml at behnel Apr 16, 2012, 12:17 PM
                Re: importlib is now bootstrapped (and what that means) amauryfa at gmail Apr 16, 2012, 1:43 PM
    Re: importlib is now bootstrapped (and what that means) stefan_ml at behnel Apr 16, 2012, 12:54 AM
        Re: importlib is now bootstrapped (and what that means) solipsis at pitrou Apr 16, 2012, 4:13 AM
            Re: importlib is now bootstrapped (and what that means) stefan_ml at behnel Apr 16, 2012, 4:49 AM
    Re: importlib is now bootstrapped (and what that means) rdmurray at bitdance Apr 16, 2012, 9:15 AM
        Re: importlib is now bootstrapped (and what that means) solipsis at pitrou Apr 16, 2012, 9:31 AM
            Re: importlib is now bootstrapped (and what that means) brett at python Apr 16, 2012, 9:40 AM
        Re: importlib is now bootstrapped (and what that means) martin at v Apr 16, 2012, 10:04 AM
            Re: importlib is now bootstrapped (and what that means) brett at python Apr 16, 2012, 10:32 AM
        Re: importlib is now bootstrapped (and what that means) g.brandl at gmx Apr 16, 2012, 4:11 PM
            Re: importlib is now bootstrapped (and what that means) solipsis at pitrou Apr 16, 2012, 5:27 PM
                Re: importlib is now bootstrapped (and what that means) brett at python Apr 16, 2012, 5:41 PM
                Re: importlib is now bootstrapped (and what that means) stefan_ml at behnel Apr 16, 2012, 10:12 PM
            Re: importlib is now bootstrapped (and what that means) rdmurray at bitdance Apr 17, 2012, 5:18 AM
    Re: importlib is now bootstrapped (and what that means) martin at v Apr 16, 2012, 10:08 AM
        Re: importlib is now bootstrapped (and what that means) brett at python Apr 16, 2012, 10:33 AM
    Re: importlib is now bootstrapped (and what that means) solipsis at pitrou Apr 16, 2012, 10:44 AM
        Re: importlib is now bootstrapped (and what that means) barry at python Apr 16, 2012, 10:51 AM
            Re: importlib is now bootstrapped (and what that means) rdmurray at bitdance Apr 16, 2012, 11:38 AM
        Re: importlib is now bootstrapped (and what that means) martin at v Apr 16, 2012, 2:12 PM
    Re: importlib is now bootstrapped (and what that means) ericsnowcurrently at gmail Apr 16, 2012, 10:45 AM
    Re: importlib is now bootstrapped (and what that means) stefan_ml at behnel Apr 16, 2012, 10:05 PM
    Re: importlib is now bootstrapped (and what that means) solipsis at pitrou Apr 17, 2012, 2:52 AM
        Re: importlib is now bootstrapped (and what that means) eric at trueblade Apr 17, 2012, 3:43 AM
            Re: importlib is now bootstrapped (and what that means) brett at python Apr 17, 2012, 8:41 AM
    Re: importlib is now bootstrapped (and what that means) solipsis at pitrou Apr 17, 2012, 10:39 AM
        Re: importlib is now bootstrapped (and what that means) brett at python Apr 17, 2012, 12:52 PM
    Re: importlib is now bootstrapped (and what that means) eric at trueblade Apr 20, 2012, 6:54 AM
        Re: importlib is now bootstrapped (and what that means) brett at python Apr 20, 2012, 7:59 AM
        Re: importlib is now bootstrapped (and what that means) ericsnowcurrently at gmail Apr 20, 2012, 8:02 AM
    Re: importlib is now bootstrapped (and what that means) brett at python Apr 20, 2012, 8:04 AM
    Re: importlib is now bootstrapped (and what that means) eric at trueblade Apr 20, 2012, 8:07 AM

  Index | Next | Previous | View Flat
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.