Re: [lein-cljsbuild] exclude a cljs from compilation

2012-11-16 Thread Giacomo Cosenza
On Nov 16, 2012, at 8:28 AM, Evan Mezeske wrote: Unfortunately, there's no way to do that right now. I can't even think of a decent workaround (although that doesn't mean there isn't one). Hi Evan and thanx for the answer This is part of a more general problem, which is that each

Re: [lein-cljsbuild] exclude a cljs from compilation

2012-11-16 Thread Mimmo Cosenza
On Friday, November 16, 2012 8:28:18 AM UTC+1, Evan Mezeske wrote: If you wouldn't mind, please create a new issue, or maybe just add to this one: https://github.com/emezeske/lein-cljsbuild/issues/108 . done. added issue #157 with reference to #108 and viceversa. thanks mimmo Thanks,

Re: How to write this in idiomatic Clojure code?

2012-11-16 Thread Hussein B.
Why the use of map? function ? I don't get it. On Friday, November 16, 2012 8:08:40 AM UTC+2, lpetit wrote: (map #(seq (process-some-class-instance %)) (tree-seq map? :children input)) Sent from a smartphone, please excuse the brevity/typos. Le 16 nov. 2012 à 00:13, Hussein B.

Re: [ANN] moderns-cljs tutorial 6

2012-11-16 Thread Mimmo Cosenza
On Wednesday, November 14, 2012 10:24:42 PM UTC+1, Casper Clausen wrote: If I can make one suggestion, it would be nice to have each chapter accompanied by a project for that chapter. It would mean a lot less copy and paste to follow along with the examples. /Casper I Casper I just added

Re: How to write this in idiomatic Clojure code?

2012-11-16 Thread Laurent PETIT
I wrote it quickly from my phone. You can use the complement of instance? function as well: #(not (instance? SomeClass %)) or (complement (partial instance? SomeClass)) for fun 2012/11/16 Hussein B. hubaghd...@gmail.com Why the use of map? function ? I don't get it. On Friday, November 16,

Re: Proposed change to let- syntax

2012-11-16 Thread Alex Nixon
On 16 November 2012 01:25, Mark Engelberg mark.engelb...@gmail.com wrote: On Thu, Nov 15, 2012 at 5:17 PM, Alan Malloy a...@malloys.org wrote: The primary point of let- is that you can insert it into an existing - pipeline. That makes sense. It does - thanks for the clarification. So is

Can't dynamically bind non-dynamic var

2012-11-16 Thread faenvie
hi clojure-users, for testing an app that uses quil, i want to mock out some function-calls to the quil-library ... when i do it like this: (ns myapp (:use clojure.test) (:require [quil.core :as q])) (deftest (binding [q/height (fn [] 400)] (is 400 (q/height i get an

Re: Can't dynamically bind non-dynamic var

2012-11-16 Thread Baishampayan Ghose
Check out 'with-redefs' in clojure.core. -BG Sent from phone. Please excuse brevity. On 16 Nov 2012 08:02, faenvie fanny.aen...@gmx.de wrote: hi clojure-users, for testing an app that uses quil, i want to mock out some function-calls to the quil-library ... when i do it like this: (ns

Re: code waiting on something - cannot debug - driving me insane!!!

2012-11-16 Thread Laurent PETIT
2012/11/16 Jim - FooBar(); jimpil1...@gmail.com Wow! Unbelievable ! So there is nothing wrong with my code? After reading this thread, it seems like a serious issue...the entire repl becomes unusable which greatly limits the interactive experience. But then, what happens in Eclipse?

Re: Can't dynamically bind non-dynamic var

2012-11-16 Thread Jay Fields
agreed. also, I prefer (constantly 400) over (fn [] 400) On Fri, Nov 16, 2012 at 8:11 AM, Baishampayan Ghose b.gh...@gmail.com wrote: Check out 'with-redefs' in clojure.core. -BG Sent from phone. Please excuse brevity. On 16 Nov 2012 08:02, faenvie fanny.aen...@gmx.de wrote: hi

Re: Proposed change to let- syntax

2012-11-16 Thread Jay Fields
I think using 'let' is what makes this confusing. I'd like to have a macro/fn for both ideas being discussed in this thread, ideally they'd both be named in a way that causes the least amount of confusion. I'm not sure what those names are, perhaps (- 1 (inc) (rebind a-num (- 2 a-num)

Re: Difference between JVM and CLR when destructuring a lazy sequence

2012-11-16 Thread ffailla
Thank you David for looking into this so quickly. For now I am working around this by not destructuring, but I look forward to the patch. Thanks. -Frank On Thursday, November 15, 2012 7:41:39 PM UTC-5, dmiller wrote: The difference is that the JVM version is correct and the CLR

Re: Proposed change to let- syntax

2012-11-16 Thread Jay Fields
another thought - a really nice thing about if, let, and if-let is that if you know how to use if and let, if-let just makes sense. You can't say the same about -, let, and let- with the current proposal. On Fri, Nov 16, 2012 at 7:32 AM, Alex Nixon a...@swiftkey.net wrote: On 16 November 2012

Re: Are there projects similar to meteor.js and derby.js but for clojure/clojurescript?

2012-11-16 Thread Timothy Washington
Hey Leon, A friend recently told me about meteor.js and derby.js. These are basically websocket technologies. And I briefly looked into Clojure-based solutions, although I haven't tried them out. The 2 that I found are below. - Aleph https://github.com/ztellman/aleph - Webbit: Evented

Re: Proposed change to let- syntax

2012-11-16 Thread László Török
+1, looking at the latest master, I think they need a better docstring, or rather an example of use that makes it easier to grasp. Regards, Laszlo 2012/11/16 Jay Fields j...@jayfields.com another thought - a really nice thing about if, let, and if-let is that if you know how to use if and

[ANN] lein-clojuredocs 1.0.2, cadastre 0.1.1, and Eisago

2012-11-16 Thread Lee Hinman
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi all, I'm pleased to announce three different projects, all related to the rewrite of ClojureDocs. - --- First, the lein-clojuredocs[1] leiningen plugin, which goes through your project's source code and produces a gzipped json file containing all

Re: [ANN] lein-clojuredocs 1.0.2, cadastre 0.1.1, and Eisago

2012-11-16 Thread Andy Fingerhut
Very cool stuff, Lee! And my sincere thanks for all the work you are doing to make ClojureDocs.org even more useful than it is already. I tried out clojuredocs on a project that depended on Clojure 1.3.0. When I first tried lein2 clojuredocs, I got an exception like this: Exception in thread

[ANN] Carica 1.0.0 -- A flexible project configuration library

2012-11-16 Thread David Leatherman
Hello everyone, I'm happy to announce the release of Carica, a flexible configuration library for your Clojure projects. It offers: - a simple lookup syntax - support for both Clojure and JSON config files - config file merging (if you have more than one config file) - Even if one is a

Re: [ANN] lein-clojuredocs 1.0.2, cadastre 0.1.1, and Eisago

2012-11-16 Thread Lee Hinman
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 11/16/12 12:10 PM, Andy Fingerhut wrote: Very cool stuff, Lee! And my sincere thanks for all the work you are doing to make ClojureDocs.org even more useful than it is already. I tried out clojuredocs on a project that depended on Clojure

Re: [ANN] Carica 1.0.0 -- A flexible project configuration library

2012-11-16 Thread Mayank Jain
Thanks. This will be very useful to me. :) I was thinking about having something like this for the project I am working on right now :) On Fri, Nov 16, 2012 at 10:51 PM, David Leatherman leath...@gmail.comwrote: Hello everyone, I'm happy to announce the release of Carica, a flexible

Re: core.logic matche with maps

2012-11-16 Thread David Nolen
On Thu, Nov 15, 2012 at 9:53 AM, MHOOO thomas.karol...@gmail.com wrote: Hello everybody, recently I was using the following pattern a lot, in order to get access to a value inside a map: (defn map-geto* [m k v] (matche [m] ([[[k v] . _]]) ([[_ . tail]]

Re: Clojure in OSGi and *use-context-classloader*

2012-11-16 Thread Nick Mudge
Hi there, Thanks for your post. I had the same problem and your solution is what I need. To answer your question, USE_CONTEXT_CLASSLOADER still returns true in the following method (which is also in RT.java) because it is being bound to true when making a DynamicClassLoader: static public

Re: [ANN] ClojureScript release 0.0-1535 with G.Closure 0.0-2029

2012-11-16 Thread Stuart Sierra
Tracking this at http://dev.clojure.org/jira/browse/CLJS-418 -S -- 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

CLJS-418: Unspecified dependency on google-closure-library-third-party

2012-11-16 Thread Stuart Sierra
http://dev.clojure.org/jira/browse/CLJS-418 We currently distribute the Google Closure Library in two separate JARs: the main library and the third-party extensions. We do this because the third-party extensions are covered by different licenses. But, as it turns out, various classes in the

Re: CLJS-418: Unspecified dependency on google-closure-library-third-party

2012-11-16 Thread Stuart Sierra
I should mention, there's an easy temporary fix: just add the third-party library as a dependency in your project: ;; In :dependencies vector of Leiningen's project.clj [org.clojure/google-closure-library-third-party 0.0-2029] -S -- You received this message because you are

ANN [clojure-power] - mailing list for Clojure user groups and promotion

2012-11-16 Thread Alex Miller
Here: https://groups.google.com/forum/?fromgroups#!forum/clojure-power We had a great discussion tonight at the conj sharing stories about user groups from all over the country and the world. We had a number of ideas around connecting user groups, either to share speakers, or topics, or just

Re: freeing resources while generating lazy sequences

2012-11-16 Thread Stuart Sierra
Lazy sequences do not interact well with resources that need to be closed. This is a long-standing issue, and no universal solution has been found. The usual recommendation is to manage the resource in a higher scope than the process that uses it. In your case, rather than creating the iterator