<div dir="ltr"><div><div class="gmail_quote"><br class="">On Sun, Feb 24, 2013 at 8:47 PM, Alex Gaynor <span dir="ltr"><<a href="mailto:alex.gaynor@gmail.com" target="_blank">alex.gaynor@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">What you are doing will not generate any information about how fast Python can be. It will show you the speed of RPython or Cython on baremetal, these are *NOT* python.<span class=""><font color="#888888"><br>
</font></span></div><div><br></div></blockquote></div></div><div><br></div><div style>I really disapprove of this language purity stuff. If it compiles, it works. If it runs it's perfect. The idea behind this attempt is to see what can be done if one removes all possible overhead. So I would not like to go down that rabbit hole.</div>
<div><br></div>On Sun, Feb 24, 2013 at 11:14 PM, Armin Rigo <span dir="ltr"><<a href="mailto:arigo@tunes.org" target="_blank">arigo@tunes.org</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
Hi Ghitulete,<br>
<br>
So are you saying that you don't want to use CPython because it's C,<br>
and you want to try C-less alternatives, or at least things that don't<br>
use libc? Then look elsewhere. An RPython program (which is<br>
definitely something different than a Python program) is translated to<br>
C code that uses libc. Changing this would be possible, but certainly<br>
not less work than, say, changing CPython to not use the libc. Which,<br>
I seem to recall, has been done long ago in an experiment of "booting<br>
CPython".<br></blockquote><div><br></div><div style>I have never said I want to try C-less alternatives, but as to my knowledge the only common ground between CPython and C, si that part of CPython is written in C, as opposed to generating C code. What I need is to get the equivalent C code of a python program. CPython on the other hand would need to have a VM to run the bytecode in, which I not plan on doing.</div>
</div><div class="gmail_extra"><br></div>On Sun, Feb 24, 2013 at 9:17 PM, Leonardo Santagada <span dir="ltr"><<a href="mailto:santagada@gmail.com" target="_blank">santagada@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div dir="ltr"><div><div class="h5"><div class="gmail_extra"><br></div></div></div><div class="gmail_extra">So what I think you need is a pypy binary that can run without an os... the pypy binary needs a libc to access stuff, if you have one that you are using with other C software in your project maybe you can port pypy to it... probably a pthreads library will also be needed. What you need is to define a new platform and port the whole pypy to it... probably cross compiling from linux. I think that is how the arm port works and should be doable.<span class=""><font color="#888888"><br>
</font></span></div><span class=""><font color="#888888"><div class="gmail_extra"><br clear="all"></div></font></span></div></blockquote><div><br></div><div style>I have pondered on doing that, but even though it is doable, it would require quite an effort as it would need a more complete environment than what I already have. Also, by porting pypy I would yet again get another layer between python code and hardware. </div>
<div style><br></div><div style><br></div><div style><br></div>-- <br><div dir="ltr"><div>Sincerely, </div>Razvan Ghitulete<br>Universitatea Politehnica Bucuresti</div>
</div></div>