threading and multicores, pros and cons

S

skip

Maric> Le mercredi 14 février 2007 16:24, (e-mail address removed) a écrit :
Maric> Very interesting point, this is exactly the sort of thing I'm
Maric> looking for. Any valuable link on this ?

Google for "python free threading stein" then click the first link.

Skip
 
A

Aahz

This is a recurrent problem I encounter when I try to sell python
solutions to my customers. I'm aware that this problem is sometimes
overlooked, but here is the market's law.

Could you expand more on what exactly the problem is?
 
P

Paul Rubin

Nikita the Spider said:
note, there a (sort of) new module available that allows interprocess
communication via shared memory and semaphores with Python. You can find
it here:
http://NikitaTheSpider.com/python/shm/

This is from the old shm module that was floating around several years
ago? Cool, I remember trying to find it recently and it seemed to
have disappeared--the original url was dead and it wasn't mirrored
anywhere. How about putting it in CheeseShop or some other such
repository? Having it in the stdlib would be even better, of course.
 
N

Nikita the Spider

Paul Rubin said:
This is from the old shm module that was floating around several years
ago? Cool, I remember trying to find it recently and it seemed to
have disappeared--the original url was dead and it wasn't mirrored
anywhere.

Yes, this is almost certainly the one which you remember. I had a hard
time finding it myself, but it's still shipped with a few Linux distros
that have their SVN repository online and indexed by Google.

FYI, I fixed a few bugs in the original, added some small features and a
wrapper module. If you're compiling for Linux you might need to remove
the HAVE_UNION_SEMUN definition from setup.py. (Just learned this
yesterday thanks to Eric J. and I haven't updated the documentation yet.)
How about putting it in CheeseShop or some other such repository?

Hmmm, I hadn't thought about that since I've never used the Cheese Shop
myself. <honestly-not-being-grouchy-just-naive>What benefits does Cheese
Having it in the stdlib would be even better, of course.

That'd be fine with me!
 
P

Paul Boddie

Nikita said:
Hmmm, I hadn't thought about that since I've never used the Cheese Shop
myself. <honestly-not-being-grouchy-just-naive>What benefits does Cheese
Shop confer to someone looking for a package?</> I ask because from my
perspective it just adds overhead to package maintenance.

The Python Package Index, as I prefer to call it (but we're talking
about the same thing), doesn't really make any special demands on
distribution or maintenance: you just need to register yourself and
add an entry for the package, filling in a few fields such as the
homepage and perhaps the download link; you can also upload archives
if you'd prefer. If you have a PKG-INFO file, you can either upload
that in order to get fields filled out more conveniently (as long as
the Package Index likes the file), and if you have a setup.py script
you might be able to use the upload feature with that (and the PKG-
INFO file, I suppose).

Don't be confused by all the setuptools extras and any insistence that
the Package Index works best with things that are packaged as Python
Eggs: whilst that might confer certain benefits, mostly to users who
rely on Egg dependencies, it's peripheral to the purpose of the
Package Index itself.

Paul
 

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,769
Messages
2,569,578
Members
45,052
Latest member
LucyCarper

Latest Threads

Top