Re: A stupid jvm question

2011-06-17 Thread Zlatko Josic
ady writen in Java, regardless of jvm's language you want to use. Zlaja On Fri, Jun 17, 2011 at 2:47 PM, flebber wrote: > > > On Jun 17, 8:39 pm, Zlatko Josic wrote: > > No one question is stupid. Any jvm language can use jvm byte code. > > For example you can

Re: A stupid jvm question

2011-06-17 Thread Zlatko Josic
No one question is stupid. Any jvm language can use jvm byte code. For example you can use Java libraries in Scala, Clojure,.. Of course sometimes it is not natural fit. For example if you use Scala in Java you have to know Scala compiler will generate set/get methods. Zlaja On Fri, Jun 17, 2011

Re: Run Clojure tests

2011-05-25 Thread Zlatko Josic
> src/main/clojure > > > src/test/clojure > > > > > I imagine if you have an extra directory with clojure sources you should > add it as another tag. > > NB: I haven't tested this, just following my nose. > >

Run Clojure tests

2011-05-25 Thread Zlatko Josic
Hi, I have test cases ( clojure.test) . I use Maven for runing tests. If I start it from Eclipse (clojure:test) it works fine but if I start it from console (mvn clojure:test) it complains that can not found Clojure's scripts on classpath. I've got this : Caused by: java.io.FileNotFoundException:

Clojure test framework

2011-05-08 Thread Zlatko Josic
Hi, I need to write tests for my Clojure application. Which Clojure test framework would you recommend? I also need posibility to intergrate a framework with Maven. Thanks -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send e

Re: cond in dosync problem

2011-04-26 Thread Zlatko Josic
You where right. return of logger/log was nil. Thank you very much. On Wed, Apr 27, 2011 at 1:04 AM, Meikel Brandmeyer wrote: > Hi, > > Am 27.04.2011 um 00:33 schrieb Zlatko Josic: > > > Any idea why changes in the function below does'nt work (see fir

Re: cond in dosync problem

2011-04-26 Thread Zlatko Josic
Any idea why changes in the function below does'nt work (see first post on this topic)? (defn process-request [offer args] (logger/log "process called") (let [offer-value (Double/parseDouble (:offer offer)) out-queue (:out-queue args) unique-offers (:unique-offers args)

Re: cond in dosync problem

2011-04-26 Thread Zlatko Josic
atic) > > > On Tue, Apr 26, 2011 at 10:02 PM, Zlatko Josic wrote: > >> I have given only part of function. I have condition like this : >> >> (cond >> (and (empty? @unique-offers) (empty? @all-offers)) >> >> I change in dosync both unique-offers

Re: cond in dosync problem

2011-04-26 Thread Zlatko Josic
(logger/log "error")) > > is better, since the change is more isolated. > > On Tue, Apr 26, 2011 at 9:45 PM, Zlatko Josic wrote: > >> Hi, >> >> I use cond in dosync but it doesn't work. Here is a function code: >> >> >> (defn proc

cond in dosync problem

2011-04-26 Thread Zlatko Josic
Hi, I use cond in dosync but it doesn't work. Here is a function code: (defn process-request [offer args] (logger/log "process called") (let [offer-value (Double/parseDouble (:offer offer)) out-queue (:out-queue args) unique-offers (:unique-offers args) all-of

Re: Start Clojure programs from Eclipse

2011-04-23 Thread Zlatko Josic
Sorry. My oversight. Run as from menu works just fine. Zlaja On Sat, Apr 23, 2011 at 11:12 AM, Zlatko Josic wrote: > Hi, > > I would like to start two progams from Eclipse. One is a server and the > other one is a client. > I use Load Clojure file in REPL from Eclipse menu. W

Start Clojure programs from Eclipse

2011-04-23 Thread Zlatko Josic
Hi, I would like to start two progams from Eclipse. One is a server and the other one is a client. I use Load Clojure file in REPL from Eclipse menu. When I start the server it never ends because the server has endless loop where it waits for clients. Now when I start the client programs it never

Re: Master worker pattern

2011-03-03 Thread Zlatko Josic
It is most suitable for parallel processing where you have lot of tasks that can be independently processed. If your tasks have shared states things are going to be more complicated. Fortunately this is changed with languages like Scala/Clojure. In both you have STM(Software transaction memory ) ap

Re: Master worker pattern

2011-03-03 Thread Zlatko Josic
My company have made system based on some kind of such architecture. It is parkng service for cites. You have parts of some streets where parking is allowed. That parts have name and phone number. For example Zone 1 and 9111. People use mobile phones for pay parking. They send sms message to 9111 n

Eclipse clojure & maven

2011-03-02 Thread Zlatko Josic
Hi, I use eclipse clojure & maven for developing applications. I have clojure maven plugin installed. I start script with clojure:run goal. The script creates server socket. After i terminate script from eclipse the socket is stil alive. When I start script again I got address already in use error

Re: Master worker pattern

2011-02-28 Thread Zlatko Josic
Hm. I need something like pool of agents something ilke akka framework for scala/java. So I can process more messages at once. Zlaja On Mon, Feb 28, 2011 at 6:34 PM, Ken Wesson wrote: > On Mon, Feb 28, 2011 at 12:31 PM, Zlatko Josic > wrote: > > > > First thanks for reply.

Re: Master worker pattern

2011-02-28 Thread Zlatko Josic
First thanks for reply. if I use only one agent does it mean that the agent process one message by one? Thanks Zlaja On Mon, Feb 28, 2011 at 4:26 PM, Ken Wesson wrote: > On Mon, Feb 28, 2011 at 9:34 AM, Zlaja wrote: > > Hi, > > > > How I can achieve master worker pattern in clojure with agen