cells questions

2009-07-19 Thread kyle smith
I'm trying to use Stuart Sierra's implementation of cells. I want to sum the values of a large number of cells. Rather than linearly summing all the values, I would like to create a tree of cells whose root contains the sum. I added the function commute-cells: (defn commute-cells [f cells] (

Re: Grails And Clojure

2009-07-19 Thread e
i enjoyed the video very much and forwarded it on to colleagues. It's a terrific idea for people who haven't done ANY of these things before. They haven't done scala, no groovy let alone grails . . . .no jruby . . . .maybe played with ruby lot's of python and certainly haven't ever had much

Re: Grails And Clojure

2009-07-19 Thread Daniel Renfer
On Sun, Jul 19, 2009 at 8:01 PM, Vagif Verdi wrote: > > On Jul 19, 4:19 pm, "Howard M. Lewis Ship" wrote: >> You seem to have a better idea of what's going in in Cascade than I >> do, and I'm the one writing it.  Please be patient. > > I was replying to the author of the thread who said there are

Re: Grails And Clojure

2009-07-19 Thread Vagif Verdi
On Jul 19, 4:19 pm, "Howard M. Lewis Ship" wrote: > You seem to have a better idea of what's going in in Cascade than I > do, and I'm the one writing it.  Please be patient. I was replying to the author of the thread who said there are 2 clojure web frameworks. Cascade could very well become a g

Re: Grails And Clojure

2009-07-19 Thread Howard M. Lewis Ship
On Jul 19, 1:24 pm, Vagif Verdi wrote: > On Jul 19, 9:49 am, Wilson MacGyver wrote: > > > There are already two webframework in clojure being developed.   > > Compojure and cascade. While I'm eagerly waiting to see how these two   > > and others will envole > > Not much to wait there. Compojur

Re: Examining performance on the JVM

2009-07-19 Thread Dimiter "malkia" Stanev
Great question! I've been wondering the same, and I've found great answers here. But here is how I was able to get some of the assembly (in normal JVM, not debug), but for small portions of code - for example this is how I was able to see the point-in-poly algorithm. Basically I put a tight loop

Re: Slime - Clojure Installation

2009-07-19 Thread Dimiter "malkia" Stanev
Here is my script for updating clojure on Mac/Linux - update-clojure.sh or on Windows (uses cygwin git) - update-clojure.bat git clone git://github.com/richhickey/clojure.git cd clojure git pull ant clean ant cd .. git clone git://github.com/richhickey/clojure-contrib.git cd clojure-contrib git

Re: Grails And Clojure

2009-07-19 Thread Wilson MacGyver
I can only speak on compojure. So far I've only done some simple expermental apps using compojure and using enlive for template, clojurql for database. It's more work to make everything tie together than I'm used to. Since I use grails for production work, and have used lift for some inter

Re: Grails And Clojure

2009-07-19 Thread Vagif Verdi
On Jul 19, 9:49 am, Wilson MacGyver wrote: > There are already two webframework in clojure being developed.   > Compojure and cascade. While I'm eagerly waiting to see how these two   > and others will envole Not much to wait there. Compojure is quite stable and feature rich now. It is a low lev

LockingTransaction lock method

2009-07-19 Thread Mark Volkmann
I'm trying to understand the code in the lock method of the LockingTransaction Java class. I understand that the code inside "if (!barge(refinfo))" is run when there is a write conflict on a Ref and the barge method was not able to get the other transaction to retry. So it's going to retry the cur

IEEE Computer Society endorsing Clojure

2009-07-19 Thread verec
http://www2.computer.org/portal/web/computingnow The article: http://www2.computer.org/cms/Computer.org/ComputingNow/homepage/2009/0709/rW_CS_TrailblazingwithRoadrunner.pdf top of page 95, right column. :-) -- JFB --~--~-~--~~~---~--~~ You received this message

Re: Clojure coding standard

2009-07-19 Thread Mark Volkmann
On Sun, Jul 19, 2009 at 8:54 AM, Dragan Djuric wrote: > > Mark, > > I was hoping to some more concrete conventions. Your guidelines are > good, but are too general (applicable, I would say, to any programming > language) I agree. That's why I'm asking for additional suggestions. I added your sugg

Re: Grails And Clojure

2009-07-19 Thread Wilson MacGyver
There are already two webframework in clojure being developed. Compojure and cascade. While I'm eagerly waiting to see how these two and others will envole, there are benefit to this approach as well. It allows Grail developers to experiment with clojure, and leverge the language's strengt

Re: Grails And Clojure

2009-07-19 Thread Vagif Verdi
Before creating clojure Rich Hickey tried several times to marry Common Lisp and java: http://jfli.sourceforge.net/ http://foil.sourceforge.net/ http://lisplets.sourceforge.net/ He spend lots of time and effort to come to realization that something like clojure is nesessary. Maybe it is time to

Re: Grails And Clojure

2009-07-19 Thread Wilson MacGyver
Great info. When I saw this my first reaction was to use clojure as a "blackbox" STM inside a grails app You may want to include what you just posted in the plugin info page, since I imagine clojure will be new to most Grail developers. On Jul 19, 2009, at 9:27 AM, Jeff Brown wrote: > > >

Re: Clojure coding standard

2009-07-19 Thread Dragan Djuric
Yes, Jarkko, that Scheme guide is very useful. Would it be worthwhile to refine it with some clojure-specific things and promote it somewhere where people will see it (to the Clojure web site)? On Jul 19, 3:52 pm, Jarkko Oranen wrote: > Hi. > > I'm not aware of any comprehensive style guide for

Re: Grails And Clojure

2009-07-19 Thread Jeff Brown
On Sun, Jul 19, 2009 at 7:42 AM, Mark Volkmann wrote: > > On Sat, Jul 18, 2009 at 10:58 PM, Jeff Brown > wrote: > > I have released version 0.1 of a plugin which provides support for easily > > accessing Clojure code in a Grails app. There are some docs available > > at http://grails.org/plugin/c

Re: Clojure coding standard

2009-07-19 Thread Dragan Djuric
Mark, I was hoping to some more concrete conventions. Your guidelines are good, but are too general (applicable, I would say, to any programming language) An example for what I meant would be predicate functions whose name by convention should end with ? (odd? even? etc.) An example in Java woul

Re: Clojure coding standard

2009-07-19 Thread Jarkko Oranen
Hi. I'm not aware of any comprehensive style guide for Clojure. However, there is a scheme style guide at http://mumble.net/~campbell/scheme/style.txt which contains plenty of good advice that applies to Clojure as well. In addition to the above advice, I have a personal recommendation regarding

Re: Grails And Clojure

2009-07-19 Thread Mark Volkmann
On Sat, Jul 18, 2009 at 10:58 PM, Jeff Brown wrote: > I have released version 0.1 of a plugin which provides support for easily > accessing Clojure code in a Grails app.  There are some docs available > at http://grails.org/plugin/clojure which describe how to use the plugin. >  Those docs referen

Re: Clojure coding standard

2009-07-19 Thread Mark Volkmann
I documented some coding guidelines at http://java.ociweb.com/mark/clojure/ClojureCodingGuidelines.html. If anyone has ideas for additions/changes they would like to see, I'd gladly add them. On Sun, Jul 19, 2009 at 4:03 AM, Dragan Djuric wrote: > > Hi folks, > > I am still in the process of gett

Re: Bug in VimClojure indentation logic?

2009-07-19 Thread James Reeves
On Jul 19, 7:17 am, Meikel Brandmeyer wrote: > I didn't expect anyone to change the binding of w I tend to rebind keys I use often to more ergonomic positions. I also use the Dvorak keyboard layout, so that also affects where I bind my keys. I admit I'm not exactly a typical user :) > Than

Clojure coding standard

2009-07-19 Thread Dragan Djuric
Hi folks, I am still in the process of getting to know Clojure (which is also my first lisp). Are there any coding standards defined for Clojure? Before someone cuts me off that Lisp is all about freedom and doing it your way and everything, let me explain a bit. I agree that people should have c

Grails And Clojure

2009-07-19 Thread Jeff Brown
I have released version 0.1 of a plugin which provides support for easily accessing Clojure code in a Grails app. There are some docs available at http://grails.org/plugin/clojure which describe how to use the plugin. Those docs reference a brief video at http://s3.amazonaws.com/jeffscreencasts/g

Re: Bug in VimClojure indentation logic?

2009-07-19 Thread Meikel Brandmeyer
Hi James, issue fixed: http://bitbucket.org/kotarak/vimclojure/issue/3/indenting-doesnt-work-correctly-on Sincerely Meikel smime.p7s Description: S/MIME cryptographic signature