由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - 刚开始看python
相关主题
How to use multi-core to speed Python program来,讨论个问题
python太慢了我们老大也在抱怨python,不过还是继续用
这次node把python也给干了Scala的用途
zhaoce老师,求教如何转行搞java?python和java里面非memory资源怎么回收?
单开主题:为何痛恨python[合集] Python/Jython refactoring 还是比较麻烦的
别人说做Python的并行还不如去学C++,我不同意。High Performance Computing Software Engineer needed -- Cary NC
mpirun vs script坑: Python + "C++" plus SWAG as ONE big language
使用CPython要避免多线程?看现在python很火,哪位科普一下和java的比较
相关话题的讨论汇总
话题: hadoop话题: python话题: ipython1话题: mpi话题: map
进入Programming版参与讨论
1 (共1页)
l*****c
发帖数: 1153
1
被大家吊起兴趣了,呵呵。
问个问题。Pythong内建的multi-core support如何?比如像map()这样在collection上
的operation,有内建的multithreading机制么?
r****t
发帖数: 10904
2
You are welcome to look into python. :)
There's multithreading, but you cannot utilize multi-core using one process,
no matter how many threads you have, because of GIL problem.
One has to look somewhere else if you are to use default CPython, like
processing module, or IPython1 to get parallelized map() operations.
Or use mpipython etc etc...

【在 l*****c 的大作中提到】
: 被大家吊起兴趣了,呵呵。
: 问个问题。Pythong内建的multi-core support如何?比如像map()这样在collection上
: 的operation,有内建的multithreading机制么?

l*****c
发帖数: 1153
3
3x. GIL is definitely ridiculous. Is there a 3rd party module utilize hadoop
or other grid mode for this?

process,

【在 r****t 的大作中提到】
: You are welcome to look into python. :)
: There's multithreading, but you cannot utilize multi-core using one process,
: no matter how many threads you have, because of GIL problem.
: One has to look somewhere else if you are to use default CPython, like
: processing module, or IPython1 to get parallelized map() operations.
: Or use mpipython etc etc...

r****t
发帖数: 10904
4
GIL has deep reasons that are still not coped with. You can use hadoop via
Pyton, from my impression.

hadoop

【在 l*****c 的大作中提到】
: 3x. GIL is definitely ridiculous. Is there a 3rd party module utilize hadoop
: or other grid mode for this?
:
: process,

l*****c
发帖数: 1153
5
That's not what I mean. We use hadoop with python. But that is hadoop
calling python.
This is the other way: use hadoop to implement map() and reduce() in python,
so python could be used as the master language.

【在 r****t 的大作中提到】
: GIL has deep reasons that are still not coped with. You can use hadoop via
: Pyton, from my impression.
:
: hadoop

r****t
发帖数: 10904
6
I dnnot know a map() implemented with hadoop.
But there's such things in IPython1. or maybe "processing" module that's
going to enter standard library since python2.6. If processing is in
standard library, there's hope to see a map() that makes use of SMP...

python,

【在 l*****c 的大作中提到】
: That's not what I mean. We use hadoop with python. But that is hadoop
: calling python.
: This is the other way: use hadoop to implement map() and reduce() in python,
: so python could be used as the master language.

l*****c
发帖数: 1153
7
OK. I read a little about IPython1. It uses MPI to implement the
architecture. Gonna to read more this weekend to see if it is worthy to
implement one to accommodate Hadoop, which I would expect to be much less
work and more handful than implement IPython1.

【在 r****t 的大作中提到】
: I dnnot know a map() implemented with hadoop.
: But there's such things in IPython1. or maybe "processing" module that's
: going to enter standard library since python2.6. If processing is in
: standard library, there's hope to see a map() that makes use of SMP...
:
: python,

r****t
发帖数: 10904
8
?? It can work with MPI, but MPI is not required.
I am using it without MPI...

【在 l*****c 的大作中提到】
: OK. I read a little about IPython1. It uses MPI to implement the
: architecture. Gonna to read more this weekend to see if it is worthy to
: implement one to accommodate Hadoop, which I would expect to be much less
: work and more handful than implement IPython1.

l*****c
发帖数: 1153
9
I just read the introduction, maybe I missed something.

【在 r****t 的大作中提到】
: ?? It can work with MPI, but MPI is not required.
: I am using it without MPI...

r****t
发帖数: 10904
10
刚刚看见这个应该是你要的。不知道你那个是不是搞定了。
http://blog.last.fm/2008/05/29/python-hadoop-flying-circus-elephant

python,

【在 l*****c 的大作中提到】
: That's not what I mean. We use hadoop with python. But that is hadoop
: calling python.
: This is the other way: use hadoop to implement map() and reduce() in python,
: so python could be used as the master language.

h***z
发帖数: 233
11
Hadoop is in Java, right? Why not just try using Jython?

python,

【在 l*****c 的大作中提到】
: That's not what I mean. We use hadoop with python. But that is hadoop
: calling python.
: This is the other way: use hadoop to implement map() and reduce() in python,
: so python could be used as the master language.

1 (共1页)
进入Programming版参与讨论
相关主题
看现在python很火,哪位科普一下和java的比较单开主题:为何痛恨python
Py2exe or Portable Python别人说做Python的并行还不如去学C++,我不同意。
以后Web就是Node的天下了mpirun vs script
我认为JVM上的语言,老大还是Java使用CPython要避免多线程?
How to use multi-core to speed Python program来,讨论个问题
python太慢了我们老大也在抱怨python,不过还是继续用
这次node把python也给干了Scala的用途
zhaoce老师,求教如何转行搞java?python和java里面非memory资源怎么回收?
相关话题的讨论汇总
话题: hadoop话题: python话题: ipython1话题: mpi话题: map