Re: [ANN] cqrs-server - An opinionated CQRS/ES implementation using Onyx, Datomic, DynamoDB, Kafka and Zookeeper.

2015-02-13 Thread Lucas Bradstreet
Just a small clarification: both Storm and Onyx both depend on Zookeeper. Onyx is masterless as of 0.5.0, however it still requires Zookeeper IN order to write an append only log used by the peers in order to coordinate. In contrast to Storm, Onyx does not have dedicated coordinator nodes (in St

Performant string concatenation (of many, large strings)

2015-02-13 Thread Andy Chambers
Is there a reason you're collecting the result into a string rather than just writing out to a file? -- 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 mo

It's time to get Clojure ready for Google Summer of Code 2015!

2015-02-13 Thread Daniel Solano Gómez
Hello, all, We're already a week into the application period for organisations' participation in Google Summer of Code 2015 . This is a fantastic program that helps grow open source communities and gives students from around the w

Clojure data vs. JavaFX Properties

2015-02-13 Thread MS
Short version: Is there any way to get JavaFX (8.0) to tell Clojure that a Property is no longer available, such that I may (remove-watch) a watch on a ref/atom which notifies that Property of ref/atom changes? Long version: My domain/application data is a nested Clojure hash-map that lives

Re: [ANN] cqrs-server - An opinionated CQRS/ES implementation using Onyx, Datomic, DynamoDB, Kafka and Zookeeper.

2015-02-13 Thread Christopher Small
I'll chime in with a couple of comments about Storm vs Onyx. I've used Storm in a production application, so I'm fairly familiar with it. I haven't spent too much time playing with Onyx yet, but will be soon. >From what I do know about it and Storm though, I can say the following: Both Storm an

Re: ANN: ClojureScript 0.0-2843, Node, Node, Node

2015-02-13 Thread David Nolen
Just pushed out 0.0-2850. The only significant change is a critical fix for dependent namespace recompilation spotted by Bruce Hauman. David On Thu, Feb 12, 2015 at 12:08 PM, David Nolen wrote: > ClojureScript, the Clojure compiler that emits JavaScript source code. > > README and source code:

Re: [ANN] cqrs-server - An opinionated CQRS/ES implementation using Onyx, Datomic, DynamoDB, Kafka and Zookeeper.

2015-02-13 Thread Deon Moolman
Hi Alan, Thanks for your feedback - I'm glad you enjoyed it! I will certainly write some more as the project matures :) Cheers, - Deon On Friday, 13 February 2015 17:31:43 UTC+2, Alan Dipert wrote: > > Thanks for sharing your journey, this was very interesting! I have > written an applicatio

Re: [ANN] cqrs-server - An opinionated CQRS/ES implementation using Onyx, Datomic, DynamoDB, Kafka and Zookeeper.

2015-02-13 Thread Deon Moolman
Hi Aaron, Onyx is still quite young, but incredibly promising. I absolutely enjoy the way that they have teased apart the different bits of distributed systems. I highly recommend getting involved in the project, they're going to do great things. As for Storm, I haven't really used it so I'm n

Re: calling functions that accepts keyword arguments with a map

2015-02-13 Thread Wilker
I agree with you James, I prefer to just receive maps in my functions. On Fri Feb 13 2015 at 4:04:14 PM James Reeves wrote: > A lot of utility libraries, such as my own Medley > , have "mapply" functions for this > exact use-case. > > Generally, however, I

Re: calling functions that accepts keyword arguments with a map

2015-02-13 Thread James Reeves
A lot of utility libraries, such as my own Medley , have "mapply" functions for this exact use-case. Generally, however, I find that keyword arguments are more trouble than they're worth. You only save two characters, and give up a lot on terms of being able

Re: New Member Initiation

2015-02-13 Thread Shubham Jain
Thanks Chris and Akos, For your welcome to the community. I am new to Clojure and interested in learning more about it. Yes, I do have some basic experience with the LISP programming. I am having a look at the project list provided by Akos. And will soon start working on it. With Regards, Shubham

Re: calling functions that accepts keyword arguments with a map

2015-02-13 Thread Wilker
Good point Andy! Yeah, I'll use Francis solution, and actually I'll create a simple helper for the entire thing, as: (defn apply-map [f m] (apply f (apply concat m))) That will make the whole thing much easier, I was hoping that there was something else in the core for helping with that, but if

Re: [newbie] strange behaviour in self-referential primes lazy-seq attempt

2015-02-13 Thread Fluid Dynamics
Then all of them must be schizophrenic: forcing delay X while forcing delay X gives a stack overflow except if the delay happens to be the rest-part of a lazy seq, and then gives nil instead making the sequence seem to terminate early. That's very odd. How does it "know" whether the delay it's

Re: calling functions that accepts keyword arguments with a map

2015-02-13 Thread Andy Fingerhut
There is a significant advantage to Francis's version when keys or values in the map are collections that flatten flattens: ;; Most likely not the behavior you want: user=> (flatten (seq {:colors ["red" "blue"] :cursor-set #{"pointer" "hand"}})) (:colors "red" "blue" :cursor-set #{"hand" "pointer

getting enlive not to parse something

2015-02-13 Thread Sam Raker
I'm trying to parse some stuff with enlive, but part of at least of the pages look like: ... ... <8-bar break...> ... Enlive interprets the text in the pointy braces as html, which it isn't, and that's messing up my application. Is there a way to tell enlive to not parse anything within a giv

Re: calling functions that accepts keyword arguments with a map

2015-02-13 Thread Francis Avila
Not fundamentally different from your approach: (apply set-style (apply concat {:color "red" :cursor "pointer"})) On Friday, February 13, 2015 at 11:30:44 AM UTC-6, Wilker wrote: > > Hi guys, > > I'm trying to find the best way to call a function that accepts keyword > arguments (in my case it's

Re: Summer of Code 2015

2015-02-13 Thread Ambrose Bonnaire-Sergeant
We're planning to apply. On Fri, Feb 13, 2015 at 12:10 PM, Rinu Boney wrote: > Hi all, > > I was wondering if the Clojure community is applying to Google > Summer of Code 2015. The last date for organizations to apply is 20th Feb > and I see no activity from the Clojure community. I have d

calling functions that accepts keyword arguments with a map

2015-02-13 Thread Wilker
Hi guys, I'm trying to find the best way to call a function that accepts keyword arguments (in my case it's the set-style! on Enfocus library) with a map. So, an example of the regular call: (set-style :color "red" :cursor "pointer") I would like to call with a map (because that way I can manag

Summer of Code 2015

2015-02-13 Thread Rinu Boney
Hi all, I was wondering if the Clojure community is applying to Google Summer of Code 2015. The last date for organizations to apply is 20th Feb and I see no activity from the Clojure community. I have done some work on a proposal and I'm very interested in applying. -- You received thi

Re: [ANN] cqrs-server - An opinionated CQRS/ES implementation using Onyx, Datomic, DynamoDB, Kafka and Zookeeper.

2015-02-13 Thread Alan Dipert
Thanks for sharing your journey, this was very interesting! I have written an application in CQRS style using only Datomic and suspect the tools you introduce might have made for a better experience. I look forward to your future writings. Alan On Thursday, February 12, 2015 at 4:15:44 AM UTC

Re: [newbie] strange behaviour in self-referential primes lazy-seq attempt

2015-02-13 Thread Nicola Mometto
Clojure 1.6.0 user=> (def foo (delay (str @foo))) #'user/foo user=> @foo StackOverflowError clojure.lang.Delay.deref (Delay.java:37) user=> same with Clojure 1.7.0-master-SNAPSHOT, I don't see it returning nil as you said. On Fri, Feb 13, 2015 at 7:53 AM, Fluid Dynamics wrote: > On Friday, Feb

Re: [newbie] strange behaviour in self-referential primes lazy-seq attempt

2015-02-13 Thread Nicola Mometto
Clojure 1.5.1 user=> (def bar (cons 1 (map #(do (println %) (+ (nth bar %) %)) (range #'user/bar user=> (take 10 bar) (0 1 IndexOutOfBoundsException clojure.lang.RT.nthFrom (RT.java:795) It is possible that it is lein/REPLy that's causing the output not to be print, I've seen it done a num

Re: Is this the good way to write get-percentage

2015-02-13 Thread Jonathan Winandy
Hi ! You could rewrite the code like that : (defn get-percentage ([place total-count] (get-percentage :normal place total-count)) ([mode place total-count] (let [mode-fn (case mode :highMath/ceil :low Math/floo

Re: Is this the good way to write get-percentage

2015-02-13 Thread Jan-Paul Bultmann
I really don't think that calculating percentages warrants a DSL. (I'm not even sure if percent warrants a function ;} ) `(round (percent ...)) (round-up (percent ...)) (round-down (percent ...))` Seems far more readable to me than having a function that does many things at once, be it higher