Re: Why does (conj (transient {}) {}) fail with CCE?

2012-08-09 Thread Jacek Laskowski
to get a > persistent version back. > > Please read the documentation for more background > http://clojure.org/Transients Thanks! It's so much clearer now. Jacek -- Jacek Laskowski Functional languages (Clojure), Java EE, and IBM WebSphere - http://blog.japila.pl "Never discour

Why does (conj (transient {}) {}) fail with CCE?

2012-08-09 Thread Jacek Laskowski
ons. Should the exception be thrown? What's the rationale behind TransientArrayMap *not* being a IPersistentCollection? Jacek -- Jacek Laskowski Functional languages (Clojure), Java EE, and IBM WebSphere - http://blog.japila.pl "Never discourage anyone who continually makes progress,

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

2012-07-02 Thread Jacek Laskowski
On Sun, Jul 1, 2012 at 12:03 AM, Maris wrote: > Why booleanCast(USE_CONTEXT_CLASSLOADER.deref()) doesn't always return false > ? Could it be that you run multiple threads and the var is true in a thread and false in the other? Just a guess. Jacek -- Jacek Laskowski Functiona

Need advice about XML parsing and exposing attributes to Java

2012-06-29 Thread Jacek Laskowski
they call the getters. They should just call the getters from a class that belongs to a package that in turn is a part of a project dependency. Any help greatly appreciated. Please speak up with your ideas! Jacek -- Jacek Laskowski Functional languages (Clojure), Java EE, and IBM WebSphere

Re: Exclude some dependencies with lein uberjar

2012-06-13 Thread Jacek Laskowski
es AOT happen after exclusion? Shouldn't exclusion be the last step in the process which would hardly break anything and would eventually fix the issue? Jacek -- Jacek Laskowski Functional languages (Clojure), Java EE, and IBM WebSphere - http://blog.japila.pl "Never discourage anyone who c

Re: Exclude some dependencies with lein uberjar

2012-06-13 Thread Jacek Laskowski
encies-from-uberjar-in-leiningen-2/ > If you need AOT then you'll have to write a plugin that works like a > more selective variant of uberjar. That's the part I didn't understand. Could you elaborate what wouldn't work? Jacek -- Jacek Laskowski Functional languages

Re: Exclude some dependencies with lein uberjar

2012-06-13 Thread Jacek Laskowski
On Wed, Jun 13, 2012 at 1:38 AM, Warren Lynn wrote: > If you don't need AOT then you can include the common lib in Could :uberjar-exclusions help in any way? It's a vector of regexps to exclude files from the uberjar. It could be a starting point to try out. Jacek -- Ja

Re: Classpath problem with Java interop and Leiningen

2012-06-12 Thread Jacek Laskowski
repository. You need the classpath? Use lein2 classpath. Jacek -- Jacek Laskowski Functional languages (Clojure), Java EE, and IBM WebSphere - http://blog.japila.pl "Never discourage anyone who continually makes progress, no matter how slow." Plato -- You received this message because you a

Re: Exclude some dependencies with lein uberjar

2012-06-12 Thread Jacek Laskowski
n a kind of managed environment. Why are there some deps not the others? What drives the exclusion? Wouldn't lein jar alone be enough? Why? Just curious and try to understand what you've already done :) Jacek -- Jacek Laskowski Functional languages (Clojure), Java EE, and IBM WebSphere -

Re: Leiningen2 + lein-midje + lazytest question

2012-06-12 Thread Jacek Laskowski
override the project's settings. Jacek -- Jacek Laskowski Functional languages (Clojure), Java EE, and IBM WebSphere - http://blog.japila.pl "Never discourage anyone who continually makes progress, no matter how slow." Plato -- You received this message because you are subscribed to

Re: Classpath problem with Java interop and Leiningen

2012-06-12 Thread Jacek Laskowski
each with their own language than one big project with many languages. I think it's a matter of taste, tough. Jacek -- Jacek Laskowski Functional languages (Clojure), Java EE, and IBM WebSphere - http://blog.japila.pl "Never discourage anyone who continually makes progress, no matter h

Re: Explaining the thrush -> operator.

2012-06-12 Thread Jacek Laskowski
similarly to the let form (which gives a sort of imperative look to the code and more powerful way to place the earlier results) as well as...the maybe monad. The question is when to use each, but guess it's a matter of taste. Jacek -- Jacek Laskowski Functional languages (Clojure), Java EE,

Re: Explaining the thrush -> operator.

2012-06-11 Thread Jacek Laskowski
On Sat, Jun 9, 2012 at 11:41 AM, Lucas Marinho wrote: > ((comp #(+ % 1) #(+ % 2)) 0) I couldn't resist. #(+ % 1) == inc #(+ % 2) == (partial + 2) They give much better-looking functional program. Hope you forgive me :-) Jacek -- Jacek Laskowski Functional languages (Clojure), Java

Re: [ANN] Leiningen 2.0.0-preview3

2012-04-12 Thread Jacek Laskowski
cek -- Jacek Laskowski Functional languages (Clojure), Java EE, and IBM WebSphere - http://blog.japila.pl "Never discourage anyone who continually makes progress, no matter how slow." Plato -- You received this message because you are subscribed to the Google Groups "Clojure"

Re: [ANN] clojure-py 0.2 released

2012-04-11 Thread Jacek Laskowski
On Tue, Apr 10, 2012 at 4:57 AM, Timothy Baldridge wrote: > And it's always good to give links with a project release: While we're at it, I'd also add a one-sentence introduction about what the tool/library/framework is for (even in the subject of upcoming [ANN] emails).

Re: Help with this error and comment.

2012-04-03 Thread Jacek Laskowski
eal issue, but just recently read a blog entry about something similar and lein pom with mvn dependency:tree was a suggestion to narrow the dependency problem down to a managable task. Jacek -- Jacek Laskowski Functional languages (Clojure), Java EE, and IBM WebSphere - http://blog.japila.pl "

Re: Typos in (doc add-watch)

2011-01-17 Thread Jacek Laskowski
e comprehensible with your changes. Jacek -- Jacek Laskowski Java EE, functional languages and IBM WebSphere - http://blog.japila.pl -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.

Typos in (doc add-watch)

2011-01-16 Thread Jacek Laskowski
ref. should become The watch fn will be called synchronously, on the agent's thread of an agent, before any pending sends of agent or ref. Jacek -- Jacek Laskowski Java EE, functional languages and IBM WebSphere - http://blog.japila.pl -- You received this message because you are subsc

Re: could clojure be androids joker card

2010-11-07 Thread Jacek Laskowski
ious. Why is that important to you? I believe you can use Clojure as a Java library right now without much worries, can't you? Is merely Clojure's syntax so appealing? Jacek -- Jacek Laskowski Notatnik Projektanta Java EE - http://jaceklaskowski.pl -- You received this message because you

Re: Clojure 1.3 Alpha 3

2010-11-06 Thread Jacek Laskowski
pha3 user=> (use 'clojure.contrib.monads) nil Why? [1] http://build.clojure.org/job/clojure-contrib/254/artifact/modules/standalone/target/ Jacek -- Jacek Laskowski Notatnik Projektanta Java EE - http://jaceklaskowski.pl -- You received this message because you are subscribed to th

Re: A bug? Unbound Unbound in 1.3-alpha2 when a symbol is not set

2010-11-04 Thread Jacek Laskowski
re-contrib-1.3.0-alpha2.jar Clojure 1.3.0-alpha2 user=> (def c) #'user/c user=> (c) IllegalStateException Attempting to call unbound fn: #'user/c clojure.lang.Var$Unbound.throwArity (Var.java:43) user=> (type c) clojure.lang.Var$Unbound Jacek -- Jacek Laskowski Notatnik Projektant

A bug? Unbound Unbound in 1.3-alpha2 when a symbol is not set

2010-11-04 Thread Jacek Laskowski
eException: Var user/c is unbound. (NO_SOURCE_FILE:0) Jacek -- Jacek Laskowski Notatnik Projektanta Java EE - http://jaceklaskowski.pl -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegro

Clojure coalesce function at SO with monads - help's needed

2010-11-03 Thread Jacek Laskowski
forms in xs. Somehow I feel it's the usecase for monads, but without help chances are I won't find the solution. [1] http://stackoverflow.com/questions/4086889/clojure-coalesce-function Jacek -- Jacek Laskowski Notatnik Projektanta Java EE - http://jaceklaskowski.pl -- You received t

Re: Different error reporting wrt java.lang types a new feature of 1.3.0-alpha2?

2010-10-28 Thread Jacek Laskowski
On Thu, Oct 28, 2010 at 1:49 PM, Chris Maier wrote: > Here we go: > > http://david-mcneil.com/post/1393750407/clojure-conj-day-1-notes > > Check the notes at the bottom from Rich's talk; it's the part about > unified primitives and boxed numbers. Thanks. That helped.

Different error reporting wrt java.lang types a new feature of 1.3.0-alpha2?

2010-10-28 Thread Jacek Laskowski
ger in 1.2 whereas j.l.Long in 1.3.0-alpha2? It seems as a possible difference in memory usage (a wider type) or anything I couldn't think of atm, but rises a red flag in my mind. Shall I be concerned w/ it or is it not that important? Please explain for me being a clojure newcomer. Jac

Re: clojure-contrib 1.3.0-alpha2 deployed to build.clojure.org

2010-10-27 Thread Jacek Laskowski
On Wed, Oct 27, 2010 at 8:59 AM, Btsai wrote: > Ah, excellent.  Thank you :) No problem. To be honest, I had not known it either until you asked, but since I needed it too I dug deeper :-) Thank you. Jacek -- Jacek Laskowski Notatnik Projektanta Java EE - http://jaceklaskowski.pl --

Re: clojure-contrib 1.3.0-alpha2 deployed to build.clojure.org

2010-10-26 Thread Jacek Laskowski
nd update your launch script for REPL. I wish there'd be a link to a zip distro in Developer Releases alongside w/ the Clojure zip file itself. Is it already provided by the mvn-based build? Jacek -- Jacek Laskowski Notatnik Projektanta Java EE - http://jaceklaskowski.pl -- You receive

c.c.monads z Clojure 1.3.0-alpha2

2010-10-26 Thread Jacek Laskowski
/contrib/accumulators.clj:121) Where can I find clojure-contrib for 1.3.0-alpha2? Thanks. Jacek -- Jacek Laskowski Notatnik Projektanta Java EE - http://jaceklaskowski.pl -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this gr

Seen in #clojure – October 7th w/ maybe-m monad

2010-10-13 Thread Jacek Laskowski
i) [ds remaining] (days remaining) [hs remaining] (hours remaining)] (println ms "weeks" ds "days" hs "hours" remaining "minutes"))) [1] http://matthewm.net/blog/2010/10/13/seen-in-clojure-october-7th Jacek -- Jacek Laskowski Notatnik Projektan

Re: ANN: funkyweb 0.1.0 - The clojure webframework with route inference

2010-10-07 Thread Jacek Laskowski
eb frameworks in Java EE land. Jacek -- Jacek Laskowski Notatnik Projektanta Java EE - http://jaceklaskowski.pl -- 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

Re: trace facility?

2010-09-20 Thread Jacek Laskowski
otrace is about changing semantics of function calls and so are monads, aren't they? Jacek -- Jacek Laskowski Notatnik Projektanta Java EE - http://jaceklaskowski.pl -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group,

Re: drop-while and (pred item) returns nil?

2010-09-09 Thread Jacek Laskowski
t; in which I ask this very question and get the answers I am looking > for. Hi Alan, That was my point exactly - the reference to nil in the docstring for drop-while. It's a bit confusing to me and I'd expect a boolean reference instead. Jacek -- Jacek Laskowski

Re: Standalone 1.2 contrib

2010-09-09 Thread Jacek Laskowski
available already as easy enough). Since it gonna be just a single link... :-) Jacek -- Jacek Laskowski Notatnik Projektanta Java EE - http://jaceklaskowski.pl -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send em

drop-while and (pred item) returns nil?

2010-09-09 Thread Jacek Laskowski
the items in coll starting from the first item for which (pred item) returns nil. Jacek -- Jacek Laskowski Notatnik Projektanta Java EE - http://jaceklaskowski.pl -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group,

Re: can't def m-bind because namespace

2010-09-07 Thread Jacek Laskowski
nads are not extensively used? Is the category theory the reason to its little use (= people don't understand monads' value?). Jacek -- Jacek Laskowski Notatnik Projektanta Java EE - http://jaceklaskowski.pl -- You received this message because you are subscribed to the Google Groups &

Re: can't def m-bind because namespace

2010-09-07 Thread Jacek Laskowski
;m coming from Java and Clojure is my first real functional language - that's why it causes headaches, I believe). Jacek -- Jacek Laskowski Notatnik Projektanta Java EE - http://jaceklaskowski.pl http://twitter.com/jaceklaskowski -- You received this message because you are subscribed t

Obsolete statement at "Datatypes - deftype, defrecord and reify"?

2010-09-04 Thread Jacek Laskowski
ck is welcome." Since Clojure 1.2 is out, should it be changed or even removed? Jacek -- Jacek Laskowski Notatnik Projektanta Java EE - http://jaceklaskowski.pl -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, s

Re: Question re Mikael Sundberg's Getting started with compojure

2010-08-31 Thread Jacek Laskowski
there a tutorial/article about it? Jacek -- Jacek Laskowski Notatnik Projektanta Java EE - http://jaceklaskowski.pl -- 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

Question re Mikael Sundberg's Getting started with compojure

2010-08-31 Thread Jacek Laskowski
[1] http://cleancode.se/2010/08/30/getting-started-with-compojure.html * I know it's possible, but dunno how and therefore the question :) Jacek -- Jacek Laskowski Notatnik Projektanta Java EE - http://jaceklaskowski.pl -- You received this message because you are subscribed to the Google

No (doc print-dup)?

2010-08-26 Thread Jacek Laskowski
rint-dup) - clojure.core/print-dup nil nil nil Is it how it's supposed to present itself? Why's nil-rich? Is that something a newbie (=me) should not bother himself? [1] http://www.infoq.com/articles/flightcaster-clojure-rails Jacek -- Jacek Laskowski Notatnik Projekta

Re: swap two elements in an arbitrary collection

2009-11-18 Thread Jacek Laskowski
irely (including subforms)? I'd prefer knowing what the final expansion would be for swap. user=> (macroexpand '(-> v (assoc i (v j)) (assoc j (v i (assoc (clojure.core/-> v (assoc i (v j))) j (v i)) How to expand the macro in the subform above? Jacek -- Jacek Laskowski No

A typo on the website about vars

2009-11-17 Thread Jacek Laskowski
Hi, I'm wondering what part is missing in "which provides a means for nested contexts to communicate with code before it the call stack." at http://clojure.org/vars? I think the wording is broken at the end. Jacek -- Jacek Laskowski Notatnik Projektanta Java EE - http://www.Ja

Re: java -cp clojure.jar clojure.lang.Repl vs java -jar clojure.jar - a difference?

2009-05-28 Thread Jacek Laskowski
sier for newcomers (like me) to run the executable jar I can see some value of the doc with the cp parameter in. Thanks for explanation. Jacek -- Jacek Laskowski Notatnik Projektanta Java EE - http://www.JacekLaskowski.pl --~--~-~--~~~---~--~~ You received this me

java -cp clojure.jar clojure.lang.Repl vs java -jar clojure.jar - a difference?

2009-05-28 Thread Jacek Laskowski
Hi, Is there a difference between executing "java -cp clojure.jar clojure.lang.Repl" and "java -jar clojure.jar"? Unless it is, the later is easier and I think might ease http://clojure.org/dynamic. Jacek -- Jacek Laskowski Notatnik Projektanta Java EE - http://w