p*****2 发帖数: 21240 | |
m*******l 发帖数: 12782 | |
p*****2 发帖数: 21240 | 3
还有clojure
【在 m*******l 的大作中提到】 : 大牛是不是只用NODE.JS了?
|
s***o 发帖数: 2191 | |
p*****2 发帖数: 21240 | 5
node不能在JVM上run。干不了Clojure的。
【在 s***o 的大作中提到】 : 别再找了,要是找到node把cloju也干了就麻烦了
|
n*w 发帖数: 3393 | 6 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.
” |
p*****2 发帖数: 21240 | 7
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. : ”
|
s***o 发帖数: 2191 | 8 "Lisp in C’s clothing" 很眼熟,是不是good part 里说的?
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 发帖数: 3393 | 9 是。
“JavaScript is the first lambda language to go mainstream”。
好奇第二个是谁?c#能排上第几?
【在 s***o 的大作中提到】 : "Lisp in C’s clothing" 很眼熟,是不是good part 里说的? : : down : language.
|
m*******l 发帖数: 12782 | 10 反正JAVA还没有
【在 n*w 的大作中提到】 : 是。 : “JavaScript is the first lambda language to go mainstream”。 : 好奇第二个是谁?c#能排上第几?
|
|
|
c******o 发帖数: 1277 | 11 这个没比较啊,就是说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的话)
【在 p*****2 的大作中提到】 : http://brikis98.blogspot.com/2013/11/play-scala-and-iteratees-v
|
d****i 发帖数: 4809 | 12 找到出处了:
JavaScript: The World's Most Misunderstood Programming Language
http://javascript.crockford.com/javascript.html
【在 s***o 的大作中提到】 : "Lisp in C’s clothing" 很眼熟,是不是good part 里说的? : : down : language.
|
p*****2 发帖数: 21240 | 13
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 发帖数: 1277 | 14 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.
【在 p*****2 的大作中提到】 : : not : 大牛比较一下node和play?
|
p*****2 发帖数: 21240 | 15
嗯。我当时也有点这个感觉。用着play觉得还是太麻烦了,就上node
了。
【在 c******o 的大作中提到】 : 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.
|