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


Groups > comp.lang.python > #28195

Re: Looking for an IPC solution

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 <gandalf@shopzeus.com>
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 <gandalf@shopzeus.com>
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 <mailman.9.1346440878.27098.python-list@python.org> <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 <python-list.python.org>
List-Unsubscribe <http://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 <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.14.1346447585.27098.python-list@python.org> (permalink)
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

Show key headers only | View raw


> 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

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


Thread

Looking for an IPC solution Laszlo Nagy <gandalf@shopzeus.com> - 2012-08-31 21:04 +0200
  Re: Looking for an IPC solution Marco Nawijn <nawijn@gmail.com> - 2012-08-31 13:25 -0700
  Re: Looking for an IPC solution Marco Nawijn <nawijn@gmail.com> - 2012-08-31 13:25 -0700
  Re: Looking for an IPC solution Paul Rubin <no.email@nospam.invalid> - 2012-08-31 13:36 -0700
    Re: Looking for an IPC solution Laszlo Nagy <gandalf@shopzeus.com> - 2012-08-31 23:10 +0200
  Re: Looking for an IPC solution Wolfgang Keller <feliphil@gmx.net> - 2012-09-01 14:55 +0200
    Re: Looking for an IPC solution vasudevram <vasudevram@gmail.com> - 2012-09-03 14:43 -0700
    Re: Looking for an IPC solution Laszlo Nagy <gandalf@shopzeus.com> - 2012-09-06 12:13 +0200
  Re: Looking for an IPC solution Aaron Brady <castironpi@gmail.com> - 2012-09-01 19:10 -0700
    Re: Looking for an IPC solution Laszlo Nagy <gandalf@shopzeus.com> - 2012-09-06 12:00 +0200
  Re: Looking for an IPC solution Aaron Brady <castironpi@gmail.com> - 2012-09-01 19:10 -0700

csiph-web