Parallel Python on PowerMac?

W

Wolfgang Keller

Hello,

as I might get a dual-G5 PowerMac someday in the not to distant future, I
was wondering what options are available for making Python benefit from the
second CPU? Running two interpreters and using Pyro would not be the most
efficient (and easiest) way, I guess?

TIA,

Best regards

Wolfgang Keller
 
A

Alan Kennedy

[Wolfgang Keller]
> as I might get a dual-G5 PowerMac someday in the not to distant
> future, I was wondering what options are available for making Python
> benefit from the second CPU? Running two interpreters and using Pyro
> would not be the most efficient (and easiest) way, I guess?

Qualifier: obviously efficiency is relative to the application.

But I would venture to say that, *in the general case*, the "most
efficient" way to benefit from a second cpu, both in terms of coding
time and execution efficiency, is to use either jython on a suitable jvm
or ironpython on mono (when it catches up with the .net CLR in efficiency).

I say "most efficient in execution efficiency" because all of the
de/serialization involved with communicating between two independent
cpython interpreters, using something like pyro, would outweigh whatever
performance advantage cpython might have over jython or ironpython. This
becomes more pronounced as you add more and more processors into the
picture.

I say "most efficient in coding time" because cpython would require you
to specially write code for inter-interpreter communications, and
possibly restructure your application accordingly, whereas jython and
ironpython won't: the same interpreter can have threads on multiple
processors, all executing simultaneously.

Although, iff your prospective machine supports System V IPC, you might
want to check out PoSH.

http://poshmodule.sourceforge.net

running-to-find-my-flame-retardant-suit-ly'yrs
 
W

Wolfgang Keller

Hello,

and thanks for your reply.
But I would venture to say that, *in the general case*, the "most
efficient" way to benefit from a second cpu, both in terms of coding
time and execution efficiency, is to use either jython

*cough* *choke*

Err, no, sorry, not for me.
Although, iff your prospective machine supports System V IPC,

No clue whether MacOS X does so. Afaik it's basically a FreeBSD based on
Mach (from CMU) with a proprietary layer above.
you might want to check out PoSH.

Where's the binary installer for MacOS X?

Not having to use compilers and linkers and makefiles and the like was one
of the major reasons which made Python interesting for me...

Best regards,

Wolfgang Keller
 
W

Wolfgang Keller

Although, iff your prospective machine supports System V IPC,
No clue whether MacOS X does so.

#@§$%&! Read before you post. According to "Mac OS X for UNIX Users"
there's a compatibility library included in Mac OS X that does so.

Now who's got a the tools and the know-how to port this thing to the Mac?

TIA,

Best regards,

Wolfgang Keller
 
R

Robert Kern

Alan said:
Although, iff your prospective machine supports System V IPC, you might
want to check out PoSH.

http://poshmodule.sourceforge.net

It uses inline assembly, so that's a no-go on the PPC unless someone
ports the assembly code.

--
Robert Kern
(e-mail address removed)

"In the fields of hell where the grass grows high
Are the graves of dreams allowed to die."
-- Richard Harter
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,583
Members
45,073
Latest member
DarinCeden

Latest Threads

Top