Re: [pypy-dev] offtopic, ontopic, ...

2012-02-13 Thread Stefan Behnel
Antonio Cuni, 14.02.2012 00:04: > On 02/13/2012 11:26 PM, Stefan Behnel wrote: >>> > Last time I looked, Cython still generates code that PyPy cannot handle: >>> > for example, it explicitly messes with tstate->curexc_type&co, >>> > Couldn't PyErr_Fetch() and PyErr_Restore() be used instead? >>

Re: [pypy-dev] question re: ancient SSL requirement of pypy

2012-02-13 Thread Justin Bogner
Dale Hubler writes: > I looked at the pypy site but cannot find any supported platforms, > install guide, etc. I am trying this on RedHat EL 5. I tried the > binary release, but it also had the same error, no libssl.so.0.9.8, > which is true, my systems are updated. I must be missing somethin

Re: [pypy-dev] question re: ancient SSL requirement of pypy

2012-02-13 Thread Bengt Richter
On 02/13/2012 02:42 PM Dale Hubler wrote: Hello, I was requested to install pypy but our computers appear to be too new to run it, having libssl.so.0.9.8e among other newer items. This confuses me because the web page for pypy shows a 2011 date and blog entries from 2012. Can 2005 SSL really

Re: [pypy-dev] offtopic, ontopic, ...

2012-02-13 Thread mark florisson
On 13 February 2012 23:04, Antonio Cuni wrote: > On 02/13/2012 11:26 PM, Stefan Behnel wrote: >>> >>> >  Last time I looked, Cython still generates code that PyPy cannot >>> > handle: >>> >  for example, it explicitly messes with tstate->curexc_type&co, >>> >  Couldn't PyErr_Fetch() and PyErr_Rest

Re: [pypy-dev] ctypes - PyPy 1.8 slower than Python 2.6.5

2012-02-13 Thread Antonio Cuni
On 02/13/2012 03:22 PM, Sébastien Volle wrote: Thank you for your help Antonio. It seems a little indentation problem in the modified arp.py file you attached makes the main() loop to return after a single packet. I attached the updated version. ops, I should have taken more care: actually, I w

Re: [pypy-dev] offtopic, ontopic, ...

2012-02-13 Thread Antonio Cuni
On 02/13/2012 11:26 PM, Stefan Behnel wrote: > Last time I looked, Cython still generates code that PyPy cannot handle: > for example, it explicitly messes with tstate->curexc_type&co, > Couldn't PyErr_Fetch() and PyErr_Restore() be used instead? Just two general comments on this, because the

[pypy-dev] question re: ancient SSL requirement of pypy

2012-02-13 Thread Dale Hubler
Hello, I was requested to install pypy but our computers appear to be too new to run it, having libssl.so.0.9.8e among other newer items. This confuses me because the web page for pypy shows a 2011 date and blog entries from 2012. Can 2005 SSL really be a requirement, I am unable to insta

Re: [pypy-dev] offtopic, ontopic, ...

2012-02-13 Thread Stefan Behnel
Amaury Forgeot d'Arc, 13.02.2012 22:06: > 2012/2/13 Stefan Behnel > >> Given how important Cython has become for the Python ecosystem in >> many regards, it's sad that PyPy still doesn't have it available > > Last time I looked, Cython still generates code that PyPy cannot handle: > for example,

Re: [pypy-dev] offtopic, ontopic, ...

2012-02-13 Thread Martijn Faassen
Hey, Thanks guys for bringing the discussion back on track! Regards, Martijn ___ pypy-dev mailing list pypy-dev@python.org http://mail.python.org/mailman/listinfo/pypy-dev

Re: [pypy-dev] offtopic, ontopic, ...

2012-02-13 Thread Stefan Behnel
Maciej Fijalkowski, 13.02.2012 21:41: > On Mon, Feb 13, 2012 at 9:37 PM, Stefan Behnel wrote: >> What are >> you using for comparison? speed.pypy.org? Have you noticed that amongst all >> those benchmarks there that PyPy was specifically tuned for, there is not a >> single benchmark that was select

Re: [pypy-dev] offtopic, ontopic, ... (was: ctypes - PyPy 1.8 slower than Python 2.6.5)

2012-02-13 Thread Amaury Forgeot d'Arc
2012/2/13 Stefan Behnel > Given how important Cython has become for the Python ecosystem in > many regards, it's sad that PyPy still doesn't have it available > Last time I looked, Cython still generates code that PyPy cannot handle: for example, it explicitly messes with tstate->curexc_type &co

Re: [pypy-dev] offtopic, ontopic, ... (was: ctypes - PyPy 1.8 slower than Python 2.6.5)

2012-02-13 Thread Maciej Fijalkowski
On Mon, Feb 13, 2012 at 9:37 PM, Stefan Behnel wrote: > Maciej Fijalkowski, 13.02.2012 19:44: >> On Mon, Feb 13, 2012 at 4:29 PM, Stefan Behnel wrote: >>> Sébastien Volle, 13.02.2012 13:33: My team is working on a project of fast packet sniffers and I'm comparing performance between diff

Re: [pypy-dev] offtopic, ontopic, ... (was: ctypes - PyPy 1.8 slower than Python 2.6.5)

2012-02-13 Thread Martijn Faassen
Hi Stefan, others, I've recommended to Maciej to take this discussion off-list with Stefan. I think a few mailing list etiquette mistakes were made in this discussion so far. I don't think this is worth a flame war and it's in my interest if you both work it out - Stefan's contributions added to M

[pypy-dev] offtopic, ontopic, ... (was: ctypes - PyPy 1.8 slower than Python 2.6.5)

2012-02-13 Thread Stefan Behnel
Maciej Fijalkowski, 13.02.2012 19:44: > On Mon, Feb 13, 2012 at 4:29 PM, Stefan Behnel wrote: >> Sébastien Volle, 13.02.2012 13:33: >>> My team is working on a project of fast packet sniffers and I'm comparing >>> performance between different languages. >>> So, we came up with a simple ARP sniffer

Re: [pypy-dev] Socket module fails in pypy1.8

2012-02-13 Thread Maciej Fijalkowski
On Mon, Feb 13, 2012 at 7:38 PM, kracekumar ramaraju wrote: > Hi > >  kracekumar@python-lover:~/pypy-pypy-2346207d9946/pypy/translator/sandbox$ > pypy1.7 pypy_interact.py --tmp=virtualtmp/ ../../../pypy-c > ['/bin/pypy-c'] > Warning: cannot find your CPU L2 cache size in /proc/cpuinfo > Not Implem

[pypy-dev] PyPy 1.8 50% slower than PyPy 1.7 on my test case

2012-02-13 Thread Laurent Vaucher
Hi and first of all, thanks for that great project. Now to my "problem". I'm doing some puzzle-solving, constraint processing with Python and on my particular program, PyPy 1.8 showed a 50% increase in running time over PyPy 1.7. I'm not doing anything fancy (no numpy, itertools, etc.). The progra

Re: [pypy-dev] ctypes - PyPy 1.8 slower than Python 2.6.5

2012-02-13 Thread Maciej Fijalkowski
On Mon, Feb 13, 2012 at 4:29 PM, Stefan Behnel wrote: > Sébastien Volle, 13.02.2012 13:33: >> My team is working on a project of fast packet sniffers and I'm comparing >> performance between different languages. >> So, we came up with a simple ARP sniffer that I ported to Python using >> ctypes. >

[pypy-dev] Socket module fails in pypy1.8

2012-02-13 Thread kracekumar ramaraju
Hi kracekumar@python-lover:~/pypy-pypy-2346207d9946/pypy/translator/sandbox$ pypy1.7 pypy_interact.py --tmp=virtualtmp/ ../../../pypy-c ['/bin/pypy-c'] Warning: cannot find your CPU L2 cache size in /proc/cpuinfo Not Implemented: SomeString(no_nul=True) RuntimeError 'import site' failed Python 2.

Re: [pypy-dev] replacing/modifying __import__

2012-02-13 Thread Armin Rigo
Hi Timothy, On Mon, Feb 13, 2012 at 15:18, Timothy Baldridge wrote: > Now in CPython I can simply ovewrite __builtins__.__import__ with a > new function that adds additional functionality to __import__. > However, in PyPy we can't change __builtins__. Why not? You're probably just confused abou

Re: [pypy-dev] replacing/modifying __import__

2012-02-13 Thread Amaury Forgeot d'Arc
2012/2/13 Timothy Baldridge > I'm in the process of writing a Clojure->Python bytecode compiler > (http://github.com/halgari/clojure-py). The project is going quite > well and runs great on PyPy and CPython. However there is one feature > I'm not quite sure how to implement in PyPy. What I would

Re: [pypy-dev] ctypes - PyPy 1.8 slower than Python 2.6.5

2012-02-13 Thread Stefan Behnel
Sébastien Volle, 13.02.2012 13:33: > My team is working on a project of fast packet sniffers and I'm comparing > performance between different languages. > So, we came up with a simple ARP sniffer that I ported to Python using > ctypes. If performance is important to you, you may want to write the

Re: [pypy-dev] ctypes - PyPy 1.8 slower than Python 2.6.5

2012-02-13 Thread Sébastien Volle
Thank you for your help Antonio. It seems a little indentation problem in the modified arp.py file you attached makes the main() loop to return after a single packet. I attached the updated version. The actual new figures are: CPython: ~580ms (~310ms with initial version) PyPy: ~1120ms (~1300ms wi

[pypy-dev] replacing/modifying __import__

2012-02-13 Thread Timothy Baldridge
I'm in the process of writing a Clojure->Python bytecode compiler (http://github.com/halgari/clojure-py). The project is going quite well and runs great on PyPy and CPython. However there is one feature I'm not quite sure how to implement in PyPy. What I would like, is to extend 'import' so that it

Re: [pypy-dev] ctypes - PyPy 1.8 slower than Python 2.6.5

2012-02-13 Thread Antonio Cuni
Hello Sébastien, On 02/13/2012 01:33 PM, Sébastien Volle wrote: During my investigations, I turned out that using ctypes, PyPy 1.8 is 4x slower than CPython 2.6.5. After looking at the PyPy buglist, it's seems there are couple open issues about ctypes so I figured I would ask you guys first bef

Re: [pypy-dev] ctypes - PyPy 1.8 slower than Python 2.6.5

2012-02-13 Thread Sébastien Volle
I'm running this on Ubuntu Lucid Lynx 32 bits by the way. Regards, Sébastien 2012/2/13 Sébastien Volle > Hi all, > > My team is working on a project of fast packet sniffers and I'm comparing > performance between different languages. > So, we came up with a simple ARP sniffer that I ported to P

Re: [pypy-dev] error

2012-02-13 Thread Armin Rigo
Hi Frans, Thank you, but we need to know at least: - the version of PyPy (is it the official PyPy 1.8?); - the program that is started (and how to install it, if complicated); - and for reference, the OS --- I guess Windows from the dump of Amaury. Also, I don't find yesterday's conversation wit

Re: [pypy-dev] error

2012-02-13 Thread Amaury Forgeot d'Arc
2012/2/13 Frans > Hi, > After an error report and a succesfull slicing and print yesterday there > is another eerror report. > I am curious to the fix. > And for people who cannot open .odt files, the console contains: Skeinforge settings have been saved. You do not have Tkinter, which is neede

Re: [pypy-dev] error

2012-02-13 Thread Maciej Fijalkowski
On Mon, Feb 13, 2012 at 11:19 AM, Frans wrote: > Hi, > After an error report and a succesfull slicing and print yesterday there is > another eerror report. > I am curious to the fix. Hi Frans. Can you tell us how to reproduce the problem? ___ pypy-dev

Re: [pypy-dev] How to add 3rd part libraries to sanboxed environment

2012-02-13 Thread Armin Rigo
Hi, On Mon, Feb 13, 2012 at 04:41, kracekumar ramaraju wrote: > os.getcwd() yields /tmp, so how can I install third party packages in the > environment, Class package installation will fail I am not wrong. You are on your own in this custom environment. Just put the package you want to install