Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!ecngs!feeder2.ecngs.de!newsfeed.freenet.ag!news2.euro.net!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.046 X-Spam-Evidence: '*H*': 0.91; '*S*': 0.00; 'python.': 0.02; 'memory.': 0.05; 'objects,': 0.07; 'closest': 0.09; 'linux.': 0.09; 'sockets': 0.09; 'windows,': 0.09; 'afaik.': 0.16; 'erlang,': 0.16; 'least,': 0.16; 'thanks,': 0.18; 'tests': 0.18; 'memory': 0.18; 'windows': 0.19; 'question.': 0.20; "i've": 0.23; 'header :In-Reply-To:1': 0.25; 'header:User-Agent:1': 0.26; 'implemented': 0.27; 'library.': 0.27; 'description,': 0.29; "i'm": 0.29; 'maybe': 0.29; 'stuff': 0.30; 'asking': 0.32; 'switch': 0.32; 'purposes,': 0.33; 'to:addr:python-list': 0.33; 'doing': 0.35; 'received:192.168.0': 0.35; 'something': 0.35; 'there': 0.35; 'add': 0.36; 'really': 0.36; 'but': 0.36; 'url:org': 0.36; 'functional': 0.36; 'modules': 0.36; 'scientific': 0.36; "i'll": 0.36; 'enough': 0.36; 'operating': 0.36; 'possible': 0.37; 'option': 0.37; 'uses': 0.37; 'subject:: ': 0.38; 'some': 0.38; 'to:addr:python.org': 0.39; 'received:192': 0.39; 'received:192.168': 0.40; 'think': 0.40; 'your': 0.60; 'most': 0.61; 'received:62': 0.62; 'provide': 0.62; 'between': 0.63; 'more': 0.63; 'around,': 0.84; 'computation.': 0.84; 'received:192.168.0.101': 0.84; 'received:192.168.13': 0.84; 'received:62.179': 0.84; 'received:62.179.121': 0.84; 'received:upcmail.net': 0.84; 'url:api': 0.84; 'try.': 0.91 X-SourceIP: 89.134.225.226 Date: Fri, 31 Aug 2012 23:10:47 +0200 From: Laszlo Nagy User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:14.0) Gecko/20120713 Thunderbird/14.0 MIME-Version: 1.0 To: python-list@python.org Subject: Re: Looking for an IPC solution References: <7x4nni23z9.fsf@ruckus.brouhaha.com> In-Reply-To: <7x4nni23z9.fsf@ruckus.brouhaha.com> 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 32 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1346447585 news.xs4all.nl 6939 [2001:888:2000:d::a6]:44786 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:28195 > Zeromq (suggested by someone) is an option since it's pretty fast for > most purposes, but I don't think it uses shared memory. Interesting question. The documentation says: http://api.zeromq.org/2-1:zmq-ipc The inter-process transport is currently only implemented on operating systems that provide UNIX domain sockets. (OFF: Would it be possible to add local IPC support for Windows using mmap()? I have seen others doing it.) At least, it is functional on Windows, and it excels on Linux. I just need to make transports configureable. Good enough for me. > The closest > thing I can think of to what you're asking is MPI, intended for > scientific computation. I don't know of general purpose IPC that uses > it though I've thought it would be interesting. There are also some > shared memory modules around, including POSH for shared objects, but > they don't switch between memory and sockets AFAIK. > > Based on your description, maybe what you really want is Erlang, or > something like it for Python. There would be more stuff to do than just > supply an IPC library. Yes, although I would really like to do this job in Python. I'm going to make some tests with zeromq. If the speed is good for local inter-process communication, then I'll give it a try. Thanks, Laszlo