javascript和clojure不是那么远。 “JavaScript’s functions are first class objects with (mostly) lexical scoping. JavaScript is the first lambda language to go mainstream. Deep down , JavaScript has more in common with Lisp and Scheme than with Java. It is Lisp in C’s clothing. This makes JavaScript a remarkably powerful language. ”
t*s
31 楼
非常感谢!!
p*2
32 楼
down language. 大牛这个说的很对。的确是同源的。
【在 n*w 的大作中提到】 : javascript和clojure不是那么远。 : “JavaScript’s functions are first class objects with (mostly) lexical : scoping. JavaScript is the first lambda language to go mainstream. Deep down : , JavaScript has more in common with Lisp and Scheme than with Java. It is : Lisp in C’s clothing. This makes JavaScript a remarkably powerful language. : ”
【在 n*w 的大作中提到】 : javascript和clojure不是那么远。 : “JavaScript’s functions are first class objects with (mostly) lexical : scoping. JavaScript is the first lambda language to go mainstream. Deep down : , JavaScript has more in common with Lisp and Scheme than with Java. It is : Lisp in C’s clothing. This makes JavaScript a remarkably powerful language. : ”
i*y
35 楼
ottaw 现在都好多好多位置啊.
n*w
36 楼
是。 “JavaScript is the first lambda language to go mainstream”。 好奇第二个是谁?c#能排上第几?
【在 s***o 的大作中提到】 : "Lisp in C’s clothing" 很眼熟,是不是good part 里说的? : : down : language.
m*l
37 楼
反正JAVA还没有
【在 n*w 的大作中提到】 : 是。 : “JavaScript is the first lambda language to go mainstream”。 : 好奇第二个是谁?c#能排上第几?
c*o
38 楼
这个没比较啊,就是说Stream IO难懂,不好看。其实functional Stream IO的最重要 的优势还是composibility. 可以重用并且任意组合小的逻辑模块,而不用担心side effect. Stream IO 其实确实是像他所说的,是个非常high level abstraction, 能做的可不光 是web service, 所有的IO side effect 都是可以用它来model In short, you model "the whole world" as one or more Stream(s) (lazy evaluate List) of events. 1. It is unlimited (a world never ends) 2. it can not go back (once you get a value, it is immutable, so it can not be modified) 3. It is in future (before you see the value, it is not there) 再说, Streaming IO 可不是光在 scala, haskell/clojure也肯定能做。 说不定 JS也能做(如果有JS版本有lzay evaluation的话)
【在 s***o 的大作中提到】 : "Lisp in C’s clothing" 很眼熟,是不是good part 里说的? : : down : language.
p*2
40 楼
not 大牛比较一下node和play?
【在 c******o 的大作中提到】 : 这个没比较啊,就是说Stream IO难懂,不好看。其实functional Stream IO的最重要 : 的优势还是composibility. : 可以重用并且任意组合小的逻辑模块,而不用担心side effect. : Stream IO 其实确实是像他所说的,是个非常high level abstraction, 能做的可不光 : 是web service, 所有的IO side effect 都是可以用它来model : In short, you model "the whole world" as one or more Stream(s) (lazy : evaluate List) of events. : 1. It is unlimited (a world never ends) : 2. it can not go back (once you get a value, it is immutable, so it can not : be modified)
c*o
41 楼
play不是node,play too heavy. 比如说,play 里面一堆 Json read/write/format/validation的API 再比如说,play 有整个一套test framework. play 把所有的 SBT都包括经去了 看看这个, http://www.playframework.com/documentation/2.2.x/api/scala/inde 一大堆和基本http/event API无关的的东西。 我觉得可能Spray可能有会和node更像一点,一个很小的core,可以靠module来添加功能 。以后spray会代替netty成为play的web server.