maybe this one:
https://github.com/frenchy64/typed-clojure/blob/a5944e7c11fa8fe27a86f781feab63a0d218868f/src/typed/parse.clj#L184
On Wed, Feb 6, 2013 at 7:02 AM, James Xu xumingming64398...@gmail.comwrote:
e.g.
(ann test1 (All [x y] [x y - x]))
where is the 'All' defined?
--
Github:
On Mon, Feb 4, 2013 at 12:13 PM, Paul Stadig p...@stadig.name wrote:
On Sunday, February 3, 2013 9:56:49 PM UTC-5, puzzler wrote:
In these examples, the map/record is freshly created each time through
the loop, so caching should not be a factor.
Good point. So maybe it's not the caching
so, something like this?
= (sorted-map-by (fn [key1 key2] (compare (Integer/parseInt key1)
(Integer/parseInt key2)))
1 A 2 B 11 C 3 D)
{1 A, 2 B, 3 D, 11 C}
On Mon, Feb 4, 2013 at 3:55 PM, Feng Shen shen...@gmail.com wrote:
Hi, 11 2 if string,
11 2 if integer.
Your keys are
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 (clojure.java.io/writer dest)
and it works for me too. (but I wasted some time
of anonymous functions, and would be
expected to be more time-consuming.
The other examples you posted are interesting, though.
On Sat, Feb 2, 2013 at 11:31 PM, AtKaaZ atk...@gmail.com wrote:
ok i like this variant:
= (def r (memoize (A. a 3)))
#'runtime.q_test/r
= (time (dotimes [n 1000] (hash
Thank you for this(I'm now looking into dgraph), I am very interested in
such things, though you should look at me like a I'm a newbie in both this
and clojure. Whatever I end up doing will unavoidable use such concepts:
graph, dependencies... I imagine that a properly implemented system like
so,
works for me:
= (*let [^java.io.BufferedReader a
(clojure.java.io/readerc:\\windows\\setupact.log)] (println (. a
readLine)))
*
AudMig: No audio endpoint migration settings found 0x2
nil
= *(let [a (clojure.java.io/reader c:\\windows\\setupact.log)] (println
(. a readLine)))*
Reflection warning,
he's in RC4
= *clojure-version*
{:major 1, :minor 5, :incremental 0, :qualifier RC4}
= (time (dotimes [n 1000] (hash {:x a :y 3})))
Elapsed time: 70.037502 msecs
= (time (dotimes [n 1000] (hash (A. a 3
Elapsed time: 5307.93947 msecs
On Sun, Feb 3, 2013 at 8:22 AM, Leonardo Borges
, Feb 3, 2013 at 8:26 AM, AtKaaZ atk...@gmail.com wrote:
he's in RC4
= *clojure-version*
{:major 1, :minor 5, :incremental 0, :qualifier RC4}
= (time (dotimes [n 1000] (hash {:x a :y 3})))
Elapsed time: 70.037502 msecs
= (time (dotimes [n 1000] (hash (A. a 3
Elapsed time
: 1812.016478 msecs
nil
= (time (dotimes [n 1000] (hash (memoize (A. a 3)
Elapsed time: 1847.244062 msecs
nil
On Sun, Feb 3, 2013 at 8:29 AM, AtKaaZ atk...@gmail.com wrote:
= (def m {:x a :y 3})
#'runtime.q_test/m
= (time (dotimes [n 1000] (hash m)))
Elapsed time: 154.650091 msecs
amalloy, inspirational as always! thank you
On Fri, Feb 1, 2013 at 11:08 AM, Alan Malloy a...@malloys.org wrote:
(max-key :power mario luigi)
On Thursday, January 31, 2013 6:08:21 PM UTC-8, Leandro Moreira wrote:
Running through this problem I also faced the weird situation, so:
Given
there are some examples here:
http://clojuredocs.org/clojure_core/clojure.core/slurp
http://clojuredocs.org/clojure_core/clojure.java.io/reader
On Fri, Feb 1, 2013 at 1:44 PM, Baishampayan Ghose b.gh...@gmail.comwrote:
clojure.core/slurp
Sent from phone. Please excuse brevity.
On 1 Feb
seems a bit similar to https://github.com/Prismatic/plumbing
On Sat, Feb 2, 2013 at 1:12 AM, Ben Wolfson wolf...@gmail.com wrote:
ReadyForZero is open-sourcing our library for easily gathering data
and computing summary measures in a declarative way:
https://github.com/ReadyForZero/babbage
if you put that on youtube, let me know, currently I cannot see the slides
or they are simply stuck on the first slide and never change (the video
works though)
On Fri, Feb 1, 2013 at 5:31 AM, Alex Miller a...@puredanger.com wrote:
The video of the talk on Graph from Strange Loop just came
, Baishampayan Ghose b.gh...@gmail.comwrote:
Try Firefox. ~BG
On Fri, Feb 1, 2013 at 10:08 AM, AtKaaZ atk...@gmail.com wrote:
if you put that on youtube, let me know, currently I cannot see the
slides
or they are simply stuck on the first slide and never change (the video
works though
just guessing here, but is it maybe that one of the deps of your project
was (also?) updated and it's using that clojure ? I'm thinking just in case
you have something like version x.y.z-SNAPSHOT of a dep, if nothing with
SNAPSHOT then it's probably not the case. I couldn't reproduce this with a
= (are [ x y ] (= x y) ((fn[x] x) 1) 1)
StackOverflowError clojure.lang.PersistentArrayMap.containsKey
(PersistentArrayMap.java:158)
= (dorun (map #(println (.toString %)) (take-last 100 (.getStackTrace *e
clojure.lang.RestFn.invoke(RestFn.java:408)
maybe he needs to :reload-all for each use in foo.care? ie.
(ns foo.core
(:use [runtime.q :as q] :reload-all)
(:use [datomic.api :only (q db) :as d])
(:use [runtime.util :as u] :reload-all)
)
so that it will also reload whatever foo.core is using, in this example
it's only going to reload
well this should explain it:
= (are [ x y ] (= x y) ((fn[x] x) 1) 1)
StackOverflowError clojure.core/partial/fn--4209 (core.clj:2396)
= (are [ x y ] (= x y) ((fn[a] a) 1) 1)
true
On Mon, Jan 28, 2013 at 4:37 PM, John Lawrence Aspden
aspd...@googlemail.com wrote:
Hi, am I doing something
sorry, James Xu already said that (didn't want to steal any credit, but
I've just realized that he said the same thing)
On Mon, Jan 28, 2013 at 5:25 PM, AtKaaZ atk...@gmail.com wrote:
well this should explain it:
= (are [ x y ] (= x y) ((fn[x] x) 1) 1)
StackOverflowError clojure.core
try using this vm arg:
-XX:-UseCompressedOops
more info here:
https://groups.google.com/d/msg/clojure/MIKccMX9gvk/gZYA_24d0BwJ
On Mon, Jan 28, 2013 at 6:59 PM, larry google groups
lawrencecloj...@gmail.com wrote:
I have a small clojure app (maybe 700 lines of code). I start it at the
and
reducers to traverse tree of moves deeper than 6...It doesn't happen always
but most of the times! If i don't use ^:const it seems to not happen.
Notice that this is irrelevant to disabling CompressedOops...
LIke larry I'm running the latest jdk..
Jim
On 28/01/13 18:02, AtKaaZ wrote
try my code with some alpha
clojure 1.5 ( I remember having no problems whatsoever) and I'l egt back to
you probably tomorrow morning...This seems really serious and since someone
else is encountering it there is no reason to hold back investigating...
Jim
On 28/01/13 18:29, AtKaaZ wrote
. I have
been using these options:
:jvm-opts [-Xmx1000m]
I will switch to:
:jvm-opts [-Xmx1000m -XX:-UseCompressedOops]
W dniu poniedziałek, 28 stycznia 2013 13:02:48 UTC-5 użytkownik AtKaaZ
napisał:
try using this vm arg:
-XX:-UseCompressedOops
more info here: https
I would use (map :keyword) myself, for that exact reason(because I'm into
fail-fast), but only when I know the map is expected to never be nil at
this point(but likely I'll do the program in such a way that this point
won't be reached with a nil map in the first place), so that if it happens
that
(read only what's in *bold*, to save your time, read everything if you're a
consistency maniac xD)
*While I have a knack*(and enjoy) *for finding bugs*(and I take them
personally[as ideas, so I don't hate the person who introduced it(or at
least I'd like to believe that I don't, but let's be
) it will not work.
---
Joseph Smith
j...@uwcreations.com
@solussd
On Jan 28, 2013, at 8:31 PM, AtKaaZ atk...@gmail.com wrote:
I would use (map :keyword) myself, for that exact reason(because I'm into
fail-fast), but only when I know the map is expected to never be nil at
this point(but likely
On Tue, Jan 29, 2013 at 8:03 AM, larry google groups
lawrencecloj...@gmail.com wrote:
Maybe someone can tell me where I went wrong on this one.
I have an app. Written with Clojure 1.4.
At first the app was very small, so I put all the code into core.clj.
When I got to about 500 or 600
On Tue, Jan 29, 2013 at 8:11 AM, James Xu xumingming64398...@gmail.comwrote:
Don’t know the exact reason for your issue, but for your question:
How can a
class be present at compile time but not at runtime?
I find this to be relevant:
It might be something like this(pasting here):
The problem is the hyphen in the namespace.
From the *Joy of Clojure*
HYPHENS/UNDERSCORES If you decide to name your namespaces with hyphens, à
la my-cool-lib, then the corresponding source file must be named with
underscores in place of the
,
but only errs after a while, in which case that would be weird.
On Tue, Jan 29, 2013 at 8:38 AM, AtKaaZ atk...@gmail.com wrote:
It might be something like this(pasting here):
The problem is the hyphen in the namespace.
From the *Joy of Clojure*
HYPHENS/UNDERSCORES If you decide to name
although I'm sure everybody's seen this, I believe it is relevant here,
this clojureconj by Chris Granger
https://www.youtube.com/watch?v=V1Eu9vZaDYw
maybe only applies to clojurescript(that is, being slow in this case)
the important stuff is at from 13:59
On Mon, Jan 28, 2013 at 1:53 AM, Mark
so, wait, are you having any trouble with eclipse+counterclockwise ? it
seems to be pretty straight forward, considering that I actually failed to
use emacs myself (although I did get emacs-live working, i prefer
eclipse+ccw for now)
On Sat, Jan 26, 2013 at 12:24 PM, sampson.jo...@googlemail.com
I've also seen a case of that(context classloader changing so that calling
clojure will work) here [1], if anyone's into Minecraft bukkit server tests
this would be somewhat easy to understand if you can test it:
[1] -
Hi. Check this out: https://github.com/CmdrDats/clj-minecraft
On Fri, Jan 25, 2013 at 11:14 PM, Ryan Cole r...@rycole.com wrote:
Hi all, beginner here,
I'm trying to write a Minecraft plugin in Clojure, and use AOT so that the
Minecraft server can load it right up. I've got this much going,
Hi.
There are a bunch of calls to Util.runtimeException(msgHere) which can be
replaced with Util.runtimeException(msgHere, e); where e is the exception
just caught (aka the cause), for example here:
https://github.com/clojure/clojure/blob/master/src/jvm/clojure/lang/Compiler.java#L4570
and here's
Here are some more: (which I'm getting from my old gist from here
https://gist.github.com/3895312 after I recheck those and tell you only the
ones relevant to this subject)
1. This one has to do with namespace expected format for :import
looks like you denied outgoing for java.exe in your firewall
the java.exe that's in your path(or in JAVA_HOME if set)
in my case:
ie. cmd.exe
C:\Users\userjava -version
java version 1.7.0_09
Java(TM) SE Runtime Environment (build 1.7.0_09-b05)
Java HotSpot(TM) 64-Bit Server VM (build 23.5-b02,
I wonder how the double posting happens (I've seen others do it), and I've
sent that from gmail. (I'll assume something causes the send email to
happen twice)
On Fri, Jan 25, 2013 at 6:08 AM, AtKaaZ atk...@gmail.com wrote:
looks like you denied outgoing for java.exe in your firewall
now I'm confused, which one is the right memoize to use?
and is that true about dosync? the nesting property of dosync: a nested
transaction merges with the surrounding one. or did it change in the past
almost 3 years since?
On Wed, Jan 23, 2013 at 12:08 PM, David Powell
'uberwar' is not a task. See 'lein help'.
Did you mean this?
uberjar
Are you using this https://github.com/alienscience/leiningen-war maybe?
On Tue, Jan 22, 2013 at 11:25 PM, larry google groups
lawrencecloj...@gmail.com wrote:
I know very little about the JVM eco-system. I have
Could you retry using this
-XX:-UseCompressedOops
jvm arg, or use a newer jre (I think it's some bug in the jvm)
I don't have time right now to test but I'll get back on it soon
On Mon, Jan 21, 2013 at 5:38 PM, Jim - FooBar(); jimpil1...@gmail.comwrote:
On 21/01/13 01:24, AtKaaZ wrote:
yes
introduced by mapv but
the returned class seems to be the same that PersistenVector - anyway I'm
just guessing around, doesn't help :)
On Mon, Jan 21, 2013 at 6:17 PM, Jim - FooBar(); jimpil1...@gmail.comwrote:
On 21/01/13 17:07, Jim - FooBar(); wrote:
On 21/01/13 16:47, AtKaaZ wrote:
Could
version of clojure...
At the moment to avoid any problems I *have to* remove the ^:const flag
completely. Then and only then it works as expected regardless of whether
the numbers inside are unboxed ints or boxed longs.
Jim
On 21/01/13 17:26, AtKaaZ wrote:
Very nice find! Thank you
is this line 244?
https://github.com/jimpil/Clondie24/blob/master/src/Clondie24/games/chess.clj#L238
On Sun, Jan 20, 2013 at 7:58 PM, Jim - FooBar(); jimpil1...@gmail.comwrote:
Hi everyone,
I came back to a project of mine after a couple of months only to be
surprised by some cryptic
:03 AM, Jim - FooBar(); jimpil1...@gmail.comwrote:
yes exactly! In the commit that github shows last line 238 is line 244
in my current branch...Since you're looking into it i can commit everything
now so we're all on the same page...
Jim
On 20/01/13 21:10, AtKaaZ wrote:
is this line 244
, compiling:
On Mon, Jan 21, 2013 at 1:17 AM, AtKaaZ atk...@gmail.com wrote:
I've managed to reduce this to:
(ns Clondie24.games.xx1)
(def ^:const
mappings-8x8
(mapv #(apply vector-of :int %)
[[0 0] [1 0] [2 0]])
)
(defn translate [mappings]
(let [list-loc
(.indexOf
);
any reason why that isn't there already?(I guess this was added later: the
ability to pass the cause)
On Mon, Jan 21, 2013 at 1:20 AM, AtKaaZ atk...@gmail.com wrote:
Actually, it's even simpler:
(def ^:const
mappings-8x8
(mapv #(apply vector-of :int %)
[[0 0] [1 0] [2 0
(which maybe disallows changes to the vector?) and
yielding a different class - my guess (I don't really know what reify does
btw - just what I remember)
On Mon, Jan 21, 2013 at 2:08 AM, Jim - FooBar(); jimpil1...@gmail.comwrote:
wow! nice job AtKaaZ...so if I understood correctly there is no issue
memoize?
On Mon, Jan 21, 2013 at 7:27 AM, Larry Travis tra...@cs.wisc.edu wrote:
One of the neat things about Clojure (maybe all functional languages) is
that functions can be defined either extensionally or intensionally. How
can one create a Clojure structure that mixes these two types of
your*
bG9sLCBzb3JyeS4gSSB0aG91Z2h0IGl0IHdhcyBmdW5ueSBtZS1jb3JyZWN0aW5nLXlvdSBhdCB0aGlzIHBvaW50IGFuZCBzZWVtaW5nIGFsbCBzZXJpb3VzOykgSSBob3BlIHlvdSBzbWlsZWQgYmVmb3JlIHJlYWRpbmcgdGhpcw==
On Sat, Jan 19, 2013 at 5:33 PM, Mimmo Cosenza mimmo.cose...@gmail.comwrote:
Hi,
wherever you start from
hey, just going to let people know about the following exception happening
when you have something like this(bad):
(ns runtime.util-test
(:use [midje.sweet :reload-all]))
as opposed to any of these(correct):
(ns runtime.util-test
(:use midje.sweet :reload-all))
(ns runtime.util-test
(:use
looks like you can use AFn() in your example
ie.
static IFn assoc = new AFn(){
@Override
public Object invoke(Object m, Object k, Object v) {
return RT.assoc(m, k, v);
}
};
(code from clojure.lang.Var.assoc)
On Sat, Nov 3, 2012 at 12:51 AM, JvJ kfjwhee...@gmail.com wrote:
https://github.com/clojure/clojurescript/blob/master/src/cljs/clojure/reflect.cljs#L7
https://github.com/clojure/clojurescript/blob/master/src/cljs/clojure/browser/repl.cljs#L30
Looks implemented and it's same as in clojure ...
What do you think?
On Wed, Oct 31, 2012 at 9:31 AM, xiefei
seems to be working here: https://himera.herokuapp.com/index.html
cljs.user (try (+ 1 2) (catch js/Error e e))
3
cljs.user (try (throw (js/Error. err1)) (catch js/Error e e))
#Error: err1
On Wed, Oct 31, 2012 at 10:19 AM, AtKaaZ atk...@gmail.com wrote:
https://github.com/clojure
As I tested, looks like when either of the args are double ie. 1.0 instead
of 1
then the code that checks for and shows divide by zero is not reached,
which is this code:
static public Number divide(Object x, Object y){
Ops yops = ops(y);
if(yops.isZero((Number)y))
throw new
);
if(yops.isZero((Number)y))
throw new ArithmeticException(Divide by zero);
return ops(x).combine(yops).divide((Number)x, (Number)y);
}*
On Tue, Oct 30, 2012 at 8:20 PM, AtKaaZ atk...@gmail.com wrote:
As I tested, looks like when either of the args are double ie. 1.0 instead
of 1
Maybe try creating ~/.m2
On Tue, Oct 30, 2012 at 9:23 PM, Mark Neyer mne...@gmail.com wrote:
i'm trying to get a graph database running on my machine, and when i run
lein deps (after rm -rf ~/.m2 and $PROJECT_DIR/lib ) i keep seeing this:
[INFO] Unable to find resource
?
On Tuesday, October 30, 2012 1:33:37 PM UTC-7, AtKaaZ wrote:
Maybe try creating ~/.m2
On Tue, Oct 30, 2012 at 9:23 PM, Mark Neyer mne...@gmail.com wrote:
i'm trying to get a graph database running on my machine, and when i run
lein deps (after rm -rf ~/.m2 and $PROJECT_DIR/lib ) i keep
On Tue, Oct 30, 2012 at 9:57 PM, AtKaaZ atk...@gmail.com wrote:
I cannot access http://m1.dev.java.net/ I'm getting server not found.
Maybe it's unrelated.
oh i see that this is the repo name, my bad.
But the zip file is a .jar file, it's possible it's either 0 bytes or
incomplete - my
Someone said this
I solved this by clearing the jboss-x.y.z/server[config]/tmp and
jboss-x.y.z/server/[config]/work directories.
Not sure if this at all applies to you
On Tue, Oct 30, 2012 at 9:58 PM, AtKaaZ atk...@gmail.com wrote:
On Tue, Oct 30, 2012 at 9:57 PM, AtKaaZ atk
Using your provided project.clj
and lein2 from master
I was able to successfully run lein deps
Here's a part of the output:
...
Retrieving org/mortbay/jetty/jsp-api-2.1/6.1.14/jsp-api-2.1-6.1.14.jar
(132k) fr
om central
Retrieving
How come you got this message?
*Copying 91 files to /home/mark/gc/src/titan-test-**case/lib*
Did you use a different project.clj which has
:native-path
?
Because it seems it's happening when trying to extract the native deps from
a jar into the lib folder in your project.
I tried adding
(apply str Memory
apply str (list memory ... )
no?
On Mon, Oct 29, 2012 at 5:21 PM, larry google groups
lawrencecloj...@gmail.com wrote:
I decided I wanted to be able to see some stats about my little app, so I
added this function:
(defn show-stats-regarding-resources-used-by-this-app
I believe I've hit this with 1.5.0-alpha6 or so(or maybe i was using the
master branch) in eclipse+ccw
after a while in repl: doc and source wouldn't work like you described and
I'd have to (use 'clojure.repl)
But in the same repl session worked a few minutes before.
Do you think this commit
it looks like clojure.java.io occurs twice, is that why that happens?
On Thu, Oct 25, 2012 at 2:58 PM, larry google groups
lawrencecloj...@gmail.com wrote:
Hmm, how do I include this? I have a strange error. I had an app that was
working fine, and then I added this one line at the the
On Wed, Oct 24, 2012 at 3:27 PM, AtKaaZ atk...@gmail.com wrote:
Here, (pst) doesn't see the thrown exception which is a, it's seeing
only it's cause:
= *(try (throw (Exception. a (Exception. cause))) (catch Exception e
(throw e)))* *(pst 123912031)*
Exception cause datest1.core/eval3129
You can't edit the page when you're signed in?
On Wed, Oct 24, 2012 at 10:02 AM, Thomas G. Kristensen
thomas.g.kristen...@gmail.com wrote:
Hi all,
I asked in the announcement thread of the Zürich user group if it was
possible to get it listed on the Clojure communities site:
Anyway, here's a list of users who could edit it and their contact...
http://dev.clojure.org/pages/viewpreviousversions.action?pageId=1572956
On Wed, Oct 24, 2012 at 10:02 AM, Thomas G. Kristensen
thomas.g.kristen...@gmail.com wrote:
Hi all,
I asked in the announcement thread of the Zürich
Here, (pst) doesn't see the thrown exception which is a, it's seeing only
it's cause:
= *(try (throw (Exception. a (Exception. cause))) (catch Exception e
(throw e)))* *(pst 123912031)*
Exception cause datest1.core/eval3129 (NO_SOURCE_FILE:1)
Exception cause
datest1.core/eval3129
wow I can't believe that worked, I mean look:
(ns helloworld.core
* (:import nl.bitwalker.useragentutils.UserAgent)*
(:gen-class :main true))
(defn -main
[ args]
* (println (UserAgent/parseUserAgentString uas))*
)
this works, but replace the import line with either this:
*(:import
24, 2012 at 3:49 PM, Jim foo.bar jimpil1...@gmail.com wrote:
aaa sorry I can see from a previous post that you already tried that!
this is strange!
Jim
On 24/10/12 14:48, Jim foo.bar wrote:
On 24/10/12 14:41, AtKaaZ wrote:
The error doesn't help you solve the problem... which is: don't
I take it it's not possible via this?
= (doc find-protocol-impl)
-
clojure.core/find-protocol-impl
([protocol x])
nil
nil
(implying I've no idea what protocols are)
But I'm currently trying to do something similar in a way, I need to return
a map from a macro to which I
This here [1] is relevant to what you said.
Also this makes me realize that potentially someone using eclipse+ccw can
use :extra-classpath-dirs to have two projects where one depends on another
without having to *lein uberjar* on every change (and *lein install* or
similar the .jar into some
/NEWS.md
On Tue, Oct 23, 2012 at 6:52 AM, AtKaaZ atk...@gmail.com wrote:
This here [1] is relevant to what you said.
Also this makes me realize that potentially someone using eclipse+ccw can
use :extra-classpath-dirs to have two projects where one depends on
another without having to *lein uberjar
You could save the std out and err to some .log and can inspect it later,
I'd expect you'd see some exceptions if any were thrown.
who-is-logged-in-1.0.1-standalone.jar 4 /dev/null stdouterr.log
On Tue, Oct 23, 2012 at 12:12 AM, Michael Klishin
michael.s.klis...@gmail.com wrote:
**clojure-version* *
{:major 1, :minor 4, :incremental 0, :qualifier nil}
On Sun, Oct 21, 2012 at 2:16 AM, Frank Siebenlist
frank.siebenl...@gmail.com wrote:
When you have different versions of clojurescript in the dependencies of
your main project, how do you ask the repl what version it is
I assumed he needs the results sorted by transaction id, if he doesn't then
it should be quite simple
On Sun, Oct 21, 2012 at 10:05 AM, Dave Sann daves...@gmail.com wrote:
Look at:
http://clojuredocs.org/clojure_core/clojure.core/line-seq to get a lazy
sequence of lines of the file.
I
Looks like something I would do in datomic. Parse the log one time, and
concurrently put the data into a datomic database and then ... wait I just
realized, I don't think we can get the results sorted from the database,
because the return from a query is a set of results and your transaction
ids
This comes to mind:
(set! *warn-on-reflection* true)
But you probably already considered it...
On Sun, Oct 21, 2012 at 4:27 AM, Brian Craft craft.br...@gmail.com wrote:
I have a vector of maps representing intervals with (start, end) coords in
one dimension, that are non-overlapping, and
= (.equals (AA. 1) {:a 1} )
true
= (= (AA. 1) {:a 1} )
false
= (.equals {:a 1} (AA. 1) )
true
= (= {:a 1} (AA. 1) )
false
Looks like = is not .equals, hmm... but this doc says different:
http://clojuredocs.org/clojure_core/clojure.core/=
Equality. Returns true if x equals y, false if not. Same
On Fri, Oct 19, 2012 at 9:10 AM, larry google groups
lawrencecloj...@gmail.com wrote:
Assume data that looks like this:
{ziri {:last_name ziri, :image ziggy_stardust.jpg, :username larry,
:first_name larry, updated 1350626694791}, erich {:last_name 7ich,
:image 7ot_mein.jpg,
On Fri, Oct 19, 2012 at 5:47 PM, larry google groups
lawrencecloj...@gmail.com wrote:
Also:
I suggesting adding printlns or logging or a debugger and checking the
value of this-users-params, it is almost certainly not what you expect
it to be.
I showed the output previously, but I
(get {:username a} username)
nil
(get {:username a} :username)
a
*(get {'username a} :username)*
nil
(get {'username a} 'username)
a
(get {:username a} 'username)
nil
*(get {'username a} username)*
nil
On Fri, Oct 19, 2012 at 6:26 PM, larry google groups
lawrencecloj...@gmail.com wrote:
you
Does the println show you what you expect?
On Fri, Oct 19, 2012 at 5:35 PM, larry google groups
lawrencecloj...@gmail.com wrote:
I suggesting adding printlns or logging or a debugger
and checking the
value of this-users-params, it is almost certainly not
what you expect
it to be.
I
maybe make the string username be a symbol ie. 'username
On Fri, Oct 19, 2012 at 6:39 PM, larry google groups
lawrencecloj...@gmail.com wrote:
you have `username` a symbol as the key in your map, but you are
looking for `:username` they keyword as a key
Ah, interesting, perhaps I tested
On Fri, Oct 19, 2012 at 6:39 PM, larry google groups
lawrencecloj...@gmail.com wrote:
you have `username` a symbol as the key in your map, but you are
looking for `:username` they keyword as a key
Ah, interesting, perhaps I tested this somewhere else. To be sure, I tried
this again:
It is; *data_readers.clj*
{db/id datomic.db/id-literal
db/fn datomic.function/construct
base64 datomic.codec/base-64-literal}
On Wed, Oct 17, 2012 at 5:54 PM, Robert Luo l...@basecity.com wrote:
Is #db/id defined in datomic library?
--
You received this message because you are
Thank you for this clarification!
On Thu, Oct 18, 2012 at 6:26 PM, David Nolen dnolen.li...@gmail.com wrote:
On Thu, Oct 18, 2012 at 12:23 PM, JvJ kfjwhee...@gmail.com wrote:
I didn't realize you could bind to empty identifiers like that. Alright,
that makes more sense. I figured I was
(cons 1 nil)
On Wed, Oct 17, 2012 at 8:16 PM, Curtis cur...@ram9.cc wrote:
Cons seems to be strange
How do i use Cons with an atom to make a list?
(cons 1 1)
On Tuesday, October 16, 2012 5:08:26 PM UTC-7, Baishampayan Ghose wrote:
`car` is called `first` here and `cdr` could mean
deja-vu :)
On Thu, Oct 18, 2012 at 11:16 PM, JvJ kfjwhee...@gmail.com wrote:
On a side note, I was partially inspired by Haskell's do notation, which
is imperative-looking syntactic sugar for monadic bind operators.
--
You received this message because you are subscribed to the Google
That's *a lot* of hard work. I am amazed of how much work goes into making
such great software with the studying and the many years spent training
yourself(generally speaking, not just Rich, but certainly I myself am not
part of that list) before the project even started. Sometimes it just
boggles
Compile compliance level: 1.6
Generated class files compatibility: 1.6
Source compatibility: 1.6
I think regardless of what jdk you use to run/compile them, these 3 (or at
least the first 2) are affecting what you said. I got those from eclipse
(but there should be command line equivalents of
= *(use 'clj-http.client)*
nil
= *(= (:body (clj-http.client/get http://google.com/favicon.ico; {:as
:steam})) (slurp http://google.com/favicon.ico;))*
true
or if you want to save it locally as a file(thanks Apage43):
= *(with-open [bodystream (:body (clj-http.client/get
Hi!
What would you do about this ?
https://github.com/quil/quil/commit/d0312f0f119db066a8d613dec8803571b92bea39
Would you edit the file or change the reader?
Thanks.
On Sun, Oct 14, 2012 at 3:14 PM, Bronsa brobro...@gmail.com wrote:
Neurotic is a library that implements a `deftrait` macro and
Hi S, that's encouraging, I've to admit I've been poking at this for a few
hours now, but I'm not as productive as the (real)programmers.
I've yet to read the following which is a how to submit patches:
http://dev.clojure.org/display/design/JIRA+workflow
Meanwhile poking around, I've found the
:
ClassNotFoundException penumbra.PenumbraSystem
java.net.URLClassLoader$1.run (:-1)
On Fri, Oct 12, 2012 at 6:09 AM, AtKaaZ atk...@gmail.com wrote:
I see that latest is here 0.6.0 here:
http://clojars.org/repo/penumbra/penumbra/ from
30-Aug-2012 18:35
with lein2 I did:
lein new pu
cd pu
penumbra.PenumbraSystem
java.net.URLClassLoader$1.run (:-1)
user=
On Thu, Oct 11, 2012 at 11:52 PM, AtKaaZ atk...@gmail.com wrote:
Just to be sure, this is the link: https://github.com/ztellman/penumbra
I notice OP was using a different fork (?)
On Thu, Oct 11, 2012 at 11:46 PM, Zach Tellman ztell...@gmail.com
I notice it happens on Clojure 1.5.0-master-SNAPSHOT also.
Calling something like:
(future-cancelled? f)
*true*
before getting @f makes sense, but since I'm a clojure newb I don't know
what showing f (not @f) would show. Maybe it should show something like:
#core$future_call$reify__3499@7c9391d9:
Just to be sure, this is the link: https://github.com/ztellman/penumbra
I notice OP was using a different fork (?)
On Thu, Oct 11, 2012 at 11:46 PM, Zach Tellman ztell...@gmail.com wrote:
I updated Penumbra to target the project structure for Leiningen 2 a while
back, are you using v1 by any
201 - 300 of 300 matches
Mail list logo