c*********u 发帖数: 361 | 1 对于现在大规模的计算讨论的都是task, graph, multi-core, parallel computing。C
++对于并行计算简直就是噩梦,Java虽然对并行的支持要好很多但其实并没有本质区别,同时
performance又要打很多折扣(现在大部分还是用Java的middleware来调用C++ library
)。Functional programming 在消除了side effects后,debugging要容易很多,
parallelization则是水到渠成。
摩尔定律已经不再使用,计算机硬件再也不可能像过去30年的速度发展下去,并行计算
将是今后的趋势。有兴趣的可以看看下面的文章
http://www.cs.kent.ac.uk/people/staff/dat/miranda/whyfp90.pdf
http://dailyvim.blogspot.com/2009/04/why-functional-programming-
matters.html
准备学习F#, Haskell, OCaml, ML, Clojure, Scala |
u****h 发帖数: 2193 | 2 你把这个帖子发到CS版估计还有人有兴趣讨论。矿工基本就是老板要用什么就学什么,
没兴趣思考这种哲学问题。 |
k*******d 发帖数: 1340 | 3 我赞同Parallel programming是未来的趋势
不过不是很明白为什么functional programming会很适合做parallel programming
我觉得虽然C++易用性差,现在并行计算还是不少用C/C++的吧 |
c*********u 发帖数: 361 | 4 I'm not discussing philosophies. That's the problem we're dealing every day
right now.
Nobody knows what the world will be 5 years from now, but it will surely be
very different from today.
【在 u****h 的大作中提到】 : 你把这个帖子发到CS版估计还有人有兴趣讨论。矿工基本就是老板要用什么就学什么, : 没兴趣思考这种哲学问题。
|
c*********u 发帖数: 361 | 5 Technically speaking there's nothing you can't do with C++/Java.
There are things that you can do better in functional programming. But most
importantly, there are things you CANNOT do in functionl programming. i.e.
you can't change the value of a variable once it is defined (therefore you
cannot iterate over a loop) This force you to think differently.
Functional programming was once for academic research but it has already
sparked a lot of interest in finance and I can only see this grow in the
future.
【在 k*******d 的大作中提到】 : 我赞同Parallel programming是未来的趋势 : 不过不是很明白为什么functional programming会很适合做parallel programming : 我觉得虽然C++易用性差,现在并行计算还是不少用C/C++的吧
|
h**l 发帖数: 168 | 6 Why is functional programming good for parallelization?
most
i.e.
you
【在 c*********u 的大作中提到】 : Technically speaking there's nothing you can't do with C++/Java. : There are things that you can do better in functional programming. But most : importantly, there are things you CANNOT do in functionl programming. i.e. : you can't change the value of a variable once it is defined (therefore you : cannot iterate over a loop) This force you to think differently. : Functional programming was once for academic research but it has already : sparked a lot of interest in finance and I can only see this grow in the : future.
|
k*****a 发帖数: 7389 | |
o**o 发帖数: 3964 | 8 一直觉得搞不明白C++的人才会对其他语言很感兴趣。学不会C++的人(换句话说哪一门
语言也学不通)是少数,他们把自己的问题归咎于C++哲学理念和自己的生辰八字,转
而寄希望于少有人用的一些新品种,站在更高的层次掩耳盗铃。
80%的日常应用scripting应该就能对付了。如果你不幸必须跟踪调试剩下一小部分要求
高的底层程序,我相信任何functional语言不会跟C++有本质区别。至于并行,且不论C
++是否真的不便并行,有什么应用必须用到并行计算么?distributed computing不算
。 |
M*****8 发帖数: 17722 | |