d**e 发帖数: 863 | 1 What is the rationale behind the sudden interest in
Functional Languages? It had been around for so long,
30 years or so, and there is no theory/technique
breakthrough happening right now. |
p***o 发帖数: 1252 | 2 Where did you see the "sudden" interests?
FP was introduced to mainstream languages like C++ since more than
10 years ago, not to mention scripting languages like python and
javascript. It's working but is not the silver bullet.
If you mean CMU's recent drop of OO courses, they actually plan to
teach both imperative and functional, with an emphasis on invariants
and pre/postconditions for verification. BTW, MIT replaced scheme
with python a few years ago.
【在 d**e 的大作中提到】 : What is the rationale behind the sudden interest in : Functional Languages? It had been around for so long, : 30 years or so, and there is no theory/technique : breakthrough happening right now.
|
d**e 发帖数: 863 | 3
Actually the question could be rephrased as what good
does functional bring to parallel processing. I can
see the links from functional->recursion->parallel,
but not totally convinced.
【在 p***o 的大作中提到】 : Where did you see the "sudden" interests? : FP was introduced to mainstream languages like C++ since more than : 10 years ago, not to mention scripting languages like python and : javascript. It's working but is not the silver bullet. : If you mean CMU's recent drop of OO courses, they actually plan to : teach both imperative and functional, with an emphasis on invariants : and pre/postconditions for verification. BTW, MIT replaced scheme : with python a few years ago.
|
X****r 发帖数: 3557 | 4 Pure functions have no internal state, which makes it
easier to parallelize.
【在 d**e 的大作中提到】 : : Actually the question could be rephrased as what good : does functional bring to parallel processing. I can : see the links from functional->recursion->parallel, : but not totally convinced.
|
d**e 发帖数: 863 | 5
But they still have dependency.
【在 X****r 的大作中提到】 : Pure functions have no internal state, which makes it : easier to parallelize.
|
g*****g 发帖数: 34805 | 6 Actor model is simpler than threading concurrency in an asynchronous
approach. I think that's why language like Scala is gaining
ground.
【在 d**e 的大作中提到】 : What is the rationale behind the sudden interest in : Functional Languages? It had been around for so long, : 30 years or so, and there is no theory/technique : breakthrough happening right now.
|
h***i 发帖数: 1970 | 7 scala 2.9还新加了parallel collection.
【在 g*****g 的大作中提到】 : Actor model is simpler than threading concurrency in an asynchronous : approach. I think that's why language like Scala is gaining : ground.
|
d**e 发帖数: 863 | 8
Actually what do you think about Scala?
Will it be the next JAVA or next C++?
Or, for a freshman in CS, should the first
programming language class offered in Scala
(and forget about JAVA and C++)?
【在 h***i 的大作中提到】 : scala 2.9还新加了parallel collection.
|
g*****g 发帖数: 34805 | 9 Scala is too complex a language to be the first programming language.
Java is a fine language for teaching OOP.
【在 d**e 的大作中提到】 : : Actually what do you think about Scala? : Will it be the next JAVA or next C++? : Or, for a freshman in CS, should the first : programming language class offered in Scala : (and forget about JAVA and C++)?
|
h***i 发帖数: 1970 | 10 scala对新生来说太复杂了,比c++还繁杂,并不是太看好他。得有个好的编程规范,限
制使用一些东西,否则写的东西很容易别人看不懂。
【在 d**e 的大作中提到】 : : Actually what do you think about Scala? : Will it be the next JAVA or next C++? : Or, for a freshman in CS, should the first : programming language class offered in Scala : (and forget about JAVA and C++)?
|
|
|
w***g 发帖数: 5958 | 11 就是一群外行看到了一个他们不懂的东西觉得很兴奋。等弄懂了以后就会发现白欢喜了
一场,问题还是没解决。
haskell发明了一个IO monad把现实世界隔离到了程序外面, 然后宣布: 我们在(现实世
界以外)实现了纯函数式编程. 真是迂腐得很.
【在 d**e 的大作中提到】 : What is the rationale behind the sudden interest in : Functional Languages? It had been around for so long, : 30 years or so, and there is no theory/technique : breakthrough happening right now.
|
s***o 发帖数: 2191 | 12 有一腚道理
【在 w***g 的大作中提到】 : 就是一群外行看到了一个他们不懂的东西觉得很兴奋。等弄懂了以后就会发现白欢喜了 : 一场,问题还是没解决。 : haskell发明了一个IO monad把现实世界隔离到了程序外面, 然后宣布: 我们在(现实世 : 界以外)实现了纯函数式编程. 真是迂腐得很.
|
L***n 发帖数: 6727 | 13 scala is too complicated, although the core part is relatively small
【在 d**e 的大作中提到】 : : Actually what do you think about Scala? : Will it be the next JAVA or next C++? : Or, for a freshman in CS, should the first : programming language class offered in Scala : (and forget about JAVA and C++)?
|
s*****g 发帖数: 5159 | 14 In my learning process of Ocaml, I found it could prevent potential bugs, e.
g., mixed up array indices and array values, and doing it much better than a
compiler like g++.
Meanwhile, it develops faster in some application. Writing a qsort in ocaml
is much faster than doing it in C++.
【在 d**e 的大作中提到】 : What is the rationale behind the sudden interest in : Functional Languages? It had been around for so long, : 30 years or so, and there is no theory/technique : breakthrough happening right now.
|
b******n 发帖数: 592 | 15 why cloud.
I guess history just repeats itself
【在 d**e 的大作中提到】 : What is the rationale behind the sudden interest in : Functional Languages? It had been around for so long, : 30 years or so, and there is no theory/technique : breakthrough happening right now.
|
e****d 发帖数: 895 | 16 you don't need to write a qsort in C++.
e.
a
ocaml
【在 s*****g 的大作中提到】 : In my learning process of Ocaml, I found it could prevent potential bugs, e. : g., mixed up array indices and array values, and doing it much better than a : compiler like g++. : Meanwhile, it develops faster in some application. Writing a qsort in ocaml : is much faster than doing it in C++.
|
g*******e 发帖数: 3013 | 17 听微软presentation说是Multi-core。
就象你说的同样适用于dynamic programming language。
很大一个原因是机器能处理得过来了。 而且有成功的例子了。dynamic 有ruby。还有
重新火起来的javascript。如果没说错的话。
【在 d**e 的大作中提到】 : What is the rationale behind the sudden interest in : Functional Languages? It had been around for so long, : 30 years or so, and there is no theory/technique : breakthrough happening right now.
|