reduction to tail recursion

2012-07-21 Thread Mimmo Cosenza
Hi, a very basic question. Any "not tail recursion" code can be reduced to tail recursion code? Thanks Mimmo -- 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 mem

Re: reduction to tail recursion

2012-07-21 Thread mnicky
Discussion about this is in the penultimate paragraph of http://c2.com/cgi/wiki?TailCallOptimization and btw, there's difference between: - tail recursion - function calls itself - tail call - function calls whatever Marek. On Saturday, July 21, 2012 11:15:33 AM UTC+2, Mimmo Cosenza wrote: >

{ :new { :cjone-app "TodoMVC" }}

2012-07-21 Thread Pierre-Henry Perret
The best way to learn is to practice ! So I have choosed to make the *TodoMVC* template (see [0]) application with *ClojureScript One* and *Enfocus*. ( see [1] for running app ) What I could say now, is that CjOne is a little hard to embrace, but when it's done , this is a real pleasure to wor

[ANN] Okku 0.1.0 - Akka interface for Clojure

2012-07-21 Thread Gary Verhaegen
Okku is a thin wrapper around the Akka library that makes it easy to use it from Clojure. The Actor model can be considered a nice alternative for concurrent programming, but it really shines when you want to distribute your application - it really is nearly transparent. As the version number sugg

Re: A clojure encounter

2012-07-21 Thread PublicFarley
On Friday, July 20, 2012 5:58:15 AM UTC-4, Jeff Rose wrote: > Yesterday I was sitting on the tube in London, going home from work. > A guy sat down next to me and started reading Clojure in Action. It > was a good night. > > -Jeff Very cool. Thanks for sharing! -- You received this message bec

Re: ANN: Mongoika, a new Clojure MongoDB library

2012-07-21 Thread PublicFarley
Looks very nicely designed. Thanks for contributing. Have you taken a look at other libraries such as CongoMongo (https://github.com/aboekhoff/congomongo/)? How does Mongoika compare? -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this

Re: [ANN] Okku 0.1.0 - Akka interface for Clojure

2012-07-21 Thread dennis zhuang
Great work.Thanks. 2012/7/20 Gary Verhaegen > Okku is a thin wrapper around the Akka library that makes it easy to > use it from Clojure. The Actor model can be considered a nice > alternative for concurrent programming, but it really shines when you > want to distribute your application - it re

Re: [ANN] Okku 0.1.0 - Akka interface for Clojure

2012-07-21 Thread dennis zhuang
I try to run okku-pi,but it could not find okku 0.1.1-SNAPSHOT: Could not find artifact org.clojure.gaverhae:okku:jar:0.1.1-SNAPSHOT in clojars (https://clojars.org/repo/) Should i use 0.1.0? 2012/7/21 dennis zhuang > Great work.Thanks. > > 2012/7/20 Gary Verhaegen > >> Okku is a thin wrapper

Re: ANN: Mongoika, a new Clojure MongoDB library

2012-07-21 Thread Michael Klishin
PublicFarley: > > Looks very nicely designed. Thanks for contributing. Have you taken a look > at other libraries such as CongoMongo ( > https://github.com/aboekhoff/congomongo/)? How does Mongoika compare? I am also curious if you have seen Monger (http://clojuremongodb.info) before starting M

Re: [ANN] Okku 0.1.0 - Akka interface for Clojure

2012-07-21 Thread Gary Verhaegen
You should checkout the 0.1.0 tag of the tutorial repository. I'll update the readme to clarify that. Thanks for your comment. On Sat, Jul 21, 2012 at 3:41 PM, dennis zhuang wrote: > I try to run okku-pi,but it could not find okku 0.1.1-SNAPSHOT: > > Could not find artifact org.clojure.gaverhae:

Re: ANN: Mongoika, a new Clojure MongoDB library

2012-07-21 Thread Michael Klishin
charlie: > Off topic, who did the artwork for http://clojuremongodb.info/ ? A friend of another clojurewerkz.org founder/contributor. More of his artwork: http://www.flickr.com/photos/zuk13 MK mich...@defprotocol.org signature.asc Description: Message signed with OpenPGP using GPGMail

Re: community interest in machine learning (?)

2012-07-21 Thread cameron
I wrote a clojure wrapper for GEVA ( a gramatical evolutional library, see http://ncra.ucd.ie/Site/GEVA.html) that I can put on github if theres any interest. I'm not as active in this area as I once was but I'm definitely still interested. -- You received this message because you are subscr

Re: community interest in machine learning (?)

2012-07-21 Thread Lee Spector
I'd like to see this, as might others in the evolutionary computing community. I just gave some presentations at GECCO at which I mentioned that my current work is implemented in Clojure, and a couple of people told me that they were interested in working in Clojure too. -Lee On Jul 21, 2012

Re: Looking for an idiom regarding type hints

2012-07-21 Thread ChrisR
Thanks, I didn't realize type hints could be used on superclasses, I guess this will work in general since functions that only differ by type hints probably will inherit from the same thing in just about every case. -- You received this message because you are subscribed to the Google Groups "C

Re: Clojure on Heroku

2012-07-21 Thread Terje Norderhaug
On Jul 26, 2011, at 1:50 AM, Tarantoga wrote: > Does anyone know how to create an autoincrementing ID field for a > table schema on Heroku? In the schema for the table, define an id field like this: [:id :serial "PRIMARY KEY"] > It uses PostgreSQL and a common way for this DB is to create a > s

Re: Looking for an idiom regarding type hints

2012-07-21 Thread Ben Mabey
On 7/21/12 7:33 AM, ChrisR wrote: I am wondering if there is a simpler idiom to deal with functions on primitives that only differ by type hints (see example), this is the current idiom I am using which is starting to appear in my codebase, however I feel like whenever this much replication occu