Re: ANN: ClojureScript 0.0-2496, cljs.test - a clojure.test port

2014-12-17 Thread James MacAulay
Looks great, thanks so much! I was happy to see the "TODO: support async" comment in test.clj, as I am currently using Chas Emerick's clojurescript.test for very async-heavy stuff. I ended up writing a macro which I think improves the ergonomics of portable async testing quite a bit: https://g

Re: Zelkova: Elm-style FRP for Clojure and ClojureScript

2014-12-07 Thread James MacAulay
On Sunday, 7 December 2014 19:41:58 UTC-5, nchurch wrote: > > Did you ever look into Hoplon/Javelin? Haven't heard much about it on > this group recently, and curious why > As it happens, Alan Dipert gave a great remote presentation on Hoplon to my local Clojure user group (Clojure Toronto)

Re: Zelkova: Elm-style FRP for Clojure and ClojureScript

2014-12-07 Thread James MacAulay
On Sunday, 7 December 2014 02:01:33 UTC-5, eric wrote: > > Interesting, I think this here goes along the same lines: > https://github.com/logaan/promise-stream > > Cool, I'll check that out. Hadn't seen that one before. I was also happy to see Rich Hickey talking about the upcoming Promise Cha

Re: Zelkova: Elm-style FRP for Clojure and ClojureScript

2014-12-06 Thread James MacAulay
like programming without 1st class functions, you don't get very far. > > eric > > On Monday, October 20, 2014 11:56:45 AM UTC+11, James MacAulay wrote: >> >> I've just published an FRP library based on Elm[1]: >> >> https://github.com/jamesmacaulay/

Zelkova: Elm-style FRP for Clojure and ClojureScript

2014-10-19 Thread James MacAulay
I've just published an FRP library based on Elm[1]: https://github.com/jamesmacaulay/zelkova Here's what the app code looks like: https://github.com/jamesmacaulay/zelkova/blob/4b06c49678e11e3af7b1eda7a18929a512f7753d/examples/mario/src/mario/core.cljs#L118-L133 Right now Zelkova includes ports

Re: Using core.typed to guide runtime behavior?

2014-04-24 Thread James MacAulay
notations only after check-ns. > > There's a bunch of tools for manipulating types in the checker. > > Thanks, > Ambrose > > > On Thu, Apr 24, 2014 at 11:18 PM, James MacAulay > > > wrote: > >> I'm interested in exploring the use of the types provid

Using core.typed to guide runtime behavior?

2014-04-24 Thread James MacAulay
I'm interested in exploring the use of the types provided by core.typed to guide function behavior at runtime. Specifically, I'd like to wrap existing functions such that the resulting functions behave in different ways depending on the type signatures of each original function. I'm imagining a

Re: ClojureScript browser REPL goes bonkers after it evals

2013-07-07 Thread James MacAulay
I was consistently experiencing this issue, and upgrading to leiningen 2.2.0 fixed it for me. The root issue was in nrepl: http://dev.clojure.org/jira/browse/NREPL-39 It was fixed in nrepl-0.2.3, which got into leiningen-2.2.0 via reply-0.2.0. On Tuesday, 26 February 2013 07:55:01 UTC-5, David

Re: Screencast: Clojure development with Sublime Text 2

2013-05-19 Thread James MacAulay
ly from the User package; copying all the files and leaving them as-is ends up just making duplicates of the commands. On Sunday, 19 May 2013 09:40:10 UTC-4, Jim foo.bar wrote: > > ooo thanks a lot :) > > quick question...how did you tell sublime to use lein2 instead of lein ? >

Re: Screencast: Clojure development with Sublime Text 2

2013-05-19 Thread James MacAulay
Jonathan: thanks, that's great! I'll add a note to the video mentioning that a patch is on the way. Next time I'll submit an issue :) Glen: yup, I just submitted a pull request yesterday (https://github.com/masondesu/sublime-paredit/pull/6) Jim: I only have leiningen 2 installed, so that's what

Screencast: Clojure development with Sublime Text 2

2013-05-18 Thread James MacAulay
This is a little show-and-tell I recorded today: http://www.youtube.com/watch?v=wBl0rYXQdGg Hopefully it's useful for some of you. Feedback welcome! Cheers, James -- -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email

Re: I tripped out

2013-05-05 Thread James MacAulay
Yeah. It seems like the logical extension of this would be to allow (fn args expr) to be equivalent to (fn [& args] expr)...but I'm not sure how useful that would actually be. -- -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group

[ANN] shopify-clj

2013-03-13 Thread James MacAulay
I work at Shopify and this has been my weekend project for a little while now: https://github.com/jamesmacaulay/shopify-clj It's a library for interacting with shops through our API. It includes a Friend workflow and an API wrapper based on clj-http with a custom midd

Re: Like "if", but it composes functions

2013-02-20 Thread James MacAulay
Ben: of course, haha...making it a macro seems rather silly now :P Alan: I didn't know about useful before, thanks for the pointer! fix and to-fix look great. -- -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to c

Like "if", but it composes functions

2013-02-19 Thread James MacAulay
Sometimes I find myself writing code like this: (defn magnify [n] (if (pos? n) (inc n) (dec n))) ...and I want to get rid of all those "n"s. I've looked for a macro like this, but couldn't find it, so I wrote it: https://gist.github.com/jamesmacaulay/4993062 Using that, I could re-write the ab

poker-hands

2013-02-14 Thread James MacAulay
A little library to score poker hands: https://github.com/jamesmacaulay/poker-hands Feedback would be great! -- -- 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 Note that posts from new m

Re: Combining Complement and Not

2012-11-06 Thread James MacAulay
I'd say the simplest answer is just that functions *are* values, they are never logical-false, and (not) is based on logical falseness. Giving (not) a special case for functions would make it less composable by trying to make it do more. -James On Tuesday, 6 November 2012 14:55:53 UTC-5, Char

Re: Clojure web framework

2012-10-01 Thread James MacAulay
Frameworks have benefits which can't easily be achieved with documentation. The most obvious to me is that a framework lets you fire up a complete system of carefully curated components in no time. They also let you defer choices until you actually need to care about them. Because Clojure's lib