TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

First Python 2.7 interpreter to use multiple cores

130 pointsby spazzabout 13 years ago

6 comments

sp332about 13 years ago
To be a bit pedantic: the multiprocess module works fine for multiple cores in regular cpython, I actually used it for a little graphics program I wrote. Nice to see the GIL gone for multithreading though :)
评论 #3950132 未加载
评论 #3952807 未加载
评论 #3951578 未加载
halayliabout 13 years ago
I much prefer share-nothing approach and use sockets + subprocess for communication. It scales nicely.
评论 #3950273 未加载
helpbygraceabout 13 years ago
It seems to use Software Transactional Memory scheme. I hope that it will work better with hardware-aided transactional memory in Intel's next generation architecture Haswell.
dbeckerabout 13 years ago
This is incredibly interesting, and the people working on it are incredibly smart.<p>But I think it's a slight oversell to call this a python 2.7 interpreter. For instance, most scientific computing code that runs in cpython 2.7 won't run on pypy.<p>It's impressive from a computer science point of view. But, pypy has a ways to go before I'd call it a python interpreter without adding qualifications.
评论 #3952546 未加载
评论 #3952548 未加载
tocommentabout 13 years ago
I'm not following this. Does it mean the GIL is finally gone?
评论 #3950062 未加载
评论 #3950151 未加载
评论 #3950154 未加载
评论 #3950173 未加载
评论 #3950061 未加载
chimeracoderabout 13 years ago
My understanding of the GIL is that its inclusion was justified by the fact that removing it would speed up multithreaded programs at the cost of slowing down single-threaded programs (the latter being more common than the former).<p>Given that, and given that the patches for removing the GIL were submitted for an earlier version a while back (2.4 or before, I believe), is it unfeasible/impossible to design an interpreter that detects whether a program requires support for multiple threads and then act accordingly? Since this currently requires the inclusion of a module, it seems like it would be unambiguous.
评论 #3951974 未加载