pulsar
纤维,频道和演员
pulsar用与Erlang非常相似的Clojure API包装了类星体库。
要求
Java 7及以上以及Clojure 1.5及以上需要运行pulsar 。
入门
将以下依赖关系添加到Leiningen的project.clj:
[co.paralleluniverse/quasar-core \" 0.7.9 \" ] [co.paralleluniverse/ pulsar \" 0.7.9 \" ]
然后,必须将以下内容添加到project.clj文件:
:java-agents [[co.paralleluniverse/quasar-core \" 0.7.9 \" ]]
或者,将以下内容添加到Java命令行:
-javaagent:path-to-quasar-jar.jar
另外,要从源构建pulsar ,请克隆存储库并运行:
lein midje
您可以这样运行这样的示例:
lein -o run -m co.paralleluniverse. pulsar .examples.pingpong
对于基准测试,您应该使用lein trampoline ,就像这样:
lein trampoline run -m co.paralleluniverse. pulsar .examples.ring-benchmark 1000 1000
用法
文档和示例可以在此处找到。
您还可以阅读介绍性博客文章。
运行使用pulsar的代码时,必须通过将以下内容添加到java命令行或project.clj中的:jvm-opts部分来运行仪器代理。
-javaagent:path-to-quasar-jar.jar
文档
- 用户指南
- API
- Marginalia(测试和示例)
社区
- Google组。
贡献(包括拉的请求)
请查看一些贡献者的简短信息。
执照
pulsar是根据以下许可发布的免费软件:
Copyright © 2013-2017 Parallel Universe
This program and the accompanying materials are dual-licensed under
either the terms of the Eclipse Public License v1.0 as published by
the Eclipse Foundation
or (per the licensee\'s choosing)
under the terms of the GNU Lesser General Public License version 3.0
as published by the Free Software Foundation.
