<br><br><div><span class="gmail_quote">On 10/3/06, <b class="gmail_sendername">Neal Norwitz</b> <<a href="mailto:nnorwitz@gmail.com">nnorwitz@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On 10/2/06, Brett Cannon <<a href="mailto:brett@python.org">brett@python.org</a>> wrote:<br>><br>> This is why I asked for input from people on which would take less time.<br>> Almost all the answers I got was that the the C code was delicate but that
<br>> it was workable. Several people said they wished for a Python<br>> implementation, but hardly anyone said flat-out, "don't waste your time, the<br>> Python version will be faster to do".<br><br>I didn't respond mostly because I pushed this direction to begin with.
<br> That and I'm lazy. :-)</blockquote><div><br>But couldn't you be lazy in a timely fashion? <br></div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
There is a lot of string manipulation and some list manipulation that<br>is a royal pain in C and trivial in python. Caching will be much<br>easier to experiement with in Python too. The Python version will be<br>much smaller. It will take far less time to code it in Python and
<br>recode in C, than to try to get it right in C the first time. If the<br>code is fast enough, there's no reason to rewrite in C. It will<br>probably be easier to subclass a Python based version that a C based<br>version.
<br><br>> As for the bootstrapping, I am sure it is resolvable as well. There are<br>> several ways to go about it that are all tractable.<br><br>Right, I had bootstrapping with implementing xrange in Python, but it
<br>was pretty easy to resolve in the end. You might even want to use<br>part of that patch (from pythonrun.c?). There was some re-org to make<br>bootstrapping easier/possible (I don't remember exactly right now).</blockquote>
<div><br><br>OK, OK, I get the hint. I will rewrite import in Python and just make it my research work and personal project. Probably will do the initial pure Python stuff in the sandbox to really isolate it and then move it over to the pep302_phase2 branch when C code has to be changed.
<br></div><br></div>-Brett