Re: Libraries and build management hell

2011-07-31 Thread Sean Corfield
On Sat, Jul 30, 2011 at 5:27 PM, Mark Engelberg mark.engelb...@gmail.com wrote: I guess what I'm thinking of is that 95% of the time when I go to start something new, it ends up being for a short-lived task Sounds like both Phil and I tackle that by having one or more scratch projects that we

Re: Libraries and build management hell

2011-07-31 Thread Alex Osborne
Mark Engelberg mark.engelb...@gmail.com writes: Phil makes a reasonable point that it is possible to create a single project for one-off tasks. I'm not sure how well that would work with the way I have things organized, and with my source control, but it's something I can look into. I have

Re: Libraries and build management hell

2011-07-31 Thread Brent Millare
My solution to these problems is my run command, where you can run a script in the dependency context of a particular project. So lets say you have a scratch project with many common dependencies. Then I run anywhere, dj run foo.clj scratch-project. I'd imagine there is something like this for

Re: ClojureScript on Windows

2011-07-31 Thread Bill Robertson
You can also add the setlocal command to the .bat file. It will make all variable set commands local to the process (and sub-procs iirc). Better this way because you're not littering in the user's environment. -Bill On Jul 30, 8:14 pm, Benny Tsai benny.t...@gmail.com wrote: Brenton, thank you

timed termination of iterative algorithm

2011-07-31 Thread Sunil S Nandihalli
Hello everybody, I would like to have a long running process to return its current solution after some pre-determined amount of time. It so happens that the iteration is happening at a deeper nested function. I would like to have a way to return from this nested function when its time ... How can

novel feedback is always welcome

2011-07-31 Thread Stuart Halloway
(I have take the liberty of changing the subject line, which may be less than ideal for some people's reading style.) Responses inline. There is something of an issue here, though: where, exactly, should the line be drawn between thou shalt not question this on the mailing list! and fair

Re: timed termination of iterative algorithm

2011-07-31 Thread Ken Wesson
On Sun, Jul 31, 2011 at 10:25 AM, Sunil S Nandihalli sunil.nandiha...@gmail.com wrote: Hello everybody,  I would like to have a long running process to return its current solution after some pre-determined amount of time. It so happens that the iteration is happening at a deeper nested

Re: novel feedback is always welcome

2011-07-31 Thread Ken Wesson
On Sun, Jul 31, 2011 at 10:27 AM, Stuart Halloway stuart.hallo...@gmail.com wrote: In principle the line is clear. Everything is fair game. Novel feedback is always welcome. Question small decisions, question big ones. Press hard for quality. The opposite of providing novel feedback is

Re: novel feedback is always welcome

2011-07-31 Thread David Nolen
On Sun, Jul 31, 2011 at 10:41 AM, Ken Wesson kwess...@gmail.com wrote: (I also have concerns about the *unchecked-math* flag I heard about somewhere. We can't have +, etc. testing some flag at runtime -- much less fetching a dynamic Var, which is a slow, slow ThreadLocal object at the JVM

Re: timed termination of iterative algorithm

2011-07-31 Thread Sunil S Nandihalli
Hi Ken, thank you for your response. Do you think you can give me a quick example of how to extend an Exception to be able to extract the value from the exception when it is caught.. Should I be using gen-class for this? (seems quiet messy to me)... do you have a better suggestion.. Thanks,

Re: timed termination of iterative algorithm

2011-07-31 Thread Ken Wesson
On Sun, Jul 31, 2011 at 12:41 PM, Sunil S Nandihalli sunil.nandiha...@gmail.com wrote: Hi Ken,  thank you for your response. Do you think you can give me a quick example of how to extend an Exception to be able to extract the value from the exception when it is caught.. Should I be using

Re: timed termination of iterative algorithm

2011-07-31 Thread Ken Wesson
Another, perhaps cleaner method leverages more of Java's and Clojure's concurrency tools. (def res (atom nil)) (defn outer-loop [...] (loop [x initial-value ...] (reset! res x) (recur (compute-new-x x ...) ...))) ... (defn do-it [timeout ...] (let [f (future (outer-loop ...))]

Clojure Dev: How you can help! (Hint: Alioth Benchmarks)

2011-07-31 Thread Isaac Gouy
1) When I saw this posting on Clojure Dev a month ago http://groups.google.com/group/clojure-dev/browse_thread/thread/2abe6d79087af4fc/9030a0b0c15f26a2?hl=enie=UTF-8q=alioth+shootout+clojurepli=1 I recognised the desire to have some quick and dirty performance regression testing, the Scala

Re: Clojure Dev: How you can help! (Hint: Alioth Benchmarks)

2011-07-31 Thread Stuart Halloway
Hi Isaac, 1) When I saw this posting on Clojure Dev a month ago http://groups.google.com/group/clojure-dev/browse_thread/thread/2abe6d79087af4fc/9030a0b0c15f26a2?hl=enie=UTF-8q=alioth+shootout+clojurepli=1 I recognised the desire to have some quick and dirty performance regression

Google working on JIT compiler for Dalvik

2011-07-31 Thread Fred Concklin
Thought it might be of interest to some on the list. http://developer.android.com/videos/index.html#v=Oq05KqjXTvs -- 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

Re: Google working on JIT compiler for Dalvik

2011-07-31 Thread Fred Concklin
DOH! http://developer.android.com/videos/index.html#v=Ls0tM-c4Vfo On Jul 31, 2:38 pm, Fred Concklin fredconck...@gmail.com wrote: Thought it might be of interest to some on the list. http://developer.android.com/videos/index.html#v=Oq05KqjXTvs -- You received this message because you are

Re: Alright, fess up, who's unhappy with clojurescript?

2011-07-31 Thread Alexander Yakushev
On Jul 30, 6:02 pm, daly d...@axiom-developer.org wrote: While it is fine to say get involved in head-punching I think it is important to realize that it is Rich's head being punched. Seems like I was unclear in my statement. I'll try to do it again. At any point of a lifetime of a computer

Re: timed termination of iterative algorithm

2011-07-31 Thread Jeff Palmucci
http://github.com/jpalmucci/clj-return-from On Jul 31, 12:41 pm, Sunil S Nandihalli sunil.nandiha...@gmail.com wrote: Hi Ken,  thank you for your response. Do you think you can give me a quick example of how to extend an Exception to be able to extract the value from the exception when it is

Re: Libraries and build management hell

2011-07-31 Thread yair
On Jul 31, 12:28 pm, Ken Wesson kwess...@gmail.com wrote: Almost being the operative word. One distinct disadvantage is that it makes building your project require a working network connection snip This is not correct. Once the jar has been downloaded after being included in the dependencies,

Re: Libraries and build management hell

2011-07-31 Thread Ken Wesson
On Sun, Jul 31, 2011 at 9:43 PM, yair yair@gmail.com wrote: On Jul 31, 12:28 pm, Ken Wesson kwess...@gmail.com wrote: Almost being the operative word. One distinct disadvantage is that it makes building your project require a working network connection snip This is not correct.  Once the

clojurescript interop problems

2011-07-31 Thread Jack Moffitt
I'm having some trouble attempting to use interop with ClojureScript. I'm trying to translate examples from the Closure book into ClojureScript, and I keep getting stuck on various things. 1) When using goog.testing, it appears that I can't access goog.testing.TestRunner and goog.testing.TestCase

Re: Libraries and build management hell

2011-07-31 Thread Sean Corfield
On Sun, Jul 31, 2011 at 7:49 PM, Ken Wesson kwess...@gmail.com wrote: If you add a new dependency, the network connection is needed. If you add a new dependency and you don't already have the JAR downloaded, you need a network connection one way or another to go get that JAR, yes? It doesn't

Re: Libraries and build management hell

2011-07-31 Thread Ken Wesson
On Sun, Jul 31, 2011 at 11:57 PM, Sean Corfield seancorfi...@gmail.com wrote: On Sun, Jul 31, 2011 at 7:49 PM, Ken Wesson kwess...@gmail.com wrote: If you add a new dependency, the network connection is needed. If you add a new dependency and you don't already have the JAR downloaded, you

Re: Libraries and build management hell

2011-07-31 Thread pmbauer
What if you have the JAR on a disk somewhere, for other reasons, but until now it wasn't a dependency of that particular project? Your assertion that dependency management systems are in any way disadvantaged to manual dependency management in terms of SPOF or requiring a network connection is

Re: Libraries and build management hell

2011-07-31 Thread Ken Wesson
On Mon, Aug 1, 2011 at 12:49 AM, pmbauer paul.michael.ba...@gmail.com wrote: What if you have the JAR on a disk somewhere, for other reasons, but until now it wasn't a dependency of that particular project? Your assertion that dependency management systems are in any way disadvantaged to

ANN: cljs-android - ClojureScript on the Android

2011-07-31 Thread Paul deGrandis
Hi All, I'd like to announce cljs-android - ClojureScript on the Android. This is accomplished via the scripting layer for Android (SL4A), and gives you full access to the entire Android API from within ClojureScript. GitHub: https://github.com/ohpauleez/cljs-android Currently, the interface is