On 8 Jan 2010, at 02:43, Steven E. Harris wrote:
Can you recommend a book that covers aspects of monads like these? I'd
like to learn more about the abstract concepts than their
implementation
in a particular language.
I don't know about any books. There's a lot of monad material on the
After I do the swank clojure project command, enter the directory and
press return my Emacs gets stuck doing this: http://imgur.com/Ap8mo
When I just go to the Slime CLI that works fine. Any idea what could
be wrong there?
Zef
--
You received this message because you are subscribed to the Google
On 08.01.2010, at 06:21, joel r wrote:
But right now I need some help. Either I'm using dist-m wrong, or it's
a bug I've found.
It's a bug. More specifically, a typo in a recent improvement. It is
fixed now, so please try again with the current version - or in fact
go back to an older
Ok guys,
After trying all your suggestions, here is the combination that worked
best for me (in the order of their impact solving the problem):
JVM_FLAGS=-server \
-XX:+UseConcMarkSweepGC
-XX:+CMSIncrementalMode \
-XX:+UseCompressedOops \
-XX:+DoEscapeAnalysis \
-XX:+UseBiasedLocking \
On Thu, Jan 7, 2010 at 11:37 PM, Joel jboehl...@gmail.com wrote:
Hello,
I have an emacs setup on OSX using elpa with the latest clojure-mode,
swank-clojure, slime, slime-repl all from ELPA. When I upgraded to the
latest swank-clojure in ELPA (swank-clojure-1.1.0), I began to get
this error
On Fri, Jan 8, 2010 at 4:39 AM, Zef Hemel zefhe...@gmail.com wrote:
After I do the swank clojure project command, enter the directory and
press return my Emacs gets stuck doing this: http://imgur.com/Ap8mo
When I just go to the Slime CLI that works fine. Any idea what could
be wrong there?
Phil Hagelberg p...@hagelb.org writes:
If someone would volunteer to fix it, I'd be thrilled. Nobody who is
interested in using CL and Clojure at the same time has stepped
forward so far, which is why it's currently broken.
Can you characterize what needs to be fixed?
--
Steven E. Harris
Hello,
parse-infix, being a macro, works on the code-as-datastructure it has
as arguments.
So (parse-infix x) receives the symbol x , unevaluated, is in charge
of returning a new datastructure (generally involving the symbol x).
Only then, the compiler will evaluate the result of having called
On Fri, Jan 8, 2010 at 9:10 AM, tristan tristan.k...@gmail.com wrote:
At first I thought I had solved it, as calling (parse-infix a*(b+c))
returned the desired function that i could call. However as soon as i
attempted to use it in the form (parse-infix users-input) it falls
over with a Don't
Currently I'm only providing the code in AOT form. If the JAR is on your
classpath everything in the manual works just fine.
Did that answer your question?
-Rich
2010/1/7 Michał Kwiatkowski constant.b...@gmail.com
On Mon, Jan 4, 2010 at 11:27 PM, Richard Lyman richard.ly...@gmail.com
wrote:
Thanks Chouser! I had not thought of moving the (list 'fn ...etc) bit
into the eval statement, it works perfectly! here is the final result!
http://github.com/tristan/modelmaker/blob/d7dbdfa9b998cfc6b846ea5c235b4496ed8caa63/infix_parser.clj
.Tristan
On 8 Jan., 16:15, Chouser chou...@gmail.com
We'll be meeting on January 28th starting at 6:30pm at:
NYC Seminar and Conference Center
71 West 23rd Street
NY, NY 10010
1-866-807-1114
I'd like to invite people to do some lightening talks and/presentations about
what they are doing with Clojure. Please contact me if you are interested in
Hello all.
I've started work on a clojure library for interoperating with C. It's
always been a pain to do in Java but recently JNA (java native access)
has taken away most of that pain.
When using clojure however, it's nice to be able to stay in clojure
and not drop to java (or C *shudder*).
It's
Take a look at pmap
On Jan 8, 11:13 am, Conrad drc...@gmail.com wrote:
Looping variables in a clojure for loop are iterated in a serial,
cartesian fashion:
(for [a (range 5) b (range 10 15)]
(+ a b))
(10 11 12 13 14 11 12 13 14 15 12 13 14 15 16 13 14 15 16 17 14 15 16
17 18)
I
On Fri, Jan 8, 2010 at 11:34 AM, Sean Devlin francoisdev...@gmail.com wrote:
Take a look at pmap
I don't think that's the kind of parallel being asked about.
On Jan 8, 11:13 am, Conrad drc...@gmail.com wrote:
Looping variables in a clojure for loop are iterated in a serial,
cartesian
Thanks Sean...
Sorry, I should have used a better word than parallel- The second
code example shows what I mean... I'm not referring to multithreaded
parallelism, but simply being able to iterate through two lists in
step, as Chouser describes. (as you can do by passing two different
seqs to map)
At some point, hopefully someone will write an open-source parsing
library with liberal licensing terms for clojure.
--
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
Thanks Sean
This is very helpful.
Tzach
On Jan 8, 5:44 am, Sean Devlin francoisdev...@gmail.com wrote:
Tzach,
I'd start will clojure.xml. At a very high level, my program would
look like this
1. Load the xml file with clojure.xml/parse
2. Apply your filtering code with something like
Oh, right. I saw paralell and the brain hit autopilot.
And I think you CAN improve on your fn a little bit. This should do
the trick
(map + (range 1 5) (range 11 15))
The mapping fn itself will be applied to as many arguments as you have
collections. Since + is variadic, it will do the job
hi,
might anybody have examples of how one deftype can implement protocols
from multiple other namespaces? i have not yet been able to suss out
the correct syntax i guess.
thank you!
--
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this
On 08.01.2010, at 20:21, Raoul Duke wrote:
might anybody have examples of how one deftype can implement protocols
from multiple other namespaces? i have not yet been able to suss out
the correct syntax i guess.
There's nothing special about protocols. defprotocol creates a
protocol object
ah hah. i think.
(ns nst1)
(deftype T1 [f1])
(println (ns-publics 'nst1))
(ns nst2)
(defprotocol P2 (foo [this]))
(deftype T2 [f2] :as this P2 (foo [] this))
(println (ns-publics 'nst2))
(ns nst3)
(println nst3 using nst2 (nst2/foo (nst2/T2 1)))
(ns nst4)
(deftype T4 [f4] :as this nst2/P2 (foo
Also, everyone is welcome to join LispNYC on Tuesday, January 12 and
celebrate release 1.1 of Clojure!
-SS
Join us Tuesday, January 12th from 7:00 to 9:00 at PG's for the first
social of the year!
Directions:
Near the 1 stop at 79th and B,C stop at 81st. Head to the northwest
corner of
mac markus.gustavs...@gmail.com writes:
Hello all.
I've started work on a clojure library for interoperating with C. It's
always been a pain to do in Java but recently JNA (java native access)
has taken away most of that pain.
When using clojure however, it's nice to be able to stay in
On Jan 8, 8:53 pm, Rob Wolfe r...@smsnet.pl wrote:
mac markus.gustavs...@gmail.com writes:
Hello all.
I've started work on a clojure library for interoperating with C. It's
always been a pain to do in Java but recently JNA (java native access)
has taken away most of that pain.
When
On Fri, Jan 8, 2010 at 3:38 PM, mac markus.gustavs...@gmail.com wrote:
But interface-wise on the clojure side I guess my lib and clojure-jna
are kind of similar so if clojure-jna good enough there is no reason
to switch to my lib. I was certainly inspired by clojure-jna since I
had used it
And now for something completely different...
The baclojure meetup had our 13th meetup yesterday, and here are some
pictures - http://baclojure.org/photos/798526/12537681/
This was our largest attendance so far (not counting the one Rich Hickey
came to, that was 80 people). We had about 35
Thanks again Sean/Chouser- Sounds like there isn't any easy way to do
in-step iteration using the for construct, as I suspected- This is
of course easily remedied for writing a convenience function for (map
vec ...)
(As I mentioned in the top post, I am aware the simple example I gave
can be
sometimes (i can't repro it now that i restarted the repl?!)
(let [stream (new java.io.PushbackReader (new java.io.FileReader
/tmp/foo.clj))] (loop [s stream] (println read (read s nil nil))
(recur s)))
in Clojure 1.1.0-new-SNAPSHOT repl to echo a file, i get
java.lang.NullPointerException
hi,
i'm using (read) and it seems to get rid of double quotes e.g.
(println foo)
is read as
(println foo)
as far as i can tell so far. how do i get the quotes to come through?
or don't i want to?
thanks!
--
You received this message because you are subscribed to the Google
Groups
On Fri, Jan 8, 2010 at 7:34 PM, Raoul Duke rao...@gmail.com wrote:
hi,
i'm using (read) and it seems to get rid of double quotes e.g.
This seems very unlikely to me, though it would be easier to tell
for sure if you included the code that was failing.
Perhaps the problem is when you print the
Hi, I'm using macros to define special vars (w/ a keyword as type) to
retrieve them later with ns-utils/ns-vars and filter them. I don't
know if this technique is recommended or if there's some better way to
achieve this, but there's something weird happening when we try to
evaluate the var
32 matches
Mail list logo