poeschko/Mathics — pull request #50 by sn6uv (2012-10-26 08:33:12+00:00)
Title: WIP: Pypy compatibility

The backend was refactored to use sympy rather than gmpy which isn't PyPy compatible.

Along the way I found a few minor bugs and fixed them (e.g. IndexForm)

All the tests pass except for a known bug in SeedRandom.

I've added some benchmarking (see mathics/benchmark/ ). In some cases (e.g. RandomReal, RandomInteger) there is a 100x speedup by using PyPy, in other cases pypy is slightly slower. As a result of using sympy rather than gmpy, there is a considerable (think ~2x) slowdown when comparing the original version to this branch under cpython.

It'd be great if some people could checkout this branch and run the tests / benchmarks. Warning: the benchmarks will probably take a long time (hours) under cpython, but should run in reasonable time under PyPy