Re: defrecord, equality, hashing, and performance

2015-06-11 Thread Sun Ning
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Prismatic has some document for deftype/defrecord/map, hope it's useful to you: https://github.com/Prismatic/eng-practices/blob/master/clojure/20130926-data-representation.md On 06/12/2015 02:36 AM, Mars0i wrote: > I think that the following is all

Re: CIDER 0.8.2 released!

2014-12-22 Thread Sun Ning
Good Job, Bozhidar! I've already updated from MELPA. Everything works like a charm. On 12/21/2014 08:39 PM, Bruce Durling wrote: Thanks! cheers, Bruce On Sun, Dec 21, 2014 at 10:54 AM, Bozhidar Batsov wrote: Ladies and gentlemen, I’m happy to inform you that CIDER 0.8.2 is out! It’s a bu

Re: [ANN] async-sockets - work with sockets using core.async channels

2014-10-07 Thread Sun Ning
BTW, is there any network based core.async channel available now? On 10/08/2014 04:36 AM, adrian.med...@mail.yu.edu wrote: It's not about 'safety' (depending on what that means in this context), but as Zach pointed out, if you aren't careful about backpressure you can run into performance bottl

Re: [ANN] Taoensso library updates / 2014 September

2014-09-02 Thread Sun Ning
Good job! I will adapt Nippy 2.7.0 in my projects soon. On 09/02/2014 10:28 PM, Peter Taoussanis wrote: (All new releases are now on BreakVersioning, https://github.com/ptaoussanis/encore/blob/master/BREAK-VERSIONING.md). *Sente - v1.0.0 / 2014 Sep 2 (today)* *=

[ANN] Debug: clojure port of node debug

2014-07-05 Thread Sun Ning
Hi all, I just ported node debug[1] library to clojure, hoping it could be helpful in clojure world. The debug library is widely used in node projects. The usage is very simple: print debug message when certain namespace is enabled via environment variable DEBUG. https://github.com/sunng87/d

Re: [ANN] Leiningen 2.4.0

2014-06-10 Thread Sun Ning
I have been using lein-release (https://github.com/relaynetwork/lein-release) for a while. It's surely nice to see this feature built into core. On Tue 10 Jun 2014 06:11:06 PM CST, Atamert Ölçgen wrote: Thanks for bringing deploy-repositories to my attention, I didn't know it was there. On

[ANN] RPC library Slacker and Slacker Cluster 0.12

2014-06-10 Thread Sun Ning
Hello Everyone, I just released Slacker 0.12 and its cluster support module. In this release, several bugs got fixed and there are also lovely features added (nippy serialization, leader election, etc). For more detail, please move to the project pages: https://github.com/sunng87/slacker htt

Re: 求教:使用uberjar后,如何能覆盖log4j.properties

2014-03-11 Thread Sun Ning
试试启动参数 -Dlog4j.configuration 什么的呢,你可以搜一下 On Tue 11 Mar 2014 11:16:13 PM CST, sonic pan wrote: 把项目用uberjar打包后,如何覆盖日志配置文件log4j.properties? 试了 java -cp resources -jar xxx.jar 貌似不能覆盖 -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group

Re: compojure in production

2012-12-19 Thread Sun Ning
Check out ring-jetty-adapter https://github.com/ring-clojure/ring/tree/master/ring-jetty-adapter The compojure app can be treated as a ring app. On Thu 20 Dec 2012 08:22:19 AM CST, Maris wrote: How can I run my compojure app without leiningen ? I want to use dedicated jetty server (not war f

Re: Anonymous Macros

2012-11-06 Thread Sun Ning
I'm afraid not. Macro should be bound on a var. The clojure compile checks an attribute (isMacro) on a var to determine if it's a macro or function. And Since a macro has no value, you cannot write it with some literals. On Wed 07 Nov 2012 08:16:42 AM CST, Sean Neilan wrote: Is there any way t

Re: {ANN} ring.velocity: render apache velocity templates for ring in clojure.

2012-07-17 Thread Sun Ning
enlive最大的好处是页面html页面不会掺入任何模板语言,直接就可以在浏览器里预览页面设计 但是用的时候思维确实和传统的模板引擎不太一样 On Wed 18 Jul 2012 12:50:39 PM CST, Shen, Feng wrote: 同感enlive较复杂。前段时间,转向了Mustache。 沈锋 美味书签 http://mei.fm On Wed, Jul 18, 2012 at 11:59 AM, dennis zhuang mailto:killme2...@gmail.com>> wrote: 其实就是几行代码封装下,我觉的velocity比什

[ANN] timing is a timing library for clojure

2012-07-08 Thread Sun Ning
Hi, I just worked on timing clojure function calls. As you know, the built-in (time) macro is pretty good. But there's even better solutions in Java, called perf4j. perf4j logs call time with a configurable logger. And you can use log4j appenders to aggregate the data into some sorts of reports

Re: [ANN] Nippy, a fast Clojure serializer and drop-in reader replacement

2012-07-07 Thread Sun Ning
Really nice work, I have been looking for such library for my RPC framework for a long time. Can't wait to test it out. By the way, do you have a performance comparison between Nippy and carbonite(the one wraps kryo) ? I think it's a pretty good idea to exchange data in clojure literal, and

Re: How to convert a python list to clojure?

2012-06-24 Thread Sun Ning
Take a look at my pyclj library, which could dump/loads clojure literal to python data structures. https://github.com/sunng87/pyclj You can dump you cc and use read-string to load it into clojure. import clj print clj.dumps(cc) On 06/24/2012 06:05 PM, Antonio Recio wrote: I have this list

Re: Clojure job scheduler

2012-06-11 Thread Sun Ning
By the way, overtone has made a simple library for scheduled task. You may take a look: https://github.com/overtone/at-at On Mon 11 Jun 2012 04:31:41 PM CST, Joao_Salcedo wrote: hi Trevor could you share how did you solve the issue. I would like to learn more about it. If you can share your so

Re: [ANN] Leiningen 2.0.0-preview5 released

2012-06-01 Thread Sun Ning
I'm running preview5 on OpenJDK 7, also got this issue both when upgrade and self-install. On 06/01/2012 02:40 PM, mnicky wrote: After upgrade from preview4 and installation of OpenJDK, 'lein2 repl' worked exactly once. Since then, it fails with: Exception in thread "main" java.lang.Exception

Re: ANN factual-clojure-driver 1.3.1, Factual's officially supported Clojure driver

2012-05-31 Thread Sun Ning
Awesome geo-data service! Can't wait to try out your APIs. On 06/01/2012 10:33 AM, dirtyvagabond wrote: factual-clojure-driver is Factual's officially supported Clojure driver: https://github.com/Factual/factual-clojure-driver Version 1.3.1 has been upgraded to support the latest API feature se

Re: Socket Library in Clojure

2012-04-27 Thread Sun Ning
post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en -- Sun Ning Software developer Nanjing, China (N32°3'42'' E118°46'40'') http://about.me/sunng/bio -- Y

Re: any advice for translating the book "The Joy of Clojure"?

2012-04-22 Thread Sun Ning
I don't think the book is an open source one, so you should have to find a publisher in China first. And ask them to contact Manning for the importing details. On Apr 23, 2012 1:59 AM, "Zhitong He" wrote: > BTW, is there any way to get the book's source code (latex or other)? > so that I can do

[ANN] slacker (RPC framework) 0.8.0 released

2012-04-22 Thread Sun Ning
have any question about slacker, feel free to drop me an email. -- Sun Ning Software developer Nanjing, China (N32°3'42'' E118°46'40'') http://about.me/sunng/bio -- You received this message because you are subscribed to the Google Groups "Clojure" group. To p

Re: [ANN] lein-deps-tree 0.1.0

2012-04-02 Thread Sun Ning
th leiningen 1.x) as Github issues. [1]: https://github.com/the-kenny/lein-deps-tree Cheers, Moritz -- Sun Ning Software developer Nanjing, China (N32°3'42'' E118°46'40'') http://about.me/sunng/bio -- You received this message because you are subscribed to the Go

Re: Cheap way to find function (defn) name using a macro?

2012-03-29 Thread Sun Ning
nally cheap way to do it. Thanks, Shantanu -- Sun Ning Software developer Nanjing, China (N32°3'42'' E118°46'40'') http://about.me/sunng/bio -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this

Re: Parallel SSH and system monitoring in Clojure

2012-03-18 Thread Sun Ning
. Hopefully someone will find it useful. http://info.rjmetrics.com/blog/bid/54114/Parallel-SSH-and-system-monitoring-in-Clojure https://github.com/RJMetrics/Parallel-SSH https://github.com/RJMetrics/Server-Stats Best, Chris McBride -- Sun Ning Software developer Nanjing, China (N32

[ANN] slacker 0.6.1 released

2012-02-06 Thread Sun Ning
Hi all, Slacker 0.6.1 has been pushed to clojars. Slacker is an RPC framework designed for clojure. In 0.6.1, HA cluster coordinated by zookeeper is just supported. https://github.com/sunng87/slacker -- Sun Ning Software developer Nanjing, China (N32°3'42'' E118°46'4

Re: Contrib for Clojure 1.3

2012-01-31 Thread Sun Ning
group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.goo

[ANN] slacker (Clojure RPC framework) 0.3.0 released

2011-12-17 Thread Sun Ning
ch is faster and compacter Also the client API is designed to be non-invasive. You will use slacker RPC just like calling the function from the same process. You can find the project on github: https://github.com/sunng87/slacker Any suggestions are always welcomed. -- Sun Ning Software deve

How to refer to nodejs Buffer in clojurescript ?

2011-12-13 Thread Sun Ning
dejs class like Buffer which doesn't have a namespace ? -- Sun Ning Software developer Nanjing, China (N32°3'42'' E118°46'40'') http://about.me/sunng/bio -- You received this message because you are subscribed to the Google Groups "Clojure" group. T

[ANN] slacker 0.1.0: RPC by clojure and for clojure

2011-12-02 Thread Sun Ning
e are some examples. https://github.com/sunng87/slacker If you have any suggestion about this project, feel free to get connected with github or from this mailing list. Enjoy. -- Sun Ning Software developer Nanjing, China (N32°3'42'' E118°46'40'') http://about.me/sunng/b