Sorry but it's a bit off-topic, any one tried running compojure in
REPL in clojure eclipse plug-in??
I failed with that while it works in Netbeans plug-in.Any help? Thanks.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Gro
Hi :
I would like to simulate a simple database with the STM of clojure.
The rules are
1. There can be many rooms, and each room has its own attirbute
2. One room contains many people, and each person has its own
attribute
3. rooms can be created, and deleted, and people can be added into or
re
user=> (try (Integer/parseInt "x") (catch Exception _ 0))
0
user=> (defmacro parse-int [a default] `(try (Integer/parseInt ~a)
(catch Except
ion _ ~default)))
#'user/parse-int
user=> (parse-int "x" 0)
java.lang.Exception: Can't bind qualified name:user/_ (NO_SOURCE_FILE:
0)
--~--~-~--~
Hi :
I would like to know why
( from
http://stackoverflow.com/questions/749911/how-can-i-leak-memory-in-clojure
)
(drop 90 (vec (range 100))) would cause memory problem in
clojure and how to fix it?
Thanks
Because I think my code might have similar problem of memory cannot
be
Oh I see, Thanks.., but how to I check if a function is lazy or not?
--~--~-~--~~~---~--~~
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
Hi:
I am not familiar with gradle, but I cannot build clojuresque, so I
cannot build clojureql.
The log building clojuresque is as follows :
Thanks for any help.
D:\tools\clojuresque>gradle build
:compileJava
:compileGroovy
07:19:24.781 [main] DEBUG o.g.a.i.p.ant.AntLoggingAdapter -
[ant:ant
Thanks for the help. I still cannot build it in Windows, but I just
download the ClojureQL 0.9.7 from clojars.
--
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 membe
Hi :
Say, I have a (def *a (ref {:b [{:c 5}]})) .
I want to add 1 to the :c inside, how would I write?
(Note: the value 5 is in (:b 0 :c), while 0 is the array index)
(dosync (alter *a __ )) ; please help me fill the blank.
Someone mention I can use the zipper library or the walker
Hi :
I would try to make a macro to simplify the database methods as
follows, but it doesn't work,
is there any way to fix it, or any easier solution? Thanks..
(defmacro with-db [& body]
`(with-connection *db* ~...@body))
(defmacro with-transaction [& body]
`(with-db (transaction ~...@body
Oh, thanks Meikel, I don't have a strong knowledge of how those
symbol, gensym and symbolic quote and unquote work?
It's like a puzzle, but I think I know a bit more with your help .
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this grou
Hi :
(def a (cycle '(1 2 3 4)))
and
(= a (drop 4 a))
I suppose it would return true, but it cannot return.
--
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 membe
What are those 7 models ?
--
--
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 with your
first post.
To unsubscribe from t
Is there any E-book to buy ?
The shipping cost of Amazon.jp is high.
--
--
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 w
Hi :
In my web project the namespace is jinrou-clojure.army,
and the file is at jinrou-clojure/army.clj,
most the the classes are compiled to jinrou_clojure directory,
but some files with name army$reify__3155.class are compiled into
jinrou-clojure/army directory
( note: it's a - , not a
I don't know why, but it seems to have a one second delay getting each
static file even in local host testing.
:dependencies [[org.clojure/clojure "1.2.1"]
[org.clojure/clojure-contrib "1.2.0"]
[compojure "0.6.4"]
[ring-serve "0.1.0"]
; On 1 August 2011 08:24, sailormoo...@gmail.com wrote:
>
>
>
>
>
> > I don't know why, but it seems to have a one second delay getting each
> > static file even in local host testing.
>
> > :dependencies [[org.clojure/clojure "
I found lein repl is slower and most of time it just freezes.
--
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 with your
Hi :
I would like to create a macro as follows.
Note : the prinln function actually is something more sophisticated,
but I would like to evaluate the composition of one predefined function and
the other from the input argument.
And I got some errors, why?
Thanks
user=> (defmacro asdf [& {:
Solved. Thanks ^o^
--
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 with your
first post.
To unsubscribe from this group,
19 matches
Mail list logo