Re: Presentation about Clojure

2014-08-22 Thread Mars0i
(Caveat: I have never seen *any* Clojure presentations, even on Youtube.) (1) Others may disagree, but ... although I love Lisps, think that purely functional programming is cool, and have come to see that there are situations in which FP is *great*, I am not someone who thinks that FP is alwa

Re: Is there any Clojure magic for "registering" new implementations of something?

2014-08-22 Thread Nahuel Greco
why not multimethods? Saludos, Nahuel Greco. On Fri, Aug 22, 2014 at 1:30 PM, Laurens Van Houtven <_...@lvh.cc> wrote: > Hi Clojurers, > > > I'm writing a capability system with Clojure. Make a request to a URL, it > grabs the "plan" for what it should do from the database. A plan consists > (e

Lazy-seq that autocloses

2014-08-22 Thread JPatrick Davenport
Hello, I'm trying to create a wrapper around a JSON Rest service. I can query the service. It responds with a JSON message with the following form {"cursor" : "some id", "remaining": true, "data" : [list of documents]}. If the remaining flag is true, another API call to the cursor resource is ma

Is there any Clojure magic for "registering" new implementations of something?

2014-08-22 Thread Laurens Van Houtven
Hi Clojurers, I'm writing a capability system with Clojure. Make a request to a URL, it grabs the "plan" for what it should do from the database. A plan consists (eventually) of atomic "steps". Typical example of a step would be "make an HTTP request", represented by a map like {:type :http :u

Re: IllegalStateException Attempting to call unbound fn

2014-08-22 Thread gvim
On 22/08/2014 07:54, Serzh Nechyporchuk wrote: You should import LinkedBlockingQueue to your namespace. (ns ... (:import java.util.concurrent.LinkedBlockingQueue)) (recommended way) or (import 'java.util.concurrent.LinkedBlockingQueue) Why do this error is misleading for you?