Component question/advice

2019-09-16 Thread Don Jackson
Hello, I'm writing an app/system that subscribes to a number of feeds, the number and configuration of the feeds is a configurable run-time thing. Seems like I should have a Feed component, which is passed its config when instantiated. But having a named slot in the system for each feed would be

Re: [ANN] Throttler: a library for rate limiting

2014-05-16 Thread Don Jackson
On May 16, 2014, at 11:11 PM, Bruno Vecchi wrote: > As per having a random frequency between an interval, could you clarify a > bit? Do you want the time between requests to be drawn randomly from some > distribution each time? If that's the case, the best way I can think of would > require a

Re: [ANN] Throttler: a library for rate limiting

2014-05-16 Thread Don Jackson
On May 14, 2014, at 9:43 AM, Bruno Vecchi wrote: > Throttler[1] is a little library I wrote out of need for one of my personal > projects. It lets you control the maximum rate of function calls or message > transmissions through core.async channels. This is way cool, thanks for sharing it! A

Re: Potential improvement to select-keys ?

2013-11-03 Thread Don Jackson
On Nov 2, 2013, at 9:27 AM, Mark Engelberg wrote: > I seem to be a relatively lone voice thinking it makes sense to preserve the > type of the map, and honestly, I'm not going to lose any sleep if this patch > is never actually implemented, but here's my two cents on the "optimal" > design fo

Potential improvement to select-keys ?

2013-10-31 Thread Don Jackson
select-keys currently returns a regular hash-map, regardless of the kind of map provided as the input argument. Alternately, select-keys could call empty on it’s map argument to obtain the map it will return, thereby preserving the type of map provided. FYI, Mark Engelberg recently pushed a c

Re: Can a protocol method have the same name as a clojure.core function?

2013-02-07 Thread Don Jackson
gt; deftype that implements a *different* protocol with a function *also* > named "get". > > On Thu, Feb 7, 2013 at 9:24 PM, Don Jackson > wrote: >> >> I'd like to name a protocol method to be the same name as a clojure.core >> function, for example, g

Can a protocol method have the same name as a clojure.core function?

2013-02-07 Thread Don Jackson
I'd like to name a protocol method to be the same name as a clojure.core function, for example, get. Is this possible, and if so, how? user=> (ns ptest.protocol (:refer-clojure :exclude [get])) nil ptest.protocol=> (defprotocol TestProtocol (get [_ ke

Re: Why is there not much conversation on Spreadsheet like APIs in this group?

2013-02-03 Thread Don Jackson
John, Thanks for your email and the links, I'm interested in this topic and wasn't aware of the previous work you referenced. I would't be surprised if the sentiments expressed by Stephen Compall in this thread, specially > my Clojure style seeks immutable solutions, and cells-ishs don't fi

(into [] (take n v)) vs (subvec v 0 n)

2013-01-31 Thread Don Jackson
In the app I am working on, I have a number of pre-computed,cached collections, and for each collection, I have an accessor function that returns either the entire collection or the first n elements. Currently the underlying collection is a vector, so I had something like this: (defn foo-acc

Advice/recommendations for generating templated (non-Clojure) s-expressions?

2012-09-02 Thread Don Jackson
‎ Hello, I want to generate non-Clojure s-expressions in Clojure code, with a nice templating format (like syntax-quote provides), BUT with the option of providing my own methods/functions for resolving/processing symbols, and the ability to provide my own methods/functions for evaluating synta

tools.logging question

2012-02-17 Thread Don Jackson
I would like to conditionally generate log statements based on run-time checks of various application-specific info. I note the following: Logging levels are specified by clojure keywords corresponding to the values used in log4j and commons-logging: :trace, :debug, :info, :warn, :error, :fat

Re: No longer able to write a UUID to Postgres with ClojureQL

2011-12-06 Thread Don Jackson
On Dec 6, 2011, at 11:23 AM, Sean Corfield wrote: > On Tue, Dec 6, 2011 at 6:12 AM, Herwig Hochleitner > wrote: >> 2011/12/6 Sean Corfield : >>> So the question is probably: why is ClojureQL assuming all generated >>> keys are integers? >> It shouldn't, and doesn't now: >> https://github.com/Lau

No longer able to write a UUID to Postgres with ClojureQL

2011-12-05 Thread Don Jackson
For those of you following along at home, my spate of bad luck continues…. A week or so ago, I was happily writing and reading UUIDs into Postgres with ClojureQL. Then, all of a sudden, it stopped working, and I can't figure out why. Shame on me for not being more careful about documenting when

Re: FYI: problem I had with namespace, defrecord, and import, or "Hyphen characters in namespaces considered harmful"

2011-12-04 Thread Don Jackson
On Dec 2, 2011, at 1:29 PM, Phil Hagelberg wrote: >> I was using defrecord for the first time, to create a type that I wanted to >> throw+ via slingshot to signal errors from a library. > > For what it's worth, the main point of slingshot is removing the > necessity of creating custom classes fo

FYI: problem I had with namespace, defrecord, and import, or "Hyphen characters in namespaces considered harmful"

2011-12-02 Thread Don Jackson
I was using defrecord for the first time, to create a type that I wanted to throw+ via slingshot to signal errors from a library. I'd seen an example of this in another library, and I pretty much just cut and pasted it into my project. I understood that I need to explicitly import the resultin

Re: New to Clojure

2011-06-09 Thread Don Jackson
On Jun 9, 2011, at 11:49 AM, Laurent PETIT wrote: > I've seen people coming from a java background quite happy to start > discovering clojure via the 4clojure website. Hey, I've got an idea: Maybe we could get the 4clojure folks to hook their site up to Twitter to let us know how people solve

Re: Clojure ideas repository / todo list

2011-05-15 Thread Don Jackson
On May 14, 2011, at 2:17 PM, Islon Scherer wrote: > Is there anyplace people post ideas of libraries/frameworks/functions > that would be nice to be implemented in clojure? > Sometimes I want to help the community but I don't know what to do (an > idea), what's already done (yeah, I know one can

Re: Clojure ideas repository / todo list

2011-05-15 Thread Don Jackson
On May 15, 2011, at 1:34 AM, Thorsten Wilms wrote: > * Wrapper around git or darcs for using them as storage backends See: rnewman/clj-git - GitHub for a start on this. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send

Re: [ANN] emacs-nexus (Emacs client for Nexus Maven repository servers)

2011-02-15 Thread Don Jackson
On Feb 14, 2011, at 8:21 PM, Michael Ossareh wrote: > > Along with anything that is listed in :repositories in your project.clj ? +1 -- 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 No

Re: Clojure 1.3: Integrating clj-stacktrace?

2010-08-25 Thread Don Jackson
On Aug 24, 2010, at 9:55 PM, Phil Hagelberg wrote: > > Thoughts? +1. The existing stack traces are pretty horrible. Phil's proposal, or something similar, would be a huge improvement. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to t

ANN: clj-facebook, a Clojure client library for Facebook apps

2010-03-19 Thread Don Jackson
I'd like to announce the initial release of clj-facebook, a Facebook client library in Clojure. The code can be found here: http://github.com/rnewman/clj-facebook We welcome comments and proposed code improvements. Don -- You received this message because you are subscribed to the Google Grou

ANN: clj-facebook, a Clojure client library for Facebook apps

2010-03-19 Thread Don Jackson
I'd like to announce the initial release of clj-facebook, a Facebook client library in Clojure. The code can be found here: http://github.com/rnewman/clj-facebook We welcome comments and proposed code improvements. Don -- You received this message because you are subscribed to the G