Re: core.async count in a channel

2014-01-18 Thread Paul Viola
@Meikel, I like your solution. Its key advantage is that you have enable arbitrary functionality in the "monitoring" of a channel. Since I am new to Clojure, and I bet others are too, I was subconsciously thinking about creating a new kind of channel (monitored channel). This solution does s

Re: liberator video, compression question

2014-01-18 Thread Leonardo Borges
beat me to it. But yes, that's also what I got from the talk. Leonardo Borges www.leonardoborges.com On Sun, Jan 19, 2014 at 12:40 PM, Brian Craft wrote: > http://www.youtube.com/watch?v=OEZZOz6__CY > > At about 30 min he mentions that gzip, etc. aren't so interesting here > because we can us

Re: liberator video, compression question

2014-01-18 Thread Benjamin R. Haskell
On Sat, 18 Jan 2014, Brian Craft wrote: http://www.youtube.com/watch?v=OEZZOz6__CY At about 30 min he mentions that gzip, etc. aren't so interesting here because we can use, um.. something transfer, proxies... don't know what he's saying. Anyone know what he's talking about? Slide for conte

liberator video, compression question

2014-01-18 Thread Brian Craft
http://www.youtube.com/watch?v=OEZZOz6__CY At about 30 min he mentions that gzip, etc. aren't so interesting here because we can use, um.. something transfer, proxies... don't know what he's saying. Anyone know what he's talking about? -- -- You received this message because you are subscribe

Re: concat/forth in ->, ->>

2014-01-18 Thread Nicola Mometto
I don't know if that's what you're asking for, but there's https://github.com/brandonbloom/factjor t x writes: > Hi, > > Despite the title and content of this email, this is a serious, non > joking (i.e. brainfuck) question. > > After studying > https://github.com/rplevy/swiss-arrows/blob/maste

concat/forth in ->, ->>

2014-01-18 Thread t x
Hi, Despite the title and content of this email, this is a serious, non joking (i.e. brainfuck) question. After studying https://github.com/rplevy/swiss-arrows/blob/master/src/swiss/arrows.clj for a bit, it hit me: -> and ->> are special cases of forth machines, where there is a stack, which a

Re: clojure key destructuring motivation

2014-01-18 Thread Alex Miller
On Saturday, January 18, 2014 2:19:08 PM UTC-6, Stefan Kanev wrote: > > On 18/01/14, Alex Miller wrote: > > I have some sympathy for this view of things as it was a question I had > > while learning Clojure as well. > > > > The general justification for the current behavior is that the thing

Re: clojure key destructuring motivation

2014-01-18 Thread Matching Socks
Map keys need to be unique. Therefore, it's tidy for the symbol to be the key to the destructuring map. On Saturday, January 18, 2014 2:57:09 PM UTC-5, Alex Miller wrote: > > I have some sympathy for this view of things as it was a question I had > while learning Clojure as well. > > The gener

Re: oob schemas, re: The Language of the System

2014-01-18 Thread Brian Craft
Ok, so consider a different system (besides google) that handles the JSON example. If it has no prior knowledge of the date field, of what use is it to know that it's a date? What is a situation where a system reading the JSON needs to know a field is a date, but has no idea what the field is fo

Re: RESTful API Auth with Friend and Liberator

2014-01-18 Thread Sam Ritchie
The code for that tutorial is all here: https://github.com/paddleguru/liberator-friend PaddleGuru.com isn't open source, so I can't share any of the dashboards, unfortunately. Maybe some examples down the road. Bastien January 18, 2014 9:39 AM Hi Sam, Can w

Re: oob schemas, re: The Language of the System

2014-01-18 Thread Jonas
IIRC in that particular part of the talk he was specifically talking about (non-self describing) protocol buffers and not JSON. On Saturday, January 18, 2014 10:00:09 PM UTC+2, Brian Craft wrote: > > Regarding Rich's talk (http://www.youtube.com/watch?v=ROor6_NGIWU), can > anyone explain the p

Re: Factual is hiring Clojure engineers

2014-01-18 Thread Zach Tellman
We will consider candidates from outside the US if they're willing to relocate here. I'm happy to talk in more detail if you like, just email me at the above address. On Sat, Jan 18, 2014 at 3:31 AM, Petr wrote: > Do you consider non US candidates? > Wihout extensive data analysis experience?

[ANN] Clojure/West registration now open, 1 week left for CFP!

2014-01-18 Thread Alex Miller
Clojure/West registration opened yesterday: https://www.eventbrite.com/e/clojurewest-2014-tickets-10153269703 Unfortunately the early bird tickets have already sold out before I was able to post this, but regular registration tickets are $415. If you are interested i

Re: Functional purity and "globals" in Clojure

2014-01-18 Thread Honza Pokorny
> we do this using Graph Could you show a simple example of this? I think this might be a good topic for a blog post. On Thursday, September 12, 2013 6:35:20 AM UTC+2, Jason Wolfe wrote: > > At Prismatic, we do this using Graph: > > https://github.com/Prismatic/plumbing > > I really try to avoi

Re: clojure key destructuring motivation

2014-01-18 Thread Stefan Kanev
On 18/01/14, Alex Miller wrote: > I have some sympathy for this view of things as it was a question I had > while learning Clojure as well. > > The general justification for the current behavior is that the thing being > bound is always on the left and the expression defining it is always on the

Re: Servlet adapter for ring handlers with support for asynchronous processing

2014-01-18 Thread Jan Herich
Hello Shantanu, Thank you for this hint, i will definitely look at your lein-servlet project. In the meantime, i'm taking inspiration from prototype of pedestal core.async based interceptor chain, looks

oob schemas, re: The Language of the System

2014-01-18 Thread Brian Craft
Regarding Rich's talk (http://www.youtube.com/watch?v=ROor6_NGIWU), can anyone explain the points he's trying to make about self-describing and extensible data formats, with the JSON and google examples? He argues that google couldn't exist if the web depended on out-of-band schemas. He gives a

Re: clojure key destructuring motivation

2014-01-18 Thread Alex Miller
I have some sympathy for this view of things as it was a question I had while learning Clojure as well. The general justification for the current behavior is that the thing being bound is always on the left and the expression defining it is always on the right. On Saturday, January 18, 2014 3

Re: Servlet adapter for ring handlers with support for asynchronous processing

2014-01-18 Thread Shantanu Kumar
Hi Jan, This not directly related, but i thought it might be useful in some way. In case you do the java interop stuff on your own to implement the servlet 3.0 methods, you might want to use lein-servlet to run the servlet using Jetty 9 maybe. https://github.com/kumarshantanu/lein-servlet Sha

Re: ClojureScript integration with Emacs/Cider ?

2014-01-18 Thread Gary Trakhman
Bozhidar, I had to slightly modify cider-interaction.el to make autocomplete work for cljs. --- cider-interaction.el2014-01-18 13:51:28.082131609 -0500 +++ /home/gary/.emacs.d/elpa/cider-0.4.0/cider-interaction.el 2014-01-17 19:06:45.872591834 -0500 @@ -469,12 +469,12 @@ (let ((strlst

[ANN] - modern-cljs integrates a port on emacs of lt-cljs-tutorial By David Nolen

2014-01-18 Thread Mimmo Cosenza
Hi all, the `modern-cljs` series https://github.com/magomimmo/modern-cljs now includes a port for Emacs users https://github.com/magomimmo/modern-cljs/tree/master/cljs-tutorial of the recent lt-cljs-tutorial - A ClojureScript Programming Language Tutorial for Light Table Users by David Nole

Re: RESTful API Auth with Friend and Liberator

2014-01-18 Thread Bastien
Hi Sam, Sam Ritchie writes: > FWIW We currently use ClojureScript with template sharing between > Enfocus on the client and Enlive on the server. For a new payments > dashboard I'm going to try out Om. Can we see the code, by any chance? It would be great -- tutorials are fun to read, but real

Re: RESTful API Auth with Friend and Liberator

2014-01-18 Thread Sam Ritchie
Hey, These are the choices and libraries that drove me toward Liberator. Liberator should help with the API definitions, and (with a little trust and understanding) Friend shouldn't get in your way with auth. FWIW We currently use ClojureScript with template sharing between Enfocus on the cl

Re: Managing role-based permissions in Ring apps

2014-01-18 Thread Stefan Kamphausen
On Friday, January 17, 2014 8:29:21 PM UTC+1, Sam Ritchie wrote: > > Okay, here's my post: > http://sritchie.github.io/2014/01/17/api-authentication-with-liberator-and-friend/ > Gee, that's way more complicated than I expected. Thanks for sharing anyway! stefan -- -- You received this me

Re: Factual is hiring Clojure engineers

2014-01-18 Thread Petr
Do you consider non US candidates? Wihout extensive data analysis experience? On Saturday, January 18, 2014 7:34:38 AM UTC+7, Zach Tellman wrote: > > It's been six months since I last announced this, so: Factual is > perpetually hiring smart, driven engineers to solve deep problems in data > an

Servlet adapter for ring handlers with support for asynchronous processing

2014-01-18 Thread Jan Herich
Hi Folks, Is someone aware of servlet adapter (other then pedestal-service) for ring based handlers with support for asynchronous processing as specified in Servlet 3.0+ api ? Given that ring core was already refactored to support such solutions (middleware had been split into wrapping and re

clojure key destructuring motivation

2014-01-18 Thread t x
With apologies for 3 questions in 1 day: (def a {:foo {:cat 20 :dog 30} :bar "hi"}) (let [{{cat :cat dog :dog} :foo bar :bar} a] [cat dog bar]) (leth [{:foo {:cat cat :dog dog} :bar bar} a] [cat dog bar]) I don't understand t

Re: idiomatic extension to -> / --> ?

2014-01-18 Thread t x
I hope -<> and <> becomes part of clojure core. Q: How did you solve XYZ? A: I used the Diamond Wand. On Sat, Jan 18, 2014 at 1:36 AM, Alex Baranosky < alexander.barano...@gmail.com> wrote: > I think if you have to choose one that is idiomatic, you'd have to say it > is as->, due to its inclusi

Re: idiomatic extension to -> / --> ?

2014-01-18 Thread Alex Baranosky
I think if you have to choose one that is idiomatic, you'd have to say it is as->, due to its inclusion in clojure.core. I should start using that pattern... On Sat, Jan 18, 2014 at 12:47 AM, Jozef Wagner wrote: > There is a Syntax threading library at > https://github.com/LonoCloud/synthread .

Re: idiomatic extension to -> / --> ?

2014-01-18 Thread Jozef Wagner
There is a Syntax threading library at https://github.com/LonoCloud/synthread . See it in action at http://www.infoq.com/presentations/Macros-Monads On Sat, Jan 18, 2014 at 9:18 AM, Jordan Berg wrote: > You can also use as-> in 1.5+ > > (-> 2 > (+ 2) > (as-> x (* 1 x 3))) > > I like this

Re: idiomatic extension to -> / --> ?

2014-01-18 Thread Jordan Berg
You can also use as-> in 1.5+ (-> 2 (+ 2) (as-> x (* 1 x 3))) I like this a bit more than the (#()) approach, personally On Sat, Jan 18, 2014 at 12:07 AM, Alex Baranosky wrote: > What I think is the interesting part of the question is the inclusion of the > word "idiomatic". I'm not sur

Re: idiomatic extension to -> / --> ?

2014-01-18 Thread Alex Baranosky
What I think is the interesting part of the question is the inclusion of the word "idiomatic". I'm not sure swiss-arrows is idiomatic... that said I don't know what would be considered idiomatic here.a One solution I know of for examples like this is: (-> 2 (+ 2) (#(* 1 % 3))) I'm not