Re: Source code as metadata

2012-03-31 Thread Nathan Matthews
On 31 Mar 2012, at 00:00, Cedric Greevey wrote: > On Fri, Mar 30, 2012 at 6:17 PM, Lee Spector wrote: >> >> On Mar 30, 2012, at 5:11 PM, Cedric Greevey wrote: >>> >>> That opens a giant can of worms. How, for example, do we discover that >>> (partial * 2) and #(* % 2) and (fn [x] (* 2 x)) and

Re: What's the efficient functional way to computing the average of a sequence of numbers?

2012-03-31 Thread David Powell
As an aside: Fingertrees are an interesting way to keep a collection that can efficiently compute means over its values, or a window of its values. https://gist.github.com/672592 -- Dave -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to t

Re: Better ways to make time tansformations?

2012-03-31 Thread Petr Gladkikh
I'd suggest using java.util.concurrent.TimeUnit for example TimeUnit.MILLISECONDS.toDays(1234543211); or, since we're on Clojure list (.toDays java.util.concurrent.TimeUnit/MILLISECONDS 1234543211) For more complex tasks Joda Time is excellent choice. On Sat, Mar 31, 2012 at 4:51 AM, Goldritter

A simple (and naive) online whiteboard using Aleph & ClojureScript

2012-03-31 Thread Nicolas Buduroi
Hi everyone, I've been experimenting with ClojureScript and Aleph lately and made this sample application. It's a naive implementation of an online whiteboard. It's under a hundred line of code so it's a quick read: https://github.com/budu/board The Clojure web development story is getting better

Re: A simple (and naive) online whiteboard using Aleph & ClojureScript

2012-03-31 Thread 机械唯物主义 : linjunhalida
Maybe you can create an online demo site? On Sun, Apr 1, 2012 at 7:13 AM, Nicolas Buduroi wrote: > Hi everyone, I've been experimenting with ClojureScript and Aleph lately > and made this sample application. It's a naive implementation of an online > whiteboard. It's under a hundred line of code

Re: A simple (and naive) online whiteboard using Aleph & ClojureScript

2012-03-31 Thread Nicolas Buduroi
On Saturday, March 31, 2012 7:35:03 PM UTC-4, jun lin wrote: > > Maybe you can create an online demo site? > Yes good idea, I'll try to get it running on Heroku tomorrow. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send em

Re: Source code as metadata

2012-03-31 Thread Jeff Weiss
I believe the latest code does capture closures properly. I haven't tested all kinds of crazy corner cases, but it does work for all my closures. >From browsing git, it looks like the project.clj version hasn't been incremented in 7 months, and the fix for closures came in after that. If you'

Re: Is it possible to extend a parameterized type using gen-class?

2012-03-31 Thread Jim Blomo
I have this feature implemented in my 1.3.x branch in github. I'll be sending in the contributor agreement Monday and hopefully getting some developer feedback thereafter. The solution was to add a class signature when parameterized generics are used. Signatures are stored along with the bytecod

Re: A simple (and naive) online whiteboard using Aleph & ClojureScript

2012-03-31 Thread zoka
Unfortunately I do not think that Heroku supports Websockets, just HTTP. When your web application is started as Heroku dyno, its webserver (either Aleph or Jetty) starts on a randomly assigned port and then Heroku routing infrastructure presents it to the world as yourapp.herokuapp.com:80. The r