Is there a good Hive library?

2014-01-24 Thread Gary Zhao
I'm looking a good Clojure Hive library instead of using Java library directly. Let me know if you know. Thanks -- -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from ne

Re: Do (should?) these core.async utilities exist?

2013-11-12 Thread Gary Zhao
I think the whole idea is event-driven and async. On Tuesday, November 12, 2013 3:11:50 PM UTC-8, stuart@gmail.com wrote: > > Hi Paul, > > Two different reasons: The channel-to-sequence conversion seems like a > questionable idea, making seqs that block. The doseq over a channel is > easi

Re: monads not working in Clojure 1.4.0

2013-11-11 Thread Gary Zhao
Thanks Michael. On Saturday, November 9, 2013 10:26:09 AM UTC-8, Michael Klishin wrote: > > 2013/11/9 Gary Zhao > > >> NoSuchMethodError >> clojure.lang.RT.mapUniqueKeys([Ljava/lang/Object;)Lclojure/lang/IPersistentMap; >> >> clojure.algo.monads/loading--

monads not working in Clojure 1.4.0

2013-11-09 Thread Gary Zhao
Hello I saw the following error when using monads in Clojure 1.4.0, however it worked fine in Clojure 1.5.1. Isn't monads compatible with 1.4.0? [org.clojure/clojure "1.4.0"] [org.clojure/algo.monads "0.1.4"] NoSuchMethodError clojure.lang.RT.mapUniqueKeys([Ljava/lang/Object;)Lclojure/lang/I

Which Json parser can parse a complete jason string?

2013-10-30 Thread Gary Zhao
Hi I noticed jason parser such as Cheshire, data.json only parse one layer of json string. In order to get the whole object, I have to write a recursive method to do that. Is there a library can do it automatically? Thanks Gary -- -- You received this message because you are subscribed to th

Re: [ANN] Counterclockwise - Clojure plugin for Eclipse

2013-10-12 Thread Gary Zhao
Great. But I have one thing confusing. Auto indent uses two spaces, but tab uses four spaces. How can I make them consistent? Either 2 or 4 spaces for both. I tried some settings but didn't seem to work. Thanks. On Thursday, October 10, 2013 6:36:01 AM UTC-7, Laurent PETIT wrote: > > Hi, a new

monger read reference

2013-10-10 Thread Gary Zhao
Hello Anyone knows if I can set read reference in monger? e.g. "nearest". I didn't see it on their documentation. Thanks Gary -- -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note tha

Go block and call back functions

2013-10-09 Thread Gary Zhao
Hello I'm wondering where the call back function will run in a go block. For example, if I use http-kit asynchronous mode, I will register a call back function. If I call http/get within a goroutine, will the callback run in the same goroutine or an arbitrary thread? Also, since goroutine can'

Re: Can I use transactions in go block?

2013-10-08 Thread Gary Zhao
ne with the latest code from master. > > Timothy > > > On Tue, Oct 8, 2013 at 11:05 AM, Gary Zhao > > wrote: > >> Looks like it doesn't work. >> >> (go >> (dosync >> (ref-set aaa 1))) >> >> -- >> -- >> You received

Can I use transactions in go block?

2013-10-08 Thread Gary Zhao
Looks like it doesn't work. (go (dosync (ref-set aaa 1))) -- -- You received this message because you are subscribed to the Google Groups "Clojure" 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

How to suppress warnings?

2013-10-06 Thread Gary Zhao
Hello I'm using core.async, but always see the following warnings. How do I suppress them? WARNING: map already refers to: #'clojure.core/map in namespace: message-bus.latam, being replaced by: #'clojure.core.async/map WARNING: into already refers to: #'clojure.core/into in namespace: message