
Hello support-team, I have installed pypy 2.2.1 win32 for my OS Windows XP SP 3 -32 bit, Python 2.7, MSI Microsoft Visual C++ 2008 SP1 Redistributable Package (x86). Now my question: Must be Python 2.7 deinstalled and replaced by Pythonv2.7.6 or not? I ask you because a chess program "Sunfish" https://github.com/thomasahle/sunfish/ is using pypy. Best wishes, Norbert

Hello Maciej, hello support-team! my hardware is : Intel Core 2 Duo E6600 (2x2,4 Ghz) - 1 GB RAM - 512 MB graphical card operation system: Windows XP SP3 32-bit Would yoru recommendation be PyPy 3 2.1 beta 1 win32 or is Python 3.3.4 x86 MSI at this case your first choice? http://www.python.org/download/releases/3.3.4/ I use it for Sunfish https://github.com/thomasahle/sunfish/ and Shatranj http://code.google.com/p/shatranjpy/ (two chess engines) cf. WinBoard/CECP-protocol http://www.open-aurec.com/wbforum/WinBoard/engine-intf.html and WinBoard-GUI http://www.open-aurec.com/wbforum/viewtopic.php?f=19&t=51528 Best wishes, Norbert ----- Original Nachricht ---- Von: Maciej Fijalkowski <fijall@gmail.com> An: norbert.raimund.leisner@arcor.de Datum: 28.02.2014 08:39 Betreff: Re: [pypy-dev] pypy 2.2.1 win32

Hi Norbert, It is not easy to answer questions like that. We have not tested every Python program with every Python version. Why don't you just try yourself? If you run into problems when you try with PyPy, feel free to ask for advice here. But OK, I happen to have Sunfish and four different 32-bit Python versions installed on my computer. Here are the results I got when I timed the Sunfish function test.selfplay(): PyPy 2.2.1: 106.2 s PyPy 3.2.1 beta: 395.2 s CPython 2.7.6: 363.9 s CPython 3.4.0 RC2: 426.5 s So it seems that you can use any of these four, but PyPy 2.2.1 is fastest. (I think the author of Sunfish has optimized the code using PyPy 2.) And let's get the terminology straight: Python is a language. PyPy, CPython, IronPython and Jython are different implementations of that language. The software that you call Python 3.3.4 should be called CPython 3.3.4. Cheers, Johan On 2014-03-07 07:45, norbert.raimund.leisner@arcor.de wrote:

On 2014-02-28 08:03, norbert.raimund.leisner@arcor.de wrote:
Hello Norbert, A complete chess engine in 111 lines! That's pretty cool. I just downloaded Sunfish and tried it with PyPy 2.2.1 on a Windows 7 computer. It worked fine. No problems. And I have at least four different Python versions installed. As Maciej wrote, they happily coexist. Is it not working for you? If not, can you please provide us with more information. Best wishes, Johan

Hi Norbert, On 28/02/14 08:03, norbert.raimund.leisner@arcor.de wrote:
I ask you because a chess program "Sunfish" https://github.com/thomasahle/sunfish/ is using pypy.
Unrelated to your actual question, this sounds like a very cool addition to our benchmark set. Somebody feel like adding it? Cheers, Carl Friedrich

Hi Carl Friedrich, What kind of benchmark do you prefer? A benchmark that shows how great PyPy is compared with C-Python? Then you might use Sunfish, https://github.com/thomasahle/sunfish. Sunfish does not have any offical benchmarks, but I think you might could use test.selfplay() as a benchmark. (It has Sunfish play against itself, and it plays the same 84-move game each time.) This benchmark shows that PyPy is 3.5 times faster than C-Python. Or do you want a benchmark that shows how poor PyPy is, and maybe suggests where some improvement might be needed? Then you could use PyChess, http://code.google.com/p/pychess. PyChess comes with an official benchmark, pychess.Utils.lutils.Benchmark.benchmark(). It shows that PyPy is only 25% faster than C-Python. Sunfish is a bit of a toy program (but what a nice toy!). PyChess is a real chess program, maybe the leading chess program in Python. Best wishes, Johan On 2014-02-28 13:05, Carl Friedrich Bolz wrote:

Hello Maciej, hello support-team! my hardware is : Intel Core 2 Duo E6600 (2x2,4 Ghz) - 1 GB RAM - 512 MB graphical card operation system: Windows XP SP3 32-bit Would yoru recommendation be PyPy 3 2.1 beta 1 win32 or is Python 3.3.4 x86 MSI at this case your first choice? http://www.python.org/download/releases/3.3.4/ I use it for Sunfish https://github.com/thomasahle/sunfish/ and Shatranj http://code.google.com/p/shatranjpy/ (two chess engines) cf. WinBoard/CECP-protocol http://www.open-aurec.com/wbforum/WinBoard/engine-intf.html and WinBoard-GUI http://www.open-aurec.com/wbforum/viewtopic.php?f=19&t=51528 Best wishes, Norbert ----- Original Nachricht ---- Von: Maciej Fijalkowski <fijall@gmail.com> An: norbert.raimund.leisner@arcor.de Datum: 28.02.2014 08:39 Betreff: Re: [pypy-dev] pypy 2.2.1 win32

Hi Norbert, It is not easy to answer questions like that. We have not tested every Python program with every Python version. Why don't you just try yourself? If you run into problems when you try with PyPy, feel free to ask for advice here. But OK, I happen to have Sunfish and four different 32-bit Python versions installed on my computer. Here are the results I got when I timed the Sunfish function test.selfplay(): PyPy 2.2.1: 106.2 s PyPy 3.2.1 beta: 395.2 s CPython 2.7.6: 363.9 s CPython 3.4.0 RC2: 426.5 s So it seems that you can use any of these four, but PyPy 2.2.1 is fastest. (I think the author of Sunfish has optimized the code using PyPy 2.) And let's get the terminology straight: Python is a language. PyPy, CPython, IronPython and Jython are different implementations of that language. The software that you call Python 3.3.4 should be called CPython 3.3.4. Cheers, Johan On 2014-03-07 07:45, norbert.raimund.leisner@arcor.de wrote:

On 2014-02-28 08:03, norbert.raimund.leisner@arcor.de wrote:
Hello Norbert, A complete chess engine in 111 lines! That's pretty cool. I just downloaded Sunfish and tried it with PyPy 2.2.1 on a Windows 7 computer. It worked fine. No problems. And I have at least four different Python versions installed. As Maciej wrote, they happily coexist. Is it not working for you? If not, can you please provide us with more information. Best wishes, Johan

Hi Norbert, On 28/02/14 08:03, norbert.raimund.leisner@arcor.de wrote:
I ask you because a chess program "Sunfish" https://github.com/thomasahle/sunfish/ is using pypy.
Unrelated to your actual question, this sounds like a very cool addition to our benchmark set. Somebody feel like adding it? Cheers, Carl Friedrich

Hi Carl Friedrich, What kind of benchmark do you prefer? A benchmark that shows how great PyPy is compared with C-Python? Then you might use Sunfish, https://github.com/thomasahle/sunfish. Sunfish does not have any offical benchmarks, but I think you might could use test.selfplay() as a benchmark. (It has Sunfish play against itself, and it plays the same 84-move game each time.) This benchmark shows that PyPy is 3.5 times faster than C-Python. Or do you want a benchmark that shows how poor PyPy is, and maybe suggests where some improvement might be needed? Then you could use PyChess, http://code.google.com/p/pychess. PyChess comes with an official benchmark, pychess.Utils.lutils.Benchmark.benchmark(). It shows that PyPy is only 25% faster than C-Python. Sunfish is a bit of a toy program (but what a nice toy!). PyChess is a real chess program, maybe the leading chess program in Python. Best wishes, Johan On 2014-02-28 13:05, Carl Friedrich Bolz wrote:
participants (4)
-
Carl Friedrich Bolz
-
Johan Råde
-
Maciej Fijalkowski
-
norbert.raimund.leisner@arcor.de