Re: core.async question - canceling thread

2014-01-22 Thread Praki Prakash
What is the task doing? If it is in a tight loop, it must check explicitly whether the interrupt flag is set and abort. If it is waiting on some resource, it will receive InterruptedException. Regards, Praki Prakash On Wed, Jan 22, 2014 at 11:20 AM, Mark Engelberg wrote: > On Wed, Jan 22, 2

Re: ANN: Clojure High Performance Programming

2013-11-21 Thread Praki Prakash
Hi Shantanu, Congrats on the book. Looks like it's going to be a great read and no doubt a much needed book on the subject of performant code. Regards, Praki Prakash On Thu, Nov 21, 2013 at 11:09 AM, Shantanu Kumar wrote: > > > On Thursday, 21 November 2013 21:39:36 UTC+5:30

Re: My recap of Clojure/conj 2013

2013-11-20 Thread Praki Prakash
Please accept my thanks as well! Regards, Praki Prakash On Wed, Nov 20, 2013 at 6:25 PM, Eduardo Lávaque wrote: > Thanks for this Logan. :) > > -- > -- > You received this message because you are subscribed to the Google > Groups "Clojure" group. > To post to th

Re: ANN: Clojure 1.4.0-beta1

2012-02-03 Thread Praki Prakash
I use mvn -X to diagnose such issues. mvn can also produce detailed reports on dependency and much more (mvn site -- I think). HTH On Fri, Feb 3, 2012 at 9:19 AM, Tassilo Horn wrote: > Stuart Sierra writes: > > Hi Stu, > >> Clojure 1.4 goes beta! This release is essentially the same as >> 1.4.0

Re: I don't understand how to instantiate a closure library object

2012-01-10 Thread Praki Prakash
On Tue, Jan 10, 2012 at 2:22 PM, billh2233 wrote: > I'm trying to instantiate a new goog.fx/Animate object, but the > constructor doesn't return anything: > >  (:require [goog.fx :as fx]) >  (let [anim (fx/Animation (array 22 33) (array 44 55) 1000 nil)] >    "anim:>" # "    ... (let [anim (fx/An

Re: ClojureScript – inter-namespace usage

2012-01-09 Thread Praki Prakash
I bind *print-fn* and it seems to work fine in my snapshot of master pulled on 12/14. On Mon, Jan 9, 2012 at 6:16 PM, David Nolen wrote: > binding works just fine in CLJS. That it doesn't work with required "vars" > sounds like a bug. > > On Monday, January 9, 2012, Stuart Sierra > wrote: >> Hi

Re: "Late provide error" in compiling clojurescript files

2012-01-04 Thread Praki Prakash
Thanks for your response Benjamin. I was leaning towards cyclic dependency myself. I couldn't get closurebuilder.py (which apparently detects cyclic dependencies) but couldn't get it to run on my source. After your response, I did a dependency analysis by hand and found no cycles. However, I narrow

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

2011-07-28 Thread Praki Prakash
On Thu, Jul 28, 2011 at 5:20 PM, Tal Liron wrote: > jQuery is not so much an elephant as it is a mammoth. It was one of > the first clientside-JS frameworks to reach a broad audience, but it > also one of the worst. It incorporates so many terrible JS practices, > performs miserably, and really c

Re: First foray into profiling

2011-01-09 Thread Praki Prakash
It is most likely the transport used between your profiler front-end and the JVM backend. Right click on the entry point you are interested in and display it as a subtree. VisualVM and YourKit profilers show time percentages based on the time spent in that method which is want you want to see. Pra

Re: Knuth's literate programming "tangle" function in Clojure

2010-12-26 Thread Praki Prakash
Tim, This approach is very interesting. My choice of mode for LP has always been noweb-mode but it doesn't seem to work with my version of emacs anymore. My current approach is to embed prose and clojure code in a latex document and generate a .tex file with formatted clojure code and .clj contain

Re: Suggestions for a &file and &line implicit argument in macros

2010-07-14 Thread Praki Prakash
I have the same problem and implicit file/line arguments would be very useful to me as well. On Wed, Jul 14, 2010 at 8:21 AM, Nicolas Oury wrote: > Dear all, > I am using a lot of macros with a quite complex syntax and I would like to > be able to report error nicely. > I haven't been able to fi

Re: Clojure 1.2 Beta 1

2010-07-14 Thread Praki Prakash
I think my number crunching code would benefit immensely from equals/equiv code. When can we hope to see a release containing equals/equiv effort? Thanks On Wed, Jul 14, 2010 at 10:42 AM, Stuart Halloway wrote: > Later release. > >> I didn't see mention of the new equals/equiv work. >> Is this g

Re: Perplexing bug

2010-06-09 Thread Praki Prakash
x27;clojure') > > On Wed, Jun 9, 2010 at 8:04 PM, Praki Prakash wrote: >> Same story with the latest snapshot of clojure-http-client. Same thing >> happens with compojure.core. >> >> >>> BTW, I am using 1.2.0-master-SNAPSHOT for clojure and clojure-contrib &g

Re: Perplexing bug

2010-06-09 Thread Praki Prakash
Same story with the latest snapshot of clojure-http-client. Same thing happens with compojure.core. > BTW, I am using 1.2.0-master-SNAPSHOT for clojure and clojure-contrib > but clojure-http-client is 1.0.0-SNAPSHOT. I will try this with the > most recent version. > > Thanks > > wrote: >> I'm no

Re: Perplexing bug

2010-06-09 Thread Praki Prakash
BTW, I am using 1.2.0-master-SNAPSHOT for clojure and clojure-contrib but clojure-http-client is 1.0.0-SNAPSHOT. I will try this with the most recent version. Thanks On Wed, Jun 9, 2010 at 10:35 AM, Moritz Ulrich wrote: > I'm not sure if this is related, but in recent Snapshots of > clojure-http

Re: promoting contrib.string to clojure, feedback requested

2010-05-26 Thread Praki Prakash
> personally, I like strip or trim than chomp/chop. > +1 Seeing how Clojure dropped/changed many classic Lisp monikers, there is no reason to use comp/chop which may be familiar to somebody with Perl/Python but confusing to others. -- You received this message because you are subscribed to the

Re: Has deftype changed?

2010-04-18 Thread Praki Prakash
That was my interpretation as well. I now have defrecord instead of deftype everywhere. It looks like deftype was refactored into deftype and defrecord. deftype implements none of the usual interfaces (IPersistentMap) whereas defrecord does. Praki On Sun, Apr 18, 2010 at 11:33 AM, ataggart wrote

Re: Has deftype changed?

2010-04-18 Thread Praki Prakash
Thanks Andrew. I did catch 'this' argument requirement sometime back but the 'new' bit escaped me. Praki On Sat, Apr 17, 2010 at 6:16 PM, Andrew Stein wrote: > > (deftype Bar [a b c d e]) > (def b (new Bar 1 2 3 4 5)) > > There are a few other syntax changes too, defrecord replaces extending >

Re: Simple functional programming lexicon?

2010-03-17 Thread Praki Prakash
I spent a lot of time trying to understand monads in Haskell, which led to reading Category Theory. It's an alluring subject and one can spend a lot time following the concepts and terminology. But, the good news is that, one doesn't need an advanced degree in math to appreciate monads in FP. A rea

Re: Leiningen, Clojure and libraries: what am I missing?

2010-03-04 Thread Praki Prakash
Lein could be a step in the right direction, but I wonder how it will manage to evolve given the complex tools it uses internally. I have also seen a weird issue in my code base which has two classes derived from java.lang.Exception. If I do a clean and try compile, I get an error saying that my.p