由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - why functional?
相关主题
板上的高人们能给科普比较functional programming language么这年头有哪几个公司是用函数式编程的呢?
Any one knows 'Q Programming Language'?C* scala driver
Scala Clojure 难以抉择sml, any one know about it?
处理海量csv数据+socket data stream processing: scala还是clojureScala又被鄙视了
scala大牛入spark爱好者请进
what is c++? and what can you expectWhy RavenDB isn’t written in F#
现在Go是啥情况呀?坑:这波fp scala 算是赢了吧
对scala很失望 (转载)Which language has the brightest future in replacement of C between D, Go and Rust? And Why?
相关话题的讨论汇总
话题: functional话题: scala话题: c++话题: language话题: languages
进入Programming版参与讨论
1 (共1页)
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++)?

相关主题
what is c++? and what can you expect这年头有哪几个公司是用函数式编程的呢?
现在Go是啥情况呀?C* scala driver
对scala很失望 (转载)sml, any one know about it?
进入Programming版参与讨论
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.

1 (共1页)
进入Programming版参与讨论
相关主题
Which language has the brightest future in replacement of C between D, Go and Rust? And Why?scala大牛入
javascript function-ask for helpwhat is c++? and what can you expect
请推荐一本 OCaml 的入门教材。现在Go是啥情况呀?
来看一个C#的职位是如何要求的对scala很失望 (转载)
板上的高人们能给科普比较functional programming language么这年头有哪几个公司是用函数式编程的呢?
Any one knows 'Q Programming Language'?C* scala driver
Scala Clojure 难以抉择sml, any one know about it?
处理海量csv数据+socket data stream processing: scala还是clojureScala又被鄙视了
相关话题的讨论汇总
话题: functional话题: scala话题: c++话题: language话题: languages