Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #24782

Re: when "normal" parallel computations in CPython will be implemented at last?

From John Nagle <nagle@animats.com>
Newsgroups comp.lang.python
Subject Re: when "normal" parallel computations in CPython will be implemented at last?
Date 2012-07-02 10:51 -0700
Organization A noiseless patient Spider
Message-ID <jssn38$prp$1@dont-email.me> (permalink)
References <339f28b0-1305-43b9-b2b1-02e332bc80e3@q29g2000vby.googlegroups.com>

Show all headers | View raw


On 7/1/2012 10:51 AM, dmitrey wrote:
> hi all,
> are there any information about upcoming availability of parallel
> computations in CPython without modules like  multiprocessing? I mean
> something like parallel "for" loops, or, at least, something without
> forking with copying huge amounts of RAM each time and possibility to
> involve unpiclable data (vfork would be ok, but AFAIK it doesn't work
> with CPython due to GIL).
>
> AFAIK in PyPy some progress have been done (
> http://morepypy.blogspot.com/2012/06/stm-with-threads.html )
>
> Thank you in advance, D.
>

    It would be "un-Pythonic" to have real concurrency in Python.
You wouldn't be able to patch code running in one thread from
another thread.  Some of the dynamic features of Python
would break.   If you want fine-grained concurrency, you need
controlled isolation between concurrent tasks, so they interact
only at well-defined points.  That's un-Pythonic.

				John Nagle

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

when "normal" parallel computations in CPython will be implemented at last? dmitrey <dmitrey15@gmail.com> - 2012-07-01 10:51 -0700
  Re: when "normal" parallel computations in CPython will be implemented at last? Thomas Jollans <t@jollybox.de> - 2012-07-01 20:53 +0200
    Re: when "normal" parallel computations in CPython will be implemented at last? Ross Ridge <rridge@csclub.uwaterloo.ca> - 2012-07-01 16:03 -0400
  Re: when "normal" parallel computations in CPython will be implemented at last? Thomas Jollans <t@jollybox.de> - 2012-07-01 20:58 +0200
  Re: when "normal" parallel computations in CPython will be implemented at last? Andrew Berg <bahamutzero8825@gmail.com> - 2012-07-01 14:09 -0500
  Re: when "normal" parallel computations in CPython will be implemented at last? Thomas Jollans <t@jollybox.de> - 2012-07-01 21:36 +0200
  Re: when "normal" parallel computations in CPython will be implemented at last? John Nagle <nagle@animats.com> - 2012-07-02 10:51 -0700
    Re: when "normal" parallel computations in CPython will be implemented at last? Tim Roberts <timr@probo.com> - 2012-07-03 20:16 -0700
  Re: when "normal" parallel computations in CPython will be implemented at last? Stefan Behnel <stefan_ml@behnel.de> - 2012-07-02 20:37 +0200

csiph-web