
Hi All, My name is Luis Novoa. Im working on a large scale optimization problem using python/gurobipy for my implementation. I was wondering if any of you in this list has used gurobipy with pypy, or if it is even possible at this time. Thanks in advance, Luis.

On Wed, Sep 30, 2015 at 6:54 PM, Luis José Novoa <luisjosenovoa@gmail.com> wrote:
gurobipy
Never heard of it. Here are things PyPy Can help: - If it is Pure Python - If CExtensions are with CFFI - If file objects (if any) are closed PyPy will work fine and you can expect average 7x performance gain , up to 20-30x.

Hi, Could you explain about closed file objects (do you mean open file descriptors)? I've never heard about this restriction before. 30.09.2015 19:35, Phyo Arkar пишет:
On Wed, Sep 30, 2015 at 6:54 PM, Luis José Novoa <luisjosenovoa@gmail.com <mailto:luisjosenovoa@gmail.com>> wrote:
gurobipy
Never heard of it.
Here are things PyPy Can help:
- If it is Pure Python - If CExtensions are with CFFI - If file objects (if any) are closed
PyPy will work fine and you can expect average 7x performance gain , up to 20-30x.
_______________________________________________ pypy-dev mailing list pypy-dev@python.org https://mail.python.org/mailman/listinfo/pypy-dev

2015-09-30 20:10 GMT+02:00 Vasily Evseenko <svpcom@gmail.com>:
Hi, Could you explain about closed file objects (do you mean open file descriptors)? I've never heard about this restriction before.
PyPy uses a different garbage collection strategy, and unlike CPython, objects are not deallocated as soon as the variable goes out of scope: http://pypy.readthedocs.org/en/latest/cpython_differences.html#differences-r... FWIW, Java has a very similar behavior.
30.09.2015 19:35, Phyo Arkar пишет:
On Wed, Sep 30, 2015 at 6:54 PM, Luis José Novoa <luisjosenovoa@gmail.com> wrote:
gurobipy
Never heard of it.
Here are things PyPy Can help:
- If it is Pure Python - If CExtensions are with CFFI - If file objects (if any) are closed
PyPy will work fine and you can expect average 7x performance gain , up to 20-30x.
_______________________________________________ pypy-dev mailing listpypy-dev@python.orghttps://mail.python.org/mailman/listinfo/pypy-dev
_______________________________________________ pypy-dev mailing list pypy-dev@python.org https://mail.python.org/mailman/listinfo/pypy-dev
-- Amaury Forgeot d'Arc

http://pypy.readthedocs.org/en/latest/cpython_differences.html#differences-r... On Wed, Sep 30, 2015 at 1:10 PM, Vasily Evseenko <svpcom@gmail.com> wrote:
Hi, Could you explain about closed file objects (do you mean open file descriptors)? I've never heard about this restriction before.
30.09.2015 19:35, Phyo Arkar пишет:
On Wed, Sep 30, 2015 at 6:54 PM, Luis José Novoa <luisjosenovoa@gmail.com> wrote:
gurobipy
Never heard of it.
Here are things PyPy Can help:
- If it is Pure Python - If CExtensions are with CFFI - If file objects (if any) are closed
PyPy will work fine and you can expect average 7x performance gain , up to 20-30x.
_______________________________________________ pypy-dev mailing listpypy-dev@python.orghttps://mail.python.org/mailman/listinfo/pypy-dev
_______________________________________________ pypy-dev mailing list pypy-dev@python.org https://mail.python.org/mailman/listinfo/pypy-dev
-- Ryan [ERROR]: Your autotools build scripts are 200 lines longer than your program. Something’s wrong. http://kirbyfan64.github.io/

If your code is new enough that it is written like this: with open('output.txt', 'w') as f: f.write('Stuff') you don't have to worry, you will be fine. The with statement will handle the closing for you. If you don't use many files, well things will still work. It's sloppy, but as long as you don't run out of file descriptors, you code will still work. If you use lots of files, and don't close them, and don't rely on the with statement to close them for you ... you can run out. Bad things happen. Laura

Some of the badly written programs keep files open and expecting GC to close them, especially code written before with statement has introduced. I have seen them in some web frameworks and many other modules. They open file , process them and just ignore closing, causing pypy to fail to work. Fixing them is just a matter of using with statement or manually closing . On Thu, Oct 1, 2015 at 12:40 AM, Vasily Evseenko <svpcom@gmail.com> wrote:
Hi, Could you explain about closed file objects (do you mean open file descriptors)? I've never heard about this restriction before.
30.09.2015 19:35, Phyo Arkar пишет:
On Wed, Sep 30, 2015 at 6:54 PM, Luis José Novoa <luisjosenovoa@gmail.com> wrote:
gurobipy
Never heard of it.
Here are things PyPy Can help:
- If it is Pure Python - If CExtensions are with CFFI - If file objects (if any) are closed
PyPy will work fine and you can expect average 7x performance gain , up to 20-30x.
_______________________________________________ pypy-dev mailing listpypy-dev@python.orghttps://mail.python.org/mailman/listinfo/pypy-dev
_______________________________________________ pypy-dev mailing list pypy-dev@python.org https://mail.python.org/mailman/listinfo/pypy-dev

Hi, If you could point us to a place where we could have a quick look at the CPython C extension code implementing gurobipy (not gurobi!), we could give you a more precise answer. A bientôt, Armin.

Hi, My name is Divyam and I am working on a large-scale discrete optimization problem. I have used Pypy earlier in order to improve the runtime of my python code. Now I am using some external packages in python such as Gurobipy, Docplex. Is it possible to use these packages with Pypy and if yes, how can I install these packages in Pypy? Thanks and Regards, Divyam -- Sent from: http://pypy.1116445.n5.nabble.com/

Hi, On 31 May 2018 at 14:35, divyam.agg22 <divyam.agg22@gmail.com> wrote:
My name is Divyam and I am working on a large-scale discrete optimization problem. I have used Pypy earlier in order to improve the runtime of my python code. Now I am using some external packages in python such as Gurobipy, Docplex. Is it possible to use these packages with Pypy and if yes, how can I install these packages in Pypy?
Is the C/C++ source code of the Gurobipy extension module available anywhere? I didn't find it in 2015. If it is not, then it can't be used with PyPy because PyPy requires recompilation. A bientôt, Armin.
participants (9)
-
Amaury Forgeot d'Arc
-
Armin Rigo
-
Armin Rigo
-
divyam.agg22
-
Laura Creighton
-
Luis José Novoa
-
Phyo Arkar
-
Ryan Gonzalez
-
Vasily Evseenko