Re: New ring middleware: browser-caching

2015-07-28 Thread edbond
Hello Stephen, Couple of comments about code: Instead of not nil? you can use some? since clojure 1.6: user=> (doc some?) - clojure.core/some? ([x]) Returns true if x is not nil, false otherwise. str/split and get by 0 may result in error: user=> (str/split ":" #":") []

Re: Java 8 Lambda Interop

2015-07-28 Thread Colin Fleming
> > Which seems unlikely given the conservatism of Clojure development. More than that, it would mean that Clojure required Java 8. On 28 July 2015 at 05:23, Mikera wrote: > Ah, I get what you are doing now. > > Don't think that is likely to work unless Clojure starts making IFn > instances im

Re: a question about Chris Zheng's "Abstract Container Pattern"

2015-07-28 Thread zcaudate
Hey guys, Thanks for the feedback and your very insightful comments. Yep... this is OO alright =) I realised only after I wrote the article that I was implementing a Lifecycle clone with IRunnable example. However, the concept I am mentioning is much more general than components in terms of it

Re: Advice on introducing a Java dev to Clojure

2015-07-28 Thread Lawrence Krubner
I wrote this for a blog post, but I think it is relevant here. After a long comparison of a bit of code, first in Javascript and then in Clojure, I wrote: At this point, a Javascript developer might say, “You've shown that the Functional style has some advantage, but why should I care? I

Re: [ANN] Clojure 1.8.0-alpha2

2015-07-28 Thread Justin Smith
I use agents instead of atoms when the function altering the value has side effects, or is especially expensive (and thus should not retry). I haven't had to use refs yet, but my use case would be if the mutable data has enough parallel modification that splitting one atomic map into separate r

Re: a question about Chris Zheng's "Abstract Container Pattern"

2015-07-28 Thread James Reeves
What are the benefits of designing an "abstract class" in this way, compared to, say, using a protocol and normal functions? Could you provide a small example? - James On 28 July 2015 at 10:09, zcaudate wrote: > Hey guys, > > Thanks for the feedback and your very insightful comments. > > Yep...

Re: Tool authors: ClojureScript support in tools.namespace?

2015-07-28 Thread W. David Jarvis
Yagni uses dir/scan-all and tracker. Would love to have ClojureScript support. On Saturday, July 25, 2015 at 7:29:24 PM UTC-4, Brian Marick wrote: > > Midje > > Stuart Sierra wrote: > > 1. Do you need/want ClojureScript support? > > Eventually, but not soon. > > > > > 2. What namespa

Re: [ANN] Pink 0.2.0, Score 0.3.0

2015-07-28 Thread W. David Jarvis
This might be a naive question, but for someone who's only tangentially familiar with the space, where does this fit in to the overall Clojure music/sound ecosystem (re: overtone et al)? On Saturday, July 25, 2015 at 1:03:44 PM UTC-4, Steven Yi wrote: > > Thanks Ruslan and best of luck in your m

[JOB] Clojure/Clojurescript Software Engineer - Startup - SF or remote

2015-07-28 Thread Stephen Brady
Hi all, We're looking for Clojure/Clojurescript engineers (details below). Please email me directly at step...@fac.tt if you're interested in learning more. Stephen --- Fact Labs is a San Francisco-based startup that is building a quick and easy way for users to create and discover st

Re: Tool authors: ClojureScript support in tools.namespace?

2015-07-28 Thread Stuart Sierra
Thanks for the responses everyone. So far, my general plan is starting to look like this: c.t.n.*dependency* and c.t.n.*track* are platform agnostic. c.t.n.*file* and c.t.n.*parse* can be extended to support Clojure & ClojureScript by adding an optional argument read-opts passed through to too

Re: ring.middleware.reload and figwheel

2015-07-28 Thread Leon Talbot
+1 Le mercredi 13 mai 2015 09:06:05 UTC-4, Paco Viramontes a écrit : > > Any luck with this? I want to do the same :P > > On Thursday, April 30, 2015 at 3:06:13 AM UTC-7, Dan Kersten wrote: >> >> Hi, >> >> I've got a clojure(script) project where I use figwheel to live-reload >> cljs and this wor

Re: [ANN] Pink 0.2.0, Score 0.3.0

2015-07-28 Thread Justin Smith
Overtone has its own composition logic, but for synthesis it is a client for the open source Supercollider audio synthesis server (which is a cross platform C++ program that can be controlled via the network). Pink and Score are built in Clojure and Java without using an external server. On Tue

Re: ring.middleware.reload and figwheel

2015-07-28 Thread Francis Avila
I've never used ring.middleware.reload, but I do run client figwheel and server in the same jvm. In your project.clj, make figwheel listen on an nrepl port: :figwheel {:nrepl-port 7888 :server-port 3000 ; http :repl false ; Optional: keep this off and bootstrap to cl

Re: [ANN] Pink 0.2.0, Score 0.3.0

2015-07-28 Thread Steven Yi
I'd add a few other notes: * Overtone uses Supercollider 3 (SC3) for its audio processing. Pink relates more to SC3 than to Overtone, as Pink is an audio engine library, but there's some overlap. * You wouldn't likely use Overtone and Pink together. Score however is a generic library and could be

[ANN] clojure.tools.cli 0.3.2 (was: Next release for clojure.tools.cli? Is it dead?

2015-07-28 Thread Sean Corfield
clojure.tools.cli — tools for working with command line arguments https://github.com/clojure/tools.cli I’m pleased to announce that Sung Pae has passed the torch on to me and I have released version 0.3.2 to Maven Central today. Thank you Sung for all your work on tools.cli so far! This releas

Small parsing bug in data.json - advice sought

2015-07-28 Thread Matthew Gilliard
Hello. I'm interested in fixing this bug: http://dev.clojure.org/jira/browse/DJSON-21 data.json/read currently reads from the start of a java.io.Reader and as soon as it has a read and parsed a complete form it returns it. This is good and logical but it leads to input like "123abc" being parsed

Re: a question about Chris Zheng's "Abstract Container Pattern"

2015-07-28 Thread zcaudate
The example in the article is probably the smallest example I can come up with. http://z.caudate.me/the-abstract-container-pattern The code for the concrete implementations speaks for itself I think, it is about 10 lines to hook in jetty and http-kit to the framework. if we think about how muc

Re: [ANN] Pink 0.2.0, Score 0.3.0

2015-07-28 Thread zcaudate
This is so cool =) Can you put up a video? -- 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 members are moderated - please be patient with your first post. To unsu

Re: Java 8 Lambda Interop

2015-07-28 Thread Andrew Oberstar
My use case isn't a particularly great one at that minute. It mainly just seemed like an unfortunate extra step to interacting with Java APIs. Essentially, I was trying to leverage APIs that return a Java Stream, but wanted to interact with them with Clojure goodness, like map/reduce/transduce. I

Re: a question about Chris Zheng's "Abstract Container Pattern"

2015-07-28 Thread James Reeves
On 29 July 2015 at 01:07, zcaudate wrote: > The example in the article is probably the smallest example I can come up > with. > > http://z.caudate.me/the-abstract-container-pattern > > The code for the concrete implementations speaks for itself I think, it is > about 10 lines to hook in jetty and