italian government is making a fast call for contributions on telemedicine and data analysis solutions in order to contain the spread of Covid-19

2020-03-24 Thread icamts
Hi all, italian government is making a fast call for contributions on telemedicine and data analysis solutions in order to contain the spread of Covid-19. Government is looking for working solutions to adapt/integrate with existing information systems. In my experience solutions written in Clojur

Re: try catch leaking exception

2018-02-15 Thread icamts
(->> (p/periodic-seq (f/parse ym-fmt from) (t/months 1)) > (take-while #(not (t/after? % (f/parse ym-fmt to > (into []) > (catch Exception _ nil))) > > This forces the seq inside the try/catch. > > HTH, > Thomas > > On Wednesday, February 14, 201

Re: try catch leaking exception

2018-02-14 Thread icamts
atch Exception _ nil))) > > This forces the seq inside the try/catch. > > HTH, > Thomas > > On Wednesday, February 14, 2018 at 11:46:58 AM UTC+1, icamts wrote: >> >> Hi all, >> I found an unexpected behavior of (try ... (catch ...)) special form. >> Can someo

Re: clojure.compiler.disable-locals-clearing memory leak?

2016-01-26 Thread icamts
Are you using the same JVM? It's an optimization introduced at some point in JVM GC. It can be turned off with the JVM flag -XX:-UseGCOverheadLimit. See https://docs.oracle.com/javase/8/docs/technotes/guides/troubleshoot/memleaks002.html Il giorno lunedì 25 gennaio 2016 07:49:03 UTC+1, Mars0i

Re: some guidance sought

2015-08-24 Thread icamts
Not a pointer but this may help in testing your implementation: https://github.com/ztellman/collection-check Il giorno lunedì 10 agosto 2015 00:31:25 UTC+2, William la Forge ha scritto: > > I've done a lot with AA trees in the past, creating variations that are > immutable, durable (replacing b-

Re: Size of Java serialized Clojure data structures

2015-08-08 Thread icamts
Hi Alan, I did the same experiment, with the same variable names too :) have a look at the github issue. Finally I discovered prevayler calls reset method on oos every time it writes to it. This is why the overhead is written every time. Klaus, prevayler author, says it is so to prevent leaks an

Re: Size of Java serialized Clojure data structures

2015-08-07 Thread icamts
Yes. I suggested nippy. The question is about the size of Java serialized Clojure data structures. Can a two element vector be 1kB in size? Why serialization in my REPL experiment (see the code following the link in my previous mail) produces a 80MB byte buffer while prevayler logs are 1GB? Il

Size of Java serialized Clojure data structures

2015-08-07 Thread icamts
Hi all, I opened this issue on github project prevayler-clj https://github.com/klauswuestefeld/prevayler-clj/issues/1 because 1M short vectors, like this [:a1 1], forming the state of the prevayler, results in 1GB file size when serialized, one by one, with Java writeObject. Is it possible? Ab

Re: (flatten non-sequential) has a surprising result

2015-07-01 Thread icamts
Hi Pablo, I think you're right. Have a look at flatten source (defn flatten "Takes any nested combination of sequential things (lists, vectors, etc.) and returns their contents as a single, flat sequence. (flatten nil) returns an empty sequence." {:added "1.2" :static true} [x] (fil

Re: Integration with Mutable Object-Oriented Eventing Hell

2014-04-04 Thread icamts
thub.com/cemerick/clojure-type-selection-flowchart/ Il giorno venerdì 4 aprile 2014 11:24:18 UTC+2, Christian Eitner ha scritto: > > Hi Luca, > > On Thursday, April 3, 2014 11:57:27 AM UTC+2, icamts wrote: >> >> Hi Christian, >> I think you are looking for this. >&g

Re: Integration with Mutable Object-Oriented Eventing Hell

2014-04-03 Thread icamts
Hi Christian, I think you are looking for this. http://en.wikipedia.org/wiki/Facade_pattern In clojure you can use a def for each private member of the facade. Alternatively you can write a function to instantiate and return private members. Use a defn for each facade's methods. Luca Il giorn

Re: om: state management considerations

2014-03-31 Thread icamts
Hi Rle, I'm a clojurescript / om newbie too. I'll try to answer to the best of my knowledge and maybe someone else can improve this first guess. Il giorno giovedì 27 marzo 2014 09:20:41 UTC+1, rlewczuk ha scritto: > > Hi, > > After playing a bit with om, I'm somewhat confused about state maintai

Re: core.async threadpool size

2014-03-27 Thread icamts
thread pool as you seem to be wanting: > > > https://github.com/clojure/core.async/blob/master/src/main/clojure/clojure/core/async.clj#L379 > > Just note that you will need to use the blocking CSP operator variants, > e.g. > -Ben > > On 3/27/14, 9:24 AM, icamts w

Re: core.async threadpool size

2014-03-27 Thread icamts
gt; http://clojure-log.n01se.net/date/2013-08-29.html#15:45a > > -Ben > > On 3/27/14, 8:55 AM, icamts wrote: > > Hi all, > quite a funny question. Thread pool size in core.async is twice the number > of processors plus 42. > > > https://github.com/cloju

core.async threadpool size

2014-03-27 Thread icamts
Hi all, quite a funny question. Thread pool size in core.async is twice the number of processors plus 42. https://github.com/clojure/core.async/blob/master/src/main/clojure/clojure/core/async/impl/exec/threadpool.clj 42? The question is: 1) should it be 4 or 2? 2) 42 is the response to life,

Re: (series of swap! on atom) ==> single swap!

2014-02-17 Thread icamts
Hi t x and Jan, what about performing the side effect part of the function adding a watch? (They are no more in alpha with the upcoming 1.6.) Cheers, Luca Il giorno lunedì 17 febbraio 2014 09:29:57 UTC+1, t x ha scritto: > > Hi Jan, > > Thanks for your explanations. > > I have no idea how

Re: OT: Enterprise Schedulers

2014-02-13 Thread icamts
ulsar Cheers, Luca Il giorno mercoledì 12 febbraio 2014 13:37:28 UTC+1, Adrian Mowat ha scritto: > > Hi Luca > > Thanks for the links! > > I definitely have a lot of hammock time ahead of me :-) > > Cheers > > Adrian > > > On 11 Feb 2014, at 14:37, icamts wr

Re: OT: Enterprise Schedulers

2014-02-11 Thread icamts
Hi Adrian, the answer is more off-topic than the question :) but have a look to Spagic (I'm a member of the developers' team), Mule ESB, Petals ESB or Talend ESB. You may already know Talend as an ETL solution. You'll find tools to define, configure and run instances of services or processes. Mo

Re: Very strange behaviour in reducers

2014-01-15 Thread icamts
Similar threads are https://groups.google.com/forum/?hl=en#!topic/clojure/A1gW_BB_4MU https://groups.google.com/forum/?hl=en#!topic/clojure-dev/scvyi2Cwk7g Luca Il giorno martedì 14 gennaio 2014 16:43:10 UTC+1, Yves Parès ha scritto: > > Hello! > When mapping and reducing a map, it seems argume

Re: Lisp newbie seeks (macro?) wisdom - instrumentation and app metadata

2013-08-10 Thread icamts
Try these in a REPL user=> (ns-map *ns*) user=> (keys (ns-map *ns*)) user=> (vals (ns-map *ns*)) user=> (map meta (vals (ns-map *ns*))) user=> (ns proof) proof=> (defn ^:my-x-comp func1 [] (prn "func1 executed")) proof=> (filter #(:my-x-comp (meta %)) (vals (ns-map *ns*))) proof=> ((first (

Re: Lisp newbie seeks (macro?) wisdom - instrumentation and app metadata

2013-08-09 Thread icamts
Hi Jace, this is my first answer in this group. Maybe I'm at the same point you are, except my background is in Java, so I just want to share what I understood in the hope to expand your question for the comunity. I found myself to use a lot of code generation in Java to have the glue among com