On Fri, Jul 05, 2013 at 11:17:15PM +0200, Armin Rigo wrote:
> Hi Sean,
> 
> On Fri, Jul 5, 2013 at 8:30 PM, Sean Fisk <seanf...@gmail.com> wrote:
> > For my internship, I am working on implementing a solver for partial
> > differential equations in RPython. I am investigating the possibility of
> > parallelizing the code using multi-threading.
> 
> Sorry, RPython is the wrong tool.  It doesn't support multithreading
> any more than CPython and PyPy: it relies on the GIL to avoid
> crashing, including (but not limited to) everything related to the GC.
>  The best you can do is dividing the problem among multiple processes.

Hi Sean,
Your internship sounds very exciting!

RPython is frowned upon for general coding (I believe because it is
not a stable supported language target, it requires great care for
managing the various resources, and provides little benefit over
targetting pypy).  I would modestly suggest that instead you should
implement your solver on pypy and use your new found rpython skills to
optimise the part of the code which is performing poorly (or at least
feed back concise benchmarks into pypy).  I think that the work on
numpypy would have a considerable overlap with your needs.

Ping me or the list if you need help, also tell us more about your
project and its goals!

njh
_______________________________________________
pypy-dev mailing list
pypy-dev@python.org
http://mail.python.org/mailman/listinfo/pypy-dev

Reply via email to