Re: Is this a reasonable use of core.async?

2014-09-16 Thread Beau Fabry
We don't have streams of data here, the long running tasks have side-effects. I would prefer to avoid adding another whole framework just to run a few long running jobs in p//. I have a list of jobs to do, I'm partitioning that list up into 4 sub lists to be worked through by 4 p// workers, I

Re: jetty restart failing

2014-09-16 Thread James Reeves
On 16 September 2014 17:06, Herwig Hochleitner wrote: > 2014-09-16 17:28 GMT+02:00 James Reeves : > >> On 16 September 2014 10:13, Herwig Hochleitner >> wrote: >> >>> >>> The thing I do on startup: (doseq [l (.getConnectors >>> jetty)] (.getLocalPort l)), is my solution to wait until it's come f

Re: ECHELON: Wrangling messy political data

2014-09-16 Thread Colin Fleming
It's a shame your talk wasn't accepted - that looks fascinating and I would have loved to see it. Please let us know when you do your technical write-up! On 17 September 2014 07:14, Zack Maril wrote: > I had submitted a talk to clojure conj but it wasn't accepted. Stiff > competition this year.

Online Multiplayer AI / Bot Programming Game (now playing - Clojure available)

2014-09-16 Thread Aude Barral
Hi everyone, We're currently running a cool AI multiplayer game you may like to try. It's called PokerChip Race, Clojure or 20 other programming languages to choose from are available to code your bot in an online IDE. Check it out here: http://www.codingame.com/challenge/winamax -- You rec

[ANN] finagle-clojure: Finagle with Clojure!

2014-09-16 Thread Sam Neubardt
Announcing finagle-clojure, a Clojure wrapper for Finagle [1]. https://github.com/finagle/finagle-clojure Finagle is a library open sourced by Twitter for building highly concurrent RPC services on the JVM. With finagle-clojure no explicit interop is required to the underlying Scala implementatio

Re: ECHELON: Wrangling messy political data

2014-09-16 Thread Zack Maril
I had submitted a talk to clojure conj but it wasn't accepted. Stiff competition this year. This project is ongoing though so I imagine sometime in the next year I'll try again and give a talk at a conference about all the weird stuff ECHELON can do. Like, it only took the better part of an afterno

Re: Playing around with transducers, what about the zero-arity of the reducing function

2014-09-16 Thread Ghadi Shayban
I was sloppy with details. A reducing function like f may be transformed though by a transducer (a priori), and a transducer must preserve the contract. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@goog

Re: Playing around with transducers, what about the zero-arity of the reducing function

2014-09-16 Thread Ghadi Shayban
I was sloppy with details. A reducing function like f may be transformed though by a transducer (a priori), and a transducer must preserve the contract. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@goog

Re: ECHELON: Wrangling messy political data

2014-09-16 Thread Ashton Kemerling
That's really neat. Planning on giving a talk? On Tue, Sep 16, 2014 at 12:08 PM, kovas boguta wrote: > Thats very cool!! > On Tue, Sep 16, 2014 at 1:48 PM, Zack Maril wrote: >> This might be of interest to the Clojure/Datomic community: >> >> http://sunlightfoundation.com/blog/2014/09/16/wrangl

Re: why (> 2) returns true

2014-09-16 Thread Robert Tweed
On 15/09/2014 13:34, Phillip Lord wrote: Jeremy Vuillermet writes: Could it return a (partial > 2) ? Because > works with n args and not just two. The question was /why/ and yours is the best attempt to answer that, but I think, slightly off the mark. Firstly, the fact that > is variadic d

Re: Playing around with transducers, what about the zero-arity of the reducing function

2014-09-16 Thread Gijs S.
No init value given with transduce uses the zero arity value of f rather than the zero arity of the reducing function through xform: With Clojure 1.7.0-alpha2: user=> (doc transduce) - clojure.core/transduce ([xform f coll] [xform f init coll]) reduce with a transformati

Re: ECHELON: Wrangling messy political data

2014-09-16 Thread kovas boguta
Thats very cool!! On Tue, Sep 16, 2014 at 1:48 PM, Zack Maril wrote: > This might be of interest to the Clojure/Datomic community: > > http://sunlightfoundation.com/blog/2014/09/16/wrangling-messy-political-data-into-usable-information/ > https://github.com/sunlightlabs/echelon > > I'm part of th

Playing around with transducers, what about the zero-arity of the reducing function

2014-09-16 Thread Ghadi Shayban
Call 'transduce without an init value, and it will use the 0-arity return as init. Same for reduce but in different scenarios (some IReduce/CollReduce collections) -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to

ECHELON: Wrangling messy political data

2014-09-16 Thread Zack Maril
This might be of interest to the Clojure/Datomic community: http://sunlightfoundation.com/blog/2014/09/16/wrangling-messy-political-data-into-usable-information/ https://github.com/sunlightlabs/echelon I'm part of the Influence Explorer team at the Sunlight Foundation. We're building a system w

Re: Why You Should NOT Implement Layered Architecture

2014-09-16 Thread Lukas Eder
On Tuesday, September 16, 2014 1:09:54 PM UTC+2, François Rey wrote: > > > 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 Cloju

Add elements to a vector

2014-09-16 Thread Bods
The slave has a bunch of attributes, one of which is the info pertaining to its master. I initialize a vector slavesinfo but in the doseq, when I try adding "x" using "conj", nothing happens. What am I doing wrong? (defn slave-stats [] (let [ computer (get slave-info "computer") slaves

Re: Is this a reasonable use of core.async?

2014-09-16 Thread larry google groups
This does not look correct to me. Perhaps someone else has more insight into this. I am suspicious about 2 things: 1.) your use of doall 2.) your use of (thread) It looks to me like you are trying to hack together a kind of pipeline or channel. Clojure has a wealth of libraries that can han

Playing around with transducers, what about the zero-arity of the reducing function

2014-09-16 Thread Gijs S.
Hi, At a recent Amsterdam Clojure Meetup, we were looking into transducers. We could not find any situation where the "zero arity" println would get called when using this futile transducer: (defn println-transducing-fn [reducing-fn] (fn new-reducing-fn ([] (println "zero arity")

Re: jetty restart failing

2014-09-16 Thread Herwig Hochleitner
2014-09-16 17:28 GMT+02:00 James Reeves : > On 16 September 2014 10:13, Herwig Hochleitner > wrote: > >> >> The thing I do on startup: (doseq [l (.getConnectors >> jetty)] (.getLocalPort l)), is my solution to wait until it's come fully up. >> > > Why would this work? As far as I'm aware, both .g

Re: jetty restart failing

2014-09-16 Thread James Reeves
On 16 September 2014 10:13, Herwig Hochleitner wrote: > > The thing I do on startup: (doseq [l (.getConnectors > jetty)] (.getLocalPort l)), is my solution to wait until it's come fully up. > Why would this work? As far as I'm aware, both .getConnectors and .getLocalPort are unblocking. - James

Static File Best Practices on Nginx-Clojure

2014-09-16 Thread Xfeep
1. Enable gzip on Text Files 2. Turn on Sendfile 3. Dynamically Combined files 4. Track Static Html Files by Google Analytics 5. Limit Download Speed Details can be found from this article http://java.dzone.com/articles/static-file-best-practices

Re: Office Hour Requests

2014-09-16 Thread Timothy Washington
Hi Bridget, and thanks for responding. Yes, I remember the discussions. I figured I would try an individual connection. And if those continue to get popular, a separate channel or ongoing resource could be set up to service that. So yeah, I hope someone's interested and available in the topics I'v

Re: [ANN] om-bootstrap 0.2.6 released

2014-09-16 Thread Lucas Bradstreet
Bootstrap doesn't have tables with functionality like that and is used on a *lot* of sites, so it's hardly of little use. If you need a sortable table, you could write an om wrapper around https://github.com/glittershark/reactable I may give this a try soon myself. Lucas > On 16 Sep 2014, at

Re: [ANN] om-bootstrap 0.2.6 released

2014-09-16 Thread Sam Ritchie
I fully agree that with more features, the library would be useful to a larger range of folks :) Pull requests welcome, as always. I'm developing each component as needed as I convert paddleguru.com over to Om. The input components and basic tables, panels, buttons and navbars came first; the

Re: [ANN] om-bootstrap 0.2.6 released

2014-09-16 Thread Daniel
Good work. Although I hate to say it, It's of little use for most projects without more out-of-the-box table options eg searchable, sortable, paginated, never-ending. On Wednesday, August 27, 2014 2:05:27 PM UTC-5, Sam Ritchie wrote: > > This release adds a bunch of new active components - not

[ANN] assets - easy and sane way to get ClojureScript app running

2014-09-16 Thread Eldar Gabdullin
Hi, I recently finished hacking on a small project, that helps to build entire web application (with css, images, etc, not just .cljs files), and think it might be useful for others. The suggested workflow is following: 1) Define assets component(s) com/example/app/assets.edn {:dependencies [

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: jetty restart failing

2014-09-16 Thread Herwig Hochleitner
2014-09-16 8:36 GMT+02:00 Wilker : > Thank you very much Herwig! The (.join jetty) did the trick :D > Cool! The thing I do on startup: (doseq [l (.getConnectors jetty)] (.getLocalPort l)), is my solution to wait until it's come fully up. -- You received this message because you are subscribed

Re: using Component for replacing dependencies in tests

2014-09-16 Thread Anvar Karimson
Ok, excellent! So then, when constructing the system-map for prod it would look something like this: (defn new-system [config-options] (let [{:keys [store-create-fn]} config-options] (component/system-map :store (new-store store-create-fn) ... ))) (new-system {:stor

Re: Why You Should NOT Implement Layered Architecture

2014-09-16 Thread Softaddicts
I did not imply that OO was absolutely bad. It's what people are doing with it. It's been a plague for the last 10 years. The rope is long and thick, more than enough to hang yourself in several reincarnations. As far as using OO to represent the real world, it's a mistake. Things are not as strai

Re: using Component for replacing dependencies in tests

2014-09-16 Thread Michael Klishin
On 16 September 2014 at 12:13:13, Anvar Karimson (an...@karimson.com) wrote: > Option 1, separate lifecycle from the actual store: I've seen this approach in use, it works well.  -- @michaelklishin, github.com/michaelklishin -- You received this message because you are subscribed to the Google

using Component for replacing dependencies in tests

2014-09-16 Thread Anvar Karimson
Hi, I am trying to wrap my head around how to best use the Component library for structuring my app. Let's say I have a simple Store protocol: (defprotocol Store (get [store k]) (put [store k v])) The production Store protocol implementation would, as an example, be backed by Riak but in

Re: Why You Should NOT Implement Layered Architecture

2014-09-16 Thread Kalina Todorova
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 consideration in your organization. I don't support that OO is bad. It is just complicate to constrain yourself from making i

BOB 2015 - 2nd Call for Contributions (Deadline Sep 30)

2014-09-16 Thread Michael Sperber
Submissions on/using/reporting on Clojure welcome! BOB Conference 2015 Berlin 23.1.2015 http://bobkonf.de/2015/ CALL FOR CONTRIBUTIONS English: http://b

Re: ANN: Potemkin 0.3.0

2014-09-16 Thread Dave Sann
to answer my own question. It does not play well. I created a couple of simple macros that mimics the import-vars behaviour for fns and vars in clojurescript. On Sunday, 14 September 2014 17:53:47 UTC+10, Dave Sann wrote: > > Does Potemkin work well with clojurescript? > > I have seen some disc