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


Groups > comp.lang.python > #24845

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

From Tim Roberts <timr@probo.com>
Newsgroups comp.lang.python
Subject Re: when "normal" parallel computations in CPython will be implemented at last?
Date 2012-07-03 20:16 -0700
Organization Providenza & Boekelheide, Inc.
Message-ID <a9d7v7d6pps6a8697eo41l9tr9adf1v753@4ax.com> (permalink)
References <339f28b0-1305-43b9-b2b1-02e332bc80e3@q29g2000vby.googlegroups.com> <jssn38$prp$1@dont-email.me>

Show all headers | View raw


John Nagle <nagle@animats.com> wrote:
>
>    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.

I disagree.  The situation in Python is no different than the situation in
other programming languages.  If you have shared state, you protect it with
some kind of lock.  After all, you don't patch code on a byte-by-byte basis
-- you just change function bindings.  That can be done atomically.
-- 
Tim Roberts, timr@probo.com
Providenza & Boekelheide, Inc.

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