Re: [ANN] Release 0.32.0 of Counterclockwise

2015-07-30 Thread François
A premiere vue c'est un tres, tres bon cru cette release, et vraiment bienvenue! Bravo et (* 1000 merci) pour le zoom, macroexpand, les commandes lein, et surtout le support nickel de cljs! Juste un bemol sur la doc autour de cljs et cider : un peu complecte, du coup j'ai tente figwheel et ca ma

Re: Clojure web server capacity

2015-04-22 Thread François Rey
On 23/04/15 00:49, Thomas Heller wrote: You should check your sources. http-kit is not written in Clojure and does not use netty. You're right, I looked at it too quickly: the src directory is mostly java and the project.clj has a dev only dependency to netty. I always thought it was written in

Re: Clojure web server capacity

2015-04-22 Thread François Rey
On 22/04/15 20:22, Thomas Heller wrote: As far as I know there is not a single Web Server actually written in Clojure, they are all written in Java and we just use them. http-kit would be one, although it's using netty which is a

Re: where do I think the wrong way

2014-10-29 Thread François Rey
(oops my earlier message isn't quite right, here's the correct one) You also need to clarify your intention: are you adding an author to a list of authors, or setting the single author? I suppose the first, but then you need to be clear on what the li

Re: where do I think the wrong way

2014-10-29 Thread François Rey
(oops my earlier message isn't quite right, here's the correct one) You also need to clarify your intention: are you adding an author to a list of authors, or setting the single author? I suppose the first, but then you need to be clear on what the li

Re: where do I think the wrong way

2014-10-29 Thread François Rey
You also need to clarify your intention: are you adding an author to a list of authors, or setting the single author? I suppose the first, but then you need to be clear on what the list of authors is. , associated to the :authors key, look like. In idiomatic

Re: Recursive definition in core.logic

2014-09-21 Thread François Rey
I think this blog post should help: https://kotka.de/blog/2011/10/A_field_trip_into_logic_programming.html The site seems to have an invalid certificate so you may or may not want to proceed, but I just did and all is fine. On 21/09/14 17:07, Casper wrote:

Re: Why You Should NOT Implement Layered Architecture

2014-09-16 Thread François Rey
On 16/09/14 10:11, Kalina Todorova wrote: Relevant? Well it is always nice to find different articles that are bashing on the issues that could appear from badly designed OO programs if you want to get Clojure into conside

Re: Class cast exception in Clojure

2014-09-15 Thread François Rey
On 15/09/14 14:26, Gomzee wrote: Thanks, for your reply. Is there any other possibility of getting this error. As I have checked for the situation mentioned by you. Can you get a stacktrace? http://tech.puredanger.com/2010/02/17/clojure-stack-trace-repl/ -- You received this message because y

Re: Class cast exception in Clojure

2014-09-15 Thread François Rey
On 15/09/14 14:10, Gomzee wrote: Hello All, I am getting ClassCastException java.lang.String cannot be cast to java.util.concurrent.Future  clojure.core/deref-future (core.clj:2180) while loading my file on REPL. 

Re: How do I track down a painfully long pause in a small web app?

2014-09-14 Thread François Rey
GC would be the first suspect, but then it could also be combined with a swap issue, or a JVM bug. Have a look at this article, which ends with a concrete list of things to do: https://blogs.oracle.com/poonam/entry/troubleshooting_long_gc_pauses -- You received this message because you are subs

Why You Should NOT Implement Layered Architecture

2014-09-14 Thread François Rey
Here is a link to an article which makes me think more people are seeing the light on the java side: http://java.dzone.com/articles/why-you-should-not-implement It's a nice illustrative demonstration that might be handy if you're looking for arguments for those left behind in Javaland/J22E/Sprin

Re: How can I add meta to an object that doesn't implement IObj?

2014-08-30 Thread François Rey
On 30/08/14 05:15, Atamert Ölçgen wrote: Obviously I can't. But I need to add this capability to an object. During testing I attach meta to this object that contains an atom. Then I pass this object to other functions, known in runtime. I can't use a dynamic var because all this happens withi

Re: Prismatic Schema: Unclear exception in subsequence validation

2014-08-13 Thread François Rey
ema and combine them perhaps like this: (conj'or res) the idea being to display a list of test for each schema or'ed together. I'm copying this in the prismatic mailing list for the record, perhaps Jason has further comments on this. François -- You received this message becau

Re: 101 on simple and flexible graph query/update?

2014-07-10 Thread François Rey
Also of interest is datomic datalog on regular clojure data structures and records: https://gist.github.com/stuarthalloway/2645453 https://gist.github.com/stuarthalloway/3068749 -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, s

Re: 101 on simple and flexible graph query/update?

2014-07-10 Thread François Rey
On 10/07/14 10:26, Bertrand Dechoux wrote: For both question 1) and 2), a more appropriate data structure might be the answer like a graph/semantic-like store (Datomic or something else). The questions are about intermediary solutions which would be less heavier. I would suggest you look into

Re: System/getenv can't read env vars?

2014-07-07 Thread François Rey
You probably need to export your var: http://stackoverflow.com/questions/1158091/defining-a-variable-with-or-without-export -- 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 f

buggy "case" macro

2014-07-04 Thread François-René Rideau
acros does, but without it the code compiles fine. Even if I remove this particular bit from the case statement in my parser and replace it by a last-case test, the code compiles but my larger case fails, in a way that condp = doesn't. Can anyone fix the case macro? —♯ƒ • François-René

Re: OT: Github Alternatives

2014-06-30 Thread François Rey
On 30/06/14 13:10, Torsten Uhlmann wrote: We successfully used http://assembla.com in the past. Except this cannot be hosted internally as requested by the OP... -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to cl

Re: OT: Github Alternatives

2014-06-30 Thread François Rey
Tuleap is fully open source and integrates gitolite, gerrit, hudson/jenkins, etc. along with an agile dashboard, trackers, and more. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojur

Re: lazy list comprehension

2014-06-27 Thread François Rey
On 27/06/14 17:01, Glen Rubin wrote: I have a list that I want to combine in some way with an incremented list, so I was trying to write a for expression like this: (for [i '(my-list-of-crap), j (iterate inc 0)] (str i j)) I would also use map, otherwise try using (range) instead of your ite

Re: Clojure equivalent of 3-level enumeration in Ruby?

2014-06-20 Thread François Rey
On 20/06/14 15:11, gvim wrote: Because it's 3 levels deep and requires substituting the vars back into maps to then create a returned map. Your for example doesn't emulate Ruby's each_with_index, as in the example, as far as I'm aware. I'm fairly new to Clojure so the obvious may not be so obvi

Re: macro - unquote

2014-06-19 Thread François Rey
http://clojure.org/reader#The Reader--Macro characters -- 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

Re: How to take a subsequence out of an infinite lazy sequence?

2014-06-15 Thread François Rey
On 15/06/14 18:11, Steve Miner wrote: You can use `drop` and `take` with infinite sequences. Something like this should work: (defn between [start end coll] (take (- end start) (drop start coll))) The `end` is exclusive as in `range`. Nice, especially since I suppose this will not incur th

Re: How to take a subsequence out of an infinite lazy sequence?

2014-06-15 Thread François Rey
(keep-indexed #(if(<=100 %1 1000)%2) (range1001)) => (100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 ...) -- You received this m

Re: a data conversion question

2014-06-08 Thread François Rey
If you really want a vector, just wrap my answer with (into [] ...): (into[] (for[[k v] [[:a [1 2]] [:b [3 4]]] n v] [k n])) => [[:a 1] [:a 2] [:b 3] [:b 4]] -- You received this message because you are subscribed to the Google Groups "Clojure" group. To p

Re: a data conversion question

2014-06-08 Thread François Rey
(for[[k v] [[:a [1 2]] [:b [3 4]]] n v] [k n]) -- 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

Re: use :only in ns

2014-06-04 Thread François Rey
On 05/06/14 08:29, Leonardo Borges wrote: I believe you want: (ns providence.core (:gen-class) (:require [seesaw.chooser :refer [choose-file]])) This will make available the whole seesaw.chooser namespace available via prefixed notation, with the bonus that choose-file which will be acces

Re: use :only in ns

2014-06-04 Thread François Rey
This may help: https://groups.google.com/forum/#!msg/clojure/cFmCkdq9tQk/I23-uiqsEwEJ -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clo

Re: store a value in a PersistentVector and PersistentHashMap

2014-06-04 Thread François Rey
On 04/06/14 14:59, sorin cristea wrote: do you know how is store a 'value' in a PersistentVector or in a PersistentHashMap ? Hi Sorin, Your question is difficult to understand without more context. Are you trying to use Clojure data structures from Java? http://www.lispcast.com/3-things-java-ca

Re: Propagating data through dependencies

2014-05-15 Thread François Rey
I'm not sure I totally understand your use case, but somehow it sounds like these libraries may be of interest to you: propaganda prismatic graph -- You received this message because you are subscribed to the Google Grou

Re: go-circuit for clojure

2014-05-13 Thread François Rey
On 10/05/14 22:59, Michał T. Lorenc wrote: Since, core.async has goroutines maybe it would be possible to implement go-circuit for clojure to distrubute goroutines across computer nodes? In a previous topi

Re: Measure HTTP response times

2014-05-06 Thread François Rey
You may want to check timbre and/or The Grinder , the latter being a full-featured java tool that supports scenario scripting in clojure . -- You received this message because you are subscribed to the Google Grou

Re: is there a performance test tool by clojure

2014-05-06 Thread François Rey
On 06/05/14 15:34, François Rey wrote: On 06/05/14 15:32, Zhi Yang wrote: thanks, this is mainly for benchmark expression, what I need is a jmeter like app performance tool In that case: https://github.com/ptaoussanis/timbre Looking at what Gatling provides in scalaland I guess you may be

Re: is there a performance test tool by clojure

2014-05-06 Thread François Rey
On 06/05/14 15:32, Zhi Yang wrote: thanks, this is mainly for benchmark expression, what I need is a jmeter like app performance tool In that case: https://github.com/ptaoussanis/timbre -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this

Re: Sliding Windows

2014-04-30 Thread François Rey
On 30/04/14 04:25, Paulo Suzart wrote: If anyone knows any other sliding window impl please share. Riemann seems to have one: http://riemann.io/howto.html#group-events-in-time -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, se

Re: newbie seq question

2014-04-13 Thread François Rey
On 14/04/14 01:29, Stephen Feyrer wrote: To be honest I am still not confident in what I'm doing but there are still avenues to explore. The REPL is you best friend, keep experimenting, keep reading, and I'm sure it will all make sense at some point. On 13/04/14 08:02, François

Re: newbie seq question

2014-04-12 Thread François Rey
On 13/04/14 02:21, Stephen Feyrer wrote: // Get the java file io library (import '(java.io File)) // Get some files (def f (File. "/My/files/")) (def fs (file-seq f)) // Filters for suffixes ".mp3" (def get-mp3 (filter #(.endsWith (.getName %) ".mp3") fs)) // Get the path of

Re: alternative syntax for Clojure? Haskell?

2014-04-05 Thread François Rey
On 05/04/14 19:35, Travis Wellman wrote: To be clear, in this topic I'm not interested in the functional purity of Haskell, nor it's libraries or type system, but just the syntax. It's probably not the answer you're looking for but did you check https://github.com/Frege/frege? -- You received

Re: Function from a symbolic expression

2014-03-31 Thread François Rey
On 31/03/14 23:51, François Rey wrote: On 31/03/14 23:25, Lee Spector wrote: (defn functionalise [ex var] (eval (list 'fn (vector var) ex))) (def ex '(+ 1 x)) (def exf (functionalise ex 'x)) (exf 3) ;; => 4 This calls eval only once when you call functionalise, and d

Re: Function from a symbolic expression

2014-03-31 Thread François Rey
On 31/03/14 23:25, Lee Spector wrote: (defn functionalise [ex var] (eval (list 'fn (vector var) ex))) (def ex '(+ 1 x)) (def exf (functionalise ex 'x)) (exf 3) ;; => 4 This calls eval only once when you call functionalise, and doesn't do any tree walking. FWIW this is the trick I use

Re: STM and persistent data structures performance on mutli-core archs

2014-03-30 Thread François Rey
On 30/03/14 07:40, Andy C wrote: Here are results where numbers are normalized gains. ++---++ | # of processes | random | linear| ++---++ |1 | 1.00| 1.00 | ++---+

Re: cdoc, lein, profiles.clj, strange behavior

2014-03-24 Thread François Rey
Don't know if you still have the issue, but one way to solve it would be to use a prefix like > as shown in the README.md : (vinyasa.inject/inject 'clojure.core '> '[[cemerick.pomegranate add-classpath get-cl

Re: STM and persistent data structures performance on mutli-core archs

2014-03-20 Thread François Rey
On 20/03/14 12:26, László Török wrote: "into" uses "reduce" under the hood, you probably need "fold" to have the computation to run on FJ: Yes, now I see all my CPUs being maxed-out. francois@laptop:~$ perf stat java -cp ~/.m2/repository/org/clojure/clojure/1.5.1/clojure-1.5.1.jar clojure.mai

Re: STM and persistent data structures performance on mutli-core archs

2014-03-20 Thread François Rey
On 20/03/14 04:03, Andy C wrote: So, the following test puzzles me. Not because it takes virtually the same time (I know that Fork/Join is not cheap and memory is probably the biggest bottleneck here). But because I do not get why map (as opposed to r/ma) uses all 8 cores on my MacBookPro. All

Re: STM and persistent data structures performance on mutli-core archs

2014-03-18 Thread François Rey
On 18/03/14 18:03, Martin Thompson wrote: Our use of language in the technology industry could, for sure, be better. Take simple examples like RAM where random should be "arbitrary", or don't get me started on people who misuse the term "agnostic" ;-) I would even say our use of abstractions in

Re: Finding maximum weighted graph matchings

2014-03-18 Thread François Rey
I recently searched for other graph algorithms and did not find much more than what you probably know: JUNG, JGraphT, Loom, Tinkerpop. So my guess is that you'll be very lucky to find an implementation in java, let alone in clojure. Be prepared to write your own. -- You received this message be

Re: STM and persistent data structures performance on mutli-core archs

2014-03-17 Thread François Rey
On 16/03/14 18:24, Softaddicts wrote: I think that significant optimizations have to be decided at a higher level. I doubt that any of that can be implemented at the hardware level alone and let it decide on the fly. This sounds like magic, too good to be true. I am also quite convinced that opt

Re: STM and persistent data structures performance on mutli-core archs

2014-03-15 Thread François Rey
Martin's point about immutable and persistent data structures is further developed in his interview on infoq , you can skim to point #9 if you're in a hurry. Overall what he says is that in terms of scalability of the develo

Re: STM and persistent data structures performance on mutli-core archs

2014-03-15 Thread François Rey
On 15/03/14 01:59, Andy C wrote: Maybe one day this idea http://en.wikipedia.org/wiki/Lisp_machine will come back, I mean in a new form .. That reminds me of this Urbit project , which is nowhere near usefulness at present, but deserves to be mentioned as a (radical) ex

Re: [soft/philosophical] event handers in cljs

2014-03-11 Thread François Rey
On 10/03/14 15:37, juan.facorro wrote: I have taken this approach as well, but I can can't seem to find a good answer to this question: When you create a bunch of elements with their corresponding channels to handle certain events, how do you handle the closing of those channels and the termina

Re: [ANN] Gorilla REPL initial release (0.1.2)

2014-03-04 Thread François Rey
Great project! I just watched this interesting video on reinventing the REPL which also talks about notebook/graphical REPL. This was further developed at Clojure/con 2012 , and there's a project called Session on github <

Re: OT: Enterprise Schedulers

2014-02-10 Thread François Rey
On 10/02/14 18:46, Adrian Mowat wrote: Thanks for the info. Quartz and it's Clojure DSLs seem to do some of what I need. I had a quick scan of the docs and they don't appear to support triggers that are not time based (on arrival of a file, on completion of a job etc) - but it was only a quic

Re: OT: Enterprise Schedulers

2014-02-10 Thread François Rey
On 10/02/14 16:20, Toby Crawley wrote: Actually, Immutant has its own Quartz integration, and is not based on quartz-clj. You can, however, use the Quartzite API with the cluster-aware Quartz scheduler that Immutant provides if you prefer the Quartzite API over the Immutant one. - Toby Thanks

Re: OT: Enterprise Schedulers

2014-02-10 Thread François Rey
Perhaps I should be more precise: quartz (http://quartz-scheduler.org/) is a java-based open source scheduler, and the link I gave earlier is to the clojure integration layer quartzite (http://clojurequartz.info/) . Immutant (http://immu

Re: OT: Enterprise Schedulers

2014-02-10 Thread François Rey
Considering your enterprise/cloud requirements, it seems that quartz (http://clojurequartz.info/) should be the closest to your needs. It's also integrated into Immutant (http://immutant.org/tutorials/jobs/) . More generally in th

Re: Releasing Caribou today: Open Source Clojure Web Ecosystem

2013-11-13 Thread François De Serres
Beautiful. Le mercredi 13 novembre 2013 00:52:10 UTC+1, Ryan Spangler a écrit : > > Hello Clojure, > > Excited to announce today the release of Caribou! http://let-caribou.in/ > > We have been building web sites and web applications with it for over two > years now and improving it every day.

Re: ANN: core.match 0.2.0

2013-10-18 Thread François De Serres
Hi David, any chance to see core.match expose its compiler in the near future? The ability to create "matchers" at runtime (like matchure/fn-match) would be much welcome ;) Thankies, -- François -- -- You received this message because you are subscribed to the Google Groups "

Re: [ANN] Counterclockwise - Clojure plugin for Eclipse

2013-10-18 Thread François De Serres
CCW has helped me a lot already, and this release is just beautiful. Merci so much Laurent ! -- -- 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 modera

Re: [ANN] Cognitect

2013-09-20 Thread François De Serres
Bonne chance Cognitect !!! Le lundi 16 septembre 2013 15:50:46 UTC+2, Rich Hickey a écrit : > > I just wanted to let everyone know that Metadata Partners (the company > behind Datomic) and I have merged with Relevance, Inc., to form Cognitect, > Inc. This merger is great for Clojure, adding cons

Re: [ANN] Clotilde is Linda in Clojure.

2013-08-21 Thread François DE SERRES
Hi there, I just pushed the new Clotilde to GitHub<https://github.com/justiniac/clotilde>, now with proper pattern handling and a more idiomatic API. Please review? (only a handful lines) Thankies! -- F. Le lundi 5 août 2013 16:37:16 UTC+2, François DE SERRES a écrit : > >

Re: [ANN] Clotilde is Linda in Clojure.

2013-08-06 Thread François DE SERRES
3, at 10:37 AM, François DE SERRES wrote: > > 9 months and half a dozen books later, here's my first (hopefully) > useful Clojure program: https://github.com/justiniac/clotilde > > > > Clotilde implements the basic ops of the Linda process coordination > la

Re: [ANN] Clotilde is Linda in Clojure.

2013-08-05 Thread François DE SERRES
Quoted patterns need to be handled correctly by clotilde.innards/-match-fn. Tried to make it a macro and to unquote pattern, but clojure.core.match/match complains. See test-match-fn. Gah! Le lundi 5 août 2013 16:37:16 UTC+2, François DE SERRES a écrit : > > Hi, > > 9 months and

[ANN] Clotilde is Linda in Clojure.

2013-08-05 Thread François DE SERRES
topic: http://www.sciencedirect.com/science/article/pii/S0890540199928237 I'd be so happy to get feedback ;o) Also, I am now in search of a (possibly NP complex) short Linda program to translate into Clotilde. Mucho thankies! -- François -- -- You received this message because you are sub

Re: Belgian Clojure base meetup?

2012-12-18 Thread François
Hello, I'm from Namur. Such a meeting would be fantastic. Belgium is not very large. I can of course get around. François Le lundi 17 décembre 2012 19:09:56 UTC+1, Sébastien Wagener a écrit : > > Hi Thomas, > > I'm from Luxembourg. If the meetup isn't too far away