红联Linux门户
Linux帮助

Clojure 1.7发布,并发编程语言

发布时间:2015-07-01 09:35:10来源:红联作者:empast
Clojure 1.7 发布,该版本最主要的两项特性是 transducers 和 reader conditionals。其中 transducers 可在几种新的和现存的环境中使用:

into - to collect the results of applying a transducer

sequence - to incrementally compute the result of a transducer

transduce - to immediately compute the result of a transducer

eduction - to delay computation and recompute each time

core.async - to apply a transducer while values traverse a channel

Clojure是一种LISP风格的语言,运行在JVM上。Clojure的一大特色就是其并发机制,它支持不可变的数据结构(Clojure是来自于可持久化的数据结构)。Clojure还有一个特色是软件事务存储(Software Transactional Memory,STM),其支持用事务代替锁和互斥器来更新共享内存。STM还是一个有争议的技术,还需要更好的证明自己,一个简单的办法就是访问一个JVM上的实现。

软件详情:https://github.com/clojure/clojure/blob/master/changes.md

下载地址:http://sourceforge.net/projects/clojure/files/

来自:开源中国社区
文章评论

共有 0 条评论