Path: csiph.com!usenet.pasdenom.info!news.redatomik.org!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.004 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'essentially': 0.04; 'mentioned,': 0.07; 'removes': 0.07; 'chunk': 0.09; 'oh,': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'slices': 0.09; 'systems.': 0.12; "wouldn't": 0.14; '>to': 0.16; 'effect,': 0.16; 'inputs': 0.16; 'internally': 0.16; 'message-id:@4ax.com': 0.16; 'outputs': 0.16; 'possibly,': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'subject:Pypy': 0.16; 'url:oreilly': 0.16; 'applies': 0.16; 'looked': 0.18; 'fit': 0.20; 'feb': 0.22; 'memory': 0.22; 'aspect': 0.24; 'url:home': 0.24; 'paul': 0.24; 'order.': 0.26; 'gets': 0.27; 'header:X-Complaints- To:1': 0.27; 'point': 0.28; 'fixed': 0.29; '(which': 0.31; 'gives': 0.31; "d'aprano": 0.31; 'factor': 0.31; 'os,': 0.31; 'writes:': 0.31; 'run': 0.32; 'fri,': 0.33; 'guess': 0.33; 'period': 0.33; 'but': 0.35; 'scheduled': 0.36; 'charset:us- ascii': 0.36; "i'll": 0.36; 'subject:?': 0.36; 'handle': 0.38; 'to:addr:python-list': 0.38; 'url:01': 0.39; 'does': 0.39; 'to:addr:python.org': 0.39; 'system.': 0.39; 'received:org': 0.40; 'then,': 0.60; 'affect': 0.61; 'entire': 0.61; 'complete': 0.62; 'happen': 0.63; 'skip:n 10': 0.64; 'total': 0.65; 'account': 0.65; 'within': 0.65; 'between': 0.67; 'paper': 0.75; 'article': 0.77; 'transfer': 0.82; '(any': 0.84; '2015': 0.84; 'harmful': 0.84; 'url:2007': 0.84; 'aircraft': 0.91 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Dennis Lee Bieber Subject: Re: Future of Pypy? Date: Fri, 27 Feb 2015 18:47:27 -0500 Organization: IISS Elusive Unicorn References: <87h9udb1eq.fsf@jester.gateway.pace.com> <87bnkkb22u.fsf@jester.gateway.pace.com> <871tlgaxi7.fsf@jester.gateway.pace.com> <87mw43apmf.fsf@jester.gateway.pace.com> <54ec20d0$0$11103$c3e8da3@news.astraweb.com> <878ufj824g.fsf@jester.gateway.pace.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: adsl-108-73-118-55.dsl.klmzmi.sbcglobal.net X-Newsreader: Forte Agent 6.00/32.1186 X-No-Archive: YES X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 42 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1425080856 news.xs4all.nl 2899 [2001:888:2000:d::a6]:48969 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:86602 On Fri, 27 Feb 2015 13:40:15 -0800, Paul Rubin declaimed the following: >Steven D'Aprano writes: >> An interesting point of view: threading is harmful because it removes >> determinism from your program. >> http://radar.oreilly.com/2007/01/threads-considered-harmful.html > >Concurrent programs are inherently nondeterministic because they respond >to i/o events that can happen in any order. I looked at the paper cited And that aspect (nondeterministic) applies whether one is using threads or processes to handle the I/O -- except, possibly, in the types of architectures used for aircraft systems: fixed time slices for "partitions" (which /may/ run threads internally on a partition OS, but the entire partition gets scheduled as a chunk by an overarching OS); no dynamic memory allocations (and no freeing either) once the system transitions from "startup" to "running" (any message queues have all "entries" pre-allocated in a list); dedicated message queues for data transfer between partitions vs within a partition, etc. Oh, and some designs require a partition to essentially complete all processing within some total period of CPU time (say, three partition time slices) and then, in effect, start over from the beginning. >Hmm, I see there's a Wikipedia article "Kahn process networks" about PN >networks as mentioned, so I guess I'll look at it. I see it claims a >KPN is deterministic on its inputs, while I think CSP's might not be. > Oddly, KPN wouldn't fit the hard realtime of aircraft systems -- it fails on the "unbounded FIFOs". Wikipedia gives "deterministic" as (paraphrased) same inputs give the same outputs -- but does not take into account the timing of the system. KPN> Hence, timing of the processes does not affect outputs of the system. Deterministic /timing/ is a factor in aircraft systems. -- Wulfraed Dennis Lee Bieber AF6VN wlfraed@ix.netcom.com HTTP://wlfraed.home.netcom.com/