x))
)
#'clojure.core/assoc
but it doesn't (yeT) work for y
On Sun, Mar 3, 2013 at 1:27 PM, AtKaaZ atk...@gmail.com wrote:
ok you're right, it's impossible to get the var since those x and y are
already resolved to the function, and multiple vars could point to the same
function anyway
.
On Sunday, 3 March 2013 23:44:56 UTC+11, AtKaaZ wrote:
oo, what do we have here?
= (defmacro get-lexical-asvar [q]
(let [
oem (zipmap (keys env) (vals env))
zz (.var (.init (second (find oem q
]
`~zz
)
)
#'runtime.q/get-lexical
I agree, I think the reason is that they are two different classes:
= (class '(1))
clojure.lang.PersistentList
= (class ())
clojure.lang.PersistentList$EmptyList
On Mon, Mar 4, 2013 at 3:30 AM, Lee Spector lspec...@hampshire.edu wrote:
(str ())
clojure.lang.PersistentList$EmptyList@1
Is
= (.toString '())
clojure.lang.PersistentList$EmptyList@1
= (.toString '(1))
(1)
so should be an easy fix ;)
On Mon, Mar 4, 2013 at 6:17 AM, AtKaaZ atk...@gmail.com wrote:
I agree, I think the reason is that they are two different classes:
= (class '(1))
clojure.lang.PersistentList
and by that I mean:
adding this toString from ASeq:
public String toString(){
return RT.printString(this);
}
to the clojure.lang.PersistentList.EmptyList class
= (.toString '(1))
(1)
= (.toString '())
()
On Mon, Mar 4, 2013 at 6:23 AM, AtKaaZ atk...@gmail.com wrote
= (str '())
()
On Mon, Mar 4, 2013 at 6:27 AM, AtKaaZ atk...@gmail.com wrote:
and by that I mean:
adding this toString from ASeq:
public String toString(){
return RT.printString(this);
}
to the clojure.lang.PersistentList.EmptyList class
= (.toString '(1))
(1
nice, thanks. I'll stick with the building it from github, I only tried the
self-install to see if I can help
On Sat, Mar 2, 2013 at 4:44 PM, Phil Hagelberg p...@hagelb.org wrote:
On Mar 1, 2013 6:01 PM, AtKaaZ atk...@gmail.com wrote:
yeah looks like both lein and lein.bat fail with 403
for vector as it does for string collection.
Thanks for replying, Michael.
On Fri, Mar 1, 2013 at 6:03 PM, Michael Gardner gardne...@gmail.com wrote:
On Feb 28, 2013, at 17:17 , AtKaaZ atk...@gmail.com wrote:
According to this, can a vector have keys that are not numbers? like
read the docs it should be clear so i
don't think the behaviour of contains? has to be changed.
Greetings
On Fri, Mar 1, 2013 at 8:36 PM, AtKaaZ atk...@gmail.com wrote:
I don't think I understand what you mean (could you rephrase/example?), I
cannot think of a case when I wouldn't want
= (.intValue 1.6)
1
On Fri, Mar 1, 2013 at 9:05 PM, Michael Gardner gardne...@gmail.com wrote:
On Mar 1, 2013, at 13:36 , AtKaaZ atk...@gmail.com wrote:
I don't think I understand what you mean (could you rephrase/example?),
I cannot think of a case when I wouldn't want it to throw when I'm
and obviously I would like it to throw here instead :) but hey, that's just
me - overly obsessed with fail-fast rather that performance first or
tolerance
On Fri, Mar 1, 2013 at 9:12 PM, AtKaaZ atk...@gmail.com wrote:
user= (contains? abc 1.5)
true
looks like for that, it's coerced to int
did you try with lein.bat ? it would bring all needed deps for your project
(including clojure) in your .m2 folder (maven) which is in
%HOMEDRIVE%%HOMEpath%
On Sat, Mar 2, 2013 at 2:12 AM, MC Andre andrew.penneba...@gmail.comwrote:
I love Clojure, but I'm having trouble getting it installed in
1, 2013 at 8:16 PM, AtKaaZ atk...@gmail.com wrote:
did you try with lein.bat ? it would bring all needed deps for your
project (including clojure) in your .m2 folder (maven) which is in
%HOMEDRIVE%%HOMEpath%
On Sat, Mar 2, 2013 at 2:12 AM, MC Andre andrew.penneba...@gmail.comwrote:
I love
= *(contains? '(1 2 3) 1)*
IllegalArgumentException contains? not supported on type:
clojure.lang.PersistentList clojure.lang.RT.contains (RT.java:724)
= **clojure-version**
{:major 1, :minor 5, :incremental 0, :qualifier RC17}
= *(contains? foo o)*
IllegalArgumentException contains? not
On Thu, Feb 28, 2013 at 11:23 PM, AtKaaZ atk...@gmail.com wrote:
= *(contains? '(1 2 3) 1)*
IllegalArgumentException contains? not supported on type:
clojure.lang.PersistentList clojure.lang.RT.contains (RT.java:724)
= **clojure-version**
{:major 1, :minor 5, :incremental 0, :qualifier
by errors I mean bugs
On Thu, Feb 28, 2013 at 11:43 PM, AtKaaZ atk...@gmail.com wrote:
On Thu, Feb 28, 2013 at 11:23 PM, AtKaaZ atk...@gmail.com wrote:
= *(contains? '(1 2 3) 1)*
IllegalArgumentException contains? not supported on type:
clojure.lang.PersistentList
On Thu, Feb 28, 2013 at 11:59 PM, Michael Gardner gardne...@gmail.comwrote:
This is a sore spot that has been discussed many times on this list[1].
The short version is that many people agree that the name contains? is
misleading to newcomers, but according to Rich it's not changing any time
the stacktrace points here:
https://github.com/clojure/tools.nrepl/blob/master/src/main/clojure/clojure/tools/nrepl/server.clj#L100
but that's all I got:)
On Wed, Feb 27, 2013 at 5:47 PM, Ben Evans benjamin.john.ev...@gmail.comwrote:
Hi,
lein repl is crashing on OpenJDK 8 consistently for
from here:
https://groups.google.com/d/msg/clojuredev-users/2RhOiM8b308/XESMfS48upgJ
the line is basically this:
*:open #(ccw.repl.REPLView/connect (format nrepl://%s:%s host port)
*
and without this* :import* clause*
[ccw.repl REPLView]
*
it will do the following (but with that import works just
there:
(defn defdefn* [z]
(assert (symbol? z))
`(defn ~z [x#] x#]
(defmacro dedefn [zsym]
(defdefn* (eval zsym))
On Saturday, February 23, 2013 11:24:26 PM UTC-8, AtKaaZ wrote:
= *(defn (symbol (str a b)) [x] x)*
IllegalArgumentException First argument to defn must be a symbol
ds# inside the def is inside a ~() which means it's expected to exist
outside of the `
like:
(defmacro ...
(let [ds# something]
`(def ~(... ds# )
))
maybe try the let block be outside of the ` ? but that means you probably
need to use eval
It's funny I tried the same thing like you
) util.funxions/def-plus-doc (NO_SOURCE_FILE:3)
On Sun, Feb 24, 2013 at 7:49 PM, Jim - FooBar(); jimpil1...@gmail.comwrote:
I tried with eval, tried the let inside and outside the syntax-quote -
I've tried everything! This is so frustrating!
Jim
On 24/02/13 18:24, AtKaaZ wrote:
ds# inside
please share!!!
@Atkaaz.
It turns out you were sort of right...less back-ticking did the trick...I
still don't like the eval-ing though
(defmacro def-plus-doc [name symbs]
(let [[doc syms :as all] (eval `(vector ~@symbs))
cs (if (string? doc) [syms true] [all false])
ds
= ((fn [a] (backtick/template (fn [b] (+ ~(inc a) (* b b))) ) ) 5)
(fn [b] (+ 6 (* b b)))
https://github.com/brandonbloom/backtick
= (eval ((fn [a] (backtick/template (fn [b] (+ ~(inc a) (* b b))) ) ) 5))
#funxions$eval3145$fn__3146 util.funxions$eval3145$fn__3146@4a7c5889
= ((eval ((fn [a]
= *(defn (symbol (str a b)) [x] x)*
IllegalArgumentException First argument to defn must be a symbol
clojure.core/defn (core.clj:277)
maybe allow ~ like this:
=* (defn ~(symbol (str a b)) [x] x)*
IllegalArgumentException First argument to defn must be a symbol
clojure.core/defn (core.clj:277)
to
(defprotocol XmlNode
(as-xml [this]))
(defrecord User [^Integer id ^String name ^java.util.Date dob])
(def a '(as-xml [this] (str this)))
(eval (backtick/template (extend-protocol XmlNode
Integer
~a
)))
I've no experience with these, so that's off the top of my head...
backtick is
use fully qualified name for that class, I think?
On Fri, Feb 22, 2013 at 11:50 PM, larry google groups
lawrencecloj...@gmail.com wrote:
Hmm, okay. Seems to be working with:
:source-paths [src]
:java-source-paths [src_java]
The example on the Leiningen site might be clear to
or you could place the assert inside the backquote
On Thu, Feb 21, 2013 at 3:10 PM, Jim foo.bar jimpil1...@gmail.com wrote:
On 21/02/13 14:07, Jim foo.bar wrote:
Hi all,
I''d like to have a macro like the following but preferably without the
'eval' inside the assertion form:
(defmacro
21, 2013 at 3:11 PM, AtKaaZ atk...@gmail.com wrote:
or you could place the assert inside the backquote
On Thu, Feb 21, 2013 at 3:10 PM, Jim foo.bar jimpil1...@gmail.com wrote:
On 21/02/13 14:07, Jim foo.bar wrote:
Hi all,
I''d like to have a macro like the following but preferably without
)
`(def ~name ~co))
it looks ugly doesn't it?
Jim
On 21/02/13 14:11, AtKaaZ wrote:
or you could place the assert inside the backquote
On Thu, Feb 21, 2013 at 3:10 PM, Jim foo.bar jimpil1...@gmail.com wrote:
On 21/02/13 14:07, Jim foo.bar wrote:
Hi all,
I''d like to have a macro like
that's much better, evaluated only once, thanks.
On Thu, Feb 21, 2013 at 3:20 PM, Jim foo.bar jimpil1...@gmail.com wrote:
I settled for:
(defmacro defcomponent [name co]
`(let [c# ~co]
(assert (component? c# Not a valid IComponent))
(def ~name c#)))
Jim
On 21/02/13 14:18, AtKaaZ
(component? c# Not a valid IComponent))
(def ~name c#)))
Jim
On 21/02/13 14:18, AtKaaZ wrote:
that one doesn't actually work, maybe, not sure why exactly but the
assert is ignored
= (def component? number?)
#'runtime.q/component?
= (defmacro defcomponent [name co]
`(assert
? c# Not a valid IComponent))
(def ~name c#)))
Jim
On 21/02/13 14:18, AtKaaZ wrote:
that one doesn't actually work, maybe, not sure why exactly but the
assert is ignored
= (def component? number?)
#'runtime.q/component?
= (defmacro defcomponent [name co]
`(assert (component? ~co
, :line 96} file: util\funxions.clj
(util.funxions/component? c__33004__auto__) util.funxions/eval33010
(funxions.clj:96)
(defcomponent a (do a (str b)))
=* (defcomponent a (+ 1 2))*
#'runtime.q/a
= a
3
On Thu, Feb 21, 2013 at 3:51 PM, AtKaaZ atk...@gmail.com wrote:
I think the assert is working
, Feb 21, 2013 at 4:08 PM, AtKaaZ atk...@gmail.com wrote:
this is what i'd use
(def component? number?)
*
(defmacro defcomponent [name co]
`(let [c# ~co]
(assert (component? c#)
(str Not a valid IComponent passed:\nevaluated form: `
(pr-str c#) `\noriginal form
on win7 64bit
Microsoft Windows [Version 6.1.7601]
C:\Users\usercd \1
C:\1powershell
Windows PowerShell
Copyright (C) 2009 Microsoft Corporation. All rights reserved.
PS C:\1 Measure-Command {*lein version*}
Days : 0
Hours : 0
Minutes : 0
Seconds :
looks like different methods are called:
for: user= (unchecked-multiply 25214903917 0x5DEECE66D)
this method: static public long unchecked_multiply(long x, long y){return x
* y;}
for: (unchecked-multiply seed1 0x5DEECE66D)
this method: static public Number unchecked_multiply(long x, Object
prev. post, it's apparently a bug in clojure? with the
unchecked-multiply if any of the params(or both) is object when compared
to when they're both primitive aka Long.
On Wed, Feb 20, 2013 at 11:40 PM, AtKaaZ atk...@gmail.com wrote:
looks like different methods are called:
for: user
whatever the implementation I would include some example in the doc, like:
(defn keycollect-*fnnamehere**
**input:
[:key1 1 2 3
:key2 4
:key3 5 6 7]
output:
{:key1 [1 2 3]
:key2 [4]
:key3 [5 6 7]}
*
[coll]
;... implementation here
)
wish clojure has this kind of doc(s) instead,
I think we solved this once on irc and it was something in your project*s*.clj
but I can't remember exactly, if you want you can post its contents...
Cheers
On Tue, Feb 19, 2013 at 5:49 PM, larry google groups
lawrencecloj...@gmail.com wrote:
Thanks for the suggestion. I run lein deps :tree
also check this:
https://groups.google.com/d/msg/clojure/xlhDSPZGrL4/C9EGFvlqOZ8J
On Tue, Feb 19, 2013 at 7:13 PM, Alex Nixon a...@swiftkey.net wrote:
Hey Peter,
On 19 February 2013 17:55, Peter Taoussanis ptaoussa...@gmail.com wrote:
Hi Alex,
This is a problem because the print-method
get how I could do that, yet I feel I'm missing something
pretty basic.
I've also made a gist for this: https://gist.github.com/AtKaaZ/4988320
But this is the best that I can do without errors:
= (defmacro x [a] `~a )
= (*x `*{:a (+ 1 2) :b ~(+ 1 3)})
{:a (clojure.core/+ 1 2), :b 4}
But I don't
bbloom on irc suggested this: https://github.com/brandonbloom/backtick
and looks like *template *is the macro I was looking for
= (template {:a (+ 1 2) c d :b ~(+ 1 3)})
{:a (+ 1 2), :b 4, c d}
Totally awesome!
On Tue, Feb 19, 2013 at 7:35 PM, AtKaaZ atk...@gmail.com wrote:
I am trying
its contents...
I have never been on the irc channel, so that wasn't me.
On Feb 19, 12:09 pm, AtKaaZ atk...@gmail.com wrote:
I think we solved this once on irc and it was something in your
project*s*.clj
but I can't remember exactly, if you want you can post its contents...
Cheers
ok I found the log:
http://www.raynes.me/logs/irc.freenode.net/leiningen/2013-02-01.txt
On Tue, Feb 19, 2013 at 8:05 PM, AtKaaZ atk...@gmail.com wrote:
could've been someone else with the same problem, sorry for implying.
I do remember something about ring having an ) for clojure 1.5.0
dependencies left their
version of Clojure unspecified, then lein will download all the poms
and then decide which jar to use?
On Feb 19, 2:15 pm, AtKaaZ atk...@gmail.com wrote:
ok I found the log:
http://www.raynes.me/logs/irc.freenode.net/leiningen/2013-02-01.txt
On Tue, Feb 19
On Tue, Feb 19, 2013 at 8:31 PM, AtKaaZ atk...@gmail.com wrote:
if they have their dependency like this:
org.clojure:clojure:[1.2,1.5)
notice the ) at the end, instead of ]
which was(maybe still is?) the case of i18n
j18n not i18n, typo
But one way you can know if it's a dep in your
you could include a :reload to your :use ns2 in ns1 but I don't recommend
it. (it did bit me even with defonce when I wanted to keep some global
state but clear it after deftest tests)
(ns somewhere.namespace1
(:use [somewhere.namespace2 :as ns2] :reload)) ;;or maybe :reload-all
I'm sure
= (dorun 1)
IllegalArgumentException Don't know how to create ISeq from:
java.lang.Long clojure.lang.RT.seqFrom (RT.java:505)
nil
IllegalArgumentException Don't know how to create ISeq from: java.lang.Long
clojure.lang.RT.seqFrom (RT.java:505)
clojure.lang.RT.seq (RT.java:486)
)
On Tue, Feb 19, 2013 at 11:36 PM, AtKaaZ atk...@gmail.com wrote:
= (dorun 1)
IllegalArgumentException Don't know how to create ISeq from:
java.lang.Long clojure.lang.RT.seqFrom (RT.java:505)
nil
IllegalArgumentException Don't know how to create ISeq from: java.lang.Long
For *or*
= *(set! *warn-on-reflection* true)
(def ^Integer a 1)
(java.awt.Color. 0 0 ^Integer (or ^Integer a 0) 0)
*clojure-version**
true
#'cgws.notcore/a
Reflection warning, NO_SOURCE_PATH:3:1 - call to java.awt.Color ctor can't
be resolved.
#Color java.awt.Color[r=0,g=0,b=1]
{:major 1,
, AtKaaZ wrote:
For *or*
= *(set! *warn-on-reflection* true)
(def ^Integer a 1)
(java.awt.Color. 0 0 ^Integer (or ^Integer a 0) 0)
*clojure-version**
true
#'cgws.notcore/a
Reflection warning, NO_SOURCE_PATH:3:1 - call to java.awt.Color ctor can't
be resolved.
#Color java.awt.Color
no sense around doseq since doseq returns nil and
dorun operates on a lazy seq.
On Monday, February 18, 2013 8:16:16 PM UTC+1, AtKaaZ wrote:
= (time (dorun (doseq [x (take 1000 (range))]
(java.awt.Color. 0 0 *(int a)* 0
Elapsed time: 7352.883635 msecs
--
--
You received
, vemv v...@vemv.net wrote:
fn's keyword arguments feature provide unrolled, optional key-value args:
(defn foo [ {:keys [a b c]}]
[a b c])
(foo :c 4) ;; [nil nil 4]
On Sunday, February 17, 2013 10:06:13 PM UTC+1, AtKaaZ wrote:
Was there a library or some other way to pass ie. maps
it's about time, now let's see that in 3d and with clojure structures :)
On Sun, Feb 17, 2013 at 7:40 PM, Rich Morin r...@cfcl.com wrote:
Some folks here may enjoy this:
λ machine as a d3 tree, parsed with PEG
http://brycec.github.com/vizlamb/
-r
--
http://www.cfcl.com/rdm
and in the case of String, this happens:
https://github.com/clojure/clojure/blob/master/src/jvm/clojure/lang/RT.java#L547
else if(o instanceof CharSequence)
return ((CharSequence) o).length();
= (dorun (map println (supers (class a string here
java.lang.Object
Was there a library or some other way to pass ie. maps to functions
so that the order of the params isn't predefined, just in case I want to
skip some passing parameters without actually having to pass some value for
them, I could just refer to which params I'm passing by identifying them
with a
On Sun, Feb 17, 2013 at 6:12 AM, Jacob Goodson
submissionfight...@gmx.comwrote:
You need to know something... it's a dialect of LISP, *the only*limitation is
you.
though it is certainly exerting its limitations on me
On Thursday, February 14, 2013 5:08:57 PM UTC-5, AtKaaZ wrote:
Thank
Hi.
It would maybe help if you'd post some test code (deftest for the macro?),
if not also that macro that you have so far.
But, if you want to force evaluation you could maybe use *eval* but this
may not need apply in your case,
ie. maybe you want this:
= (def a '(1 3 9))
#'runtime.q/a
= a
(1 3
Let's say I want to override clojure.core/sorted?
(ns random.learning.clojure.overridex
(:refer-clojure :exclude [sorted?]))
(defn sorted? [coll]
{:pre [ (coll? coll)]}
(clojure.core/sorted? coll))
I'm using Eclipse+counterclockwise, so loading this namespace(Ctrl+Alt+L)
first time gives
just use :require and qualify
the namespace.
On Thursday, February 14, 2013 10:04:55 AM UTC-8, AtKaaZ wrote:
Let's say I want to override clojure.core/sorted?
(ns random.learning.clojure.**overridex
(:refer-clojure :exclude [sorted?]))
(defn sorted? [coll]
{:pre [ (coll? coll
The goal is to can write this form:
= *(let [a java.lang.RuntimeException]
(new a)
)*
CompilerException java.lang.IllegalArgumentException: Unable to resolve
classname: a, compiling:(NO_SOURCE_PATH:2:3)
attempt with macro:
=* (defmacro mew [cls restt]
`(new ~(eval cls) ~@restt)
it's impossible, at least by using new it is
On Thu, Feb 14, 2013 at 10:34 PM, Andy Fingerhut
andy.finger...@gmail.comwrote:
On Feb 14, 2013, at 1:27 PM, AtKaaZ wrote:
The goal is to can write this form:
= *(let [a java.lang.RuntimeException]
(new a)
)*
CompilerException
someone could suggest another way? clojure.reflect ?
On Thu, Feb 14, 2013 at 10:40 PM, AtKaaZ atk...@gmail.com wrote:
thanks for the reply,
= *(defmacro mew [cls args]
`(new ~cls ~@args))*
#'runtime.q/mew
=* (let [a java.lang.RuntimeException]
(mew a)
)*
CompilerException
ok looks like it's not impossible:
= *(defmacro mew [cls restt]
(let [c a]
`(eval (new ~a ~@restt))
)
)*
#'runtime.q/mew
= *(let [a java.lang.RuntimeException]
(mew a)
)*
#RuntimeException java.lang.RuntimeException
On Thu, Feb 14, 2013 at 10:53 PM, AtKaaZ atk
and I forgot to mention that I already had another a defined
= a
java.lang.RuntimeException
hence why it worked
On Thu, Feb 14, 2013 at 11:01 PM, AtKaaZ atk...@gmail.com wrote:
ah I tricked myself... I used ~a inside the macro instead of ~c or
~cls
so back to still impossible
= (defmacro
Hi.
Suppose you want to make an abstraction on top of two similar but
different libraries (hermes and titanium), so that I could switch between
using either of them(or both of them) at compiletime or runtime, how would
you do something like that?
Thanks.
--
Please correct me if I'm wrong or
what would this do:
(let [a 1, a 2] a)
becomes:
(let [a 1, a123 2] a)
or
(let [a 1, a123 2] a123)
or
exception[I prefer]
On Tue, Feb 12, 2013 at 7:10 AM, Ambrose Bonnaire-Sergeant
abonnaireserge...@gmail.com wrote:
Processing a hygienic AST relieves the burden of worrying about shadowing
of
seems similar to this concept with new:
=* (new java.lang.RuntimeException msg)* ;works this way
#RuntimeException java.lang.RuntimeException: msg
= *(def a java.lang.RuntimeException)*
#'runtime.q/a
= *a*
java.lang.RuntimeException
= *(new a msg)* ;nope
CompilerException
be tough to track down
On Tue, Feb 12, 2013 at 1:46 PM, Michael Wood esiot...@gmail.com wrote:
On 12 February 2013 12:28, AtKaaZ atk...@gmail.com wrote:
what would this do:
(let [a 1, a 2] a)
becomes:
(let [a 1, a123 2] a)
or
(let [a 1, a123 2] a123)
or
exception[I prefer
wow that's pretty epic!
= (def f (call-fn java.lang.String substring startpos endpos))
#'runtime.q/f
= (f abcdef 2 4)
cd
= (f (str 123 45) (+ 1 1) 4)
34
Thank you Meikel
On Tue, Feb 12, 2013 at 1:51 PM, Meikel Brandmeyer (kotarak)
m...@kotka.dewrote:
Hi,
if you want to resort to eval
is there a way to use nested transactions, yet?
I am looking at [1] and [2]
[1] https://github.com/thinkaurelius/titan/wiki/Multi-Threaded-Transactions
[2] https://github.com/tinkerpop/blueprints/wiki/Graph-Transactions
On Mon, Feb 11, 2013 at 6:37 PM, Michael Klishin
/hermes
On Tue, Feb 12, 2013 at 6:39 PM, AtKaaZ atk...@gmail.com wrote:
is there a way to use nested transactions, yet?
I am looking at [1] and [2]
[1]
https://github.com/thinkaurelius/titan/wiki/Multi-Threaded-Transactions
[2] https://github.com/tinkerpop/blueprints/wiki/Graph-Transactions
of the graphs likely to be
encountered. I expect it will be formally announced once I figure out some
neat things about the linux kernel.
On Wednesday, February 13, 2013 12:16:15 AM UTC+4, AtKaaZ wrote:
I did not look at hermes, wasn't aware of it, but I'll look, thanks.
On Tue, Feb 12, 2013 at 8
someone posted this [1] earlier, I think it might help you
[1]
http://clojure-doc.org/articles/language/concurrency_and_parallelism.html
On Mon, Feb 11, 2013 at 5:50 PM, Ari ari.brandeis.k...@gmail.com wrote:
Hi,
I'd like my web application to process uploaded text files in the
background;
this is awesome!
there is some format issue on this page:
http://titanium.clojurewerkz.org/articles/getting_started.html
search for this twice to see both: clojurewerkz.titanium.elements/merge!
On Mon, Feb 11, 2013 at 6:37 PM, Michael Klishin
michael.s.klis...@gmail.com wrote:
Titanium [1]
a small typo here:
http://titanium.clojurewerkz.org/articles/getting_started.html
at
Removing Edges
(tg/remove-edge e))
should be:
(tg/remove-edge g e))
should I be reporting any of these somewhere else?
On Mon, Feb 11, 2013 at 6:37 PM, Michael Klishin
michael.s.klis...@gmail.com
thank you, this was an easy read even for me
On Mon, Feb 11, 2013 at 7:32 PM, Andy Fingerhut andy.finger...@gmail.comwrote:
And just in case it gets edited by someone else before you have a chance
to read it, I've copied and pasted the current version below for reference.
, AtKaaZ atk...@gmail.com wrote:
maybe jvm arg would help
-XX:MaxPermSize=256m
On Sat, Feb 9, 2013 at 11:17 PM, Aaron Bedra aaron.be...@gmail.comwrote:
I just pulled it down locally and got the dreaded PermGen…
[java] java.lang.OutOfMemoryError: PermGen space
[java
thanks, done here [1] after a search for delete-file yielded nothing
[1] http://dev.clojure.org/jira/browse/CLJ-1159
On Sun, Feb 10, 2013 at 8:40 PM, Wolodja Wentland babi...@gmail.com wrote:
On Sun, Feb 10, 2013 at 18:59 +0100, AtKaaZ wrote:
could you maybe also fix clojure.java.io/delete
)
:not-deleted
Thank you for this
On Sun, Feb 10, 2013 at 9:13 PM, Sean Corfield seancorfi...@gmail.comwrote:
You can call (clojure.java.io/delete-file some-file :not-deleted) and
you'll get true if the delete succeeds and :not-deleted if it fails.
On Sat, Feb 9, 2013 at 1:32 PM, AtKaaZ atk
I think it's an illusion from being lazy ?
= (def k (pr-str (vec (for [x (range 5)]
(do (pr x)
x)
01234
#'datest1.ret/k
= k
[0 1 2 3 4]
On Sat, Feb 9, 2013 at 7:30 PM, Conrad drc...@gmail.com wrote:
I tested this in the
actually replacing vec with dorun or doall, would've been a better example
:)
On Sat, Feb 9, 2013 at 7:42 PM, AtKaaZ atk...@gmail.com wrote:
I think it's an illusion from being lazy ?
= (def k (pr-str (vec (for [x (range 5)]
(do (pr x
here's a simpler example:
= (map println '(1 2 3))
(1
2
nil 3
nil nil)
= (dorun (map println '(1 2 3)))
1
2
3
nil
On Sat, Feb 9, 2013 at 7:44 PM, AtKaaZ atk...@gmail.com wrote:
actually replacing vec with dorun or doall, would've been a better example
:)
On Sat, Feb 9, 2013 at 7:42 PM
that suggests this would happen.
Also, it would be technically relatively easy to change this.
On Saturday, February 9, 2013 12:46:08 PM UTC-6, AtKaaZ wrote:
here's a simpler example:
= (map println '(1 2 3))
(1
2
nil 3
nil nil)
= (dorun (map println '(1 2 3)))
1
2
3
nil
On Sat
On Sat, Feb 9, 2013 at 8:22 PM, AtKaaZ atk...@gmail.com wrote:
do you mean that, when the string it outputted like:
= (println k)
(012340 1 2 3 4)
nil
= (prn k)
(012340 1 2 3 4)
nil
the side effects of evaluating k being mixed into the output could affect
you (other than just
On Sat, Feb 9, 2013 at 8:25 PM, AtKaaZ atk...@gmail.com wrote:
On Sat, Feb 9, 2013 at 8:22 PM, AtKaaZ atk...@gmail.com wrote:
do you mean that, when the string it outputted like:
= (println k)
(012340 1 2 3 4)
nil
= (prn k)
(012340 1 2 3 4)
nil
the side effects of evaluating k
\n3nothing\r\n4nothing\r\n0 1 2 3
4) k)
true
This is so bad :)
On Sat, Feb 9, 2013 at 8:26 PM, AtKaaZ atk...@gmail.com wrote:
On Sat, Feb 9, 2013 at 8:25 PM, AtKaaZ atk...@gmail.com wrote:
On Sat, Feb 9, 2013 at 8:22 PM, AtKaaZ atk...@gmail.com wrote:
do you mean that, when the string
Hi Stu. All I see is
beta13http://search.maven.org/#artifactdetails%7Corg.clojure%7Cclojure%7C1.5.0-beta13%7Cjaras
being last (9 feb), and RC6 05-Feb-2013
On Sat, Feb 9, 2013 at 9:13 PM, Stuart Halloway
stuart.hallo...@gmail.comwrote:
Clojure 1.5 RC 14 (fourteen) will be available soon from
-RC14.jar from
sonatype-oss-public
On Feb 9, 2013, at 3:29 PM, AtKaaZ atk...@gmail.com wrote:
Hi Stu. All I see is
beta13http://search.maven.org/#artifactdetails%7Corg.clojure%7Cclojure%7C1.5.0-beta13%7Cjar
as being last (9 feb), and RC6 05-Feb-2013
--
--
You received this message
Hi, does anyone see anything wrong with this?
= (source clojure.java.io/delete-file)
(defn delete-file
Delete file f. Raise an exception if it fails unless silently is true.
{:added 1.2}
[f [silently]]
(or (.delete (file f))
silently
(throw (java.io.IOException. (str Couldn't
maybe jvm arg would help
-XX:MaxPermSize=256m
On Sat, Feb 9, 2013 at 11:17 PM, Aaron Bedra aaron.be...@gmail.com wrote:
I just pulled it down locally and got the dreaded PermGen…
[java] java.lang.OutOfMemoryError: PermGen space
[java] at
these examples to illustrate what you are saying:
= (= (debug 1\r\n2 nil 3) (pr-str (lazy-seq (list 2 (println debug 1)
3
true
= (= (1\r\n) (pr-str (lazy-seq (println 1
true
On Sat, Feb 9, 2013 at 10:57 PM, Conrad drc...@gmail.com wrote:
For those reading this, the issue is NOT
nothing
2
nothing
3
nothing
4
nothing
#'user/k
user= k
(0 1 2 3 4)
On Saturday, February 9, 2013 2:41:23 PM UTC-8, AtKaaZ wrote:
these examples to illustrate what you are saying:
= (= (debug 1\r\n2 nil 3) (pr-str (lazy-seq (list 2 (println debug
1) 3
true
= (= (1\r\n) (pr-str
Hello.
https://github.com/Prismatic/plumbing/blob/master/test/plumbing/graph_examples_test.clj#L148
Why do they return in a map instead of maybe a set ? do we ever get {:key
false} ?
Thanks.
On Thu, Feb 7, 2013 at 7:22 PM, Jason Wolfe ja...@w01fe.com wrote:
We've just posted a blog post with
Hi. Thank you.
On Wed, Feb 6, 2013 at 10:50 AM, Christophe Grand christo...@cgrand.netwrote:
Hi
On Mon, Feb 4, 2013 at 2:29 PM, AtKaaZ atk...@gmail.com wrote:
= (class {:x a :y 3})
clojure.lang.Persistent*Array*Map
= (def m {:x a :y 3})
#'runtime.q/m
= (class m
you can release that on LGPL License ?
does that work with the EPL of clojure ? or is it only an issue when lein
uberjar-ed ?
On Tue, Feb 5, 2013 at 5:57 PM, Phillip Lord
phillip.l...@newcastle.ac.ukwrote:
Tawny-OWL is a clojure library which provides a DSL for the construction
of OWL
.
Kanwei
On Monday, February 4, 2013 12:36:51 PM UTC-5, AtKaaZ wrote:
in other words:
this:
(let [in (clojure.java.io/reader src)
out (clojure.java.io/writer dest)
becomes this:
(let [^java.io.BufferedReader in (clojure.java.io/reader src)
^java.io.BufferedWriter out
Thank you.
On Wed, Feb 6, 2013 at 4:52 AM, John Gabriele jmg3...@gmail.com wrote:
On Tuesday, February 5, 2013 12:08:43 PM UTC-5, AtKaaZ wrote:
you can release that on LGPL License ?
does that work with the EPL of clojure ? or is it only an issue when lein
uberjar-ed ?
LGPL just means
without looking, I'm thinking maybe it's like thrown? when using it for
the is macro
(is (thrown? ArithmeticException (/ 1 0)))
where thrown? is not defined anywhere and it only has meaning inside is
( actually it's *(defmethod assert-expr 'thrown? [msg form]* ... )
On Wed, Feb 6, 2013 at 7:02
101 - 200 of 300 matches
Mail list logo