多谢鼓励, 呵呵 http://en.wikipedia.org/wiki/F_Sharp_(programming_language) F# (pronounced F Sharp) is a multi-paradigm programming language, targeting the .NET Framework, that encompasses functional programming as well as imperative object-oriented programming disciplines. It is a variant of ML and is largely compatible with the OCaml implementation. F# was initially developed by Don Syme at Microsoft Research but is now being developed at Microsoft Developer Division and will be distributed as a full
【在 M*******8 的大作中提到】 : EE master, 找个8个月, 好不容易才找了个full time consultant的活, $20/hour, : 40hours/week, 呜呜, 好可悲 : 做 coding, 用F# 和C#
m*n
20 楼
list comprehension可以解决绝大部分你认为需要functional programming的运用 另外functional programming不是什么新鲜高级的概念,excel公式就是functional programming 现代程序需要一阴一阳两大要素,数据和算法函数 函数式编程想抛弃数据,尤其是中间数据,本来就是痴心妄想
p*a
21 楼
bless!
o*n
22 楼
我老早年用logo metapost的确觉得比较舒服,现在已经完全没感觉了
d*c
23 楼
函数式一大好处是可以比较容易引入并行。能够几乎不改变代码就支持并行就是新鲜高 级的东西,10年前有吗?各种语言和库都支持吗?天底下没有新鲜事,但是很多东西的 做法不同,context不同,效果完全不同。 你给我来个python list comprehension并行看看。GIL从根子上就限定了python, python作者自己说了一大堆python不是函数式的话,实际上他就不怎么喜欢。看他的文 章,完全是因为别人要,别人加的,他是持保留态度的。 I have never considered Python to be heavily influenced by functional languages, no matter what people say or think. I was much more familiar with imperative languages such as C and Algol 68 and although I had made functions first-class objects, I didn't view Python as a functional programming language. http://python-history.blogspot.com/2009/04/origins-of-pythons-functional-features.html 还有excel公式就是函数式编程,瞎扯也得有点限度。你公式的输入是基于地址引用的 ,这能叫函数式?你是把公式就叫函数吗? 什么时候函数式抛弃数据了?
【在 d******c 的大作中提到】 : 函数式一大好处是可以比较容易引入并行。能够几乎不改变代码就支持并行就是新鲜高 : 级的东西,10年前有吗?各种语言和库都支持吗?天底下没有新鲜事,但是很多东西的 : 做法不同,context不同,效果完全不同。 : 你给我来个python list comprehension并行看看。GIL从根子上就限定了python, : python作者自己说了一大堆python不是函数式的话,实际上他就不怎么喜欢。看他的文 : 章,完全是因为别人要,别人加的,他是持保留态度的。 : I have never considered Python to be heavily influenced by functional : languages, no matter what people say or think. I was much more familiar with : imperative languages such as C and Algol 68 and although I had made : functions first-class objects, I didn't view Python as a functional
https://www.quora.com/What-hardware-does-AlphaGo-run-on-Is-it-customized- hardware-for-best-performance AlphaGo uses a distributed system of 1920 CPUs and 280 GPUs. AlphaGo uses Nvidia GPUs for the system. This is comparable to the TU Dresden's Taurus supercomputer that uses 256 GPUs. In their research paper on Nature, they talk about how AlphaGo can be run on a single computer, but would have only a 23% win rate against the distributed system with multiple cores and GPUs. So, you can view the system as being customized/optimized. The AI however, as mentioned above, can run on proprietary hardware, but would have calculation difficulties compared to the "beefed-up" machines. For the highest probability of winning, the DeepMind team used the distributed approach when they challenged Lee Sedol 9p. 如果用的是NVidia的显卡进行计算,铁定不是R在算。因为NVidia显卡只支持C和Python 两种语言。
【在 d******c 的大作中提到】 : 函数式一大好处是可以比较容易引入并行。能够几乎不改变代码就支持并行就是新鲜高 : 级的东西,10年前有吗?各种语言和库都支持吗?天底下没有新鲜事,但是很多东西的 : 做法不同,context不同,效果完全不同。 : 你给我来个python list comprehension并行看看。GIL从根子上就限定了python, : python作者自己说了一大堆python不是函数式的话,实际上他就不怎么喜欢。看他的文 : 章,完全是因为别人要,别人加的,他是持保留态度的。 : I have never considered Python to be heavily influenced by functional : languages, no matter what people say or think. I was much more familiar with : imperative languages such as C and Algol 68 and although I had made : functions first-class objects, I didn't view Python as a functional
他的文章写的很清楚了 A large fraction of the flaws in software development are due to programmers not fully understanding all the possible states their code may execute in. In a multithreaded environment, the lack of understanding and the resulting problems are greatly amplified, almost to the point of panic if you are paying attention. Programming in a functional style makes the state presented to your code explicit, which makes it much easier to reason about, and, in a completely pure system, makes thread race conditions impossible. No matter what language you work in, programming in a functional style provides benefits. You should do it whenever it is convenient, and you should think hard about the decision when it isn't convenient. C++ doesn't encourage functional programming, but it doesn't prevent you from doing it, and you retain the power to drop down and apply SIMD intrinsics to hand laid out data backed by memory mapped files, or whatever other nitty-gritty goodness you find the need for.
g*t
40 楼
" No matter what language you work in, programming in a functional style provides benefits. " 这话我认为是胡扯八道。拿着菜刀,要多高的功夫才可以当螺丝刀用? 多少次里面有一次能这样用。
programmers . resulting about,
【在 d******c 的大作中提到】 : 他的文章写的很清楚了 : A large fraction of the flaws in software development are due to programmers : not fully understanding all the possible states their code may execute in. : In a multithreaded environment, the lack of understanding and the resulting : problems are greatly amplified, almost to the point of panic if you are : paying attention. Programming in a functional style makes the state : presented to your code explicit, which makes it much easier to reason about, : and, in a completely pure system, makes thread race conditions impossible. : No matter what language you work in, programming in a functional style : provides benefits. You should do it whenever it is convenient, and you
j*w
41 楼
这还大牛呢,这软件工程里著名定律就是there is no silver bullet.这家伙吹的 functional programming好像就是万能,常识都没有。functional programming有很多 缺点就不提了,还是不知道。
programmers . resulting about,
【在 d******c 的大作中提到】 : 他的文章写的很清楚了 : A large fraction of the flaws in software development are due to programmers : not fully understanding all the possible states their code may execute in. : In a multithreaded environment, the lack of understanding and the resulting : problems are greatly amplified, almost to the point of panic if you are : paying attention. Programming in a functional style makes the state : presented to your code explicit, which makes it much easier to reason about, : and, in a completely pure system, makes thread race conditions impossible. : No matter what language you work in, programming in a functional style : provides benefits. You should do it whenever it is convenient, and you
n*w
42 楼
很多什么缺点?十个字
: 这还大牛呢,这软件工程里著名定律就是there is no silver bullet.这家伙吹的