473,785 Members | 2,465 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1316
[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
1749
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 with an external Python script because Python offers process control functions. But in PHP only exist restricted possibilities for using threads / processes.
114
9886
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
1316
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
1587
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 collection performance issue except that there is no major memory to be garbage collected in this script. I'd be tempted to say it was a unix virtual memory issue except this is occuring at around 1/5th of my physical memory size. So something else...
0
1277
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 already installed LAPACK and BLAS libraries. It works well. For object oriented parallel programming in Python on a single machine I can use techniques such as Bulk Synchronous Parallelism (BSP) or Message Passing Interface (MPI). There are mentioned...
10
2483
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 keypress. I am using the effbot Console module, and that is where I get the events for the keypresses. But when I press space it crashes shortly after. The program stops, the Console closes, and windows says that the program pythonw.exe has had an...
43
4325
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 python interpreter uses GIL(Global Interpreter Lock) for internal bookkeeping. The later allows only one python byte-code instruction to be executed at a time even if you have a multiprocessor computer. To overcome this limitation, I've created...
5
1940
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 origin3800 server with 128 CPUs. Thanks.
2
4458
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 idea how to work on it. Please give some tips,The comamnd to be sent to the printer is hex data "1B 40".please give a example,it will be grateful.
0
9491
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10357
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9959
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8988
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6744
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5397
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4063
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3668
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2894
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.