Re: [ANN] encors: CORS middleware for Ring apps

2014-11-26 Thread Román González
James, I have second thoughts on including map->CorsPolicy to the internal API... Given that we are returning a Policy per request call, calling a map->CorsPolicy every time we call warp-cors sounds a bit overkill performance wise... Instead of validating development settings once when the namespa

Re: [ANN] encors: CORS middleware for Ring apps

2014-11-26 Thread Román González
Good points... So possible changes: * Replace the get-policy-for-req argument with a just policy-options map This makes it easier to validate options just once. I guess all the validations done on a simple Request -> CorsPolicy function can be done by composing middleware together (e.g. Middlewa

Re: Avoiding reflection in vector-of

2012-02-13 Thread Román González
Bryce which profiler are you using? just curious... On Mon, Feb 13, 2012 at 9:52 AM, Softaddicts wrote: > I did not checked the source code but maybe conj has a vector > specific implementation via protocols. > > Luc P. > > > > For what it's worth, I eventually figured out a solution: use conj >

Running clojure.test.generative specs using lein test

2011-12-26 Thread Román González
Hey guys, Just wondering, is there any way to integrate clojure.test.generative specs with leiningen's "lein test" command? I googled but the documentation of test.generative is pretty scarse. How should I run specs? Thanks in advance. Roman.- -- You received this message because you are subsc

[ANN] clj-stream (Iteratees in Clojure)

2011-12-28 Thread Román González
Hey guys, I've been working on this for a while, experimenting a lot with possible implementations of Iteratees in Clojure, the library is more like a proof of concept (not released yet to clojars). https://github.com/roman/clj-stream If you are interested in Iteratees (or trying to understand h