Re: Clojure in Salt Lake City

2013-09-22 Thread Ben Mabey
On Sun Sep 22 21:24:24 2013, Jason Kapp wrote: Is there anyone out there that is using Clojure(Script) in Salt Lake City that would like to meetup? Hi Jason, I'm currently based in SLC and have been using clojure since 2010 (at work that is). We've had a couple of false starts of doing a Clo

Re: much lower recursion depth with memoization

2013-09-22 Thread Mark Engelberg
On Sun, Sep 22, 2013 at 8:54 PM, Mark Engelberg wrote: > When you're doing memoization and you have a lot of "holes" in the inputs, > one option is to have two phases to your function. The first phase takes > the initial input and then computes a collection of all the inputs that are > dependenci

ANN: lein-midje-doc 0.0.9 released

2013-09-22 Thread zcaudate
Hi Everyone. I've just pushed a new documentation library for midje tests to clojars. Its very experimental and a bit of a hack but I'm finding it super useful. Hope to get some feedback on this library. Github Page - https://github.com/zcaudate/lein-midje-doc Generated Documentation - http://

Re: Reading single characters...?

2013-09-22 Thread John Jacobsen
The JLine story is indeed confusing. I believe https://github.com/jline/jline2 is the current one you want ([jline "2.11"] in your project.clj deps). See the forthcoming Clojure Cookbook recipe

Re: much lower recursion depth with memoization

2013-09-22 Thread Mark Engelberg
James: It's extremely difficult to overflow the stack in Racket, because the stack isn't arbitrarily limited to some small value -- it does some tricks so that the stack is only limited by your total available memory. For me, having to worry about stack overflows is definitely one of the biggest

Re: Lifecycle Composition

2013-09-22 Thread Jonah Benton
Hi Murtaza, The short answer is that it's not necessarily that there are pros or cons between having components know about each other in their "constructed" vs "started" forms- it's that immutability imposes limitations in the way that components can maintain local references to other components

Clojure in Salt Lake City

2013-09-22 Thread Jason Kapp
Is there anyone out there that is using Clojure(Script) in Salt Lake City that would like to meetup? -- -- 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 ar

Re: much lower recursion depth with memoization

2013-09-22 Thread Armando Blancas
With memoize there are additional calls (the new function and apply) per recursion, so I guess that will produce the stack overflow to happen sooner. You can use memoization once you remove the stack issue with iteration: (defn gauss-iter [n] (letfn [(f [n acc] (if (< n 1)

Re: GSoC Report: CinC, port of the clojure compiler in clojure

2013-09-22 Thread Ambrose Bonnaire-Sergeant
Excellent work! To hear CinC is a long term project is music to my ears! Ambrose On Mon, Sep 23, 2013 at 4:59 AM, Nicola Mometto wrote: > > For the past 3 months I've been working as part of my GSoC project, > on a port of the clojure compiler and analyzer to clojure. > > Tomorrow the GSoC wil

Re: much lower recursion depth with memoization

2013-09-22 Thread James Reeves
On 23 September 2013 00:28, John Lawrence Aspden wrote: > Nice, but it won't work for me, since I'm trying to avoid computing all > the values in the table, and so I can't use the pump-priming approach. I > don't know what values I'm going to need primed! > I'm sure there are ways round it, but I

Re: much lower recursion depth with memoization

2013-09-22 Thread John Lawrence Aspden
Ah, it turns out that adding this :jvm-opts ["-Xss50M"] to project.clj gets me about 25000 memoized self-calls, so that will do. Last time I had to worry about stack size I was programming an 8051 . I'd forgotten! Cheers, John. -- -- You received this message because you are subscribed

Re: much lower recursion depth with memoization

2013-09-22 Thread John Lawrence Aspden
Nice, but it won't work for me, since I'm trying to avoid computing all the values in the table, and so I can't use the pump-priming approach. I don't know what values I'm going to need primed! I'm sure there are ways round it, but I think they're all complicated and ugly. I think I'll transla

GSoC Report: CinC, port of the clojure compiler in clojure

2013-09-22 Thread Nicola Mometto
For the past 3 months I've been working as part of my GSoC project, on a port of the clojure compiler and analyzer to clojure. Tomorrow the GSoC will end, so this is a report of what I've accomplished with this project thus far; note that I'm not going to stop working on CinC now that the GSoC is

Re: much lower recursion depth with memoization

2013-09-22 Thread Mark Engelberg
Check out my blog article from last year and search for the spot where I describe the "priming the pump" trick: http://programming-puzzler.blogspot.com/2012/11/coin-change-kata-in-racket-and-clojure.html If the simplest way to write the solution to your problem is to use a top-down form of memoiza

much lower recursion depth with memoization

2013-09-22 Thread John Lawrence Aspden
Hi Guys, I'm trying to memoize a fairly complicated double recursion, and it's blowing stack after not terribly many calls. I've reduced the problem to a simple test case, summing from 1 to n : user=> (clojure-version) "1.5.1" user=> (def gauss-recurse (fn [n] (if (< n 1) 0 (+ n (gauss-recurs

Re: Reading single characters...?

2013-09-22 Thread juan.facorro
According to the JLine 's source code (v1.0) in UnixTerminal.java, echo is disabled with the command *stty -echo* which disables all echoing in the console (just tried it i

Re: OSGi manifest creation for Clojure projects

2013-09-22 Thread Karsten Schmidt
archive.org to the rescue: http://web.archive.org/web/20130430195826/http://paudo.posterous.com/clojure-osgi http://web.archive.org/web/20130430195755/http://paudo.posterous.com/clojure-and-osgi-sitting-in-a-tree Hth! -- -- You received this message because you are subscribed to the Google Gro