Showing content from http://mail.python.org/pipermail/python-dev/attachments/20120416/c7f047eb/attachment.html below:
<br><br><div class="gmail_quote">On Mon, Apr 16, 2012 at 12:31, Antoine Pitrou <span dir="ltr"><<a href="mailto:solipsis@pitrou.net">solipsis@pitrou.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On Mon, 16 Apr 2012 12:15:16 -0400<br>
"R. David Murray" <<a href="mailto:rdmurray@bitdance.com">rdmurray@bitdance.com</a>> wrote:<br>
><br>
> I don't see how depending on Cython is better than depending on having<br>
> an existing Python. Â If the only benefit is semi-readable code, surely<br>
> we do have source code for the pre-frozen module, and it is just a matter<br>
> of convincing hg that the bytecode is binary, not text?<br>
><br>
> Brett's earlier thought of compiling from source as a *fallback* makes<br>
> sense to me. Â I'd rather not add overhead to startup that we can avoid.<br>
<br></div></blockquote><div><br></div><div>In reply to David, one trick with this, though, is that frozen modules don't store the magic number of the bytecode, so that would need to change in order to make this fully feasible.</div>
<div>Â </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
</div>Compiling from source at which point, though?<br></blockquote><div><br></div><div>At startup of the interpreter.</div><div>Â </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
In essence, that would mean reimplement Python/freeze_importlib.py in C?<br>
We could even compile it to a separate executable that gets built<br>
before the Python executable (like pgen) :-)<br></blockquote><div><br></div><div>So a mini Python that just knew how to compile to bytecode and nothing more?</div><div><br></div><div>-Brett</div><div>Â </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Regards<br>
<span class="HOEnZb"><font color="#888888"><br>
Antoine.<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
<br>
_______________________________________________<br>
Python-Dev mailing list<br>
<a href="mailto:Python-Dev@python.org">Python-Dev@python.org</a><br>
<a href="http://mail.python.org/mailman/listinfo/python-dev" target="_blank">http://mail.python.org/mailman/listinfo/python-dev</a><br>
Unsubscribe: <a href="http://mail.python.org/mailman/options/python-dev/brett%40python.org" target="_blank">http://mail.python.org/mailman/options/python-dev/brett%40python.org</a><br>
</div></div></blockquote></div><br>
RetroSearch is an open source project built by @garambo
| Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4