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

2012-08-09 Thread Jacek Laskowski
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, no matter how slow. Plato -- You

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

2012-08-09 Thread Jacek Laskowski
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 discourage anyone who continually makes progress, no matter

Need advice about XML parsing and exposing attributes to Java

2012-06-29 Thread Jacek Laskowski
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 - http://blog.japila.pl Never discourage anyone who continually makes progress

Re: Exclude some dependencies with lein uberjar

2012-06-13 Thread Jacek Laskowski
On Wed, Jun 13, 2012 at 1:38 AM, Warren Lynn wrn.l...@gmail.com 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 -- Jacek

Re: Exclude some dependencies with lein uberjar

2012-06-13 Thread Jacek Laskowski
-dependencies-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 (Clojure), Java EE, and IBM

Re: Exclude some dependencies with lein uberjar

2012-06-13 Thread Jacek Laskowski
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 continually makes

Re: Explaining the thrush - operator.

2012-06-12 Thread Jacek Laskowski
works very 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

Re: Classpath problem with Java interop and Leiningen

2012-06-12 Thread Jacek Laskowski
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 how slow. Plato

Re: Leiningen2 + lein-midje + lazytest question

2012-06-12 Thread Jacek Laskowski
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 the Google Groups Clojure

Re: Exclude some dependencies with lein uberjar

2012-06-12 Thread Jacek Laskowski
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 - http://blog.japila.pl

Re: Classpath problem with Java interop and Leiningen

2012-06-12 Thread Jacek Laskowski
. 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 are subscribed

Re: Explaining the thrush - operator.

2012-06-11 Thread Jacek Laskowski
On Sat, Jun 9, 2012 at 11:41 AM, Lucas Marinho lmari...@gmail.com 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

Re: [ANN] Leiningen 2.0.0-preview3

2012-04-12 Thread Jacek Laskowski
for Clojure Projects. 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 the Google Groups Clojure

Re: [ANN] clojure-py 0.2 released

2012-04-11 Thread Jacek Laskowski
). 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 the Google Groups Clojure group. To post

Re: Help with this error and comment.

2012-04-04 Thread Jacek Laskowski
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 Never

Re: Typos in (doc add-watch)

2011-01-17 Thread Jacek Laskowski
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.com Note

Typos in (doc add-watch)

2011-01-16 Thread Jacek Laskowski
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 subscribed to the Google Groups Clojure

Re: could clojure be androids joker card

2010-11-07 Thread Jacek Laskowski
. 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
1.3.0-alpha3 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

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

2010-11-04 Thread Jacek Laskowski
java.lang.IllegalStateException: 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@googlegroups.com Note

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

2010-11-04 Thread Jacek Laskowski
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 Projektanta Java EE - http://jaceklaskowski.pl -- You received

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

2010-11-03 Thread Jacek Laskowski
, 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 this message because you are subscribed to the Google Groups Clojure

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

2010-10-28 Thread Jacek Laskowski
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. Jacek -- Jacek Laskowski Notatnik Projektanta

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

2010-10-28 Thread Jacek Laskowski
-- 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 new members are moderated - please be patient

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

2010-10-27 Thread Jacek Laskowski
and 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 received

c.c.monads z Clojure 1.3.0-alpha2

2010-10-26 Thread Jacek Laskowski
/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 group, send email to clojure

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

2010-10-13 Thread Jacek Laskowski
] (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 Projektanta Java EE - http://jaceklaskowski.pl -- You received this message

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

2010-10-07 Thread Jacek Laskowski
web 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 new

Re: Standalone 1.2 contrib

2010-09-10 Thread Jacek Laskowski
what's 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 email

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

2010-09-10 Thread Jacek Laskowski
, 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 Notatnik Projektanta Java EE - http

drop-while and (pred item) returns nil?

2010-09-09 Thread Jacek Laskowski
of 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, send email to clojure

Re: can't def m-bind because namespace

2010-09-07 Thread Jacek Laskowski
(I'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

Re: can't def m-bind because namespace

2010-09-07 Thread Jacek Laskowski
wonder why monads 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

Obsolete statement at Datatypes - deftype, defrecord and reify?

2010-09-04 Thread Jacek Laskowski
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, send email to clojure

Question re Mikael Sundberg's Getting started with compojure

2010-08-31 Thread Jacek Laskowski
/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 Groups Clojure group. To post

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

2010-08-31 Thread Jacek Laskowski
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 from new members are moderated

No (doc print-dup)?

2010-08-26 Thread Jacek Laskowski
) - 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 Projektanta Java EE - http

Re: swap two elements in an arbitrary collection

2009-11-18 Thread Jacek Laskowski
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 Notatnik Projektanta Java EE - http

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.JacekLaskowski.pl

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://www.JacekLaskowski.pl

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

2009-05-28 Thread Jacek Laskowski
) 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 message because you are subscribed