[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/functions.php on line 4586: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3765)
[phpBB Debug] PHP Warning: in file /includes/functions.php on line 4588: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3765)
[phpBB Debug] PHP Warning: in file /includes/functions.php on line 4589: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3765)
[phpBB Debug] PHP Warning: in file /includes/functions.php on line 4590: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3765)
AI Challenge Forums • View topic - Pypy support

It is currently Sat Jun 24, 2017 5:32 pm Advanced search

Pypy support

New Language? Want more libraries? Post Here.

Pypy support

Postby hoplite » Tue Nov 08, 2011 11:30 pm

Will pypy be supported at any point? It would be a drop in replacement for the existing python starter kit and add a fair boost of speed for many of the tasks my bot spends a lot of time churning through.

On a side note, the starter kit tries to use psyco which is not supported on 64-bit systems. IIRC the game servers are all 64-bit linux machines.
hoplite
Cadet
 
Posts: 1
Joined: Tue Nov 08, 2011 11:21 pm

Re: Pypy support

Postby tedwards » Tue Nov 15, 2011 5:41 am

Seconds for pypy !
tedwards
Cadet
 
Posts: 1
Joined: Tue Nov 15, 2011 5:38 am

Re: Pypy support

Postby hexist » Wed Nov 16, 2011 2:27 am

Yes thirds for pypy
hexist
Cadet
 
Posts: 9
Joined: Sat Feb 06, 2010 5:14 am

Re: Pypy support

Postby gerg.bowering » Thu Nov 17, 2011 11:08 pm

Besides PyPy support for Bots, organisers should consider running the game engine with PyPy as a faster alternative to CPython.

Faster game rate would benefit everyone, not just Python bots.

Update: Just installed and tested the PyPy 1.6 binary release for Win32. The engine performance was not noticably faster using PyPy 1.6 than under PythonC (3.2.2).

Both engine and Python starter bots ran using PyPy without modification, however the current Win32 PyPy build appears to be unstable and crashes frequently. Consequently I would not recommend it for Windows users.

PyPy is developed primarily on Linux, and the Linux builds are stable, so I'd be interested to hear if anyone has tried running games using PyPy on Linux.
gerg.bowering
Cadet
 
Posts: 7
Joined: Wed Nov 02, 2011 4:30 am

Re: Pypy support

Postby analyst74 » Sun Nov 20, 2011 8:01 pm

I don't think running starter bots will accurately reflect the performance difference. At least running some reasonably sophisticated bot (i.e. taking a couple hundred ms per turn) will be a better benchmark.
analyst74
Major
 
Posts: 39
Joined: Wed Feb 17, 2010 7:45 pm

Re: Pypy support

Postby skuto » Mon Nov 21, 2011 1:40 pm

skuto
Captain
 
Posts: 21
Joined: Mon Oct 24, 2011 6:49 pm

Re: Pypy support

Postby skuto » Mon Nov 21, 2011 7:12 pm

skuto
Captain
 
Posts: 21
Joined: Mon Oct 24, 2011 6:49 pm

Re: Pypy support

Postby Janzert » Tue Nov 22, 2011 5:15 am

Yes PyPy 1.7 is now supported and live on the servers, was just waiting for it to be released so I could add it. :)

To use just change your "MyBot.py" to "MyBot.pypy" and it will be run under pypy.
Janzert
Contest Organizer
 
Posts: 271
Joined: Sun Feb 07, 2010 1:59 am

Re: Pypy support

Postby codetiger » Wed Dec 07, 2011 5:47 am

Does pypy support numpy? AFAIK, it doesn't.

In that case, is pypy faster than python + bumpy?

codetiger
Lieutenant-Colonel
 
Posts: 47
Joined: Sun Aug 21, 2011 4:47 am

Re: Pypy support

Postby codetiger » Sun Dec 11, 2011 11:41 am

I tried submitting my code in pypy.

Two files MyBot.pypy and Ants.pypy. But I get the following error

Traceback (most recent call last):
File "app_main.py", line 51, in run_toplevel
File "MyBot.pypy", line 2, in
from ants import *
ImportError: No module named ants
turn 0 bot 0 crashed

Probably my ants.pypy is not recognized and its the same when I compile on my local machine. If I submit it as MyBot.pypy and ants.py, it works on my local machine but am concerned if it will compile correctly both on pypy.

codetiger
Lieutenant-Colonel
 
Posts: 47
Joined: Sun Aug 21, 2011 4:47 am

Next

Return to Language Support

Who is online

Users browsing this forum: No registered users and 1 guest

cron