Re: Help me use my Dual Core CPU!

2006-10-01 Thread Michael
Paul Rubin wrote: > Michael <[EMAIL PROTECTED]> writes: >> > But ordinary programmers write real-world applications with shared data >> > all the time, namely database apps. >> >> I don't call that shared data because access to the shared data is >> arbitrated by a third party - namely the databa

Re: Help me use my Dual Core CPU!

2006-10-01 Thread Paul Rubin
Michael <[EMAIL PROTECTED]> writes: > > But ordinary programmers write real-world applications with shared data > > all the time, namely database apps. > > I don't call that shared data because access to the shared data is > arbitrated by a third party - namely the database. I mean where 2 or >

Re: Help me use my Dual Core CPU!

2006-09-28 Thread Michael
Paul Rubin wrote: > "Michael Sparks" <[EMAIL PROTECTED]> writes: >> > Kamaelia doesn't attempt concurrency at all. Its main idea is to use >> > generators to simulate microthreads. >> >> Regarding Kamaelia, that's not been the case for over a year now. >> >> We've had threaded components as wel

Re: Help me use my Dual Core CPU!

2006-09-22 Thread Paul Rubin
"Michael Sparks" <[EMAIL PROTECTED]> writes: > > Kamaelia doesn't attempt concurrency at all. Its main idea is to use > > generators to simulate microthreads. > > Regarding Kamaelia, that's not been the case for over a year now. > > We've had threaded components as well as generator based ones s

Re: Help me use my Dual Core CPU!

2006-09-18 Thread Michael Sparks
Paul Rubin wrote: > "Ramon Diaz-Uriarte" <[EMAIL PROTECTED]> writes: > > You might also want to check > > http://www.lindaspaces.com/products/NWS_overview.html > > by the guys who "invented" Linda. > > Cool, I guess. > > > (The Oz language/Mozart system is a good example of a different and > > very

Re: Help me use my Dual Core CPU!

2006-09-18 Thread mystilleef
Paul Rubin wrote: > "mystilleef" <[EMAIL PROTECTED]> writes: > > I use D-Bus (Python). I recommend it. I don't know how cross platform > > it is. However, it supports message passing of most built-in (strings, > > ints, lists, dictionaries etc) Python objects accross processes. You > > can mimick

Re: Help me use my Dual Core CPU!

2006-09-18 Thread mystilleef
Paul Rubin wrote: > "mystilleef" <[EMAIL PROTECTED]> writes: > > I use D-Bus (Python). I recommend it. I don't know how cross platform > > it is. However, it supports message passing of most built-in (strings, > > ints, lists, dictionaries etc) Python objects accross processes. You > > can mimick c

Re: Help me use my Dual Core CPU!

2006-09-17 Thread Paul Rubin
"mystilleef" <[EMAIL PROTECTED]> writes: > I use D-Bus (Python). I recommend it. I don't know how cross platform > it is. However, it supports message passing of most built-in (strings, > ints, lists, dictionaries etc) Python objects accross processes. You > can mimick clean Erlang-like concurrency

Re: Help me use my Dual Core CPU!

2006-09-17 Thread Andre Meyer
You may, of course, also have a look at JavaSpaces or TSpaces (both in Java).JavaSpaceshttp://java.sun.com/docs/books/jini/javaspaces/ http://java.sun.com/developer/technicalArticles/tools/JavaSpaces/index.htmlhttp://www.javaworld.com/jw-11-1999/jw-11-jiniology.htmlTSpaces http://www.almaden.ibm.co

Re: Help me use my Dual Core CPU!

2006-09-17 Thread Ramon Diaz-Uriarte
On 17 Sep 2006 00:55:09 -0700, Paul Rubin <"http://phr.cx"@nospam.invalid> wrote: > "Ramon Diaz-Uriarte" <[EMAIL PROTECTED]> writes: > > You might also want to check > > http://www.lindaspaces.com/products/NWS_overview.html52 > > by the guys who "invented" Linda. > > Cool, I guess. I've only play

Re: Help me use my Dual Core CPU!

2006-09-17 Thread Paul Rubin
"Ramon Diaz-Uriarte" <[EMAIL PROTECTED]> writes: > You might also want to check > http://www.lindaspaces.com/products/NWS_overview.html > by the guys who "invented" Linda. Cool, I guess. > (The Oz language/Mozart system is a good example of a different and > very neat approach to concurrency; som

Re: Help me use my Dual Core CPU!

2006-09-15 Thread Simon Wittber
Wolfgang Keller wrote: > > Are there any other concurrency options I've not discovered yet? > > PyMPI? > > Ironpython? > I'm looking at IronPython right now. I'm attempting to get it to run pybench, but first, I think I have to work out how to enable tracebacks... When the dual core notebook fina

Re: Help me use my Dual Core CPU!

2006-09-14 Thread Wolfgang Keller
> Are there any other concurrency options I've not discovered yet? PyMPI? Ironpython? Sincerely, Wolfgang Keller -- My email-address is correct. Do NOT remove ".nospam" to reply. -- http://mail.python.org/mailman/listinfo/python-list

Re: Help me use my Dual Core CPU!

2006-09-14 Thread mystilleef
I use D-Bus (Python). I recommend it. I don't know how cross platform it is. However, it supports message passing of most built-in (strings, ints, lists, dictionaries etc) Python objects accross processes. You can mimick clean Erlang-like concurrency with it. It is the future of IPC on Desktop Unix

Re: Help me use my Dual Core CPU!

2006-09-13 Thread Paul Rubin
Robin Becker <[EMAIL PROTECTED]> writes: > well these guys seem to think there are, perhaps it's a joke > http://anandtech.com/mac/showdoc.aspx?i=2832&p=6 Wow! Yes, it seems to be real ("Clovertown" 4-core cpu). See: http://www.tgdaily.com/2006/03/07/idf_keynotes_welcome_to_intel_3-point-0/ Th

Re: Help me use my Dual Core CPU!

2006-09-13 Thread Robin Becker
Paul Rubin wrote: > Robin Becker <[EMAIL PROTECTED]> writes: >> No I think they tried to just run a lot of processes at once and they >> got the 8 core by just substituting the two dual cores with two quads. > > Huh?! There are no quad core x86 cpu's as far as I know ;). > well these guys seem

Re: Help me use my Dual Core CPU!

2006-09-13 Thread Paul Boddie
Simon Wittber wrote: > Paul Boddie wrote: > > Rumour has it that recent versions of Windows provide fork-like > > semantics through a system call. Your mission is to integrate this > > transparently into the standard library's os.fork function. ;-) > > I'm not sure I'm up to this kind of low level

Re: Help me use my Dual Core CPU!

2006-09-13 Thread Paul Rubin
Robin Becker <[EMAIL PROTECTED]> writes: > No I think they tried to just run a lot of processes at once and they > got the 8 core by just substituting the two dual cores with two quads. Huh?! There are no quad core x86 cpu's as far as I know ;). > I used occam back in the eighties with ibm pcs a

Re: Help me use my Dual Core CPU!

2006-09-13 Thread Simon Wittber
Paul Boddie wrote: > Simon Wittber wrote: > > Michael wrote: > > > Also, Paul Boddie posted a module for parallel systems a while back as > > > well > > > which might be useful (at least for ideas): > > >* http://cheeseshop.python.org/pypi/parallel > > > > > I've just noticed that os.fork is n

Re: Help me use my Dual Core CPU!

2006-09-13 Thread Robin Becker
Paul Rubin wrote: > Robin Becker <[EMAIL PROTECTED]> writes: >> Nobody seems to have mentioned POSH http://poshmodule.sourceforge.net >> which used almost to work. I assume it's busted for later pythons and >> the author says it's just a demonstration. > > Yeah, it's been mentioned. > >> Anandtec

Re: Help me use my Dual Core CPU!

2006-09-13 Thread Paul Rubin
Robin Becker <[EMAIL PROTECTED]> writes: > Nobody seems to have mentioned POSH http://poshmodule.sourceforge.net > which used almost to work. I assume it's busted for later pythons and > the author says it's just a demonstration. Yeah, it's been mentioned. > Anandtech demoed an 8 core mac pro mac

Re: Help me use my Dual Core CPU!

2006-09-13 Thread Robin Becker
Simon Wittber wrote: > Paul Rubin wrote: >> "Simon Wittber" <[EMAIL PROTECTED]> writes: >>> I've just noticed that os.fork is not available on Win32. Ouch. >> Use the subprocess module. > > I can't see how subprocess.Popen can replace a fork. Using a manually > started process is not really viable

Re: Help me use my Dual Core CPU!

2006-09-13 Thread Paul Boddie
Simon Wittber wrote: > Michael wrote: > > Also, Paul Boddie posted a module for parallel systems a while back as well > > which might be useful (at least for ideas): > >* http://cheeseshop.python.org/pypi/parallel > > > > I've checked this out, it looks like a good idea which I could build > fu

Re: Help me use my Dual Core CPU!

2006-09-13 Thread Paul Rubin
"Simon Wittber" <[EMAIL PROTECTED]> writes: > I can't see how subprocess.Popen can replace a fork. Using a manually > started process is not really viable, as it does not automatically > share pre-built (read-only) data between the processes. If it can, I'd > really like to know how... Either with

Re: Help me use my Dual Core CPU!

2006-09-13 Thread Simon Wittber
Paul Rubin wrote: > "Simon Wittber" <[EMAIL PROTECTED]> writes: > > I've just noticed that os.fork is not available on Win32. Ouch. > > Use the subprocess module. I can't see how subprocess.Popen can replace a fork. Using a manually started process is not really viable, as it does not automaticall

Re: Help me use my Dual Core CPU!

2006-09-12 Thread Paul Rubin
"Simon Wittber" <[EMAIL PROTECTED]> writes: > I've just noticed that os.fork is not available on Win32. Ouch. Use the subprocess module. -- http://mail.python.org/mailman/listinfo/python-list

Re: Help me use my Dual Core CPU!

2006-09-12 Thread Simon Wittber
Michael wrote: > Also, Paul Boddie posted a module for parallel systems a while back as well > which might be useful (at least for ideas): >* http://cheeseshop.python.org/pypi/parallel > I've checked this out, it looks like a good idea which I could build further on. I've just noticed that os

Re: Help me use my Dual Core CPU!

2006-09-12 Thread Paul Rubin
[EMAIL PROTECTED] (Cameron Laird) writes: > Me, too. I'd love to talk over Linda with other aficionados, > and/or hunt together for an excuse to use her/it. How about an Mnesia-like database for Python? (Mnesia is an embedded database for Erlang programs.) I see in the PyLinda page that * 1

Re: Help me use my Dual Core CPU!

2006-09-12 Thread Ramon Diaz-Uriarte
On 9/13/06, Carl J. Van Arsdall <[EMAIL PROTECTED]> wrote: > Cameron Laird wrote: > > Tim Golden <[EMAIL PROTECTED]> wrote: (...) > >> | other types of concurrency which I might be able to use. I really like > >> | the PyLinda approach > >> (...) > > . > > Me, too. I'd love

Re: Help me use my Dual Core CPU!

2006-09-12 Thread Carl J. Van Arsdall
Cameron Laird wrote: > In article <[EMAIL PROTECTED]>, > Tim Golden <[EMAIL PROTECTED]> wrote: > . > . > . > >> | I know threads won't help (in CPython at least) so I'm investigating >> | other types of concurrency which I might b

Re: Help me use my Dual Core CPU!

2006-09-12 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Tim Golden <[EMAIL PROTECTED]> wrote: . . . >| I know threads won't help (in CPython at least) so I'm investigating >| other types of concurrency which I might be able to use. I really like >| th

Re: Help me use my Dual Core CPU!

2006-09-12 Thread Brian L. Troutwine
John Henry wrote: > I don't know what CPython is but I have developed a Python application > under Windows that utilize the Dure Core CPU when it's present. It's the default python implementation, the one you find at python.org. It happens to be written in C. Other python implementations included

Re: Help me use my Dual Core CPU!

2006-09-12 Thread John Henry
I don't know what CPython is but I have developed a Python application under Windows that utilize the Dure Core CPU when it's present. I don't know that I can say for sure that "threads won't help". Have you done some testing before using other approaches to see if it indeed won't help? Simon W

Re: Help me use my Dual Core CPU!

2006-09-12 Thread Michael
Simon Wittber wrote: > I've just bought a new notebook, which has a dual core CPU. > > I write cross platform games in Python, and I'd really like to be able > to use this second core (on my machine, and on user's machines) for any > new games I might write. > > I know threads won't help (in CPy

Re: Help me use my Dual Core CPU!

2006-09-12 Thread Paul Rubin
"Simon Wittber" <[EMAIL PROTECTED]> writes: > For game programming purposes, I was hoping someone could point me to a > technique for sharing objects across Python processes, preferably > without any kind of marshal/unmarshal steps. It's a long shot, I know. > To be viable, I'll need to be able to

RE: Help me use my Dual Core CPU!

2006-09-12 Thread Tim Golden
| > But I have the feeling I'm teaching my grandmother... Is that | > the kind of thing you were after? Or not? | | I'm not familiar with the expression 'teaching my grandmother'. What | exactly does it mean? Teaching my grandmother to suck eggs (and probably several variants with other relatives

Re: Help me use my Dual Core CPU!

2006-09-12 Thread Simon Wittber
Tim Golden wrote: > + Pyro - http://pyro.sf.net > + Corba - eg omniorb http://omniorb.sourceforge.net/ > + SPyRO - http://lsc.fie.umich.mx/~sadit/spyro/spyro.html > + mmap - (built-in module) http://docs.python.org/lib/module-mmap.html > + twisted - (because it can do everything), esp. > http://twi

Re: Help me use my Dual Core CPU!

2006-09-12 Thread Paul Rubin
"Simon Wittber" <[EMAIL PROTECTED]> writes: > Are there any other concurrency options I've not discovered yet? I've been wondering about the different Python MPI bindings that are out there, and whether they might make sense for general purpose concurrency when they were designed mostly for parall

RE: Help me use my Dual Core CPU!

2006-09-12 Thread Tim Golden
[Simon Wittber] | I write cross platform games in Python, and I'd really like to be able | to use this second core (on my machine, and on user's | machines) for any new games I might write. | I know threads won't help (in CPython at least) so I'm investigating | other types of concurrency which