
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.

2015-09-30 20:10 GMT+02:00 Vasily Evseenko <svpcom@gmail.com>:
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.
-- 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:
-- 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, 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/

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.

2015-09-30 20:10 GMT+02:00 Vasily Evseenko <svpcom@gmail.com>:
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.
-- 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:
-- 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, 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/
participants (9)
-
Amaury Forgeot d'Arc
-
Armin Rigo
-
Armin Rigo
-
divyam.agg22
-
Laura Creighton
-
Luis José Novoa
-
Phyo Arkar
-
Ryan Gonzalez
-
Vasily Evseenko