Re: Poll for a new name for clojure eclipse plugin 'clojure-dev'

2009-06-24 Thread sailormoo...@gmail.com
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

Using Ref

2009-07-13 Thread sailormoo...@gmail.com
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

Why this macro fails??

2009-07-13 Thread sailormoo...@gmail.com
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) --~--~-~--~

Memory Problem

2009-07-22 Thread sailormoo...@gmail.com
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

Re: Memory Problem

2009-07-22 Thread sailormoo...@gmail.com
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

Help! Clojuresque build failed

2010-02-12 Thread sailormoo...@gmail.com
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

Re: Help! Clojuresque build failed

2010-02-14 Thread sailormoo...@gmail.com
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

STM with deeper structure

2010-02-20 Thread sailormoo...@gmail.com
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

Need help for the macro with defn and defmacro inside

2010-03-03 Thread sailormoo...@gmail.com
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

Re: Need help for the macro with defn and defmacro inside

2010-03-04 Thread sailormoo...@gmail.com
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

Comparing Cycle

2010-05-25 Thread sailormoo...@gmail.com
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

Re: (Clojure-related book) Seven Concurrency Models in Seven Weeks

2013-09-29 Thread sailormoo...@gmail.com
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

Re: [ANN] 美味しいClojure

2013-10-01 Thread sailormoo...@gmail.com
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

Not sure if it's a bug or not

2010-10-01 Thread sailormoo...@gmail.com
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

Slow static file handing with lein ring server

2011-08-01 Thread sailormoo...@gmail.com
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"]

Re: Slow static file handing with lein ring server

2011-08-02 Thread sailormoo...@gmail.com
; 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 "

Re: Why is lein so slow?

2012-06-14 Thread sailormoo...@gmail.com
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

comp inside macro

2012-09-26 Thread sailormoo...@gmail.com
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 [& {:

Re: comp inside macro

2012-09-27 Thread sailormoo...@gmail.com
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,