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
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,
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
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
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
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
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
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
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 -
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
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
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,
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
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"
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).
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
"
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.
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
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
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-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
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
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
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.
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
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
--
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
/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
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
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
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,
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
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
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,
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 &
;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
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
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
[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
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
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
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
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
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
44 matches
Mail list logo