Re: Is it possible to extend a parameterized type using gen-class?

2012-03-31 Thread Jim Blomo
-class :extends ^{:parameters [SomeItemType]} java.util.AbstractCollect)) Note that neither the types nor constraints are checked when writing the signature. https://github.com/jblomo/clojure/commit/15ff4f96840788253c5af66a2265387d880bad80 Jim On Wed, Mar 28, 2012 at 10:27 PM, Jim Blomo wrote:

Re: Is it possible to extend a parameterized type using gen-class?

2012-03-28 Thread Jim Blomo
sim, I don't think it is possible right now. I am not an expert, but... On Fri, Mar 2, 2012 at 5:04 AM, Daniel Solano Gomez wrote: > Yes, it is possible.  At the byte-code level there is (at least at > run-time) no difference between a generic and a non-generic class.  All > methods take/return

Re: ClojureScript and lein?

2011-09-02 Thread Jim Blomo
On Mon, Aug 29, 2011 at 6:09 PM, Eric Lavigne wrote: >> So the other thought is why can the lein do the job? Has anyone tried? > > Someone has created a Leiningen-installable ClojureScript compiler, > including automatic recompilation when your source code changes. > Unfortunately, I haven't been

Re: clojurescript support of ns-* functions

2011-08-24 Thread Jim Blomo
On Fri, Aug 19, 2011 at 8:59 AM, Chouser wrote: > Does that help? > --Chouser Yes, thanks Chouser. I can see how fully supporting namespaces would require introspection abilities not available at run time. For my use case, which basically involves checking to see if a symbol is defined in any o

clojurescript support of ns-* functions

2011-08-18 Thread Jim Blomo
Hi, I'm enjoying playing with ClojureScript so far, great job guys! I'm wondering if functions like ns-aliases and Vars like *ns* will be implemented in future versions of ClojureScript. If not, are there recommended workarounds or should I just hardcode the values? Thanks, Jim -- You received

Re: Idiomatic Clojure namespace names5

2010-07-08 Thread Jim Blomo
On Wednesday, July 7, 2010, Mike Meyer wrote: > Given that Sun is using javax, something like > "clojure.(author).(project)" would seem to be appropriate. That should > be safe from the DNS namespace (unless it means something when > transliterated into a foreign language) nor is a project in a la

Re: Problems with URL params and http-agent

2010-06-17 Thread Jim Blomo
On Wed, Jun 16, 2010 at 6:21 PM, Timothy Washington wrote: > Hey all, something very weird happens when trying to use the http-agent. If > I execute a) or b) in a browser, I get the desired result XML. > a) http://RESTful/path/to/xml > b) http://RESTful/path/to/xml?_wrap=no&_query=declare default

Re: New Clojure web application launched: DocuHarvest

2010-06-16 Thread Jim Blomo
ouchDB API (notwithstanding our not using the clojure > view server in production (yet?)). > > - Chas > > On Jun 13, 2010, at 11:57 AM, Moritz Ulrich wrote: > >> Yup, I would like to know why you chose clutch over clojure-couchdb >> too. (I don't want to insinuat

Re: New Clojure web application launched: DocuHarvest

2010-06-13 Thread Jim Blomo
On Thu, Jun 10, 2010 at 4:32 AM, Chas Emerick wrote: > - Clutch to interface to CouchDB (which we abuse as a message queue, among > other things) Can you comment on the choice of Clutch over clojure-couchdb? I've found clojure-couchdb to be reliable and straightforward. the-kenny's (Moritz Ulri

Re: Ensure

2010-03-19 Thread Jim Blomo
On Mon, Mar 15, 2010 at 3:34 PM, Raoul Duke wrote: > On Mon, Mar 15, 2010 at 1:13 AM, Christophe Grand > wrote: >> It hasn't blocked in the sense of "wait and continue": it retries the >> transaction after growing the history of the ref (refs have an adaptive >> history): > > i'm confused about

Re: Is str supposed to be able to output lazy strings?

2009-12-07 Thread Jim Blomo
clojure-contrib also has a str-join function, which could be helpful for joining SQL conditions: (use '[clojure.contrib.str-utils :only (str-join)]) (str-join " AND " (map identity [1 2 3])) Jim On Sun, Dec 6, 2009 at 11:03 AM, samppi wrote: > Also, you should also consider simply using the seq