Re: Regarding http://clojuredocs.org

2013-10-10 Thread binita
Yes , agree with puzzler . Also the Search feature at http://clojuredocs.org is awesome. Personally, as a newbie , I find it very helpful, to be able to search and see the examples. I didn't find the same at http://clojure.org/documentation, http://clojure.github.io/clojure or at

what does defserverfn mean?

2013-10-10 Thread Waldstein Wang
Hi all, I am a newbie of Clojure and I am reading the source code of Twitter Storm, which has its major functions implemented by Clojure. I find following code: (defserverfn service-handler [conf inimbus] (.prepare inimbus conf (master-inimbus-dir conf)) (log-message Starting Nimbus with conf

Re: what does defserverfn mean?

2013-10-10 Thread Chris Ford
Hi, Clojure allows the creation of macros, which means that developers can define new things that look like the keywords from other languages. For example, even defn is just a macro that builds on top of the underlying def and fn forms. I expect that the Twitter storm team have a macro called

Re: Regarding http://clojuredocs.org

2013-10-10 Thread Stefan du Fresne
Agree. I find the examples on clojuredocs really helpful (I find the official documentation often near-impenetrable), but it's super confusing how it references a bunch of old things. On Thursday, 10 October 2013 20:20:58 UTC+13, binita wrote: Yes , agree with puzzler . Also the Search

Re: Type annonations in clojure.instant/print-date result in speedup of 3

2013-10-10 Thread Alexander Kiel
Thanks Andy. I added a comment to http://dev.clojure.org/jira/browse/CLJ-1277 Am Donnerstag, 10. Oktober 2013 07:12:47 UTC+2 schrieb Andy Fingerhut: Thanks for checking, Alexander. I have created ticket CLJ-1277 with a patch that improves the performance of the case you found, as well as

[ANN] Two Essays

2013-10-10 Thread Timothy Washington
Hey All, I've been working on a few essays for a while now. But I wanted to release these two initial ones for public consumption (citations pending). All criticism and feedback is welcome. I'm eager to keep all of our tools and skill set at the cutting edge, and hope this can benefit developers

core.match on a set

2013-10-10 Thread Phillip Lord
I've been playing with core.match recently. One thing that I am confused about is, I cannot match over a set (based on membership), unless I convert into a map first. So, for example (defn map-set [set] (into {} (for [k set] [k k]))) (let [x (map-set #{:a :b :c})]

Re: Question about vector-of

2013-10-10 Thread David Nolen
Not that I'm aware of. On Thursday, October 10, 2013, Mark Engelberg wrote: (def a (conj (vector-of :long) 1 2 3) (inc (a 1)) Is Clojure smart enough to figure out that (a 1) is a primitive long and call the fast primitive version of inc? -- -- You received this message because you are

Re: core.match on a set

2013-10-10 Thread David Nolen
There's currently no support for matching sets and I have no plans in the near future. Patch welcome, it could be matched and optimized similarly to map matching. On Thursday, October 10, 2013, Phillip Lord wrote: I've been playing with core.match recently. One thing that I am confused about

Re: ANN Introducing Machine Head, a Clojure MQTT client

2013-10-10 Thread Mikera
Hi Michael, This looks great - many thanks for sharing! Do you have any views / recommendations on an MQTT server/broker usable from Clojure? Is that on the roadmap for Machine Head? Mike. -- -- You received this message because you are subscribed to the Google Groups Clojure group. To

Re: ANN Introducing Machine Head, a Clojure MQTT client

2013-10-10 Thread Thomas
Hi Mike, You can use any of the brokers listed here: http://mqtt.org/wiki/doku.php/brokers Mosquitto is a free GPL (?) based broker which I have used in the past, I have used RSMB as well. And they all should work with Machine Head as it uses the Eclipse Paho Java client so I think it is very

[ANN] Puny, a tiny layer for persisting Clojure maps into Redis hashes

2013-10-10 Thread ronen
Puny is a tiny layer for persisting Clojure maps into Redis hashes, it aims to reduce boilerplate and to enable end to end life cycle management of entities from validation to data migration and indexing. It includes support for: * Complete generated CRUD API. * Automatic keys and id

[ANN] Counterclockwise - Clojure plugin for Eclipse

2013-10-10 Thread Laurent PETIT
Hi, a new version of Counterclockwise, the Clojure plugin for the Eclipse IDE, has just been released. Hot new features - auto indentation as you type - available as a Standalone Product: Download, Unzip, Code! - many bug fixes including (hopefully) stability improvements Install

Re: Question about vector-of

2013-10-10 Thread Mark Engelberg
So do you just do: (inc (long (a 1))), i.e., manually converting to long primitive? Is there much overhead for that call, if it is already a primitive? To the best of my knowledge, you can't do: (let [^long x (a 1)] (inc x)) because I think primitive type hints only work in function headers. Is

Re: Question about vector-of

2013-10-10 Thread David Nolen
(a 1) will return a boxed value and (long (a 1)) will just cast it back to a primitive. There is currently no way to efficiently deal with the contents of gvecs. Their inclusion at this point is mostly about saving memory. In theory reducers could allow a primitive fn to do efficient work inside.

Re: Question about vector-of

2013-10-10 Thread David Nolen
(a 1) will return a boxed value and (long (a 1)) will just cast it back to a primitive. There is currently no way to efficiently deal with the contents of gvecs. Their inclusion at this point is mostly about saving memory. In theory reducers could allow a primitive fn to do efficient work inside.

Clojure - Where to start?

2013-10-10 Thread Anurag Ramdasan
Hi, I have a good understanding on Common Lisp and I've worked on it a lot. I also have worked on Clojure a bit, very little actually, using emacs and nrepl. I am now looking for something intermediate level resources on Clojure. Mostly stuffs that deal with idiomatic clojures, clojure monads,

Re: Clojure - Where to start?

2013-10-10 Thread Michael Klishin
2013/10/11 Anurag Ramdasan aranurag...@gmail.com I am now looking for something intermediate level resources on Clojure. Mostly stuffs that deal with idiomatic clojures, clojure monads, lazy sequences etc. http://clojure-doc.org can cover some of your needs, although it does not cover

JVM assertions in Clojure

2013-10-10 Thread lopusz
Dear All, Is it possible to use Java assertion system in Clojure? I want to put invariant checks in my code which can be turned on/off at runtime with java -ea/-da. http://docs.oracle.com/javase/7/docs/technotes/guides/language/assert.html The only mention touching this issue in Clojure I

Re: [ANN] Counterclockwise - Clojure plugin for Eclipse

2013-10-10 Thread Mark C
Nice update, I like auto-indent. I ran into one small glitch on OSX, which is that the shortcut for toggling between unrestricted and strict/paredit mode wasn't working for me at first. Going to Preferences - General - Keys : Switch Edit mode, and deleting then re-applying the Alt-D fixed it.

Re: [ANN] Counterclockwise - Clojure plugin for Eclipse

2013-10-10 Thread Laurent PETIT
2013/10/10 Mark C champi...@netscape.net: Nice update, I like auto-indent. I ran into one small glitch on OSX, which is that the shortcut for toggling between unrestricted and strict/paredit mode wasn't working for me at first. Going to Preferences - General - Keys : Switch Edit mode, and

Re: Clojure - Where to start?

2013-10-10 Thread Jeff Heon
I remember reading a post with a list of open source projects with excellent clojure code. Unfortunately, I can't find it anymore, but I remember Ring was on the list. -- -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send

Re: clojars.org image for latest version of a project

2013-10-10 Thread Adam Clements
Is there any chance we could get a route which simply returns this as plain text? I have an emacs plugin which looks up the latest version of an artifact on clojars (currently using some horrible regex) https://github.com/AdamClements/latest-clojure-libraries which would be much much nicer if it

Re: clojars.org image for latest version of a project

2013-10-10 Thread Karsten Schmidt
On 11 October 2013 00:01, Adam Clements adam.cleme...@gmail.com wrote: I find it ridiculously useful not having to go to my browser to look up the latest version of libraries I use all the time. Adam, you might want to check out this leiningen plugin then... https://github.com/xsc/lein-ancient

Re: [ANN] Counterclockwise - Clojure plugin for Eclipse

2013-10-10 Thread Russell Mull
- available as a Standalone Product: Download, Unzip, Code! This is huge! Maybe it seems like a trivial thing, but removing barriers to getting started is fantastic. Thank you Laurent, for your tireless and continuing work. - Russell -- -- You received this message because you are

Re: clojars.org image for latest version of a project

2013-10-10 Thread Mark Mandel
Thanks for that recommendation! I was thinking about this exactly this issue. Mark On Fri, Oct 11, 2013 at 10:19 AM, Karsten Schmidt i...@toxi.co.uk wrote: On 11 October 2013 00:01, Adam Clements adam.cleme...@gmail.com wrote: I find it ridiculously useful not having to go to my browser to

Re: streams, reading bytes

2013-10-10 Thread Brian Craft
I like the blurb: This library is a Rosetta stone for all the byte representations Java has to offer, and gives you the freedom to forget all the APIs you never wanted to know in the first place. My feelings, exactly. ;) Thanks. On Thursday, October 10, 2013 6:44:32 PM UTC-7, Ben Mabey

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 that