Re: Clojure Code Analysis Tools

2008-12-02 Thread [EMAIL PROTECTED]
On Dec 2, 12:54 pm, Peter Wolf <[EMAIL PROTECTED]> wrote: > Since the code doesn't exist yet, I'd have to say no...  Like I said, > I'm just getting started. > > How about I get the basic framework going so that IntelliJ knows about > CLJ files, and say paren

Re: undefined symbols (CL vs. Clojure)

2008-12-02 Thread [EMAIL PROTECTED]
On Dec 2, 2:39 am, Meikel Brandmeyer <[EMAIL PROTECTED]> wrote: > Hi, > > On 2 Dez., 04:47, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > > > So why is the above form not legal in Clojure?  I would think it might > > come in handy to define

Re: Clojure Code Analysis Tools

2008-12-02 Thread [EMAIL PROTECTED]
On Dec 1, 4:11 pm, Peter Wolf <[EMAIL PROTECTED]> wrote: > > Since I plan to introduce Clojure into existing large Java projects, I want > to use a decent IDE.  So I am writing a Clojure plugin for my favorite-- > IntelliJ.  When I'm done I hope to offer a nice

conj-when

2008-12-05 Thread [EMAIL PROTECTED]
don't know it (defmacro conj-when [pred new & coll] `(let [test# ~pred] (if test# (conj [EMAIL PROTECTED] ~new) [EMAIL PROTECTED]))) and an example ... (defn- syncPacket [r] (let [state (r :state)] (conj-when (= state :W

Re: Running out of memory when using filter?

2008-12-06 Thread [EMAIL PROTECTED]
--~~~---~--~~ 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 To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~--~~~~--~~--~--~---

Problem with calling count on large lazy sequence?

2008-12-07 Thread [EMAIL PROTECTED]
subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~--~~~~--~~--~--~---

Thanks for Clojure

2008-12-07 Thread [EMAIL PROTECTED]
his message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~--~~~~--~~--~--~---

Re: Clojure indentation conventions

2008-12-07 Thread [EMAIL PROTECTED]
On Dec 3, 3:06 pm, levand <[EMAIL PROTECTED]> wrote: > I am coming to Clojure from the Java side, and am completely ignorant > about lisp indentation & newline conventions. > > Some things are easy to pick up from posted examples and common > sense...newline + tab af

Re: Clojure indentation conventions

2008-12-07 Thread [EMAIL PROTECTED]
On Dec 3, 3:06 pm, levand <[EMAIL PROTECTED]> wrote: > I am coming to Clojure from the Java side, and am completely ignorant > about lisp indentation & newline conventions. > > Some things are easy to pick up from posted examples and common > sense...newline + tab af

Re: Problem with calling count on large lazy sequence?

2008-12-07 Thread [EMAIL PROTECTED]
On Dec 7, 5:20 am, Meikel Brandmeyer <[EMAIL PROTECTED]> wrote: > Hi, > > Am 07.12.2008 um 09:55 schrieb [EMAIL PROTECTED]: > > > This solution worked for me and you can see my patch at the following > > url. > > >http://paste.lisp.org/display/71744 &

Re: Thanks for Clojure

2008-12-08 Thread [EMAIL PROTECTED]
group, send email to clojure@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~--~~~~--~~--~--~---

Re: Clojure Code Analysis Tools

2008-12-11 Thread [EMAIL PROTECTED]
On Dec 2, 4:52 pm, Peter Wolf <[EMAIL PROTECTED]> wrote: > > I vote that we take Merlyn's code as a base and put it on SourceForge.   > I'll add my Lexer and Parser and work on formatting, parens matching and > coloring.  Erik can add his REPL and completion stuff. &

Re: executing shell command

2008-08-25 Thread [EMAIL PROTECTED]
On Aug 25, 8:38 am, "Michael Reid" <[EMAIL PROTECTED]> wrote: > Hi Parth, > > On 8/25/08, Parth Malwankar <[EMAIL PROTECTED]> wrote: > > > > >  I want to run a shell command through Clojure > >  so I tried the following which doesn't work:

The ant simulation

2008-08-30 Thread [EMAIL PROTECTED]
post to this group, send email to clojure@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~--~~~~--~~--~--~---

New ns function

2008-08-30 Thread [EMAIL PROTECTED]
nsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~--~~~~--~~--~--~---

Re: Bug: self require -> stack overflow

2008-09-09 Thread [EMAIL PROTECTED]
On Sep 9, 8:48 am, "Brett Morgan" <[EMAIL PROTECTED]> wrote: > You seem to be asking for the > compiler to be able to prove that your computation finishes, and if it > doesn't then give you a sane response. No. --~--~-~--~~~---~--~-

Re: Bug: self require -> stack overflow

2008-09-09 Thread [EMAIL PROTECTED]
On Sep 9, 10:51 am, "Brett Morgan" <[EMAIL PROTECTED]> wrote: > Would you kindly educate me in how you believe that Clojure would go > about trapping your error and giving you an error message instead of > running out of stack space, given that you had given it a > non

Re: Bug: self require -> stack overflow

2008-09-09 Thread [EMAIL PROTECTED]
On Sep 9, 11:28 am, "Brett Morgan" <[EMAIL PROTECTED]> wrote: > On Tue, Sep 9, 2008 at 8:20 PM, Mike Hinchey <[EMAIL PROTECTED]> wrote: > > > It doesn't seem *impossible* for require and use to keep a var set of > > namespaces it's loading and c

Re: Bug: self require -> stack overflow

2008-09-09 Thread [EMAIL PROTECTED]
On Sep 9, 11:26 am, "Brett Morgan" <[EMAIL PROTECTED]> wrote: > For C, protection against circular dependencies is on the head of the > programmer, in the form of #ifdef guards. There is #import as a GCC extension (al

Re: Bug: self require -> stack overflow

2008-09-09 Thread [EMAIL PROTECTED]
On Sep 9, 4:26 pm, Rich Hickey <[EMAIL PROTECTED]> wrote: > My point is, having encountered this error (which is not the kind of > thing that is going to lurk around to bite you deep at runtime), was > it not obvious what the problem was? Did Clojure, and the work you > were doi

Re: Bug: self require -> stack overflow

2008-09-10 Thread [EMAIL PROTECTED]
On Sep 10, 4:32 pm, "Stephen C. Gilardi" <[EMAIL PROTECTED]> wrote: > The enclosed patch modifies "load" to detect and prevent loading a   > resource while another load of the same resource is pending in the   > same thread. It works at the "load&quo

why the JVM?

2008-10-05 Thread [EMAIL PROTECTED]
ooglegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~--~~~~--~~--~--~---

Re: Repl over Socket, Threads & Bindings

2008-10-09 Thread [EMAIL PROTECTED]
to clojure@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~--~~~~--~~--~--~---

Repl over Socket, binding and threads

2008-10-09 Thread [EMAIL PROTECTED]
n the expression to inherit the binding values? --~--~-~--~~~---~--~~ 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 To unsubscribe from this group, send

Asking for Permission

2008-10-14 Thread [EMAIL PROTECTED]
nsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~--~~~~--~~--~--~---

Re: packaging App (cross-platform) without scripts, only jar

2008-10-14 Thread [EMAIL PROTECTED]
On Oct 14, 10:04 am, Asbjørn Bjørnstad <[EMAIL PROTECTED]> wrote: > [..snip..] > So it is not possible to put the clj files into the jar so that no > unzipping > is neccessary? I tried, but my java/jar knowledge is basically zero. > -- >  -asbjxrn it is definitely

Re: Asking for Permission

2008-10-15 Thread [EMAIL PROTECTED]
Rich,thanks, After i finish my translating work, I will contact you to see whether it fit on your web. But i hope so :) Best regards Gerry On Oct 16, 6:55 am, Rich Hickey <[EMAIL PROTECTED]> wrote: > On Oct 14, 1:05 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>

Re: offtopic - where are you come from? (poll)

2008-10-17 Thread [EMAIL PROTECTED]
Santiago, Chile. On Oct 17, 6:27 am, "Rastislav Kassak" <[EMAIL PROTECTED]> wrote: > Hello Clojurians, > > I think after 1st year of Clojure life it's good to check how far has > Clojure spread all over the world. > > So wherever are you come from, be

Re: Clojure init & class loader

2008-10-17 Thread [EMAIL PROTECTED]
m not sure I'll get back to it, if it's any use please use what's there. bd On Oct 17, 3:59 am, "Iwan van der Kleijn" <[EMAIL PROTECTED]> wrote: > I am working on a Clojure plugin for jEdit. Currently you can use Clojure > source as jEdit macros and evaluate s

Re: offtopic - where are you come from? (poll)

2008-10-18 Thread [EMAIL PROTECTED]
Hubei,China gerry On Oct 17, 5:27 pm, "Rastislav Kassak" <[EMAIL PROTECTED]> wrote: > Hello Clojurians, > > I think after 1st year of Clojure life it's good to check how far has > Clojure spread all over the world. > > So wherever are you come from, be

Fibonacci function performance compare between clojure and scala

2008-10-19 Thread [EMAIL PROTECTED]
86G,2G mem Clojure and scala both latest build from svn any ideas? --~--~-~--~~~---~--~~ 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 To unsubscribe

Re: Fibonacci function performance compare between clojure and scala

2008-10-19 Thread [EMAIL PROTECTED]
int type? --~--~-~--~~~---~--~~ 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 To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http

Re: Fibonacci function performance compare between clojure and scala

2008-10-19 Thread [EMAIL PROTECTED]
Scala is sure to use java primitive int type underline, i.e value type and boxed to java Integer when necessarily But why not Clojure auto make this ? gerry On Oct 19, 11:31 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Here is coersion version for Cloju

Re: Fibonacci function performance compare between clojure and scala

2008-10-19 Thread [EMAIL PROTECTED]
This lazy cached calculate is wonderful ,but i think the benefit from it mostly due to cache . On Oct 19, 11:56 pm, "Lauri Oherd" <[EMAIL PROTECTED]> wrote: > There is also a faster way to calculate fibonacci numbers in Clojure > (code taken from > fromhtt

Re: offtopic - where are you come from? (poll)

2008-10-19 Thread [EMAIL PROTECTED]
Austin, Texas, USA. On Oct 17, 9:18 am, "Eric Rochester" <[EMAIL PROTECTED]> wrote: > Atlanta, Georgia, US > > On Fri, Oct 17, 2008 at 5:27 AM, Rastislav Kassak <[EMAIL PROTECTED]>wrote: > > > > > Hello Clojurians, > > > I think after

Data types in Clojure

2008-10-22 Thread [EMAIL PROTECTED]
groups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~--~~~~--~~--~--~---

Re: Data types in Clojure

2008-10-22 Thread [EMAIL PROTECTED]
.? Konrad. --~--~-~--~~~---~--~~ 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 To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~--~~~~--~~--~--~---

Re: Data types in Clojure

2008-10-22 Thread [EMAIL PROTECTED]
On Oct 22, 6:45 pm, Chouser <[EMAIL PROTECTED]> wrote: > Don't dismiss clojure/zip to easily.  The functions defined there > largely defer to functions stored in metadata on the object.  This > means a new type of zip tree can be provided by anyone in any > namespace,

classpath problem on MacOSX

2008-10-28 Thread [EMAIL PROTECTED]
~~---~--~~ 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 To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~--~~~~--~~--~--~---

classpath problem on MacOSX

2008-10-28 Thread [EMAIL PROTECTED]
~~---~--~~ 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 To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~--~~~~--~~--~--~---

Re: Numbers API has no abs function

2008-10-29 Thread [EMAIL PROTECTED]
On Oct 29, 2:20 pm, Paul Drummond <[EMAIL PROTECTED]> wrote: > Is there reason why abs is not part of the Numbers interface? I don't know, but... > Would be nice to be able to use: > > (abs -1.0) > 1 > (abs 1.0M) > 1M How about this: (defn abs [x]

Ants and agents

2008-10-29 Thread [EMAIL PROTECTED]
e you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~--~~~~--~~--~--~---

problems with slime and emacs

2008-10-31 Thread [EMAIL PROTECTED]
correct. I'm using emacs 22 on OSX. --~--~-~--~~~---~--~~ 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 To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~--~~~~--~~--~--~---

Concerned about Clojure's license choice.

2008-11-02 Thread [EMAIL PROTECTED]
-compatible.html Chris --~--~-~--~~~---~--~~ 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 To unsubscribe from this group, send email to [EMAIL PROT

Re: Concerned about Clojure's license choice.

2008-11-02 Thread [EMAIL PROTECTED]
I am not advocating Clojure move to the GPL!!! I don't want to fight that battle. However, a slight change to a GPL *compatible* license would be *very* welcome and I think benefit Clojure. Chris On Nov 2, 10:50 am, Phlex <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: &

Re: Concerned about Clojure's license choice.

2008-11-02 Thread [EMAIL PROTECTED]
On Nov 2, 10:52 am, jdz <[EMAIL PROTECTED]> wrote: >  2. I personally dislike GPL Opinions about the GPL are straw men. No one is advocating conversion to GPLjust a GPL compatible license. --~--~-~--~~~---~--~~ You received this message becaus

Re: Concerned about Clojure's license choice.

2008-11-02 Thread [EMAIL PROTECTED]
On Nov 2, 11:06 am, Randall R Schulz <[EMAIL PROTECTED]> wrote: > many projects and businesses, both > commercial and open-source, will categorically not use GPL-licensed > software in their projects. straw man again.They will use a GPL compatible license like MIT and BSD

Re: Concerned about Clojure's license choice.

2008-11-02 Thread [EMAIL PROTECTED]
On Nov 2, 1:16 pm, Matthias Benkard <[EMAIL PROTECTED]> wrote: > > I would hate to seeclojureadopting the GPL. > > Certainly, something compatible with the GPL wouldn't have to be the > GPL itself. Thank you. True! cs --~--~-~--~~~---~

Re: Concerned about Clojure's license choice.

2008-11-02 Thread [EMAIL PROTECTED]
On Nov 2, 3:28 pm, "a r" <[EMAIL PROTECTED]> wrote: > Still, for me a dual CPL/LGPL license would be nicer. This is purely > for practical reasons - Java itself going GPL, reusing (those few) GPL > Java libraries or embeddingClojurecompiler in GPL applications (this &g

Re: Concerned about Clojure's license choice.

2008-11-02 Thread [EMAIL PROTECTED]
On Nov 2, 1:56 pm, ".Bill Smith" <[EMAIL PROTECTED]> wrote: > For an earlier discussion of this same topic, > seehttp://groups.google.com/group/clojure/browse_thread/thread/735aa7f1c... > > Bill I agree that GPL incompatibility isn't a concern for Clojure

Re: Concerned about Clojure's license choice.

2008-11-02 Thread [EMAIL PROTECTED]
On Nov 2, 5:11 pm, Rich Hickey <[EMAIL PROTECTED]> wrote: > I want a reciprocal license. > But I don't want the license to apply to, or dictate anything about, > non-derivative work that is combined with mine, as GPL does. I think > doing so is fundamentally wrong. It i

Re: Concerned about Clojure's license choice.

2008-11-03 Thread [EMAIL PROTECTED]
On Nov 3, 5:35 am, J. Pablo Fernández <[EMAIL PROTECTED]> wrote: > One thing that might be doable and acceptable is dual licensing. If > Clojure is realsed as CPL *and* GPL, it can be combined with GPL > programs and it is not in any way more free than the CPL (say, like if >

Re: Concerned about Clojure's license choice.

2008-11-03 Thread [EMAIL PROTECTED]
On Nov 3, 2:14 am, mritun <[EMAIL PROTECTED]> wrote: > Hi Chris > > What said problem would moving to GPL solve ? Shouldn't we hear > atleast a couple of benefits that may be derived from moving to GPL ? > Are there (GPL) projects that clojure would benefit from inc

Re: Concerned about Clojure's license choice.

2008-11-03 Thread [EMAIL PROTECTED]
On Nov 2, 10:52 pm, "Mark H." <[EMAIL PROTECTED]> wrote: > On Nov 2, 10:31 pm, "[EMAIL PROTECTED]" > > <[EMAIL PROTECTED]> wrote: > > (There are  examples of projects 'weakening' the GPL in  various ways > > to suit their need

Re: Concerned about Clojure's license choice.

2008-11-03 Thread [EMAIL PROTECTED]
On Nov 3, 7:33 am, "Christian Vest Hansen" <[EMAIL PROTECTED]> wrote: > On Mon, Nov 3, 2008 at 2:11 AM, Rich Hickey <[EMAIL PROTECTED]> wrote: > > MIT and BSD are not reciprocal licenses. I want a reciprocal license. > > What does it mean that a license is

Re: Concerned about Clojure's license choice.

2008-11-03 Thread [EMAIL PROTECTED]
On Nov 3, 12:36 pm, Matthias Benkard <[EMAIL PROTECTED]> wrote: > Yes, it's worth worrying about.  The problem is, you're going to have > the danger of fragmenting the Clojure user base. I think Clojure has potential to become *very much* more well known and used. Are w

Re: Concerned about Clojure's license choice.

2008-11-04 Thread [EMAIL PROTECTED]
ak. Chris --~--~-~--~~~---~--~~ 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 To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http

Re: Concerned about Clojure's license choice.

2008-11-05 Thread [EMAIL PROTECTED]
On Nov 4, 4:37 pm, Matthias Benkard <[EMAIL PROTECTED]> wrote: > > The CPL doesn't allow me to choose the GPL.  Instead, it forces me to > apply a CPL-compatible, GPL-like license -- a thing which may or may > not currently exist, but which will certainly make my libr

Re: Concerned about Clojure's license choice.

2008-11-05 Thread [EMAIL PROTECTED]
On Nov 5, 6:55 am, Konrad Hinsen <[EMAIL PROTECTED]> wrote: > I agree. Can anyone cite a single lawsuit concerning an inappropriate   > mix of licenses? Usually these license issues get resolved before court. The fact is that it is illegal to combine CPL and GPL code in cer

Re: Concerned about Clojure's license choice.

2008-11-05 Thread [EMAIL PROTECTED]
On Nov 5, 12:00 pm, Mibu <[EMAIL PROTECTED]> wrote: > Why can't we debate whether a license is needed at all for a > free project? > (Too idealistic? Hey, it's a flame war. Just playing by the rules...) This is sounding awfully trollish of you. I didn't start

sort with custom comparator

2008-11-06 Thread [EMAIL PROTECTED]
(sort my-comp [5 3 1 2]) (5 3 2 1) --~--~-~--~~~---~--~~ 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 To unsubscribe from this group, send email to [E

Re: sort with custom comparator

2008-11-06 Thread [EMAIL PROTECTED]
To answer my own question - AFn.java implements java.util.Comparator. On Nov 6, 10:18 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > The doc of "sort" states that you need to implement > java.util.Comparator in order to use custom sorting. Why then does >

Re: Concerned about Clojure's license choice.

2008-11-06 Thread [EMAIL PROTECTED]
On Nov 5, 5:53 pm, Matthias Benkard <[EMAIL PROTECTED]> wrote: > On Nov 5, 3:33 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> > > Are you sure? You're not modifying the clojure source, so you're not > > creating a derivative work. I would think you can

Re: sort with custom comparator

2008-11-06 Thread [EMAIL PROTECTED]
On Nov 6, 12:43 pm, Rich Hickey <[EMAIL PROTECTED]> wrote: > On Nov 6, 5:23 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> > wrote: > > > To answer my own question - AFn.java implements java.util.Comparator. > > That is documented here: > > http://cl

Current issue of ACM Queue has some good STM articles

2008-11-07 Thread [EMAIL PROTECTED]
. -Darren --~--~-~--~~~---~--~~ 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 To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options,

newby problems running clojure on Mac OS X

2008-11-09 Thread [EMAIL PROTECTED]
ava:3740) ... 9 more --~--~-~--~~~---~--~~ 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 To unsubscribe from this group, send email to [EMAIL PROTECTED

Rev. 1092 problem

2008-11-10 Thread [EMAIL PROTECTED]
group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~--~~~~--~~--~--~---

Re: Rev. 1092 problem

2008-11-10 Thread [EMAIL PROTECTED]
On Nov 10, 9:28 pm, "Stephen C. Gilardi" <[EMAIL PROTECTED]> wrote: > This works: > > svn cohttps://clojure.svn.sourceforge.net/svnroot/clojure/trunkclojure >         (checks out) > cd clojure > ant >         (builds) > java -cp clojure.jar:./gen clojur

Re: newby problems running clojure on Mac OS X

2008-11-10 Thread [EMAIL PROTECTED]
When I rebuilt using 1088 it works correctly. Thank you very much! On Nov 9, 11:43 pm, "Stephen C. Gilardi" <[EMAIL PROTECTED]> wrote: > On Nov 9, 2008, at 9:57 PM, [EMAIL PROTECTED] wrote: > >         svn co -r 1088 > > If you continue to have trouble, ple

Re: Clojure Spec

2008-11-14 Thread [EMAIL PROTECTED]
cified either as function metadata or by themselves, using macro deftest. Benoit --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.co

Overloading a clojure.core name in my namespace

2008-11-14 Thread [EMAIL PROTECTED]
n my namespace. Is this a bug? Thank you, Benoit --~--~-~--~~~---~--~~ 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 To unsubscribe from this gr

Re: Overloading a clojure.core name in my namespace

2008-11-14 Thread [EMAIL PROTECTED]
d email to clojure@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~--~~~~--~~--~--~---

Re: Overloading a clojure.core name in my namespace

2008-11-14 Thread [EMAIL PROTECTED]
e you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~--~~~~--~~--~--~---

Re: Overloading a clojure.core name in my namespace

2008-11-14 Thread [EMAIL PROTECTED]
o this group, send email to clojure@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~--~~~~--~~--~--~---

Re: Overloading a clojure.core name in my namespace

2008-11-14 Thread [EMAIL PROTECTED]
with me, Chouser. --~--~-~--~~~---~--~~ 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 To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options,

Re: offtopic - where are you come from? (poll)

2008-11-17 Thread [EMAIL PROTECTED]
+1 for Baltimore. On Oct 17, 8:12 am, Paul Barry <[EMAIL PROTECTED]> wrote: > Baltimore, Maryland, US > > On Oct 17, 5:27 am, "Rastislav Kassak" <[EMAIL PROTECTED]> wrote: > > > Hello Clojurians, > > > I think after 1st year of Clojure life it&#

Re: multi-method dispatch for structs

2008-11-17 Thread [EMAIL PROTECTED]
On Nov 14, 3:42 pm, Chouser <[EMAIL PROTECTED]> wrote: > On Fri, Nov 14, 2008 at 2:11 PM, Jeff Rose <[EMAIL PROTECTED]> wrote: > > Does my dispatch function have to inspect the passed in values to > > figure out whichtypeof struct they are, or can I query that > >

Re: multi-method dispatch for structs

2008-11-18 Thread [EMAIL PROTECTED]
On Nov 14, 3:42 pm, Chouser <[EMAIL PROTECTED]> wrote: > On Fri, Nov 14, 2008 at 2:11 PM, Jeff Rose <[EMAIL PROTECTED]> wrote: > > Does my dispatch function have to inspect the passed in values to > > figure out which type of struct they are, or can I query that > &

Adapting a functional pretty-printer to Clojure

2008-11-18 Thread [EMAIL PROTECTED]
p"} :three [1 2 3 4 5] :four "still making things up" :five :done}) #'user/things user> (pp things) nil {:three [1 2 3 4 5], :one "another", :five :done, :four "still making things up", :two {:a "map", :map "inside"}} user> user>

Re: Adapting a functional pretty-printer to Clojure

2008-11-18 Thread [EMAIL PROTECTED]
On Nov 18, 12:53 pm, Meikel Brandmeyer <[EMAIL PROTECTED]> wrote: > As always: don't copy code blindly! Take a step back and look from a > distance, how you can *translate* the code. For example, in the > show-list-children function, the recursion is just used for iteration

Re: Adapting a functional pretty-printer to Clojure

2008-11-18 Thread [EMAIL PROTECTED]
On Nov 18, 1:12 pm, Chouser <[EMAIL PROTECTED]> wrote: > On Tue, Nov 18, 2008 at 1:05 PM, [EMAIL PROTECTED] > > <[EMAIL PROTECTED]> wrote: > > > Your implementation needs to get the whole value of pr-str before > > deciding that it is too long to put on a si

Re: Adapting a functional pretty-printer to Clojure

2008-11-18 Thread [EMAIL PROTECTED]
On Nov 18, 1:20 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Thanks for the advice. I think this works for show-list-children: > > (defn insert-line [x y] >   (doc-concat x (doc-concat (doc-line) y))) > > (defn show-list-children [x] >

Eclipse Plugin- any plans for this?

2008-11-21 Thread [EMAIL PROTECTED]
raphic, so, any info would be appreciated. Thanks --~--~-~--~~~---~--~~ 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 To unsubscribe from this group,

Creating temporary namespaces from a function fails; why?

2008-11-21 Thread [EMAIL PROTECTED]
you for your thoughts, Benoit --~--~-~--~~~---~--~~ 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 To unsubscribe from this group, send email to [EMAIL PROTE

Re: Creating temporary namespaces from a function fails; why?

2008-11-21 Thread [EMAIL PROTECTED]
oogle Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~--~~~~--~~--~--~---

Re: Creating temporary namespaces from a function fails; why?

2008-11-21 Thread [EMAIL PROTECTED]
eceived this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~--~~~~--~~--~--~---

Any style/idiom hints for this random sampling function?

2008-11-21 Thread [EMAIL PROTECTED]
eems awfully short but it's a nice function to have, at least for me. Thanks, Steve --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegr

Re: Any style/idiom hints for this random sampling function?

2008-11-21 Thread [EMAIL PROTECTED]
On Nov 21, 9:03 pm, Stuart Sierra <[EMAIL PROTECTED]> wrote: > Hi Steve, > Although the reduce is very Lispy, in this case it might be clearer > with loop/recur: > Thanks for your rewrite. I don't see if-let in the website API documentation. I suppose I should track the

Re: Eclipse Plugin- any plans for this?

2008-11-22 Thread [EMAIL PROTECTED]
from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~--~~~~--~~--~--~---

Re: seq and vector

2008-11-22 Thread [EMAIL PROTECTED]
On Nov 22, 7:31 pm, "Christian Vest Hansen" <[EMAIL PROTECTED]> wrote: > With (vec) I think:http://clojure.org/api#toc508 That's not really efficient as it copies the whole seq. It seems that relative to sequences the other data structures are second class insofar as w

Re: seq and vector

2008-11-22 Thread [EMAIL PROTECTED]
On Nov 22, 9:48 pm, Rich Hickey <[EMAIL PROTECTED]> wrote: > map and filter don't modify anything. What does it mean to filter a > vector? Yes yes, I know that. Still in English its sometimes easier to be sloppy and pretend that I modify something even though I get another vecto

Re: Any style/idiom hints for this random sampling function?

2008-11-22 Thread [EMAIL PROTECTED]
On Nov 21, 10:38 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > One thing that strikes me is that the (if (< num sample-size) ...) > test is unnecessary after sample-size has been > reached. It might be better to write it as two loops for that reason. > I wen

Re: seq and vector

2008-11-23 Thread [EMAIL PROTECTED]
On Nov 23, 1:23 am, Rich Hickey <[EMAIL PROTECTED]> wrote: > I still don't understand your expectation here. If the filter does any > filtering, it won't return everything in the vector, so the new result > will have fewer items. Do you want a vector with fewer items?

[Bug?] Keyword constraints not enforced

2008-11-23 Thread [EMAIL PROTECTED]
is message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~--~~~~--~~--~--~---

Re: seq and vector

2008-11-23 Thread [EMAIL PROTECTED]
On Nov 24, 12:41 am, "Kevin Downey" <[EMAIL PROTECTED]> wrote: > I don't think you understand. clojure data structures are IMMUTABLE. > every call to conj, or anyother function returns a "new" object. To > optimize there is sharing of structure. In the p

Re: seq and vector

2008-11-24 Thread [EMAIL PROTECTED]
On Nov 24, 3:03 pm, Rich Hickey <[EMAIL PROTECTED]> wrote:> > Speculating about inefficiency without a concrete counter-proposal is > not productive. While there could no doubt be some higher-performance > vector constructor/reducers, producing vector-returning versions of >

Re: Adapting a functional pretty-printer to Clojure

2008-11-24 Thread [EMAIL PROTECTED]
Any ideas? --~--~-~--~~~---~--~~ 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 To unsubscribe from this group, send email to [EMAIL PROTECTED] For more

Re: Adapting a functional pretty-printer to Clojure

2008-11-24 Thread [EMAIL PROTECTED]
On Nov 24, 8:17 pm, Chouser <[EMAIL PROTECTED]> wrote: > One option: You could use a seq instead of all the various structs. I took your advice and uploaded the rewrite to the files section in Google Groups, filename is pretty-printer.clj. It doesn't get a stack overflow anymor

Re: Adapting a functional pretty-printer to Clojure

2008-11-24 Thread [EMAIL PROTECTED]
On Nov 25, 12:22 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > This approach might just be too inefficient -- perhaps it would be > best to implement the pretty-printer in an imperative style after all. OTOH it is pretty darn nifty... user> (pp

Re: Adapting a functional pretty-printer to Clojure

2008-11-24 Thread [EMAIL PROTECTED]
On Nov 25, 12:50 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > On Nov 25, 12:22 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> > wrote: > > > This approach might just be too inefficient -- perhaps it would be > > best to implemen

  1   2   >