Re: [pypy-dev] a question about pypy-sandbox

2012-12-21 Thread Jonathan Slenders
Jep, threading would be really hard to do. Especially given that we are serializing system calls through the stdin/out. A blocking system call in the hypervisor process would make it impossible to switch to another thread. (unless you decide to still execute until the next system call in the other

Re: [pypy-dev] a question about pypy-sandbox

2012-12-21 Thread Armin Rigo
Hi Zhoucan. On Fri, Dec 21, 2012 at 8:15 AM, 周灿 wrote: > But i feel puzzled pypy sandbox is not compatible with all the standard > libs(such as threading), since pypy does not allow interperter to load > native C modules. There is some confusion here. The regular PyPy (no sandbox) comes with:

[pypy-dev] a question about pypy-sandbox

2012-12-20 Thread 周灿
Hi,all I want to creat a sandbox to run untrust code. And I choose pypy and I have immplemented my RPC server. But i feel puzzled pypy sandbox is not compatible with all the standard libs(such as threading), since pypy does not allow interperter to load native C modules. I want to know why pyp