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


Groups > comp.lang.python > #61209

Re: Embedding multiple interpreters

Path csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <garthy_nhtyp@entropicsoftware.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.190
X-Spam-Level *
X-Spam-Evidence '*H*': 0.63; '*S*': 0.00; 'context': 0.07; 'thread': 0.14; "wouldn't": 0.14; 'enough.': 0.16; 'shared.': 0.16; 'supplying': 0.16; 'wrote:': 0.18; 'later': 0.20; 'fit': 0.20; 'code,': 0.22; 'input': 0.22; 'header:User-Agent:1': 0.23; 'cheers,': 0.24; 'script': 0.25; 'header:In-Reply-To:1': 0.27; 'point': 0.28; 'external': 0.29; 'run': 0.32; 'another': 0.32; 'running': 0.33; 'actively': 0.33; 'minimal': 0.33; 'received:66': 0.35; 'common': 0.35; 'objects': 0.35; 'requirement': 0.35; 'but': 0.35; 'there': 0.35; 'version': 0.36; 'interaction': 0.36; 'whilst': 0.36; 'being': 0.38; 'to:addr:python-list': 0.38; 'ability': 0.39; 'to:addr:python.org': 0.39; 'either': 0.39; 'even': 0.60; 'solve': 0.60; 'free': 0.61; 'impact': 0.61; 'information,': 0.61; "you're": 0.61; 'chance': 0.65; 'between': 0.67; 'hand': 0.80; 'fortunate': 0.84; 'gregory,': 0.84; 'malicious': 0.84; 'reduced.': 0.84; 'continue.': 0.91; 'reply,': 0.93
Date Sat, 07 Dec 2013 11:27:47 +1030
From Garthy <garthy_nhtyp@entropicsoftware.com>
User-Agent Mozilla/5.0 (X11; Linux i686 on x86_64; rv:8.0) Gecko/20111105 Thunderbird/8.0
MIME-Version 1.0
To python-list@python.org
Subject Re: Embedding multiple interpreters
References <mailman.3620.1386298086.18130.python-list@python.org> <bgdat9FouohU1@mid.individual.net> <mailman.3626.1386318160.18130.python-list@python.org> <bgf089F5l7tU1@mid.individual.net>
In-Reply-To <bgf089F5l7tU1@mid.individual.net>
Content-Type text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding 7bit
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.3684.1386377873.18130.python-list@python.org> (permalink)
Lines 35
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1386377873 news.xs4all.nl 2939 [2001:888:2000:d::a6]:47137
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:61209

Show key headers only | View raw


Hi Gregory,

On 07/12/13 08:39, Gregory Ewing wrote:
 > Garthy wrote:
 >> To allow each script to run in its own environment, with minimal
 >> chance of inadvertent interaction between the environments, whilst
 >> allowing each script the ability to stall on conditions that will be
 >> later met by another thread supplying the information, and to fit in
 >> with existing infrastructure.
 >
 > The last time I remember this being discussed was in the context
 > of allowing free threading. Multiple interpreters don't solve
 > that problem, because there's still only one GIL and some
 > objects are shared.

I am fortunate in my case as the normal impact of the GIL would be much 
reduced. The common case is only one script actively progressing at a 
time- with the others either not running or waiting for external input 
to continue.

But as you point out in your other reply, there are still potential 
concerns that arise from the smaller set of shared objects even across 
interpreters.

 > But if all you want is for each plugin to have its own version
 > of sys.modules, etc., and you're not concerned about malicious
 > code, then it may be good enough.

I wouldn't say that I wasn't concerned about it entirely, but on the 
other hand it is not a hard requirement to which all other concerns are 
secondary.

Cheers,
Garth

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


Thread

Embedding multiple interpreters Garthy <garthy_nhtyp@entropicsoftware.com> - 2013-12-06 13:04 +1030
  Re: Embedding multiple interpreters Gregory Ewing <greg.ewing@canterbury.ac.nz> - 2013-12-06 19:58 +1300
    Re: Embedding multiple interpreters Garthy <garthy_nhtyp@entropicsoftware.com> - 2013-12-06 18:29 +1030
      Re: Embedding multiple interpreters Gregory Ewing <greg.ewing@canterbury.ac.nz> - 2013-12-07 11:09 +1300
        Re: Embedding multiple interpreters Garthy <garthy_nhtyp@entropicsoftware.com> - 2013-12-07 11:27 +1030
    Re: Embedding multiple interpreters Garthy <garthy_nhtyp@entropicsoftware.com> - 2013-12-06 18:51 +1030
    Re: Embedding multiple interpreters Chris Angelico <rosuav@gmail.com> - 2013-12-06 19:33 +1100
    Re: Embedding multiple interpreters Chris Angelico <rosuav@gmail.com> - 2013-12-06 20:27 +1100
    Re: Embedding multiple interpreters Garthy <garthy_nhtyp@entropicsoftware.com> - 2013-12-06 20:05 +1030
      Re: Embedding multiple interpreters Gregory Ewing <greg.ewing@canterbury.ac.nz> - 2013-12-07 11:23 +1300
        Re: Embedding multiple interpreters Garthy <garthy_nhtyp@entropicsoftware.com> - 2013-12-07 11:01 +1030
    Re: Embedding multiple interpreters Garthy <garthy_nhtyp@entropicsoftware.com> - 2013-12-06 20:14 +1030
    Re: Embedding multiple interpreters Tim Golden <mail@timgolden.me.uk> - 2013-12-06 10:17 +0000
    Re: Embedding multiple interpreters Chris Angelico <rosuav@gmail.com> - 2013-12-06 22:57 +1100
    Re: Embedding multiple interpreters Garthy <garthy_nhtyp@entropicsoftware.com> - 2013-12-07 00:26 +1030
    Re: Embedding multiple interpreters Garthy <garthy_nhtyp@entropicsoftware.com> - 2013-12-07 00:34 +1030

csiph-web