Fwd: jvm.tools.analyzer 0.5.1

2013-09-21 Thread Ambrose Bonnaire-Sergeant
Hi, jvm.tools.analyzer 0.5.1 has breaking changes from 0.4.5. The arguments for analyze-ns have been changed. Also, analyze-file is added and source file information is added to the AST. See the changelog for more details. Dependency info Changel

Re: two pass compilation, intern and def

2013-09-21 Thread Gary Verhaegen
Well, do actually means "execute all of the following forms, sequentially, at this point". It seems to me that the position of saying this also works when "this point" is the top-level is sensible. I do not know what your actual use-case is, but, as Meikel said, it seems a bit strange to use inter

Re: OSGi manifest creation for Clojure projects

2013-09-21 Thread Matthew Bishop
These pages are no longer available. Can you re-post new URLs for them? Thanks! On Friday, March 16, 2012 2:48:42 PM UTC-7, Paudi Moriarty wrote: > > Hi, > > I've spent quite a lot of time with Clojure and OSGi lately and have had > some success in using Bnd and tools.namespace to generate a man

Re: About with-meta source, can explain it by itself?

2013-09-21 Thread Michał Marczyk
The with-meta in (fn ^:static with-meta ...) is just the name the function created by the fn form will know itself by. It will also be used as the final segment of the name of the class of this function object. It's not being evaluated in this position, and in fact it could be replaced with, say, f

Re: About with-meta source, can explain it by itself?

2013-09-21 Thread ljcppunix
You are right, i noticed "it calls withMeta", but in the expression, actually use with-meta to define with-meta, it's very strange, thank you very much! (def with-meta (fn ^:static with-meta [^clojure.lang.IObj x m] (. x (withMeta m On Saturday, September 21, 2013 3:3

Re: About with-meta source, can explain it by itself?

2013-09-21 Thread Michał Marczyk
Actually with-meta's definition does not refer to with-meta. Rather, it calls withMeta, a method in the clojure.lang.IObj interface which the first argument to with-meta is supposed to implement. Cheers, Michał On 21 September 2013 09:01, wrote: > Hi, > I read the source about with-meta, and

Re: [ANN] avl.clj: sorted maps and sets with fast rank queries via nth

2013-09-21 Thread Michał Marczyk
As of 0.0.3, avl.clj offers sorted maps with lookups unambiguously faster than those of the built-ins. Construction times for large instances are also faster thanks to transients. The lookup performance comes at a cost in the form of slower non-transient assoc/dissoc. I've posted some benchmark re

About with-meta source, can explain it by itself?

2013-09-21 Thread ljcppunix
Hi, I read the source about with-meta, and find def with-meta using with-meta, can it? someone give a explain? user=> (source with-meta) (def ^{:arglists '([^clojure.lang.IObj obj m]) :doc "Returns an object of the same type and value as obj, with map m as its metadata." :added "1.