Re: Running out of memory when using loop/recur and destructuring

2009-11-04 Thread Paul Mooser
I completely understand the difference between the ISeq interface, and the particular implementation (lazy-seq) that results in these problems. It would be fairly straightforward, I think, to write some kind of uncached-lazy-seq which doesn't exhibit these problems, but I've felt that is sidestepp

Re: Running out of memory when using loop/recur and destructuring

2009-11-04 Thread Chouser
On Tue, Nov 3, 2009 at 11:51 PM, Mark Engelberg wrote: > > Clojure's built-in "range" function (last time I looked) essentially > produces an uncached sequence.  And that makes a lot of sense. 'range' has since changed and now produces a chunked lazy seq (master branch post-1.0). > Producing th

Re: Using Clojure with AllegroGraph - meeting SF 11/16

2009-11-04 Thread Mike Hinchey
That's 11/15, Sunday. -Mike On Wed, Nov 4, 2009 at 8:21 AM, Marco Neumann wrote: > > FYI > > As part of the SemWeb Installfest Mike Hinchey (Franz) will present > "Using Clojure with AllegroGraph" on 11/16 at the San Francisco > Semantic Web Meetup. > > > http://www.meetup.com/The-San-Francisco

Re: definline broken?

2009-11-04 Thread Chouser
On Wed, Nov 4, 2009 at 1:10 PM, Brian Hurt wrote: > Or am I just stupid and using definline wrong?  I started experimenting with > definline today, and don't seem to be able to make it work: > > >> $ ./repl >> Clojure 1.1.0-alpha-SNAPSHOT >> user=> (definline foo [ x ] (+ x 1)) >> java.lang.Class

definline broken?

2009-11-04 Thread Brian Hurt
Or am I just stupid and using definline wrong? I started experimenting with definline today, and don't seem to be able to make it work: $ ./repl > Clojure 1.1.0-alpha-SNAPSHOT > user=> (definline foo [ x ] (+ x 1)) > java.lang.ClassCastException: clojure.lang.Symbol cannot be cast to > java.lang

Re: Running out of memory when using loop/recur and destructuring

2009-11-04 Thread Paul Mooser
Well, I care (conceptually) more about the fix being made, rather than the exact timeframe. If we had to wait until clojure-in-clojure, I think I could live with that, since the issue can be readily avoided. We'll see if Rich has a chance to chime-in to acknowledge whether or not he considers this

Re: Continuous Integration Server & Maven/Ivy Repo

2009-11-04 Thread Roman Roelofsen
His second post referred to https://www.assembla.com/spaces/clojure/tickets/208-pom-uses-old-artifactId So until this ticket is closed we need to use clojure-lang instead of clojure. Roman 2009/11/4 Stuart Sierra : > > Dysinger's post implies it should be "clojure" instead of "clojure- > lang",

Re: Continuous Integration Server & Maven/Ivy Repo

2009-11-04 Thread Stuart Sierra
Dysinger's post implies it should be "clojure" instead of "clojure- lang", i.e. http://build.clojure.org/org/clojure/clojure/maven-metadata.xml That URL doesn't work. -SS On Nov 4, 10:50 am, Roman Roelofsen wrote: > It seems that only directory listings are disabled since > > http://build.cloj

Re: Continuous Integration Server & Maven/Ivy Repo

2009-11-04 Thread Roman Roelofsen
It seems that only directory listings are disabled since http://build.clojure.org/org/clojure/clojure-lang/maven-metadata.xml is accessible. Roman 2009/11/4 Stuart Sierra : > > I don't think that URL works as a Maven/Ivy repository, because > http://build.clojure.org/org/clojure doesn't exist.

Re: Language feature request: auto-promote int to long with unchecked-divide

2009-11-04 Thread MarkSwanson
> > but you can certainly send them the result of (quot 1257316459070 1000). Wohoo!!! I just wanted a way to do it! Thanks! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send

Using Clojure with AllegroGraph - meeting SF 11/16

2009-11-04 Thread Marco Neumann
FYI As part of the SemWeb Installfest Mike Hinchey (Franz) will present "Using Clojure with AllegroGraph" on 11/16 at the San Francisco Semantic Web Meetup. http://www.meetup.com/The-San-Francisco-Semantic-Web-Meetup/calendar/11788554/ Enjoy Marco Marco Neumann KONA New York, New York --~--

Re: Is it possible to implement break or return in Lisp?

2009-11-04 Thread Christopher Wilson
On Tue, Nov 3, 2009 at 10:58 PM, rob wrote: > > I'm pretty sure there was an example of this using continuations in > Dybvig's book on Scheme.  I just flipped through it and didn't readily > find it, but I think that is where I saw it. You can do something like this (PLT Scheme): #lang scheme

Re: Continuous Integration Server & Maven/Ivy Repo

2009-11-04 Thread Stuart Sierra
I don't think that URL works as a Maven/Ivy repository, because http://build.clojure.org/org/clojure doesn't exist. -SS On Nov 3, 10:10 pm, dysinger wrote: > Hello, > > Today Phil Hagelberg, Rich Hickey and myself setup a CI server for > clojure & contrib ->http://build.clojure.org(hudson -> git

Re: Language feature request: auto-promote int to long with unchecked-divide

2009-11-04 Thread John Harrop
Aren't functions like unchecked-divide supposed to be used for extra speed in performance-critical areas? If unchecked-divide is a multimethod, that kind of defeats the purpose though doesn't it? --~--~-~--~~~---~--~~ You received this message because you are subscr

Re: Running out of memory when using loop/recur and destructuring

2009-11-04 Thread Christophe Grand
On Tue, Nov 3, 2009 at 7:27 PM, Paul Mooser wrote: > > Ah -- I hadn't understood that when using destructuring, that > subsequent bindings could refer to the destructured elements. I should > have, since clojure "only" has let*, and this behavior seems > consistent with that, for binding. > > Ee

Calling Parent Class' Protected Static Method

2009-11-04 Thread Gilbert
Hi, In an instance method in child class "veeds.wowza.Module", I want to call a protected static method "getLogger" in the parent class "ModuleBase" At first, I tried ( (.getLogger this) ) which compiled but failed at runtime java.lang.IllegalArgumentException: No matching field found

Cambridge (UK) Informal Clojure interest group meetup

2009-11-04 Thread Jim Downing
Hi all, The Cambridge Clojure interest group has turned into an informal, weekly meeting of minds. If anyone here fancies coming along and hasn't been before, next week is as good an opportunity to do so as any! 8pm, Tuesday 10th November. Kingston Arms, Cambridge (CB1 2NU) http://upcoming.yahoo

Re: Periodic tasks

2009-11-04 Thread sross
You could also try cron4j which, while less customisable than quartz, is far simpler to use. It also accepts Runnable's as as tasks which allows for much easier clojure integration. user=> (def sched (it.sauronsoftware.cron4j.Scheduler.)) #'user/sched user=> (.schedule sched "* * * * *" #(printl

Re: Language feature request: auto-promote int to long with unchecked-divide

2009-11-04 Thread Christophe Grand
Hi, On Wed, Nov 4, 2009 at 8:46 AM, MarkSwanson wrote: > I can't send these systems fractions either :-)  (/ 1257316459070 > 1000) = 125731645907/100 but you can certainly send them the result of (quot 1257316459070 1000). Christophe -- Professional: http://cgrand.net/ (fr) On Clojure: http: