Re: [ANN] Counterclockwise - Clojure plugin for Eclipse
Le vendredi 11 octobre 2013, Russell Mull a écrit : - 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. This is the first Time counterclockwise is released with standalone products. Feedback on the packaging more than welcome. Thank you Laurent, for your tireless and continuing work. You're welcome ;-) - Russell -- -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.comjavascript:_e({}, 'cvml', '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 javascript:_e({}, 'cvml', 'clojure%2bunsubscr...@googlegroups.com'); For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com javascript:_e({}, 'cvml', 'clojure%2bunsubscr...@googlegroups.com');. For more options, visit https://groups.google.com/groups/opt_out. -- -- 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 first 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 --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: Clojure - Where to start?
That sounds pretty interesting. I wonder how old the list was. If it was made a while ago, i'm sure there are new projects that have come along. If you find the link I would be interested. On Thursday, October 10, 2013 11:41:05 PM UTC+2, Jeff Heon wrote: 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 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.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [ANN] Counterclockwise - Clojure plugin for Eclipse
Great news Laurent Thank you for you work on this. I just installed it and I am going to use it later today!!! Merci, Thomas On Thursday, October 10, 2013 2:36:01 PM UTC+1, Laurent PETIT wrote: 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 = - Software update site for installing into an existing Eclipse: http://updatesite.ccw-ide.org/stable/ Standalone product for: - Windows 64 bits: http://updatesite.ccw-ide.org/branch/master/master-0.20.0.STABLE001/products/ccw-win32.win32.x86_64.zip - Windows 32 bits: http://updatesite.ccw-ide.org/branch/master/master-0.20.0.STABLE001/products/ccw-win32.win32.x86.zip - Linux 64 bits: http://updatesite.ccw-ide.org/branch/master/master-0.20.0.STABLE001/products/ccw-linux.gtk.x86_64.zip - Linux 32 bits: http://updatesite.ccw-ide.org/branch/master/master-0.20.0.STABLE001/products/ccw-linux.gtk.x86.zip - OS X 64 bits: http://updatesite.ccw-ide.org/branch/master/master-0.20.0.STABLE001/products/ccw-macosx.cocoa.x86_64.zip Create a folder, unzip the product inside this folder, and double click on the Counterclockwise executable! (only pre-requisite: Java 7 in your path) Release Note == https://code.google.com/p/counterclockwise/wiki/ReleaseNotes#Version_0.20.0 Cheers, -- Laurent Petit -- -- 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 first 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 --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: core.match on a set
Just out of curiosity why? Or am I just wierd in wanting this? I'll have a look, and see if I can offer a patch, though. Phil David Nolen dnolen.li...@gmail.com writes: 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 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})] (match [x] [{:a _ :b _}] 'match_a_b :else nil)) returns 'match_a_b Both of these... (let [y #{:a :b :c}] (match [y] [{:a _ :b _}] 'match_a_b :else nil)) (let [z #{:a :b :c}] (match [z] [#{:a :b}] 'match_a_b :else nil)) returns nil. Am I missing something obvious? Phil -- -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.comjavascript:; 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 javascript:; For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com javascript:;. For more options, visit https://groups.google.com/groups/opt_out. -- -- Phillip Lord, Phone: +44 (0) 191 222 7827 Lecturer in Bioinformatics, Email: phillip.l...@newcastle.ac.uk School of Computing Science, http://homepages.cs.ncl.ac.uk/phillip.lord Room 914 Claremont Tower, skype: russet_apples Newcastle University, twitter: phillord NE1 7RU -- -- 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 first 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 --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: JVM assertions in Clojure
lop...@gmail.com writes: 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 could find is https://groups.google.com/forum/#!topic/clojure-dev/kUCVUEALmWI it does not give any constructive suggestions, though. Has anybody used this JVM facility in Clojure code? Thanks in advance for any of your hints! I guess you could use the assertion status of Java to set the *assert* variable, and then just use the Clojure assert facility. Unfortunately this is a bit of a pain as there doesn't appear to be an API to check the assertion status. So, you'd need a bit of java code... static boolean assertsEnabled(){ boolean assertsEnabled = false; assert assertsEnabled = true; return assertedEnabled; } Bit ugly. -- -- 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 first 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 --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: Clojure - Where to start?
Pedestal comes to mind. http://pedestal.io/ I'd assume anything open source that the guys at Relevance (now Cognitect) have released as open source would be a good source for learning from. Aria Media Sagl Via Rompada 40 6987 Caslano Switzerland +41 (0)91 600 9601 +41 (0)76 303 4477 cell skype: ariamedia On Fri, Oct 11, 2013 at 10:19 AM, albert cortez acortez...@googlemail.comwrote: That sounds pretty interesting. I wonder how old the list was. If it was made a while ago, i'm sure there are new projects that have come along. If you find the link I would be interested. On Thursday, October 10, 2013 11:41:05 PM UTC+2, Jeff Heon wrote: 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 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.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- -- 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 first 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 --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: JVM assertions in Clojure
The problem is that you would still have a performance hit. As I understand, the reason that Java assertions have no runtime penalty when disabled is because they depend on the value of a final field in a class which the JIT will eliminate as dead code when that final field is set to false. The only way to get Clojure's asserts eliminated at runtime would seem to require a compiler change. Paul On Friday, October 11, 2013 7:02:24 AM UTC-4, Phillip Lord wrote: lop...@gmail.com javascript: writes: 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 could find is https://groups.google.com/forum/#!topic/clojure-dev/kUCVUEALmWI it does not give any constructive suggestions, though. Has anybody used this JVM facility in Clojure code? Thanks in advance for any of your hints! I guess you could use the assertion status of Java to set the *assert* variable, and then just use the Clojure assert facility. Unfortunately this is a bit of a pain as there doesn't appear to be an API to check the assertion status. So, you'd need a bit of java code... static boolean assertsEnabled(){ boolean assertsEnabled = false; assert assertsEnabled = true; return assertedEnabled; } Bit ugly. -- -- 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 first 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 --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: JVM assertions in Clojure
As reflected in the linked discussion and Jira ticket, it seems possible to be able to use -ea/-da with Clojure. It would definitely require a compiler change, and I'm not aware of any further movement to make Clojure's asserts use a mechanism compatible with -ea/-da. An additional annoyance (as I mentioned in the linked thread) is that there isn't really a way to easily disable assertions. Clojure supports some properties for configuring compilation https://github.com/clojure/clojure/blob/master/src/jvm/clojure/lang/Compile.java#L28-L30 but not a property to enable/disable assertions. I've worked around it before by defining my own assert macro and using (refer-clojure :exclude [assert]), in order to be able to toggle assertions myself. https://github.com/pjstadig/deque-clojure/blob/master/src/name/stadig/deque.clj#L23-L27 Paul On Thursday, October 10, 2013 4:43:55 PM UTC-4, lop...@gmail.com wrote: 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 could find is https://groups.google.com/forum/#!topic/clojure-dev/kUCVUEALmWI it does not give any constructive suggestions, though. Has anybody used this JVM facility in Clojure code? Thanks in advance for any of your hints! Best regards, Michal -- -- 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 first 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 --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[ANN] scopes: a little library for resource scopes
I have released version 0.1.0 of scopes, a little library for resource scopes. It can be used to establish a resource scope with the with-resource-scope macro. Within the dynamic extent of that macro one can register a resource with the scoped! function so that when the macrco block goes out of scope .close is called on the registered resource. An object and function can also be registered with (scoped! x (fn [x] ...)) so that when the macro block goes out of scope the function will be called and given x as an argument. There is also a shorthand function called scoped-thunk! that will register a thunk (a function taking no arguments) to be called when the macro block goes out of scope. The scopes library also defines a function named closeable? that will return true if its argument implements java.lang.AutoCloseable. Because scopes uses the java.lang.AutoCloseable interface and the exception supression mechanism, it is only compatible with Java 7. Finally, there is also a scopes-magic artifact, and when it is on the classpath it will automatically pull in the scopes library and add with-resource-scope, scoped!, scoped-thunk!, and closeable? to clojure.core so that they are automatically available everywhere with out having to be imported. I'm not saying that this is necessarily a good idea, but there it is. :) https://clojars.org/pjstadig/scopes https://clojars.org/pjstadig/scopes-magic Paul -- -- 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 first 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 --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: core.match on a set
The only reason it's not currently in there is I've never considered it. The reason I have no near terms plans for it, lack of time. On Friday, October 11, 2013, Phillip Lord wrote: Just out of curiosity why? Or am I just wierd in wanting this? I'll have a look, and see if I can offer a patch, though. Phil David Nolen dnolen.li...@gmail.com javascript:; writes: 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 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})] (match [x] [{:a _ :b _}] 'match_a_b :else nil)) returns 'match_a_b Both of these... (let [y #{:a :b :c}] (match [y] [{:a _ :b _}] 'match_a_b :else nil)) (let [z #{:a :b :c}] (match [z] [#{:a :b}] 'match_a_b :else nil)) returns nil. Am I missing something obvious? Phil -- -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.comjavascript:; javascript:; 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 javascript:; javascript:; For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com javascript:;javascript:;. For more options, visit https://groups.google.com/groups/opt_out. -- -- Phillip Lord, Phone: +44 (0) 191 222 7827 Lecturer in Bioinformatics, Email: phillip.l...@newcastle.ac.uk javascript:; School of Computing Science, http://homepages.cs.ncl.ac.uk/phillip.lord Room 914 Claremont Tower, skype: russet_apples Newcastle University, twitter: phillord NE1 7RU -- -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.comjavascript:; 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 javascript:; For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com javascript:;. For more options, visit https://groups.google.com/groups/opt_out. -- -- 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 first 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 --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [ANN] scopes: a little library for resource scopes
What does this do that (with-open ...) doesn't do? Generalize to other cleanup methods than (.close x)? On Fri, Oct 11, 2013 at 6:36 AM, Paul Stadig p...@stadig.name wrote: I have released version 0.1.0 of scopes, a little library for resource scopes. It can be used to establish a resource scope with the with-resource-scope macro. Within the dynamic extent of that macro one can register a resource with the scoped! function so that when the macrco block goes out of scope .close is called on the registered resource. An object and function can also be registered with (scoped! x (fn [x] ...)) so that when the macro block goes out of scope the function will be called and given x as an argument. There is also a shorthand function called scoped-thunk! that will register a thunk (a function taking no arguments) to be called when the macro block goes out of scope. The scopes library also defines a function named closeable? that will return true if its argument implements java.lang.AutoCloseable. Because scopes uses the java.lang.AutoCloseable interface and the exception supression mechanism, it is only compatible with Java 7. Finally, there is also a scopes-magic artifact, and when it is on the classpath it will automatically pull in the scopes library and add with-resource-scope, scoped!, scoped-thunk!, and closeable? to clojure.core so that they are automatically available everywhere with out having to be imported. I'm not saying that this is necessarily a good idea, but there it is. :) https://clojars.org/pjstadig/scopes https://clojars.org/pjstadig/scopes-magic Paul -- -- 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 first 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 --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- -- 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 first 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 --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
ANN: ClojureScript 0.0-1933
ClojureScript, the Clojure compiler that emits JavaScript source code. README and source code: https://github.com/clojure/clojurescript New release version: 0.0-1933 Leiningen dependency information: [org.clojure/clojurescript 0.0-1933] Changes: * / in symbol now always delimits a namespace * tools.reader 0.7.9, addresses Windows line ending convention Enhancements: * referred vars and macros now verified * replace asserts with errors, now file and line location for all analyzer and compiler errors Bug fixes: * CLJS 600 604: LazySeq regressions * CLJS 605: Allow alias target to change when recompiling file * CLJS 456: test case for CLJS 544 * CLJS 603: namespace and variadic function shadowing * CLJS 566: 1 arity method for partial * CLJS 601: multiple cases of fn arity now emits warning * CLJS 613: unify try special form with Clojure * CLJS 602: better error message for too many arguments to fn -- -- 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 first 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 --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: ANN: ClojureScript 0.0-1933
Just curious, why the version number very different from most of other projects that i have seen? Otherwise conglats. Josh On Fri, Oct 11, 2013 at 3:28 PM, David Nolen dnolen.li...@gmail.com wrote: ClojureScript, the Clojure compiler that emits JavaScript source code. README and source code: https://github.com/clojure/clojurescript New release version: 0.0-1933 Leiningen dependency information: [org.clojure/clojurescript 0.0-1933] Changes: * / in symbol now always delimits a namespace * tools.reader 0.7.9, addresses Windows line ending convention Enhancements: * referred vars and macros now verified * replace asserts with errors, now file and line location for all analyzer and compiler errors Bug fixes: * CLJS 600 604: LazySeq regressions * CLJS 605: Allow alias target to change when recompiling file * CLJS 456: test case for CLJS 544 * CLJS 603: namespace and variadic function shadowing * CLJS 566: 1 arity method for partial * CLJS 601: multiple cases of fn arity now emits warning * CLJS 613: unify try special form with Clojure * CLJS 602: better error message for too many arguments to fn -- -- 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 first 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 --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- -- 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 first 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 --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: clojars.org image for latest version of a project
That's great, gets exactly the information I need from all the repositories. I'll go fix up my library to use this instead. Thanks for the tip off. Adam Clements +44 7947 724 795 -- This email and any files transmitted with it are confidential. If you are not the intended recipient, you are hereby notified that any disclosure, distribution or copying of this communication is strictly prohibited. On Fri, Oct 11, 2013 at 12: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 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 K. -- -- 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 first 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 --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- -- 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 first 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 --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
ANN: ClojureScript 0.0-1934
ClojureScript, the Clojure compiler that emits JavaScript source code. README and source code: https://github.com/clojure/clojurescript New release version: 0.0-1934 Leiningen dependency information: [org.clojure/clojurescript 0.0-1934] The only change in this release - eliminating spurious namespace errors. -- -- 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 first 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 --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
use lein compile a Java project
How use lein compile a Java project? I know the java-source-paths can specify the src path. But I don't know is there any option can specify the lib path that contains dependencies of Java source. (defproject crawler 0.1.0-SNAPSHOT :description FIXME: write description :url http://example.com/FIXME; :license {:name Eclipse Public License :url http://www.eclipse.org/legal/epl-v10.html} :dependencies [[org.clojure/clojure 1.5.1]] :source-paths [src/clj] :java-source-paths [java/NetSpider/src]) -- -- 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 first 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 --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: How to type hint a String array?
user= (definterface MyInterface #_= (^java.lang.String method1 [])) user.MyInterface user= (.method1 (reify MyInterface (^java.lang.String method1 [this] ))) On Wednesday, October 9, 2013 8:55:06 PM UTC+8, Qiu Xiafei wrote: Clojure provide built-in type hint for primitive types such as: ^ints, ^doubles, but how to type hint an array of arbitrary Class? The following way dosn't work, too: user= (definterface MyInterface #_= (^[Ljava.lang.String method1 [])) user.MyInterface user= (.method1 (reify MyInterface (^[Ljava.lang.String; method1 [this] ))) CompilerException java.lang.NoClassDefFoundError: [Ljava/lang/String, compiling:(NO_SOURCE_PATH:1:11) 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 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.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: clojars.org image for latest version of a project
I'm glad to see you've found a solution that works for you. I know of several people doing scraping of clojars to get info, and a real api is on my list to do when I find time. - Nelson Morris On Fri, Oct 11, 2013 at 7:45 AM, Adam Clements adam.cleme...@gmail.comwrote: That's great, gets exactly the information I need from all the repositories. I'll go fix up my library to use this instead. Thanks for the tip off. Adam Clements +44 7947 724 795 -- This email and any files transmitted with it are confidential. If you are not the intended recipient, you are hereby notified that any disclosure, distribution or copying of this communication is strictly prohibited. On Fri, Oct 11, 2013 at 12: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 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 K. -- -- 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 first 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 --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- -- 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 first 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 --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- -- 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 first 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 --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: ANN: ClojureScript 0.0-1933
IIRC the CLJS version numbers are based on the number of GH commits to master at release time... On 11 October 2013 13:33, Josh Kamau joshnet2...@gmail.com wrote: Just curious, why the version number very different from most of other projects that i have seen? Otherwise conglats. Josh On Fri, Oct 11, 2013 at 3:28 PM, David Nolen dnolen.li...@gmail.com wrote: ClojureScript, the Clojure compiler that emits JavaScript source code. README and source code: https://github.com/clojure/clojurescript New release version: 0.0-1933 Leiningen dependency information: [org.clojure/clojurescript 0.0-1933] Changes: * / in symbol now always delimits a namespace * tools.reader 0.7.9, addresses Windows line ending convention Enhancements: * referred vars and macros now verified * replace asserts with errors, now file and line location for all analyzer and compiler errors Bug fixes: * CLJS 600 604: LazySeq regressions * CLJS 605: Allow alias target to change when recompiling file * CLJS 456: test case for CLJS 544 * CLJS 603: namespace and variadic function shadowing * CLJS 566: 1 arity method for partial * CLJS 601: multiple cases of fn arity now emits warning * CLJS 613: unify try special form with Clojure * CLJS 602: better error message for too many arguments to fn -- -- 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 first 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 --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- -- 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 first 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 --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- Karsten Schmidt http://postspectacular.com | http://toxiclibs.org | http://toxi.co.uk -- -- 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 first 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 --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [ANN] scopes: a little library for resource scopes
It separates the resource management from the creation and lexical binding of resources. You can create a scope high up in the call stack, and within the dynamic extent of that scope you can create resources, return them from functions and freely use them; when the scope eventually exits, then the resources will be cleaned up. This library does also generalize a bit to allow you to register an object and a clean up function, or even just a thunk to get called when the scope exits. On Friday, October 11, 2013 7:56:52 AM UTC-4, Cedric Greevey wrote: What does this do that (with-open ...) doesn't do? Generalize to other cleanup methods than (.close x)? On Fri, Oct 11, 2013 at 6:36 AM, Paul Stadig pa...@stadig.namejavascript: wrote: I have released version 0.1.0 of scopes, a little library for resource scopes. It can be used to establish a resource scope with the with-resource-scope macro. Within the dynamic extent of that macro one can register a resource with the scoped! function so that when the macrco block goes out of scope .close is called on the registered resource. An object and function can also be registered with (scoped! x (fn [x] ...)) so that when the macro block goes out of scope the function will be called and given x as an argument. There is also a shorthand function called scoped-thunk! that will register a thunk (a function taking no arguments) to be called when the macro block goes out of scope. The scopes library also defines a function named closeable? that will return true if its argument implements java.lang.AutoCloseable. Because scopes uses the java.lang.AutoCloseable interface and the exception supression mechanism, it is only compatible with Java 7. Finally, there is also a scopes-magic artifact, and when it is on the classpath it will automatically pull in the scopes library and add with-resource-scope, scoped!, scoped-thunk!, and closeable? to clojure.core so that they are automatically available everywhere with out having to be imported. I'm not saying that this is necessarily a good idea, but there it is. :) https://clojars.org/pjstadig/scopes https://clojars.org/pjstadig/scopes-magic Paul -- -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clo...@googlegroups.comjavascript: Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+u...@googlegroups.com javascript: For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+u...@googlegroups.com javascript:. For more options, visit https://groups.google.com/groups/opt_out. -- -- 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 first 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 --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: core.match on a set
Best reasons of all! David Nolen dnolen.li...@gmail.com writes: The only reason it's not currently in there is I've never considered it. The reason I have no near terms plans for it, lack of time. On Friday, October 11, 2013, Phillip Lord wrote: Just out of curiosity why? Or am I just wierd in wanting this? I'll have a look, and see if I can offer a patch, though. Phil David Nolen dnolen.li...@gmail.com javascript:; writes: 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 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})] (match [x] [{:a _ :b _}] 'match_a_b :else nil)) returns 'match_a_b Both of these... (let [y #{:a :b :c}] (match [y] [{:a _ :b _}] 'match_a_b :else nil)) (let [z #{:a :b :c}] (match [z] [#{:a :b}] 'match_a_b :else nil)) returns nil. Am I missing something obvious? Phil -- -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.comjavascript:; javascript:; 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 javascript:; javascript:; For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com javascript:;javascript:;. For more options, visit https://groups.google.com/groups/opt_out. -- -- Phillip Lord, Phone: +44 (0) 191 222 7827 Lecturer in Bioinformatics, Email: phillip.l...@newcastle.ac.uk javascript:; School of Computing Science, http://homepages.cs.ncl.ac.uk/phillip.lord Room 914 Claremont Tower, skype: russet_apples Newcastle University, twitter: phillord NE1 7RU -- -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.comjavascript:; 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 javascript:; For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com javascript:;. For more options, visit https://groups.google.com/groups/opt_out. -- -- Phillip Lord, Phone: +44 (0) 191 222 7827 Lecturer in Bioinformatics, Email: phillip.l...@newcastle.ac.uk School of Computing Science, http://homepages.cs.ncl.ac.uk/phillip.lord Room 914 Claremont Tower, skype: russet_apples Newcastle University, twitter: phillord NE1 7RU -- -- 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 first 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 --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: use lein compile a Java project
another thing that you can't do with lein and java mixed project is to define a java-tests-path. I have that problem :( The only solution is to use a dev profile to exclude test paths from production code. So I think that lein is not thought for java projects. On 10/11/2013 10:00 AM, Gaofeng Zeng wrote: How use lein compile a Java project? I know the java-source-paths can specify the src path. But I don't know is there any option can specify the lib path that contains dependencies of Java source. (defproject crawler 0.1.0-SNAPSHOT :description FIXME: write description :url http://example.com/FIXME; :license {:name Eclipse Public License :url http://www.eclipse.org/legal/epl-v10.html} :dependencies [[org.clojure/clojure 1.5.1]] :source-paths [src/clj] :java-source-paths [java/NetSpider/src]) -- -- 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 first 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 --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- -- 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 first 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 --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: use lein compile a Java project
I believe :dependencies and :resource-paths will be used for the classpath at both build and run time. Does that meet your needs? On Fri, Oct 11, 2013 at 8:00 AM, Gaofeng Zeng ndtm.i...@gmail.com wrote: How use lein compile a Java project? I know the java-source-paths can specify the src path. But I don't know is there any option can specify the lib path that contains dependencies of Java source. (defproject crawler 0.1.0-SNAPSHOT :description FIXME: write description :url http://example.com/FIXME; :license {:name Eclipse Public License :url http://www.eclipse.org/legal/epl-v10.html} :dependencies [[org.clojure/clojure 1.5.1]] :source-paths [src/clj] :java-source-paths [java/NetSpider/src]) -- -- 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 first 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 --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- http://elhumidor.blogspot.com/ -- -- 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 first 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 --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [ANN] Counterclockwise - Clojure plugin for Eclipse
Congratulations on the release, and thank you for your hard work! CCW is a great tool that makes my life easier. Justin On Thursday, October 10, 2013 9:36:01 AM UTC-4, Laurent PETIT wrote: 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 = - Software update site for installing into an existing Eclipse: http://updatesite.ccw-ide.org/stable/ Standalone product for: - Windows 64 bits: http://updatesite.ccw-ide.org/branch/master/master-0.20.0.STABLE001/products/ccw-win32.win32.x86_64.zip - Windows 32 bits: http://updatesite.ccw-ide.org/branch/master/master-0.20.0.STABLE001/products/ccw-win32.win32.x86.zip - Linux 64 bits: http://updatesite.ccw-ide.org/branch/master/master-0.20.0.STABLE001/products/ccw-linux.gtk.x86_64.zip - Linux 32 bits: http://updatesite.ccw-ide.org/branch/master/master-0.20.0.STABLE001/products/ccw-linux.gtk.x86.zip - OS X 64 bits: http://updatesite.ccw-ide.org/branch/master/master-0.20.0.STABLE001/products/ccw-macosx.cocoa.x86_64.zip Create a folder, unzip the product inside this folder, and double click on the Counterclockwise executable! (only pre-requisite: Java 7 in your path) Release Note == https://code.google.com/p/counterclockwise/wiki/ReleaseNotes#Version_0.20.0 Cheers, -- Laurent Petit -- -- 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 first 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 --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [ANN] Counterclockwise - Clojure plugin for Eclipse
Congratulations Laurent! That's fantastic. Thanks for all of your effort on CCW - it's an important contribution. Rich On Oct 10, 2013, at 9:36 AM, Laurent PETIT laurent.pe...@gmail.com wrote: 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 = - Software update site for installing into an existing Eclipse: http://updatesite.ccw-ide.org/stable/ Standalone product for: - Windows 64 bits: http://updatesite.ccw-ide.org/branch/master/master-0.20.0.STABLE001/products/ccw-win32.win32.x86_64.zip - Windows 32 bits: http://updatesite.ccw-ide.org/branch/master/master-0.20.0.STABLE001/products/ccw-win32.win32.x86.zip - Linux 64 bits: http://updatesite.ccw-ide.org/branch/master/master-0.20.0.STABLE001/products/ccw-linux.gtk.x86_64.zip - Linux 32 bits: http://updatesite.ccw-ide.org/branch/master/master-0.20.0.STABLE001/products/ccw-linux.gtk.x86.zip - OS X 64 bits: http://updatesite.ccw-ide.org/branch/master/master-0.20.0.STABLE001/products/ccw-macosx.cocoa.x86_64.zip Create a folder, unzip the product inside this folder, and double click on the Counterclockwise executable! (only pre-requisite: Java 7 in your path) Release Note == https://code.google.com/p/counterclockwise/wiki/ReleaseNotes#Version_0.20.0 Cheers, -- Laurent Petit -- -- 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 first 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 --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- -- 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 first 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 --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: clojars.org image for latest version of a project
I've submitted a pull request https://github.com/xsc/lein-ancient/pull/17to get the latest version vector from all repositories, clojars and maven-central included with none of the nasty scraping. If that gets accepted I'll push out the new version of my emacs plugin which lets you insert the deps inline and automatically add it to your running nrepl. Adam Clements +44 7947 724 795 -- This email and any files transmitted with it are confidential. If you are not the intended recipient, you are hereby notified that any disclosure, distribution or copying of this communication is strictly prohibited. On Fri, Oct 11, 2013 at 2:38 PM, Nelson Morris nmor...@nelsonmorris.netwrote: I'm glad to see you've found a solution that works for you. I know of several people doing scraping of clojars to get info, and a real api is on my list to do when I find time. - Nelson Morris On Fri, Oct 11, 2013 at 7:45 AM, Adam Clements adam.cleme...@gmail.comwrote: That's great, gets exactly the information I need from all the repositories. I'll go fix up my library to use this instead. Thanks for the tip off. Adam Clements +44 7947 724 795 -- This email and any files transmitted with it are confidential. If you are not the intended recipient, you are hereby notified that any disclosure, distribution or copying of this communication is strictly prohibited. On Fri, Oct 11, 2013 at 12:19 AM, Karsten Schmidt i...@toxi.co.ukwrote: 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 K. -- -- 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 first 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 --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- -- 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 first 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 --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- -- 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 first 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 --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- -- 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 first 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 --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[ANN] Counterclockwise - Clojure plugin for Eclipse
Thank you! Alan -- -- 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 first 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 --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[ANN] clara-rules 0.2.0 released
Thanks! I will try it shortly. Alan -- -- 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 first 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 --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [ANN] Counterclockwise - Clojure plugin for Eclipse
I'm not a CCW user right now, but congratulations! I've checked this project from time to time and you are doing a fantastic job. Cheers, Manuel Il giorno giovedì 10 ottobre 2013 15:36:01 UTC+2, Laurent PETIT ha scritto: 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 = - Software update site for installing into an existing Eclipse: http://updatesite.ccw-ide.org/stable/ Standalone product for: - Windows 64 bits: http://updatesite.ccw-ide.org/branch/master/master-0.20.0.STABLE001/products/ccw-win32.win32.x86_64.zip - Windows 32 bits: http://updatesite.ccw-ide.org/branch/master/master-0.20.0.STABLE001/products/ccw-win32.win32.x86.zip - Linux 64 bits: http://updatesite.ccw-ide.org/branch/master/master-0.20.0.STABLE001/products/ccw-linux.gtk.x86_64.zip - Linux 32 bits: http://updatesite.ccw-ide.org/branch/master/master-0.20.0.STABLE001/products/ccw-linux.gtk.x86.zip - OS X 64 bits: http://updatesite.ccw-ide.org/branch/master/master-0.20.0.STABLE001/products/ccw-macosx.cocoa.x86_64.zip Create a folder, unzip the product inside this folder, and double click on the Counterclockwise executable! (only pre-requisite: Java 7 in your path) Release Note == https://code.google.com/p/counterclockwise/wiki/ReleaseNotes#Version_0.20.0 Cheers, -- Laurent Petit -- -- 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 first 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 --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[ANN] Jig
A few months ago, Stuart Sierra blogged about the workflow he follows for building Clojure applications. One of the great pleasures of working with a dynamic language is being able to build a system while simultaneously interacting with it. -- http://thinkrelevance.com/blog/2013/06/04/clojure-workflow-reloaded Since then I've been using this workflow for my own projects, and found it to be amazingly effective. I've added some extra features, and the result is Jig, which builds on Stuart's work in the following ways :- - Multiple components can each contribute to the 'system' map - Components are started in dependency order - Components are specified and configured in a config (edn) file - Jig can host 'plain old' Leiningen projects - Jig will even 'reload' them too e.g. if their project.clj dependencies change. - Jig can host multiple projects simultaneously There's a small but growing list of optional re-usable components that provide extra functionality :- - Pedestal services support. Jig provides the system map and 'url-for' function in the service context. - Nginx cache purging on reload - Git pull prior reload - Reload via JMX - nREPL - Stencil cache purging - Firefox remote control support for 'browser refresh on reload' I know others are working on similar designs. I'd be interested to hear what people think and whether this is useful. Thanks, Malcolm PS: Jig can be found here: https://github.com/juxt/jig -- -- 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 first 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 --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: Clojure - Where to start?
I think it was this post I had seen, from the code design in Clojure thread: https://groups.google.com/d/msg/clojure/-oJmddtX4Fg/4Ub8JSiWr1IJ Paul deGrandis 10/18/12 Brian, Those are two excellent books. If you are looking at more general project organization and approaches, I'd suggest: - Just Enough Architecture (specifically its discussion on architectural evident coding) - watch the Halloway talks on evident code - thumb through Ring, Leiningen, and ClojureScript as prime examples of well written Clojure applications - watch the Google tech talk on designing good APIs ( http://www.youtube.com/watch?v=aAb7hSCtvGw) - and you might find a book like Higher-Order Perl helpful (depending where you're coming from) Hope one (or all) of these help! Paul On Friday, October 11, 2013 4:19:03 AM UTC-4, albert cortez wrote: That sounds pretty interesting. I wonder how old the list was. If it was made a while ago, i'm sure there are new projects that have come along. If you find the link I would be interested. -- -- 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 first 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 --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[ANN] Stefon: A Composable Blog Engine
Hey All, So I've come to an initial first version of Stefon: A Composable Blog Engine. I'm following some interesthttps://groups.google.com/forum/#!msg/clojure/rCmPYa0Vw-4/bi38yOR5ZQkJin a full featured clojure blog engine. And this is a first step in that direction. It's composable in that I've built a small kernel with a plugin system wrapped around it. By composable, I mean you could choose to only use a core server component, posting txt entries, let's say with an in-memory data store. And if you want a little more, you can choose to add a DB adapter out to Datomic, Import / Export support, etc. This is all still within a running Clojure repl. So additionally, you might choose to add a Web UI (or tablet or smartphone UI), and so on. To that end, I'm releasing *i)* the blog engine, Stefonhttps://github.com/twashing/stefon, and *ii)* it's first plugin for database persistence Stefon-Datomichttps://github.com/twashing/stefon-datomic. It's meant to be included in your Clojure web application. So it will run in the repl and save posts with assets and tags. This is obviously just a rudimentary first step, as the next logical step would be a Web UI component. But I wanted to get it out to the community to gauge it's utility and ease of use. I want to make sure the plugin's attachment and messaging semantics are clear and well designed. These are initial setup instructions. And I'll be working on fleshing out the documentation going forward. * * *A) Install / Run* : just git clone g...@github.com:twashing/stefon.git , then start using 'stefon.shell * * *B) Shell CRUD functions*: create, retrieve, update, delete, find, list * * *C) Plugin Interface*: After attaching, you will receive a map of functions { :id your-channel-id :channel ch :sendfn sfn :recievefn rfn } , Expect to * send* and *receive* message in the shape described herehttps://github.com/twashing/stefon/blob/master/src/stefon/shell/kernel.clj . * * *D) Plugin Inclusion*: *i)* write a plugin.clj file under your root namespace, and *ii)* give it a plugin function like thishttps://github.com/twashing/stefon-datomic/blob/master/src/stefon_datomic/plugin.clj#l249. The function-map passed to your function will have these functions for your use { :system-started? shell/system-started? :start-system shell/start-system :attach-plugin shell/attach-plugin } . All feedback is welcome. Hope people find this useful. - Stefon https://github.com/twashing/stefon - Stefon-Datomic https://github.com/twashing/stefon-datomic Tim Washington Interruptsoftware.ca / Bkeeping.com -- -- 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 first 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 --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: monger read reference
Whilst this doesn't answer your question directly, I will note that CongoMongo 0.4.1 includes support for read preferences... On Thu, Oct 10, 2013 at 7:51 PM, Gary Zhao garyz...@gmail.com wrote: 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 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.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- Sean A Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ World Singles, LLC. -- http://worldsingles.com/ Perfection is the enemy of the good. -- Gustave Flaubert, French realist novelist (1821-1880) -- -- 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 first 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 --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: JVM assertions in Clojure
Phillip, Paul - thanks a lot for you suggestions! Phillip - I will definitely give your trick a try. Right now, without experimenting, I see two shortcomings. First, as Paul mentioned, checking assertion status via call to Java function will introduce performance penalty, whereas the use of pure Java assert construct would leave minimal overhead when disabled. Second issue is that with the described hack it would be difficult to switch assertions on/off on a per module basis, which is allowed by the jvm options. So let me be a bit more precise. It would be great to have (awesome-assert (some-test x y z)) which one can switch on/off on a per 'ns' basis via Java options + which leaves the smallest possible overhead when disabled. Paul, if I understand you correctly this would require some changes in Clojure itself. Question to Clojure gurus - would it be very difficult to introduce such awesome feature to Clojure? I have put a comment on the JIRA issue mentioned by Paul. Is there any other channel to put it as feature request? Again, thanks in advance for all your comments and suggestions on the issue! Best regards, Michał On Friday, October 11, 2013 1:12:43 PM UTC+2, Paul Stadig wrote: The problem is that you would still have a performance hit. As I understand, the reason that Java assertions have no runtime penalty when disabled is because they depend on the value of a final field in a class which the JIT will eliminate as dead code when that final field is set to false. The only way to get Clojure's asserts eliminated at runtime would seem to require a compiler change. Paul On Friday, October 11, 2013 7:02:24 AM UTC-4, Phillip Lord wrote: lop...@gmail.com writes: 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 could find is https://groups.google.com/forum/#!topic/clojure-dev/kUCVUEALmWI it does not give any constructive suggestions, though. Has anybody used this JVM facility in Clojure code? Thanks in advance for any of your hints! I guess you could use the assertion status of Java to set the *assert* variable, and then just use the Clojure assert facility. Unfortunately this is a bit of a pain as there doesn't appear to be an API to check the assertion status. So, you'd need a bit of java code... static boolean assertsEnabled(){ boolean assertsEnabled = false; assert assertsEnabled = true; return assertedEnabled; } Bit ugly. -- -- 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 first 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 --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
cloure-mode indenting (or not)
Hi, I'm on emacs/ubuntu, been coding clojure for 2 years w/clojure-mode, nrepl, and the starter-kits. Nice environment! Was away from clojure for a few months while I worked on python stuff. Admittedly, during that time I probably updated various clojure-related packages without checking their effects. Anyways, coming back to some clojure code yesterday, I noticed 2 curious things: paredit no longer started automatically. OK, I guess that was intentional. I edited clojure-mode.el and got paredit back. The other strange thing, auto-indent no longer works; I have to hit the TAB key after ENTER to get indentation. I can't believe *that* was intentional (famous last words). So something must've broke. I am by no means a power-user of emacs, so I'm pretty lost here. Is there some flag I need to set? Anybody else experience this? Googling 'clojure-mode' is not very helpful; almost all the info out there is outdated. thanks for any help, naipmoro -- -- 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 first 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 --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
with-open
I'm working on module that may use a number of different backends, some of which may keep open files across a number of API calls. Other backends may not use files at all. Like (backend-init) ; opens some files, opaque to the caller (backend-do-something); uses the open files (backend-finish); close the files Off-hand, I don't see a way to structure code like this to use with-open, since the backend would lose its open files when returning from any with-open it might do. Am I approaching this the wrong way? Is there a standard way of structuring code like this? It's a bit like the backend is itself the resource to be opened (under the hood would be opening multiple files). I saw a thread about making a close multimethod that sounded related. Also, when the backend is opening files it will need to catch errors and close any opened files (e.g. if the second open fails, close the first), which is a bit like with-open, except it would call close only on error. Is this an existing method or idiom for this? I guess one alternative is to pass a body to be executed to the backend, so the backend can wrap it in with-open. -- -- 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 first 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 --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: cloure-mode indenting (or not)
On Friday, October 11, 2013 2:33:54 PM UTC-7, naipmoro wrote: The other strange thing, auto-indent no longer works; I have to hit the TAB key after ENTER to get indentation. I can't believe *that* was intentional (famous last words). So something must've broke. I think it was intentional. Possibly related to this, https://github.com/clojure-emacs/clojure-mode/issues/29 -- -- 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 first 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 --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: cloure-mode indenting (or not)
Thanks for that. But that conversation was more than a year ago and I know that auto-indent was working just a few months ago. Of course, maybe I hadn't updated clojure-mode for a year. Unlikely but possible. regards, naipmoro On Fri, Oct 11, 2013 at 6:07 PM, George Oliver georgeolive...@gmail.comwrote: On Friday, October 11, 2013 2:33:54 PM UTC-7, naipmoro wrote: The other strange thing, auto-indent no longer works; I have to hit the TAB key after ENTER to get indentation. I can't believe *that* was intentional (famous last words). So something must've broke. I think it was intentional. Possibly related to this, https://github.com/clojure-emacs/clojure-mode/issues/29 -- -- 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 first 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 --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- -- 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 first 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 --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: cloure-mode indenting (or not)
On Fri, Oct 11, 2013 at 11:33 PM, n aipmoro naipm...@gmail.com wrote: I have to hit the TAB key after ENTER to get indentation. I can't believe that was intentional (famous last words). So something must've broke. Actually, the common Emacs convention is that RET (command: `newline') shouldn't indent. C-j is `newline-and-indent' and therefore indents. Quick solution: (add-hook 'clojure-mode-hook (lambda () (interactive) (local-set-key (kbd RET) 'newline-and-indent)) -- -- 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 first 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 --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: cloure-mode indenting (or not)
Wait, RET should probably get bound to `paredit-newline' instead of `newline-and-indent' when paredit is enabled. Try both and see which works better :-) On Sat, Oct 12, 2013 at 12:40 AM, Moritz Ulrich mor...@tarn-vedra.de wrote: On Fri, Oct 11, 2013 at 11:33 PM, n aipmoro naipm...@gmail.com wrote: I have to hit the TAB key after ENTER to get indentation. I can't believe that was intentional (famous last words). So something must've broke. Actually, the common Emacs convention is that RET (command: `newline') shouldn't indent. C-j is `newline-and-indent' and therefore indents. Quick solution: (add-hook 'clojure-mode-hook (lambda () (interactive) (local-set-key (kbd RET) 'newline-and-indent)) -- -- 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 first 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 --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: with-open
Perhaps you want something like: (with-backend [b (select-the-backend)] (do-something b)) and have with-backend call the appropriate init / finish methods? Sean On Fri, Oct 11, 2013 at 2:33 PM, Brian Craft craft.br...@gmail.com wrote: I'm working on module that may use a number of different backends, some of which may keep open files across a number of API calls. Other backends may not use files at all. Like (backend-init) ; opens some files, opaque to the caller (backend-do-something); uses the open files (backend-finish); close the files Off-hand, I don't see a way to structure code like this to use with-open, since the backend would lose its open files when returning from any with-open it might do. Am I approaching this the wrong way? Is there a standard way of structuring code like this? It's a bit like the backend is itself the resource to be opened (under the hood would be opening multiple files). I saw a thread about making a close multimethod that sounded related. Also, when the backend is opening files it will need to catch errors and close any opened files (e.g. if the second open fails, close the first), which is a bit like with-open, except it would call close only on error. Is this an existing method or idiom for this? I guess one alternative is to pass a body to be executed to the backend, so the backend can wrap it in with-open. -- -- 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 first 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 --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- Sean A Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ World Singles, LLC. -- http://worldsingles.com/ Perfection is the enemy of the good. -- Gustave Flaubert, French realist novelist (1821-1880) -- -- 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 first 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 --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: cloure-mode indenting (or not)
Heh, I didn't know something as basic as C-j. I think I'll be using that. Thanks for the lesson. I'm just relieved my app isn't broken. regards, naipmoro On Fri, Oct 11, 2013 at 6:41 PM, Moritz Ulrich mor...@tarn-vedra.de wrote: Wait, RET should probably get bound to `paredit-newline' instead of `newline-and-indent' when paredit is enabled. Try both and see which works better :-) On Sat, Oct 12, 2013 at 12:40 AM, Moritz Ulrich mor...@tarn-vedra.de wrote: On Fri, Oct 11, 2013 at 11:33 PM, n aipmoro naipm...@gmail.com wrote: I have to hit the TAB key after ENTER to get indentation. I can't believe that was intentional (famous last words). So something must've broke. Actually, the common Emacs convention is that RET (command: `newline') shouldn't indent. C-j is `newline-and-indent' and therefore indents. Quick solution: (add-hook 'clojure-mode-hook (lambda () (interactive) (local-set-key (kbd RET) 'newline-and-indent)) -- -- 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 first 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 --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- -- 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 first 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 --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [ANN] Austin — the ClojureScript browser-REPL, rebuilt stronger, faster, easier
This looks awesome. I'm digging into it right now. *A)* A problem cropped up where the example app, provided herehttps://github.com/cemerick/austin/blob/master/browser-connected-repl-sample/README.md, isn't working for me. After *i)* turning off all other repls and *ii)*following instructions exactly, the call to *(js/alert Salut!)* just hangs. However, my environment is behind a *VM Ware Guest* Ubuntu Linux (OSX Host). So I don't know if this is interfering with the setup, in any way. *B)* That being said, I can't wait to dig more into this. As far as feedback and requests goes, for the longest while, I've wanted *nrepl-ritz*/ *nrepl.el* / *cljsbuild auto* / *cljsbuild repl-listen* ... in same session (see here https://groups.google.com/forum/#!topic/clojure/kc3jQvKmLHg). This meaning, that I've wanted cljs auto-build that tees both to the file system, and the browser connected repl. Also, a debugger would be available if any Clojure errors pop up. I believe you'd need *cljsbuild auto* and *cljsbuild repl-listen* setup as nrepl middleware. But I'm by no means an expert. Cheers. Great work. Tim Washington Interruptsoftware.ca / Bkeeping.com On Mon, Sep 9, 2013 at 8:24 PM, Nelson Morris nmor...@nelsonmorris.netwrote: I've been using austin on a project with emacs/nrepl. It works for a C-c C-k, switch to nrepl, interact with app. However, some other features like auto-complete and jump-to-symbol-definition I'm used to in a clojure workflow don't work or cause a core to spin. I'd suspect the eldoc call to show the function arguments could act similar. - Nelson On Mon, Sep 9, 2013 at 10:25 AM, Norman Richards o...@nostacktrace.comwrote: On Mon, Aug 5, 2013 at 8:21 AM, Chas Emerick c...@cemerick.com wrote: As you might know, I've been tinkering with an easier-to-use variant of ClojureScript's browser-REPL for some time. I've finally wrapped that up into its own project, Austin: [...] Is anyone successfully using this with nrepl in emacs? I am able to make it work, but something is causing both emacs and the JVM it is connected to to use 100% CPU. I seem to be getting a long stream of Unable to resolve symbol: if-let in this context, compiling:(NO_SOURCE_PATH:1:1) See: https://gist.github.com/orb/6496320 *nrepl-connection* fills up with: d2:ex45:class clojure.lang.Compiler$CompilerException2:id6:1504207:root-ex45:class clojure.lang.Compiler$CompilerException7:session36:43e688aa-01c2-4824-b1f3-1bd05a1f02446:statusl10:eval-erroreed3:err128:CompilerException java.lang.RuntimeException: Unable to resolve symbol: if-let in this context, compiling:(NO_SOURCE_PATH:1:1) I'm not sure if this is a problem with austin or if it's nrepl.el or something on the emacs side. As a side note, I occasionally get a similar error message using straight nrepl when first starting up, but it usually only happens once. With austin/nrepl it appears to be stuck in some kind of loop erroring over and over... Does anyone have a known good setup I could try to reproduce? -- -- 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 first 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 --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [ANN] Counterclockwise - Clojure plugin for Eclipse
Laurent, you rock! Auto-formatting is already saving my fingers a lot of travelling. Thanks for the great work. -- -- 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 first 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 --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Too big for the 'mod' britches?
Why is this? = (mod (math-function/pow 11 23) 187) 1.34217728E8 11^23 mod 187 is 88 Is there a limitation I'm unaware of? Thanks, Nick -- -- 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 first 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 --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: Too big for the 'mod' britches?
The pow function returns a double, which doesn't work properly with mod. Use expt from clojure.math.numeric-tower. -- -- 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 first 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 --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: Clojure - Where to start?
The clojure-docs look like a good place to begin with. Thanks. - Anurag. On Friday, October 11, 2013 2:17:57 AM UTC+5:30, Michael Klishin wrote: 2013/10/11 Anurag Ramdasan aranu...@gmail.com javascript: 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 monads. Can someone point me to such resources on the internet that could get me writing some proper clojure? Read source code of popular open source projects. There is certainly more than one proper way to program in a Lisp dialect ;) -- MK http://github.com/michaelklishin http://twitter.com/michaelklishin -- -- 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 first 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 --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: Clojure - Where to start?
Thanks for the links Jeff. More than enough resources to cover! - Anurag. On Friday, October 11, 2013 10:17:26 PM UTC+5:30, Jeff Heon wrote: I think it was this post I had seen, from the code design in Clojure thread: https://groups.google.com/d/msg/clojure/-oJmddtX4Fg/4Ub8JSiWr1IJ Paul deGrandis 10/18/12 Brian, Those are two excellent books. If you are looking at more general project organization and approaches, I'd suggest: - Just Enough Architecture (specifically its discussion on architectural evident coding) - watch the Halloway talks on evident code - thumb through Ring, Leiningen, and ClojureScript as prime examples of well written Clojure applications - watch the Google tech talk on designing good APIs ( http://www.youtube.com/watch?v=aAb7hSCtvGw) - and you might find a book like Higher-Order Perl helpful (depending where you're coming from) Hope one (or all) of these help! Paul On Friday, October 11, 2013 4:19:03 AM UTC-4, albert cortez wrote: That sounds pretty interesting. I wonder how old the list was. If it was made a while ago, i'm sure there are new projects that have come along. If you find the link I would be interested. -- -- 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 first 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 --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: use lein compile a Java project
. ├── doc │ └── intro.md ├── java │ ├── LIBS │ └── NetSpider │ ├── bin │ ├── build.xml │ ├── invalid.src │ └── src ├── LICENSE ├── project.clj ├── project.clj.bak ├── README.md ├── resources │ └── lib │ ├── commons-codec-1.4.jar │ ├── commons-logging-1.1.1.jar │ ├── httpclient-4.1.2.jar │ ├── httpclient-cache-4.1.2.jar │ ├── httpcore-4.1.2.jar │ ├── httpmime-4.1.2.jar │ ├── jsoup-1.6.3.jar │ └── mongo-2.10.1.jar ├── src │ ├── clj │ │ └── crawler │ └── java │ ├── test │ └── util ├── target │ ├── classes │ ├── spider.jar │ └── stale │ └── extract-native.dependencies └── test └── crawler └── core_test.clj This is my dir tree of my project. Compile the java project need the jars that located in resources/lib, and I set this (:resource-paths [resources/lib]), but not effect. On Friday, October 11, 2013 10:20:41 PM UTC+8, John Hume wrote: I believe :dependencies and :resource-paths will be used for the classpath at both build and run time. Does that meet your needs? On Fri, Oct 11, 2013 at 8:00 AM, Gaofeng Zeng ndtm...@gmail.comjavascript: wrote: How use lein compile a Java project? I know the java-source-paths can specify the src path. But I don't know is there any option can specify the lib path that contains dependencies of Java source. (defproject crawler 0.1.0-SNAPSHOT :description FIXME: write description :url http://example.com/FIXME; :license {:name Eclipse Public License :url http://www.eclipse.org/legal/epl-v10.html} :dependencies [[org.clojure/clojure 1.5.1]] :source-paths [src/clj] :java-source-paths [java/NetSpider/src]) -- -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clo...@googlegroups.comjavascript: Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+u...@googlegroups.com javascript: For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+u...@googlegroups.com javascript:. For more options, visit https://groups.google.com/groups/opt_out. -- http://elhumidor.blogspot.com/ -- -- 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 first 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 --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: streams, reading bytes
The byte-transforms library will also take care of the gzip stuff for you: https://github.com/ztellman/byte-transforms On Thursday, October 10, 2013 10:26:35 PM UTC-4, Brian Craft wrote: 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 wrote: On 10/10/13 7:21 PM, Brian Craft wrote: I'm struggling with how to gzip/gunzip byte arrays from clojure. I don't really get how clojure.java.io streams supposed to be used. This appears to gzip a string: (let [baos (java.io.ByteArrayOutputStream.) gzos (java.util.zip.GZIPOutputStream. baos)] (.write gzos (.getBytes foo)) (.finish gzos) (.toByteArray baos)) and I can expand on this to gunzip the string afterwards: (let [baos (java.io.ByteArrayOutputStream.) gzos (java.util.zip.GZIPOutputStream. baos)] (.write gzos (.getBytes foo)) (.finish gzos) (let [gzbytes (.toByteArray baos) bais (java.io.ByteArrayInputStream. gzbytes) gzis (java.util.zip.GZIPInputStream. bais)] (slurp gzis))) But slurp builds strings. I need to do this with byte arrays. Do I have to rewrite slurp to build a byte array? Is there any simpler way to do this? Zach Tellman's byte-streams library is very handy for these kinds of conversions: https://github.com/ztellman/byte-streams -Ben -- -- 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 first 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 --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.