Re: [pypy-dev] Question : PyPy on Heptapod

2020-03-10 Thread joannah nanjekye
Great. Thank you. I will follow up on these steps. Best, Joannah On Tue, Mar 10, 2020 at 1:31 PM Ronan Lamy wrote: > Le 10/03/2020 à 11:51, joannah nanjekye a écrit : > > Hey all, > > > > Do I need to request for special privileges in order to submit a patch? > > > > If yes, what is the proces

Re: [pypy-dev] Question : PyPy on Heptapod

2020-03-10 Thread Ronan Lamy
Le 10/03/2020 à 11:51, joannah nanjekye a écrit : Hey all, Do I need to request for special privileges in order to submit a patch? If yes, what is the process? I want to submit an update to a long time patch I had on the old bitbucket repository: https://foss.heptapod.net/pypy/pypy/merge_requ

Re: [pypy-dev] Question about cookielib in PyPy

2016-05-28 Thread Armin Rigo
Hi Jeff, On 27 May 2016 at 23:45, Jeff Doran wrote: > The resulting strings comes from Cookie.__str__ I believe and the > comparison in requests is a simple dict1 == dict2. If what you're printing are two dicts, then they don't compare equal, because of this value: > 'NextGenCSO=8MWACYK5f24yllb

Re: [pypy-dev] Question about "__extend__" hacks (in pypyjit module)

2016-02-08 Thread William ML Leslie
On 9 February 2016 at 10:24, Maciej Fijalkowski wrote: > __extend__ hacks add extra methods to classes See rpython.tool.pairtype and rpython.tool.test.test_pairtype for more information on this pattern. -- William Leslie Notice: Likely much of this email is, by the nature of copyright, covered

Re: [pypy-dev] Question about "__extend__" hacks (in pypyjit module)

2016-02-08 Thread Maciej Fijalkowski
__extend__ hacks add extra methods to classes On Tue, Feb 9, 2016 at 12:01 AM, Magnus Morton wrote: > Hi, > > In the __init__.py for the ‘pypyjit’ module there’s a comment in the > ‘setup_after_space_initialization’ method "force the __extend__ hacks to > occur early” (line 34) followed by two

Re: [pypy-dev] Question

2015-06-11 Thread Ryan Gonzalez
Wait a sec...how the hell did it finish that quickly?? Takes ages for me... On June 11, 2015 4:08:16 PM CDT, Ram Rachum wrote: >Using `make` worked. Thank you! > >On Thu, Jun 11, 2015 at 10:05 PM, Ram Rachum wrote: > >> Okay, I'll try it. (Once I add more resources to the VM so it could >finish

Re: [pypy-dev] Question

2015-06-11 Thread Ryan Gonzalez
Told you so. :) On Thu, Jun 11, 2015 at 4:08 PM, Ram Rachum wrote: > Using `make` worked. Thank you! > > On Thu, Jun 11, 2015 at 10:05 PM, Ram Rachum wrote: > >> Okay, I'll try it. (Once I add more resources to the VM so it could >> finish faster.) >> >> On Thu, Jun 11, 2015 at 10:01 PM, Ryan G

Re: [pypy-dev] Question

2015-06-11 Thread Armin Rigo
Hi all, On 11 June 2015 at 21:17, Ram Rachum wrote: > I tried that now. It wouldn't run `get-pip.py`. Says "Could not find a > version that satisfies the requirement pip (from versions: ) > No matching distribution found for pip" My own experience: any PyPy binary can be downloaded from pypy.org

Re: [pypy-dev] Question

2015-06-11 Thread Ram Rachum
Using `make` worked. Thank you! On Thu, Jun 11, 2015 at 10:05 PM, Ram Rachum wrote: > Okay, I'll try it. (Once I add more resources to the VM so it could finish > faster.) > > On Thu, Jun 11, 2015 at 10:01 PM, Ryan Gonzalez wrote: > >> Ah, minor detail. You need to first run: >> >> sudo apt-get

Re: [pypy-dev] Question

2015-06-11 Thread Phyo Arkar
use easy_install On Fri, Jun 12, 2015 at 1:47 AM, Ram Rachum wrote: > I tried that now. It wouldn't run `get-pip.py`. Says "Could not find a > version that satisfies the requirement pip (from versions: ) > No matching distribution found for pip" > > On Thu, Jun 11, 2015 at 10:14 PM, Phyo Arkar

Re: [pypy-dev] Question

2015-06-11 Thread Ram Rachum
I tried that now. It wouldn't run `get-pip.py`. Says "Could not find a version that satisfies the requirement pip (from versions: ) No matching distribution found for pip" On Thu, Jun 11, 2015 at 10:14 PM, Phyo Arkar wrote: > It is just Download , extract , Run, and have fun. > > On Fri, Jun 12,

Re: [pypy-dev] Question

2015-06-11 Thread Phyo Arkar
It is just Download , extract , Run, and have fun. On Fri, Jun 12, 2015 at 1:43 AM, Phyo Arkar wrote: > Have you tried portable pypy ? https://github.com/squeaky-pl/portable-pypy > it works for me , in every linuxes. > > On Fri, Jun 12, 2015 at 1:42 AM, Ram Rachum wrote: > >> When you use the p

Re: [pypy-dev] Question

2015-06-11 Thread Phyo Arkar
Have you tried portable pypy ? https://github.com/squeaky-pl/portable-pypy it works for me , in every linuxes. On Fri, Jun 12, 2015 at 1:42 AM, Ram Rachum wrote: > When you use the ppa, where will nosetests be located? > > On Thu, Jun 11, 2015 at 10:08 PM, Ryan Gonzalez wrote: > >> sudo add-apt

Re: [pypy-dev] Question

2015-06-11 Thread Ram Rachum
When you use the ppa, where will nosetests be located? On Thu, Jun 11, 2015 at 10:08 PM, Ryan Gonzalez wrote: > sudo add-apt-repository ppa:pypy/ppa > sudo apt-get update > > > > On June 11, 2015 1:54:55 PM CDT, Ram Rachum wrote: >> >> I have no idea how to use the PyPy PPA. (Not a Linux user h

Re: [pypy-dev] Question

2015-06-11 Thread Ryan Gonzalez
sudo add-apt-repository ppa:pypy/ppa sudo apt-get update On June 11, 2015 1:54:55 PM CDT, Ram Rachum wrote: >I have no idea how to use the PyPy PPA. (Not a Linux user here.) > >On Thu, Jun 11, 2015 at 9:52 PM, Randall Leeds > >wrote: > >> The PyPy PPA works brilliantly on 15.04 for me. >> >> Fro

Re: [pypy-dev] Question

2015-06-11 Thread Ram Rachum
Okay, I'll try it. (Once I add more resources to the VM so it could finish faster.) On Thu, Jun 11, 2015 at 10:01 PM, Ryan Gonzalez wrote: > Ah, minor detail. You need to first run: > > sudo apt-get install libffi-dev pkg-config libz-dev libbz2-dev \ > libsqlite3-dev libncurses-dev libexpat1-dev

Re: [pypy-dev] Question

2015-06-11 Thread Randall Leeds
I'm in transit right but I can spell out the directions when I'm settled a little later. On Thu, Jun 11, 2015, 11:55 Ram Rachum wrote: > I have no idea how to use the PyPy PPA. (Not a Linux user here.) > > On Thu, Jun 11, 2015 at 9:52 PM, Randall Leeds > wrote: > >> The PyPy PPA works brilliant

Re: [pypy-dev] Question

2015-06-11 Thread Ryan Gonzalez
Ah, minor detail. You need to first run: sudo apt-get install libffi-dev pkg-config libz-dev libbz2-dev \ libsqlite3-dev libncurses-dev libexpat1-dev libssl-dev ;) On Thu, Jun 11, 2015 at 1:48 PM, Ram Rachum wrote: > Against my better judgement, I tried following your advice :) > > Got this e

Re: [pypy-dev] Question

2015-06-11 Thread Ram Rachum
I have no idea how to use the PyPy PPA. (Not a Linux user here.) On Thu, Jun 11, 2015 at 9:52 PM, Randall Leeds wrote: > The PyPy PPA works brilliantly on 15.04 for me. > > From there I just make a virtualenv with: > > $ virtualenv -P /usr/bin/pypy > > (Can't remember if it's -P or -p) > > Once

Re: [pypy-dev] Question

2015-06-11 Thread Randall Leeds
The PyPy PPA works brilliantly on 15.04 for me. >From there I just make a virtualenv with: $ virtualenv -P /usr/bin/pypy (Can't remember if it's -P or -p) Once activated, just running pip works fine for me. On Thu, Jun 11, 2015, 11:49 Ram Rachum wrote: > Against my better judgement, I tried

Re: [pypy-dev] Question

2015-06-11 Thread Ram Rachum
Against my better judgement, I tried following your advice :) Got this error when running make: [translation:ERROR] CompilationError: CompilationError(err=""" [translation:ERROR] /tmp/usession-release-2.6.0-0/platcheck_23.c:79:18: fatal error: zlib.h: No such file or directory [translation:ERROR]

Re: [pypy-dev] Question

2015-06-11 Thread Ryan Gonzalez
On Thu, Jun 11, 2015 at 1:39 PM, Ryan Gonzalez wrote: > Honestly, these is just general Linux issues. Like I said, not even Linus > Torvalds makes binaries of his dive logger for Linux. It a pain in the > everything. > *these are* (damn, I hate autocorrect...) > > I usually have the *worst* lu

Re: [pypy-dev] Question

2015-06-11 Thread Ryan Gonzalez
Honestly, these is just general Linux issues. Like I said, not even Linus Torvalds makes binaries of his dive logger for Linux. It a pain in the everything. I usually have the *worst* luck building stuff, but PyPy was actually very easy. I ran `make` and it "just worked". You don't need to know C.

Re: [pypy-dev] Question

2015-06-11 Thread Ram Rachum
I suck at building. I don't know C. There are likely to be errors that I wouldn't know how to deal with. I'm not interested in wasting another hour trying to deal with those. I'm on Ubuntu 15.04. Thanks for the offer. Hopefully instead of investing so much development effort making PyPy x8 times

Re: [pypy-dev] Question

2015-06-11 Thread Ryan Gonzalez
Remember: I am *dead* serious about you rebuilding it. If you're on Ubuntu 14 LTS x64, I can email you the binaries I built that *work* for you to try. On Thu, Jun 11, 2015 at 12:52 PM, Ram Rachum wrote: > Unfortunately it doesn't work for nosetests. I've sent a message to > python-ideas about

Re: [pypy-dev] Question

2015-06-11 Thread Ram Rachum
Unfortunately it doesn't work for nosetests. I've sent a message to python-ideas about this, maybe the -m flag should be changed to work on scripts. I tried a few things, including pyenv, but it didn't work. I've given up at this point. Thanks for your help. On Thu, Jun 11, 2015 at 8:15 PM, Ryan

Re: [pypy-dev] Question

2015-06-11 Thread Ryan Gonzalez
Dang, I forgot about that. Unfortunately, I don't think that works for some other Python packages. On June 11, 2015 11:44:38 AM CDT, Romain Guillebert wrote: >pypy -m pip works > >On Thu, Jun 11, 2015 at 5:05 PM, Ryan Gonzalez >wrote: >> I don't think you can out-of-the-box without some env too

Re: [pypy-dev] Question

2015-06-11 Thread Romain Guillebert
pypy -m pip works On Thu, Jun 11, 2015 at 5:05 PM, Ryan Gonzalez wrote: > I don't think you can out-of-the-box without some env tool. Blame apt-get's > brilliant engineering. Since I'm generally allergic to binaries (I.e. THEY > DON'T WORK! [which is probably why Torvalds never distributes app bi

Re: [pypy-dev] Question

2015-06-11 Thread Ryan Gonzalez
I don't think you can out-of-the-box without some env tool. Blame apt-get's brilliant engineering. Since I'm generally allergic to binaries (I.e. THEY DON'T WORK! [which is probably why Torvalds never distributes app binaries for Linux]), I do things the simple way: build it myself. Takes about

Re: [pypy-dev] Question

2015-06-11 Thread Maciej Fijalkowski
if you just unpack pypy, the packages get installed in bin/ or site-packages/ that belongs there. How ubuntu does it I have no clue. I would use virtualenv On Thu, Jun 11, 2015 at 5:00 PM, Ram Rachum wrote: > As far as I know scripts don't get installed to site packages (at least on > windows). >

Re: [pypy-dev] Question

2015-06-11 Thread Mark Roberts
I've had the best luck with Pyenv. -Mark > On Jun 11, 2015, at 07:46, Ram Rachum wrote: > > Things I don't care about so much right now: > - How fast PyPy runs. > > Things I care a lot about right now: > - How many hours of my life I need to spend to get PyPy to run. > >> On Thu, Jun 11,

Re: [pypy-dev] Question

2015-06-11 Thread Ram Rachum
As far as I know scripts don't get installed to site packages (at least on windows). In other words: say I installed pypy on Ubuntu with nose in it. I want to launch the nosetests script. (I also have one for the system Python.) How do I launch the nosetests that belongs to PyPy? On Jun 11, 2015 1

Re: [pypy-dev] Question

2015-06-11 Thread Maciej Fijalkowski
you can install pypy with apt-get. Stuff gets installed in site-packages I believe (just like on cpython) On Thu, Jun 11, 2015 at 4:46 PM, Ram Rachum wrote: > Things I don't care about so much right now: > - How fast PyPy runs. > > Things I care a lot about right now: > - How many hours of my l

Re: [pypy-dev] Question

2015-06-11 Thread Ram Rachum
Things I don't care about so much right now: - How fast PyPy runs. Things I care *a lot* about right now: - How many hours of my life I need to spend to get PyPy to run. On Thu, Jun 11, 2015 at 5:36 PM, Ryan Gonzalez wrote: > Note: The PyPy bundled with Ubuntu 12 LTS is insanely slow. > > > O

Re: [pypy-dev] Question

2015-06-11 Thread Ryan Gonzalez
Note: The PyPy bundled with Ubuntu 12 LTS is insanely slow. On June 11, 2015 9:27:12 AM CDT, Ram Rachum wrote: >When I install Pypy on Ubuntu using apt-get, and then run get-pip.py , >how >do I access the pip that belongs to PyPy? > > >

Re: [pypy-dev] Question about PyPy Sandboxing

2014-07-21 Thread Kit Ham
Beautiful, thank you =) Kit On Tue, Jun 24, 2014 at 5:17 PM, Armin Rigo wrote: > Hi Kit, > > On 24 June 2014 02:42, Kit Ham wrote: > > Can multiple PyPy sandboxes be executed and interacted with from C/C++? > > Yes, you can in theory do whatever you want, but it is not really > finished and d

Re: [pypy-dev] Question about PyPy Sandboxing

2014-06-24 Thread Armin Rigo
Hi Kit, On 24 June 2014 02:42, Kit Ham wrote: > Can multiple PyPy sandboxes be executed and interacted with from C/C++? Yes, you can in theory do whatever you want, but it is not really finished and documented. You first need to decide if it's ok that each sandbox runs in a separate process or

Re: [pypy-dev] Question about extension support

2014-03-29 Thread Armin Rigo
Hi Laura, On 29 March 2014 09:52, Laura Creighton wrote: > Ok -- the lesson I took from this is 'ref counting hurts performance'. Why > was that the wrong inference to make? No, the lession is "unoptimized refcounting hurts performance". As I've explained above, optimized refcounting like in C

Re: [pypy-dev] Question about extension support

2014-03-29 Thread Laura Creighton
Ok -- the lesson I took from this is 'ref counting hurts performance'. Why was that the wrong inference to make? Laura ___ pypy-dev mailing list pypy-dev@python.org https://mail.python.org/mailman/listinfo/pypy-dev

Re: [pypy-dev] Question about extension support

2014-03-29 Thread Armin Rigo
Hi Sarah, On 28 March 2014 11:08, Sarah Mount wrote: > This is a really interesting discussion, thanks for spelling it out the > details so clearly. Did the measurements you refer to get published > anywhere? Yes, in https://bitbucket.org/pypy/extradoc/raw/tip/eu-report/D07.1_Massive_Parallelis

Re: [pypy-dev] Question about extension support

2014-03-29 Thread Armin Rigo
Hi Laura, On 28 March 2014 10:48, Laura Creighton wrote: > Ah, thank you. I actually thought we had found the odd example where > a better gc beat CPython performance even when the jit was off. I am > completely wrong about this? Or is it just that it is so rare it doesn't > matter? Ah, no, y

Re: [pypy-dev] Question about extension support

2014-03-28 Thread Sarah Mount
Hi all, On Fri, Mar 28, 2014 at 8:51 AM, Armin Rigo wrote: > Hi Laura, > > On 26 March 2014 23:29, Laura Creighton wrote: > > really, really hideously slow. You are sometimes _way_ > > better off writing python code instead -- pypy with the jit turned off > > outperforms CPython purely on the

Re: [pypy-dev] Question about extension support

2014-03-28 Thread Laura Creighton
In a message of Fri, 28 Mar 2014 09:51:42 +0100, Armin Rigo writes: >Hi Laura, Ah, thank you. I actually thought we had found the odd example where a better gc beat CPython performance even when the jit was off. I am completely wrong about this? Or is it just that it is so rare it doesn't ma

Re: [pypy-dev] Question about extension support

2014-03-28 Thread Armin Rigo
Hi Laura, On 26 March 2014 23:29, Laura Creighton wrote: > really, really hideously slow. You are sometimes _way_ > better off writing python code instead -- pypy with the jit turned off > outperforms CPython purely on the benefits of not doing ref-counting, and > pypy really needs the jit to b

Re: [pypy-dev] Question about extension support

2014-03-28 Thread Armin Rigo
Hi all, I'd like to point Kevin to the thread "cpyext performance" of July-August 2012, in which we did some explanation of what is slow about cpyext and could potentially be improved. As others have mentioned here again, we can't reasonably hope to get them to the same speed as on CPython, but "

Re: [pypy-dev] Question about extension support

2014-03-26 Thread Benjamin Peterson
On Wed, Mar 26, 2014, at 21:51, Kevin Modzelewski wrote: > On Wed, Mar 26, 2014 at 9:32 PM, Benjamin Peterson > wrote: > > > > > > > On Wed, Mar 26, 2014, at 21:17, Kevin Modzelewski wrote: > > > On Wed, Mar 26, 2014 at 1:52 PM, Benjamin Peterson > > > wrote: > > > > > > > > > > > There are seve

Re: [pypy-dev] Question about extension support

2014-03-26 Thread Kevin Modzelewski
On Wed, Mar 26, 2014 at 9:32 PM, Benjamin Peterson wrote: > > > On Wed, Mar 26, 2014, at 21:17, Kevin Modzelewski wrote: > > On Wed, Mar 26, 2014 at 1:52 PM, Benjamin Peterson > > wrote: > > > > > > > > There are several reasons. Two of the most important are > > > 1) PyPy's internal representatio

Re: [pypy-dev] Question about extension support

2014-03-26 Thread Benjamin Peterson
On Wed, Mar 26, 2014, at 21:17, Kevin Modzelewski wrote: > On Wed, Mar 26, 2014 at 1:52 PM, Benjamin Peterson > wrote: > > > > > There are several reasons. Two of the most important are > > 1) PyPy's internal representation of objects is different from > > CPython's, so a conversion cost must be

Re: [pypy-dev] Question about extension support

2014-03-26 Thread Kevin Modzelewski
On Wed, Mar 26, 2014 at 1:52 PM, Benjamin Peterson wrote: > > There are several reasons. Two of the most important are > 1) PyPy's internal representation of objects is different from > CPython's, so a conversion cost must be payed every time objects pass > between pure Python and C. Unlike CPytho

Re: [pypy-dev] Question about extension support

2014-03-26 Thread Laura Creighton
Your C-extensions come all bundled up with a whole lot of gorp which is designed to make them play nicely in a ref-counting environment. Ref counting is a very slow way to do GC. Sometimes -- really, really, really hideously slow. You are sometimes _way_ better off writing python code instead --

Re: [pypy-dev] Question about extension support

2014-03-26 Thread Benjamin Peterson
On Wed, Mar 26, 2014, at 13:47, Kevin Modzelewski wrote: > Hi all, thanks for the responses, but I guess I should have been more > explicit -- I'm curious about *why* PyPy is slow on existing extension > modules and why people are being steered away from them. I completely > support the push to mo

Re: [pypy-dev] Question about extension support

2014-03-26 Thread Kevin Modzelewski
Hi all, thanks for the responses, but I guess I should have been more explicit -- I'm curious about *why* PyPy is slow on existing extension modules and why people are being steered away from them. I completely support the push to move away from CPython extension modules, but I'm not sure it's rea

Re: [pypy-dev] Question about extension support

2014-03-26 Thread Yury V. Zaytsev
On Tue, 2014-03-25 at 16:19 -0700, Kevin Modzelewski wrote: > > I'm curious, since I've heard a number of people mention that > extension modules are the primary reason that PyPy is slower than > cPython for their code; definitely an improvement over "PyPy doesn't > run my code at all", but it's m

Re: [pypy-dev] Question about extension support

2014-03-25 Thread John Camara
Hi Kevin, Here is another link about writing extensions for PyPy. http://doc.pypy.org/en/latest/extending.html John On Tue, Mar 25, 2014 at 9:48 PM, John Camara wrote: > Hi Kevin, > > More up to date information can be found on the FAQ page > > > http://doc.pypy.org/en/latest/faq.html#do-cpyt

Re: [pypy-dev] Question on installing pypy and the source code ..

2013-11-01 Thread Dave Watson (davewats)
: Dave Watson (davewats) Cc: pypy-dev@python.org; Steve Marsh (stevmars); Gilbert Ramirez (gilramir) Subject: RE: [pypy-dev] Question on installing pypy and the source code .. On Thu, 2013-10-31 at 19:10 +, Dave Watson (davewats) wrote: > > I was wondering I you or someone else might kno

Re: [pypy-dev] Question on installing pypy and the source code ..

2013-10-31 Thread Yury V. Zaytsev
On Thu, 2013-10-31 at 19:10 +, Dave Watson (davewats) wrote: > > I was wondering I you or someone else might know of a good place that > would allow the required alternative library location to be added to > the configuration .. I think that the easiest way to go is to manipulate CFLAGS and L

Re: [pypy-dev] Question on installing pypy and the source code ..

2013-10-31 Thread Dave Watson (davewats)
ave Watson (davewats) Cc: pypy-dev@python.org; Steve Marsh (stevmars); Gilbert Ramirez (gilramir) Subject: Re: [pypy-dev] Question on installing pypy and the source code .. On Thu, 2013-10-31 at 16:10 +, Dave Watson (davewats) wrote: > > I there a set of instructions for very first time bui

Re: [pypy-dev] Question on installing pypy and the source code ..

2013-10-31 Thread Yury V. Zaytsev
On Thu, 2013-10-31 at 16:10 +, Dave Watson (davewats) wrote: > > I there a set of instructions for very first time builders ?? Hi, I think that you are misinterpreting the instructions on the website. They don't imply that you already have *PyPy* installed, but they do imply that you have

Re: [pypy-dev] Question on installing pypy and the source code

2013-10-31 Thread Amaury Forgeot d'Arc
2013/10/31 Mark Roberts > > All the build instructions seem to assume that you have a previous > version of pypy already installed, in my case, I don't have a previous > version of pypy already installed and am trying to create the first one.. > :( .. Assuming you are following "Building from S

Re: [pypy-dev] Question on installing pypy and the source code

2013-10-31 Thread Mark Roberts
I've had really good luck installing pypy and development environments with pyenv. It includes recipes for installing pretty much any version of Python you might need. -Mark > Hi Developers .. > > I have been looking at trying to install the pypy interpreter from source > code as suggested f

Re: [pypy-dev] question about install pymongo

2013-08-24 Thread Heng Zhou
Just now I tried to execute the steps in http://doc.pypy.org/en/latest/ getting-started.html#installing-pypy. curl -O http://python-distribute.org/distribute_setup.py is OK, curl -O https://raw.github.com/pypa/pip/master/contrib/get-pip.py is OK, ./pypy-2.1/bin/pypy distribute_setup.py is OK (I hav

Re: [pypy-dev] question about install pymongo

2013-08-24 Thread Leonardo Santagada
just a tip, distribute merged with setuptools so probably the docs should be updated (if the new setuptools support pypy3) On Sat, Aug 24, 2013 at 8:56 PM, Heng Zhou wrote: > I have installed the PyPy3 2.1 Beta 1 on my ubuntu. When I tried to import > pymongo, a third party driver for mongodb,

Re: [pypy-dev] Question about cffi cache dir

2013-08-14 Thread Maciej Fijalkowski
On Wed, Aug 14, 2013 at 9:20 AM, Michal Vyskocil wrote: > On Sat, Aug 10, 2013 at 02:40:22PM +0300, David Naylor wrote: >> Hi Michal >> >> On Saturday, 10 August 2013 10:06:48 Armin Rigo wrote: >> > Hi Michal, >> > >> > On Thu, Aug 8, 2013 at 3:39 PM, Michal Vyskocil wrote: >> > > It seems that >

Re: [pypy-dev] Question about cffi cache dir

2013-08-14 Thread Michal Vyskocil
On Sat, Aug 10, 2013 at 02:40:22PM +0300, David Naylor wrote: > Hi Michal > > On Saturday, 10 August 2013 10:06:48 Armin Rigo wrote: > > Hi Michal, > > > > On Thu, Aug 8, 2013 at 3:39 PM, Michal Vyskocil wrote: > > > It seems that > > > __pycache__ is not created during a build, but on runtime,

Re: [pypy-dev] Question about cffi cache dir

2013-08-10 Thread David Naylor
Hi Michal On Saturday, 10 August 2013 10:06:48 Armin Rigo wrote: > Hi Michal, > > On Thu, Aug 8, 2013 at 3:39 PM, Michal Vyskocil wrote: > > It seems that > > __pycache__ is not created during a build, but on runtime, so my attempt > > to build pypy using pypy ends on > > > > [ 66s] IOError:

Re: [pypy-dev] Question about cffi cache dir

2013-08-10 Thread Armin Rigo
Hi Michal, On Thu, Aug 8, 2013 at 3:39 PM, Michal Vyskocil wrote: > It seems that > __pycache__ is not created during a build, but on runtime, so my attempt > to build pypy using pypy ends on > > [ 66s] IOError: [Errno 2] No such file or directory: > '/usr/lib64/pypy-2.1/lib_pypy/__pycache__/_c

Re: [pypy-dev] Question about stm_descriptor_init(), tasklets and OS threads

2012-05-10 Thread Armin Rigo
Hi Andrew, Please look at the latest documentation: https://bitbucket.org/pypy/pypy/raw/stm-thread/pypy/doc/stm.rst You should be able to use such a "thread.atomic" in stackless.py. You need to create N threads and run the tasklets in these threads. As long as each tasklet's user code is protec

Re: [pypy-dev] Question about stm_descriptor_init(), tasklets and OS threads

2012-05-07 Thread Andrew Francis
Hi Armin: Thanks for the explanation. Sorry for taking so long to respond. This is a challenging post. Comments below: From: Armin Rigo To: Andrew Francis Cc: Py Py Developer Mailing List Sent: Thursday, April 19, 2012 3:37 PM Subject: Re: Question ab

Re: [pypy-dev] Question about stm_descriptor_init(), tasklets and OS threads

2012-04-19 Thread Armin Rigo
Re-Hi, On Thu, Apr 19, 2012 at 21:37, Armin Rigo wrote: > You have to make sure that all tasklet.switch()es internally go back > to the main program, and not directly to another tasklet. Ah, sorry, I confused the stackless interface. You don't switch() to tasklets, but instead call send() and r

Re: [pypy-dev] Question about stm_descriptor_init(), tasklets and OS threads

2012-04-19 Thread Armin Rigo
Hi Andrew, On Thu, Apr 19, 2012 at 19:43, Andrew Francis wrote: > I am trying to understand enough to get into a position to attempt an > integration. I believe you are trying to approach the problem from the bottom-most level up --- which is a fine way to approach problems; but in this case, yo

Re: [pypy-dev] Question about stm_descriptor_init(), tasklets and OS threads

2012-04-19 Thread Andrew Francis
Hi Armin: From: Armin Rigo To: Andrew Francis Cc: Py Py Developer Mailing List Sent: Tuesday, April 17, 2012 4:19 AM Subject: Re: Question about stm_descriptor_init(), tasklets and OS threads >I don't understand why at all, sorry.  Please bear with me :-)

Re: [pypy-dev] Question about stm_descriptor_init(), tasklets and OS threads

2012-04-17 Thread Armin Rigo
Hi Andrew, On Tue, Apr 17, 2012 at 00:44, Andrew Francis wrote: > I am looking at stm_descriptor_init(). Right now makes a call to > pthread_self(). In a potential Stackless prototype, I would want it to get > the current tasklet instead. I don't understand why at all, sorry. I will stick to my

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

2012-02-23 Thread Armin Rigo
Hi, Maybe we should write down some answers to these questions in a single place... On Thu, Feb 23, 2012 at 00:32, Dale Hubler wrote: > They did not tell me they wanted particular modules also, such as numpy. 'numpypy' is already included in a baseline PyPy but is only a partial implementation

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

2012-02-22 Thread Dale Hubler
Hi to all who answered me and thanks for the good assistance. I gave up on the binary distribution right off, and tried to build it from source on RHEL5. I had the most difficulty with the libffi part, I tried a server located directory, /usr/local, and finally /usr as my libffi installdir,

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

2012-02-21 Thread David Malcolm
On Mon, 2012-02-13 at 14:42 -0800, 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 20

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

2012-02-17 Thread Timothy Baldridge
>> Anyone can either install PyPy from his own distribution, or translate >> it from sources; or attempt to get one of our nightly binary packages, >> which may or may not work because it's Linux.  I think that this is >> what you get on Linux, and we will not try to find obscure workarounds >> (li

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

2012-02-17 Thread Leonardo Santagada
On Fri, Feb 17, 2012 at 3:23 PM, Armin Rigo wrote: > Hi Leonardo, > > On Fri, Feb 17, 2012 at 15:55, Leonardo Santagada wrote: >> why not statically link everything and mark the pre built binaries a >> "security risk" or whatever and then they will just work. > > Anyone can either install PyPy fr

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

2012-02-17 Thread Armin Rigo
Hi Leonardo, On Fri, Feb 17, 2012 at 15:55, Leonardo Santagada wrote: > why not statically link everything and mark the pre built binaries a > "security risk" or whatever and then they will just work. Anyone can either install PyPy from his own distribution, or translate it from sources; or atte

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

2012-02-17 Thread Leonardo Santagada
On Tue, Feb 14, 2012 at 7:45 AM, Maciej Fijalkowski wrote: > It's not PyPy requirement, it's the binary requirement. To be honest, > binary distribution on linux is a major mess. Fortunately for most > popular distributions there is a better or worse source of official or > semi-official way to ge

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

2012-02-14 Thread Maciej Fijalkowski
On Tue, Feb 14, 2012 at 12:42 AM, 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. >

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] Question about the STM module and RSTM

2012-02-01 Thread Armin Rigo
Hi Andrew, On Wed, Feb 1, 2012 at 19:05, Andrew Francis wrote: > Perhaps this is helpful, you can read the paper "Automatic Mutual Exclusion" > (http://research.microsoft.com/en-us/projects/ame/automutex-hotos.pdf) or > look at other papers at the site. Thank you a lot for this reference! This

Re: [pypy-dev] Question about the STM module and RSTM

2012-02-01 Thread Andrew Francis
Hi Armin: From: Armin Rigo To: Andrew Francis Cc: Py Py Developer Mailing List Sent: Monday, January 30, 2012 3:46 PM Subject: Re: [pypy-dev] Question about the STM module and RSTM >You wouldn't be able to write pure Python versions of class

Re: [pypy-dev] Question about the STM module and RSTM

2012-01-30 Thread Armin Rigo
Hi, On Mon, Jan 30, 2012 at 21:20, Andrew Francis wrote: > If the stm library progresses a bit > more, I would like to try writing Python versions of some of the STAMP > examples. You wouldn't be able to write pure Python versions of classical STM examples, because the "transaction" module works

Re: [pypy-dev] Question about Atomic_ops.h in STM

2012-01-30 Thread Armin Rigo
Hi Andrew, On Mon, Jan 30, 2012 at 21:09, Andrew Francis wrote: > I noticed a compare_and_swap function in atomic_ops.h. On the IRC channel, > it was suggested that I look in _rffi_stm.py. However it is not there (I can > understand thta). How can this function be exposed to a RPython programme?

Re: [pypy-dev] Question about pypy

2011-12-04 Thread Maciej Fijalkowski
On Sun, Dec 4, 2011 at 9:07 PM, Alexander Golec wrote: > Thanks for this point. I think this tied together my understanding of the the > purpose of rpython as a framework. Where is the distinction between rpython > as a language and rpython as a compiler generator? I presume this is covered > i

Re: [pypy-dev] Question about pypy

2011-12-04 Thread Alexander Golec
Thanks for this point. I think this tied together my understanding of the the purpose of rpython as a framework. Where is the distinction between rpython as a language and rpython as a compiler generator? I presume this is covered in the 'Compiling Dynamic Language Implementations' paper? Alex

Re: [pypy-dev] Question about pypy

2011-12-04 Thread Laura Creighton
Something major you are not mentioning is that pypy is a compiler generator, and not a hand-written compiler for a particular language. Thus we have PyProlog, which implements Prolog, and GameGirl which implements the GameBoy language. It's this architecture, in my opinion, which makes PyPy advanc

Re: [pypy-dev] Question about pypy

2011-12-04 Thread Maciej Fijalkowski
On Sat, Dec 3, 2011 at 10:33 PM, Alexander Golec wrote: > Erm, I'll revise that. The thesis of the talk is that rpython has to place > restrictions on the use of types, and I leave discussing the annotator off to > the term paper I'll be presenting. The purpose of this talk is a half-hour > exp

Re: [pypy-dev] Question about pypy

2011-12-03 Thread Alexander Golec
Erm, I'll revise that. The thesis of the talk is that rpython has to place restrictions on the use of types, and I leave discussing the annotator off to the term paper I'll be presenting. The purpose of this talk is a half-hour exposition of what we've been doing this semester, which basically m

Re: [pypy-dev] Question about pypy

2011-12-03 Thread Benjamin Peterson
2011/12/3 Alexander Golec : > Hi all, > > I'm a student at Columbia University, and I'm taking a graduate course with > Alfred Aho, the author of the dragon book, on advanced compilers techniques. > I've been researching the pypy project in general, and rpython in particular, > and I'd like to a

Re: [pypy-dev] Question about byte-code hacking

2011-09-23 Thread Armin Rigo
Hi, On Fri, Sep 23, 2011 at 11:27 AM, Steven D'Aprano wrote: > So the question is: would it be a burden for PyPy to make any guarantees > about the stability of bytecode? The answer is: Feel free to do anything or nothing with CPython's bytecode. As Fijal says it has little to do with PyPy. It

Re: [pypy-dev] Question about byte-code hacking

2011-09-23 Thread Maciej Fijalkowski
On Fri, Sep 23, 2011 at 2:06 PM, Benjamin Peterson wrote: > 2011/9/23 Steven D'Aprano : >> >> So the question is: would it be a burden for PyPy to make any guarantees >> about the stability of bytecode? > > I would say not without great benefit. If you're doing something that > requires changing b

Re: [pypy-dev] Question about byte-code hacking

2011-09-23 Thread Benjamin Peterson
2011/9/23 Steven D'Aprano : > > So the question is: would it be a burden for PyPy to make any guarantees > about the stability of bytecode? I would say not without great benefit. If you're doing something that requires changing bytecode, the obvious answer is to add some syntax instead. -- Reg

Re: [pypy-dev] Question about byte-code hacking

2011-09-23 Thread Steven D'Aprano
Benjamin Peterson wrote: 2011/9/23 Steven D'Aprano : Hi guys, Over on the python-ideas mailing list, there is a long thread about the default argument hack in functions, used for micro-optimizations, early-binding, and monkey-patching. Various alternatives are being argued about. One proposal p

Re: [pypy-dev] Question about byte-code hacking

2011-09-23 Thread Armin Rigo
Hi, On Fri, Sep 23, 2011 at 6:12 AM, Benjamin Peterson wrote: >> What's the PyPy position on bytecode hacking? Good, bad, evil, don't mind >> either way? > > (...) > Secondly, it's useless for speed when you have a JIT. Indeed, although it is not 100% true, because we also have an interpreter.

Re: [pypy-dev] Question about byte-code hacking

2011-09-22 Thread Benjamin Peterson
2011/9/23 Steven D'Aprano : > Hi guys, > > Over on the python-ideas mailing list, there is a long thread about the > default argument hack in functions, used for micro-optimizations, > early-binding, and monkey-patching. Various alternatives are being argued > about. One proposal put forward involv

Re: [pypy-dev] Question about "Completing 'os' module" (issue 833)

2011-09-01 Thread Maciej Fijalkowski
On Sat, Aug 27, 2011 at 9:00 AM, Mitchell Hashimoto wrote: > Sorry to ping the list again, but I've addressed the issues raised in the > issue to complete the "os.getlogin" feature. Is there any way I can get > another review to get this merged please? Seems to be merged, thanks! > Best, > Mitch

Re: [pypy-dev] Question about "Completing 'os' module" (issue 833)

2011-08-27 Thread Mitchell Hashimoto
Sorry to ping the list again, but I've addressed the issues raised in the issue to complete the "os.getlogin" feature. Is there any way I can get another review to get this merged please? Best, Mitchell On Mon, Aug 22, 2011 at 4:53 AM, Mitchell Hashimoto < mitchell.hashim...@gmail.com> wrote: >

  1   2   >