Re: newbie seq question

2014-04-13 Thread François Rey
On 14/04/14 01:29, Stephen Feyrer wrote: To be honest I am still not confident in what I'm doing but there are still avenues to explore. The REPL is you best friend, keep experimenting, keep reading, and I'm sure it will all make sense at some point. On 13/04/14 08:02, François Rey wrote: The

Re: cljs, websocket, autoreconnect

2014-04-13 Thread Johann Bestowrous
Google Closure implements an auto-reconnecting websocket. You can read docs on it here and see an example of it being imported here

Re: Potential Intro clojure projects - libraries and ideas with wow factor

2014-04-13 Thread Mikera
On Monday, 14 April 2014 05:15:31 UTC+8, utel wrote: > > A handful of developers at the organisation I work at, want to encourage > interest in Clojure with the aim of using it in production amongst the > organisation's wider developer community (hundreds of developers). We > ourselves are Cloju

Re: Puppet Labs and Trapperkeeper

2014-04-13 Thread Walter Heck
As a non-clojure user, but a Puppet expert (ahum ;) ) I wrote a blog post about this announcement that might be interesting for some folks here. I'd also love to see comments on the post itself if I have drawn any wrong conclusions: http://www.olindata.com/blog/2014/04/clojure-outsiders-investig

Re: [Video] Game development in Clojure (with play-clj)

2014-04-13 Thread C K Kashyap
+1 nice video On Mon, Apr 14, 2014 at 3:45 AM, Kris Calabio wrote: > Oh great! I guess I must have missed that :P > > > On Sun, Apr 13, 2014 at 3:13 PM, James Trunk wrote: > >> There's a link to a gist of >> core.cljin the video's >> description.

Annotations on gen-class :state

2014-04-13 Thread Jon Seltzer
There are many Java APIs that expect client APIs to annotate fields but Clojure does not support annotations on fields. Is there any plan to add support? And one tangential question: Is there any consideration of adding gen-class support for multiple fields instead of just one? jbs -- You

Re: cljs, websocket, autoreconnect

2014-04-13 Thread Sean Corfield
Take a look at Sente (core.async over web socket / xhr) - and contribute anything additional you need to that. On Apr 13, 2014, at 6:16 PM, t x wrote: > For building robust cljs web apps, I'd like to have a "uber > websocket" which does the following: > > * when disconnected, it auto reconnec

cljs, websocket, autoreconnect

2014-04-13 Thread t x
Hi, For building robust cljs web apps, I'd like to have a "uber websocket" which does the following: * when disconnected, it auto reconnects * and re-sends any messages that were not received Before I hand-roll my own hacks, I was wondering -- is there any existing cljs library which alr

Re: newbie seq question

2014-04-13 Thread Stephen Feyrer
Hi François, Thank you. I have read through each of the articles you've indicated and will read in full the braveclojure book. I am playing the syntax-quotes and will explore the io/resource package. To be honest I am still not confident in what I'm doing but there are still avenues to explore

Re: [ANN] clj-cursor 0.0.1 - server-side cursor for clojure data structures (inspired by om)

2014-04-13 Thread rlewczuk
Also as I have relatively little experience with Clojure programming, any suggestions about style, non-idiomatic code etc. are also important for me. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@goog

[ANN] clj-cursor 0.0.1 - server-side cursor for clojure data structures (inspired by om)

2014-04-13 Thread rlewczuk
Hi, https://github.com/rlewczuk/clj-cursor This is my attempt at (properly) managing application state. It is based on David Nolen's cursor concept implemented in the om library. Cursor allows storing whole application state in a single structure, yet still be able to swap underlying applicat

Re: [Video] Game development in Clojure (with play-clj)

2014-04-13 Thread Kris Calabio
Oh great! I guess I must have missed that :P On Sun, Apr 13, 2014 at 3:13 PM, James Trunk wrote: > There's a link to a gist of > core.cljin the video's > description. > > Cheers, > James > > > On Monday, April 14, 2014 12:08:16 AM UTC+2, Kris Cala

Re: [Video] Game development in Clojure (with play-clj)

2014-04-13 Thread James Trunk
There's a link to a gist of core.cljin the video's description. Cheers, James On Monday, April 14, 2014 12:08:16 AM UTC+2, Kris Calabio wrote: > > Actually, I thought it would be even more helpful if you had the source > code available (for search

Re: [Video] Game development in Clojure (with play-clj)

2014-04-13 Thread Kris Calabio
Actually, I thought it would be even more helpful if you had the source code available (for searching/skimming). Is that somewhere online? -Kris On Sun, Apr 13, 2014 at 2:47 PM, James Trunk wrote: > Hi Kris, > > Thanks for your comment, and I'm very glad that you found the video > helpful. > >

Potential Intro clojure projects - libraries and ideas with wow factor

2014-04-13 Thread utel
A handful of developers at the organisation I work at, want to encourage interest in Clojure with the aim of using it in production amongst the organisation's wider developer community (hundreds of developers). We ourselves are Clojure hobbyists. We wanted to do this through a basic project (wi

Re: [Video] Game development in Clojure (with play-clj)

2014-04-13 Thread James Trunk
Hi Kris, Thanks for your comment, and I'm very glad that you found the video helpful. I started doing screencasts because I realised that I learn a new concept fastest by watching someone else doing/explaining it - and I figured I might not be the only one. Saying that, I know screencasts aren'

Re: Puppet Labs and Trapperkeeper

2014-04-13 Thread Dave Sann
related http://puppetlabs.com/blog/new-era-application-services-puppet-labs On Monday, 14 April 2014 00:24:28 UTC+10, Brendan Younger wrote: > > I just saw that there's a library called TrapperKeeper > https://github.com/puppetlabs/trapperkeeper from the folks at Puppet > Labs. It looks to be

Re: [ANN] iroh 0.1.9 - class reflection and exploration

2014-04-13 Thread Chris Zheng
It's short because i hate typing... And it's meant to be 'intuitive' so that clojure users would find it relatively straight forward to pick up. The only unintuitive bit would be the .% and .%> for class information and class hierarchy. The thing is, when combined with the threading macro, all t

Re: auto include a certain line in all *.cljs files

2014-04-13 Thread t x
What does https://github.com/technomancy/leiningen/blob/master/sample.project.clj#L209-L211 mean ? In particular, I'm confused about: >> Forms to prepend to every form that is evaluated inside your project. I only want to insert it right into the (ns ...) clause. Thanks! On Sun, Apr 13, 2014

Re: [ANN] iroh 0.1.9 - class reflection and exploration

2014-04-13 Thread Moritz Ulrich
A simple repl-targeted library to introspect classes might prove useful, but is there any reason to use such a short syntax for everything? I'll surely have problems remembering the symbols. On Fri, Apr 11, 2014 at 5:57 AM, zcaudate wrote: > Please use 0.1.10 update. clojure 1.6 does not load clo

Re: auto include a certain line in all *.cljs files

2014-04-13 Thread Kevin Ilchmann Jørgensen
Look at :injections in https://github.com/technomancy/leiningen/blob/master/sample.project.clj. Would that help you? On Sun, Apr 13, 2014 at 7:36 PM, t x wrote: > Hi, > > Can I edit some user.clj/config.clj/project.clj file, so that it's as if: > > (:require-macros [swiss.arrows :refer (-<>

auto include a certain line in all *.cljs files

2014-04-13 Thread t x
Hi, Can I edit some user.clj/config.clj/project.clj file, so that it's as if: (:require-macros [swiss.arrows :refer (-<>)]) is auto included in *every* cljs file ? [I dislike the constant repetition] Thanks! -- You received this message because you are subscribed to the Google Groups "

Re: My experiments with concurrent programming

2014-04-13 Thread Bob Hutchison
Hi Cecil, On Apr 12, 2014, at 3:18 PM, Cecil Westerhof wrote: > > I just started playing with Clojure a few days ago, so I am a tabula rasa. I > attached what I have until now. If it can be improved, I like to know it. I had a look at your code and it's not clear to me what you are trying to

Re: Data Literals: How to handle read "errors"?

2014-04-13 Thread Thomas Heller
Ah, didn't even think about the REPL causing trouble here. Thanks. On Sunday, April 13, 2014 5:30:09 PM UTC+2, squeegee wrote: > > > On Apr 13, 2014, at 8:31 AM, Thomas Heller > > wrote: > > […] confusing error messages. > > user=> (pr-str #time/local-datetime [2014 4 1 0 0 2 999]) > > [

Re: Data Literals: How to handle read "errors"?

2014-04-13 Thread Stephen Gilardi
On Apr 13, 2014, at 8:31 AM, Thomas Heller wrote: > [...] confusing error messages. > > user=> (pr-str #time/local-datetime [2014 4 1 0 0 2 999]) > > [...] > RuntimeException Unmatched delimiter: ) clojure.lang.Util.runtimeException > (Util.java:221) Using default #inst reader gives

[ANN] Cadejo, A MIDI management tool for Overtone

2014-04-13 Thread Steven Jones
Hi everyone, I have just released "Cadejo", a MIDI management tool for Overtone. It forms an infrastructure which defines how MIDI devices communicate with Overtone instruments. The release also includes 4 full-featured instruments. 1) ALGO, an 8-operator FM synth 2) Alias, a subtractive synth wi

Puppet Labs and Trapperkeeper

2014-04-13 Thread Brendan Younger
I just saw that there's a library called TrapperKeeper https://github.com/puppetlabs/trapperkeeper from the folks at Puppet Labs. It looks to be a more opinionated and complete version of Stuart Sierra's Component library https://github.com/stuartsierra/component, in that it explicitly pays a

Data Literals: How to handle read "errors"?

2014-04-13 Thread Thomas Heller
Hey there, I upgraded to JDK8 and wanted to start using the new java.time.* packages. I started by implementing reader functions to get rid of #inst like: #time/local-date [2014 4 13] #time/local-datetime [2014 4 13 14 23] While that works fine and as expected, one thing I ran into is confusing