473,387 Members | 1,721 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Parallel Python on PowerMac?

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
Jul 18 '05 #1
4 1294
[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

--
alan kennedy
------------------------------------------------------
email alan: http://xhaus.com/contact/alan
Jul 18 '05 #2
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
Jul 18 '05 #3
>> 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
Jul 18 '05 #4
Alan Kennedy wrote:
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
rk***@ucsd.edu

"In the fields of hell where the grass grows high
Are the graves of dreams allowed to die."
-- Richard Harter
Jul 18 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Markus Franz | last post by:
Hi. I have a difficult problem: An array contains several different URLs. I want to load these websites in parallel by using a HTTP-Request. How can I do this in PHP? Up to now I did this...
114
by: Maurice LING | last post by:
This may be a dumb thing to ask, but besides the penalty for dynamic typing, is there any other real reasons that Python is slower than Java? maurice
0
by: mmf | last post by:
Hi! I am using Python for CGI scripting. I had the following script: #!/usr/bin/python import sys print 'Content-type: text/html\r\n\r\n' print 'starting...' sys.stdout.flush() x = 999999
5
by: charlie strauss | last post by:
Below is a simple program that will cause python to intermittently stop executing for a few seconds. it's 100% reproducible on my machine. I'd be tempted to say this is a nasty garbage...
0
by: fiepye | last post by:
Hello. I am interested in parallel computing in Python. Except other modulesI would like to use new modules for vector and matrix operations and scientific computing SciPy and NumPy. I have...
10
by: Mythmon | last post by:
I am trying to make a program that will basically simulate a chess clock in python. To do this I have two threads running, one that updates the currently running clock, and one that watches for a...
43
by: parallelpython | last post by:
Has anybody tried to run parallel python applications? It appears that if your application is computation-bound using 'thread' or 'threading' modules will not get you any speedup. That is because...
5
by: fdu.xiaojf | last post by:
Hi all, I'm interested in Parallel Python and I learned from the website of Parallel Python that it can run on SMP and clusters. But can it run on a our muti-CPU server ? We are running an...
2
by: hari | last post by:
Hi all, I need to automate printer command testing, prinetr supports parallel/ serial/USB.How can i send the commands from python to printer. I have got pyparallel, as am new to python, no...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.