Re: websockets w/ clojure

2011-03-05 Thread Sean Allen
I'd missed that when it went up. Thanks for pinging the list on this. On Fri, Mar 4, 2011 at 1:49 PM, Jay Fields wrote: > I finally got around to writing this: > http://blog.jayfields.com/2011/02/clojure-web-socket-introduction.html > > Cheers, Jay > > -- Forwarded message -- > Fr

Re: Implementing "ClojureScript" - command-line/sys-admin scripting with Clojure

2011-03-05 Thread patrickdlogan
Well, reviving scsh and writing some clojure-ish macros for a lightweight, fast-starting scheme (e.g. gambit which can compile small utilities, has excellent unix process, file, and networking already) would be a *lot* easier than the effort to get any JVM language up to par for the same goal.

Re: join in clojure

2011-03-05 Thread Joseph Smith
Welcome! --- Joseph Smith j...@uwcreations.com (402)601-5443 On Mar 5, 2011, at 3:52 AM, jaya kala wrote: > hai! how are you I join in clojure > today . > thanking you > > -- > You received this message because you are subscribed to the Google > Groups "Clojure" group. > To post to this grou

ANN: Clojure wrappers for Liquibase and Spring-JDBC

2011-03-05 Thread Shantanu Kumar
Hi, Liquibase[1] is a Java based tool for relational-database migrations and change management. Spring-JDBC is a component of the Spring framework[2] to deal with databases using JDBC. I have put together 0.1 versions of Clj-Liquibase[3] (Clojure DSL/ wrapper for Liquibase) and Fountain-JDBC[4] (

Re: Summer of Code 2011

2011-03-05 Thread Timothy Washington
Fair enough, lol. Thanks :) Tim Washington twash...@gmail.com 416.843.9060 On Sat, Mar 5, 2011 at 2:42 PM, Ken Wesson wrote: > On Sat, Mar 5, 2011 at 2:35 PM, Timothy Washington > wrote: > > Indeed :) > > I've actually been thinking about that. And from what I can tell, LISP > DSLs > > are

Re: Summer of Code 2011

2011-03-05 Thread Ken Wesson
On Sat, Mar 5, 2011 at 2:35 PM, Timothy Washington wrote: > Indeed :) > I've actually been thinking about that. And from what I can tell, LISP DSLs > are simply extensions to the LISP language. But maybe I still haven't gotten > my head wrapped around 'defmacros' and how they implements DSLs. It s

Re: Summer of Code 2011

2011-03-05 Thread Timothy Washington
Indeed :) I've actually been thinking about that. And from what I can tell, LISP DSLs are simply extensions to the LISP language. But maybe I still haven't gotten my head wrapped around '*defmacros*' and how they implements DSLs. It seems to me though, that someone could still want to parse *SQL*

Re: Implementing "ClojureScript" - command-line/sys-admin scripting with Clojure

2011-03-05 Thread Chas Emerick
On Mar 5, 2011, at 12:21 AM, Shantanu Kumar wrote: > On Mar 5, 2:17 am, Shlomi Fish wrote: > >>> On Mar 4, 2011, at 4:29 AM, Shlomi Fish wrote: a Clojure API and a convenient command line utility for performing quick system admin tasks, text manipulation tasks, command line scrip

join in clojure

2011-03-05 Thread jaya kala
hai! how are you I join in clojure today . thanking you -- 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 p

Re: Serialising functions...

2011-03-05 Thread daly
Take the SHA1 hash of the concatenation of the MAC address and the time. The MAC address is vendor specific and serially incremented for each device although it can be reset in software. The time is reasonably random and the SHA1 hash is nearly unique. The odds of these three items generating a h

Re: Problem domains for clojure

2011-03-05 Thread Stuart Sierra
Clojure is an excellent choice when you want to integrate with Java libraries, as the interop is almost seamless. As Mike A. mentioned, writing fast numeric algorithms in pure Clojure is tricky, although the next release (currently 1.3.0-alpha) will make that easier, and you can always drop dow

Re: Serialising functions...

2011-03-05 Thread Ken Wesson
Christopher Brown asked me: > Is there a reason a moderately strong random GUID generator is not enough? But I'm not the OP who wanted unique node-IDs, and the above doesn't seem to need to remain private, and it's also an interesting problem, so I'm going to post my reply to the list: Not if you

Re: Serialising functions...

2011-03-05 Thread Christopher Brown
Sorry for not explaining L2 in my original response. The tuple of is not guaranteed to be unique either, but we're approaching crazy-town with the probabilities. This tuple fails in a way analogous to the L2 MAC addr problem. If your L3 (IP address) network is behind a proxy and is talking to a n

Re: Problem domains for clojure

2011-03-05 Thread Mike Anderson
I'm using Clojure for some reasonably heavy computational code. It's a great fit for the problem domain. Some specific things I really like: - I use Incanter to get quick plots of outputs to test that algorithms are working, very handy for interactive development at the REPL - I can plug in Java

Problem domains for clojure

2011-03-05 Thread finbeu
Hi, are there (problem) domains for which clojure is especially well suited for? As an example, is it a good idea to build a mathematical library with it? I'm planning to do computational extensive stuff with clojure. Looks like that clojure is a good fit as I can leverage on existing java librari

Re: Writing a generic function for getting any value for a key

2011-03-05 Thread Ken Wesson
On Sat, Mar 5, 2011 at 3:37 AM, Alan wrote: > Yeah, thanks for the reminder Ken. It's easy to assume people can just > go look at SO to see the relevant question, but we're curating a sort > of archive here as well so it's good to have a permanent link. Also, after a while the SO thread would be

Re: Macro metas (not meta macros)

2011-03-05 Thread Stuart Sierra
Just because it's metadata doesn't mean it won't get evaluated. Consider the following: (set! *print-meta* true) (defmacro defmeta [name meta value] `(def ~(with-meta name meta) ~value)) (macroexpand '(defmeta foo {:key a} 42)) ;;=> (def ^{:key a} foo 42) (defmeta f

Re: Writing a generic function for getting any value for a key

2011-03-05 Thread Alan
Yeah, thanks for the reminder Ken. It's easy to assume people can just go look at SO to see the relevant question, but we're curating a sort of archive here as well so it's good to have a permanent link. On Mar 4, 7:55 pm, Ken Wesson wrote: > On Fri, Mar 4, 2011 at 10:07 PM, HB wrote: > > Sorry,

Macro metas (not meta macros)

2011-03-05 Thread Alan
Something is going on that I don't understand, in the interplay between metadata, def'ing vars, and macros. I find myself writing a lot of (defn myfn "doc" [x y z] (foo (bar (baz x y z, so I figured I'd write a defcomp macro that I could call like (defcomp myfn "doc" [x y z] foo bar baz), to ma