Clojure on BEAM

2010-07-11 Thread stewart
Hi All, Has anybody considered implementing Clojure on BEAM. Are there any works or current attempts currently available? In your view where are the real trip ups for this to happen. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this gr

Re: From Java to Clojure

2009-07-10 Thread Benjamin Stewart
I've been playing along at home for awhile now, but this example hit close to home -- I've written variations on this code countless times in perl, and figured I'd take a stab at clojuring it while also taking advantage of clojure.contrib.seq-utils's very useful to the matter at hand group-by. I'

Re: partition-like function

2009-08-05 Thread Benjamin Stewart
See partition-all in seq-utils. user=> (partition-all 2 my-vec) ((:a :b) (:c :d) (:e)) On Wed, Aug 5, 2009 at 6:38 PM, Sean Devlin wrote: > > Hey all, > I'm looking for a variation on partition. > > user=>(def my-vec [:a :b :c :d :e]) > > ;normal behavior > user=>(partition 2 my-vec) > ((:a :b)

Re: partition-like function

2009-08-05 Thread Benjamin Stewart
ike this the other day. On Wed, Aug 5, 2009 at 6:43 PM, Benjamin Stewart wrote: > See partition-all in seq-utils. > > user=> (partition-all 2 my-vec) > ((:a :b) (:c :d) (:e)) > > > On Wed, Aug 5, 2009 at 6:38 PM, Sean Devlin wrote: >> >> Hey all, >> I'm

Re: slackpocalypse?

2017-05-18 Thread Jason Stewart
I'm experiencing the same thing, while I am able to connect with my other slack teams. On Thu, May 18, 2017 at 4:17 PM, Kenny Williams wrote: > I am not able to connect via the web UI or Slack app either. > > > On Thursday, May 18, 2017 at 1:15:17 PM UTC-7, Gregg Reynolds wrote: >> >> is it just

Re: macro help

2015-10-02 Thread Jason Stewart
"Mastering Clojure Macros" by Colin Jones gets my vote as the go to book for writing clojure macros. On Fri, Oct 2, 2015 at 8:24 AM, Colin Yates wrote: > Thanks for your comments - very helpful! > > The reference to destructuring might be irrelevant now. Previously I > noticed that the _map con

Re: How to do functional programming

2015-10-08 Thread Jason Stewart
The way I like to think about FP vs OO is that OO usually couples state with identity and the code that operates on both, while FP defines a clear boundary between data, state, and the functions that operate on the data. Designing a FP program often involves looking at the data first, then thinkin

ANN: ring-token-authentication. A ring middleware to authenticate API requests

2014-02-15 Thread Jason Stewart
I've just pushed the first version of ring-token-authentication, a Ring middleware to authenticate HTTP API requests. Token authentication is a popular way to authenticate API requests over HTTP. A client sends a token in the Authorization header like so: Authorization: Token token=notasecret

Re: How to override the default port on 3000?

2014-02-25 Thread Jason Stewart
The lein-ring plugin accepts a port number as an argument: lein ring server 8080 Note, that in order to bind to port 80, you will need elevated (root) privileges. On Tue, Feb 25, 2014 at 9:21 AM, action wrote: > I do like this: > #lein new compojure-app guestbook > #cd guestbook > #lein ring

clj-pdf: how to serve a pdf with ring

2014-03-23 Thread Jason Stewart
Hi Mathias, It looks like you've misplaced a paren in your code example: (piped-input-stream (fn [output-stream]) (pdf ...) piped-input-stream accepts a single function argument. Also, according to the docs, once the function is finished executing, the output stream is closed. I believ

Hosting Providers

2014-04-18 Thread Jason Stewart
Hi Adrian, The only hosting provider that comes to my mind, thinking of your requirements is heroku. Applying patches is usually as simple as making an empty commit and pushing to heroku. Not every application will fit into the "heroku" way of doing things, but in my experience the ones that do

Re: recur question

2008-10-13 Thread Stewart Griffin
Hello, Following on from what Stuart said, here is a version with recur that uses an accumulator to avoid your problem: (defn factorial ([n] (factorial n 1)) ([n acc] (if (= n 0) acc (recur (dec n) (* acc n) Also, your met

Re: offtopic - where are you come from? (poll)

2008-10-17 Thread Stewart Griffin
Birmingham, UK too :) On 17/10/2008, Barry <[EMAIL PROTECTED]> wrote: > > Birmingham, UK > > > Barry > > > On Oct 17, 10:27 am, "Rastislav Kassak" <[EMAIL PROTECTED]> wrote: > > Hello Clojurians, > > > > I think after 1st year of Clojure life it's good to check how far has > > Clojure spre