Newbie: Adding metadata to a method

2008-11-21 Thread samppi
I'm trying to unit-test a mutli-function's methods without resorting to a separate test file. I can do this: (defn foo ([x] (+ x 2)) {:test (fn [] (= (foo 3) 4))}) ...but how do I do something like this? ; Does not work (defmethod foo :mapping ([x] (assoc x :a 5)) {:test (

Re: Use of "/" to call static method in generated classes

2008-11-21 Thread Craig McDaniel
Thanks for the explanation. I just wanted to report it in case it might be a bug. --~--~-~--~~~---~--~~ 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 unsu

Re: mutability

2008-11-21 Thread islon
I added the project in google code (github kept complaining about my public key) http://code.google.com/p/randomrpg/ I reduced the LOC to ~900. I'll try once more to port it to clojure (thanks for the macro Adam), but don't know when i'll be done. Regards. Islon On Nov 21, 4:27 pm, Adam Jones <

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 latest instead of using t

Re: Patch: universal main() with repl/script/compile

2008-11-21 Thread Stuart Sierra
Thanks, Stephen -- good feedback! I fixed [2] and [3]. Not sure about [1], maybe it's a line-ending thing. Anyway, this new patch (attached) was written on OSX, so it had better work! -S On Nov 21, 5:31 pm, "Stephen C. Gilardi" <[EMAIL PROTECTED]> wrote: > On Nov 21, 2008, at 12:34 PM, Stuart

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

2008-11-21 Thread Brian Doyle
Denver, CO Brian Doyle On Wed, Nov 19, 2008 at 4:09 AM, liu chang <[EMAIL PROTECTED]> wrote: > > Singapore +1. > > On Wed, Nov 19, 2008 at 5:24 PM, walterc <[EMAIL PROTECTED]> wrote: > > > > taipei, taiwan > > > > cheers, > > > > walter chang > > > > > > > > > --~--~-~--~~--

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

2008-11-21 Thread Graham Fawcett
On Fri, Nov 21, 2008 at 8:14 PM, Telman Yusupov <[EMAIL PROTECTED]> wrote: > > Toronto, Canada Another Canadian! The more the merrier. :-) Just a reminder that I put up a Google map of Clojure users worldwide: http://tinyurl.com/5kl68p If you're so inclined, you're invited to take a moment and

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

2008-11-21 Thread Stuart Sierra
Hi Steve, Although the reduce is very Lispy, in this case it might be clearer with loop/recur: (defn random-sample [sample-size items] (loop [num 0, current [], items items] (if-let [item (first items)] (if (< num sample-size) (recur (inc num) (conj curre

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

2008-11-21 Thread Telman Yusupov
Toronto, Canada --~--~-~--~~~---~--~~ 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: Monads in Clojure

2008-11-21 Thread jan
Stuart Sierra writes: > Rich gives out commit permission on clojure-contrib to people who are > interested, but he doesn't dictate what goes in. You have to sign the > Clojure Contributor agreement, which basically says that if the > Clojure license changes at some point, you allow your contribut

Re: writing binary values (bytes) to a file

2008-11-21 Thread Graham Fawcett
Hi Vlad, On Thu, Nov 20, 2008 at 5:36 PM, prhlava <[EMAIL PROTECTED]> wrote: > > Hello Graham, > >> Bonus question for the bored reader: write a function, >> (byte-array-maker N), that takes a width N, and returns a function >> that takes an Integer as input and returns an N-width byte array >> c

Re: loss of gen-and-load-class functionality

2008-11-21 Thread Stephen Wrobleski
On Fri, Nov 21, 2008 at 03:38:01PM -0500, Stephen Wrobleski wrote: > Now, I can see a standard way of doing something like this > > (defmacro def-gen-class [name & options] > (let [{:keys [name bytecode]} > (eval `(gen-class ~(str name) [EMAIL PROTECTED]))] > (if *compile-files* >

Re: writing binary values (bytes) to a file

2008-11-21 Thread prhlava
Hello Jeffrey, > Code is located at: > http://github.com/jbester/cljext/tree/master/cljext%2Fbinpack.clj Thanks for the link, more food for study on how to write a generic library... Basically, I am scheme/lisp noob, learning it in my spare time, the progress is slow but rewarding... Few obs

Re: French translation of the Clojure rationale

2008-11-21 Thread ppierre
C’est vrai que cela se lit mieux en anglais. Même si je peine à m’exprimer en anglais. Et la grammaire n’est pas mon fort. Mais si je peux, aidé à reformuler ? « Les plates-formes de développement, telles que Java, rassurent les clients, entreprises et institutions. Les standards offrent rapidit

Re: Use of "/" to call static method in generated classes

2008-11-21 Thread Rich Hickey
On Nov 21, 4:20 pm, Craig McDaniel <[EMAIL PROTECTED]> wrote: > Testing the new (ns ... :genclass ...), I copied Rich's example > fromhttp://paste.lisp.org/display/70665: > > (ns my.hello > (:gen-class >:extends javax.swing.DefaultCellEditor >:constructors {[Integer] [javax.swing.JChe

Re: Clojure HTML Documentation

2008-11-21 Thread Mark Volkmann
Great idea on the HTML-based documentation! Another nice addition would be showing at least one example use of each function/macro in the documentation. I realize that would take a lot of time to develop, but maybe the community could gradually build up a collection of these over time. --~--~---

Re: Use of "/" to call static method in generated classes

2008-11-21 Thread pmf
On Nov 21, 10:20 pm, Craig McDaniel <[EMAIL PROTECTED]> wrote: > I can compile and run the example, but it doesn't work with the "/" > syntax for main, even though main is a static method: > user> (my.hello/main (into-array ["Bizarro"])) > > java.lang.Exception: No such var: my.hello/main The f

Any style/idiom hints for this random sampling function?

2008-11-21 Thread [EMAIL PROTECTED]
I needed a random sampling function for work and wrote this in Clojure. (defn random-sample "Take a random sample of size `sample-size' from the `items' sequence. This uses Algorithm R -- random sampling with a reservoir. It requires O(`sample-size') space and does not need to know the size o

Re: Patch: universal main() with repl/script/compile

2008-11-21 Thread Stephen C. Gilardi
On Nov 21, 2008, at 12:34 PM, Stuart Sierra wrote: > The attached patch combines Repl, Script, and the lib compiler that > Stephen G. and I have worked on. Hi Stuart, I like the concept very much. I had a couple of problems in working with the patch: [1] patch on Mac OS X Leopard rejected the

Re: French translation of the Clojure rationale

2008-11-21 Thread Vincent Foley
Salut JF, Merci pour tes commentaires. Je suis d'accord que l'exercice est quelque peu futile: l'anglais est la langue officielle de l'informatique et les traductions en français me font frémir. Je ne crois pas qu'une personne puisse devenir un programmeur sérieux sans être à l'aise en anglais.

Re: Eclipse Plugin- any plans for this?

2008-11-21 Thread Tomi Neste
Maybe the Common Lisp Cusp (http://www.bitfauna.com/projects/cusp/) mode (view, plugin?) for Eclipse could be used as a base? It seems to use SLIME's Swank protocol which already has Clojure support in the form of swank-clojure that works well with Emacs. --~--~-~--~~~-

Re: French translation of the Clojure rationale

2008-11-21 Thread verec
Je ne peux que louer l'effort et surtout éviter de décourager les bonnes volontés, mais le résultat est si verbeux et si proche de ce qu'on peut lire en informatique en Français, que je ne peux que douter très fort de l'impact d'une telle traduction. Je n'ai jamais cru un seul instant qu'une lang

Use of "/" to call static method in generated classes

2008-11-21 Thread Craig McDaniel
Testing the new (ns ... :genclass ...), I copied Rich's example from http://paste.lisp.org/display/70665: (ns my.hello (:gen-class :extends javax.swing.DefaultCellEditor :constructors {[Integer] [javax.swing.JCheckBox]} :factory makeone :methods [[mymax [int] int]] :init init

Re: Patch: universal main() with repl/script/compile

2008-11-21 Thread Stuart Sierra
On Nov 21, 3:58 pm, Jarkko Oranen <[EMAIL PROTECTED]> wrote: > Please don't remove the line from the build file. > It's helpful for people who want to use SLIME. SLIME needs the .clj > files for its "show definition" functionality and it'd be much nicer > to just be able to uncomment that instead

Re: French translation of the Clojure rationale

2008-11-21 Thread Vincent Foley
Sorry about the line endings, Google groups seems to have truncated them to a width shorter than Vim. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googl

French translation of the Clojure rationale

2008-11-21 Thread Vincent Foley
Hello everyone, I don't know if there are French speakers lurking on this group, but I'd really appreciate if somebody could make sure that my translation of the Clojure rationale is accurate and typo-free. Clojure === Clients et investisseurs ont des investissements substantiels dans les p

Re: Patch: universal main() with repl/script/compile

2008-11-21 Thread Jarkko Oranen
Really neat! One request though: Please don't remove the line from the build file. It's helpful for people who want to use SLIME. SLIME needs the .clj files for its "show definition" functionality and it'd be much nicer to just be able to uncomment that instead of having to figure out what you n

Re: loss of gen-and-load-class functionality

2008-11-21 Thread Stephen Wrobleski
On Fri, Nov 21, 2008 at 05:46:00AM -0800, Rich Hickey wrote: > I'd appreciate examples of gen-and-load-class and gen-and-save-class > use not well supported by the AOT gen-class. > > What I am interested in is the scenarios/use-cases. I've got a DSL which compiles an abstraction to a class. The

Re: Add build/run instructions to the readme.

2008-11-21 Thread Phil Hagelberg
On Nov 21, 12:04 pm, "Stephen C. Gilardi" <[EMAIL PROTECTED]> wrote: > Does "java -jar clojure.jar" work to launch a repl for both builds?   > Can we change one or the other so that the jars they build are   > identical? No, mvn install places it in target/. Sounds like this should be fixed. -Ph

Re: [PATCH] Add build/run instructions to the readme.

2008-11-21 Thread Stephen C. Gilardi
> On Nov 21, 2008, at 2:50 PM, Phil Hagelberg wrote: >> >> For Java people this is probably obvious, but I didn't really have a >> clue how to compile the project after checking out the source. >> Here is >> a patch that makes the readme a little more helpful. Does "java -jar clojure.jar" work

[PATCH] Add build/run instructions to the readme.

2008-11-21 Thread Phil Hagelberg
For Java people this is probably obvious, but I didn't really have a clue how to compile the project after checking out the source. Here is a patch that makes the readme a little more helpful. -Phil diff --git a/readme.txt b/readme.txt index 93b74a2..a2bbb0d 100644 --- a/readme.txt +++ b/readme.

Re: mutability

2008-11-21 Thread Adam Jones
On Nov 20, 12:23 pm, islon <[EMAIL PROTECTED]> wrote: > I'm porting my single thread simple mud-like rpg game from scala to > clojure and one thing that is annoying me is the code needed to change > some var. > In scala I do things like that: > > val player = new Player(...) > > player.str += 1

Re: Monads in Clojure

2008-11-21 Thread Adam Jones
On Nov 21, 3:14 am, Konrad Hinsen <[EMAIL PROTECTED]> wrote: > As a first non-trivial exercice, I wrote an implementation of monads   > in Clojure. I just uploaded it to the Group: > >        http://clojure.googlegroups.com/web/monads.clj > > The file contains the macro definitions, the definiti

Re: Which paper discusses Henry Baker's (sp?) egal?

2008-11-21 Thread Rich Hickey
On Nov 21, 12:36 pm, Brett Hoerner <[EMAIL PROTECTED]> wrote: > I've watched a lot of Clojure videos now, and keep hearing Rich > mention "Henry Baker's egal". Does someone have the actual paper > title where Baker talks about this? I have an ACM subscription (and > assume that's where I'd fin

Release .zip file

2008-11-21 Thread Phil Hagelberg
Hey, I just downloaded clojure for the first time, grabbing the zip file and uncompressing it. I noticed it dumped everything in-place rather than creating a clojure/ subdirectory for the files, so it was a bit of a mess to clean up. It's not a big deal at all, but it would ever-so-slightly impro

Which paper discusses Henry Baker's (sp?) egal?

2008-11-21 Thread Brett Hoerner
I've watched a lot of Clojure videos now, and keep hearing Rich mention "Henry Baker's egal". Does someone have the actual paper title where Baker talks about this? I have an ACM subscription (and assume that's where I'd find it) - but no dice on finding egal (sp?) and Henry G Baker has a hell o

Re: Monads in Clojure

2008-11-21 Thread Chouser
On Fri, Nov 21, 2008 at 11:40 AM, Konrad Hinsen <[EMAIL PROTECTED]> wrote: > > Thanks! I don't know what symbol-macrolet is/does, so I can't > comment on that. It's probably some Common Lisp thing, right? Probably, though when googling it just now, I seem to have found some third-party implemen

Patch: universal main() with repl/script/compile

2008-11-21 Thread Stuart Sierra
Hi Rich, everyone, The attached patch combines Repl, Script, and the lib compiler that Stephen G. and I have worked on. $ java -jar clojure.jar -help Usage: java -jar clojure.jar [options] [file] Options: -help This help message -eval expr Evaluate an expression (may be repeated) -c

Re: Suggest allowing java property to specify *compile-path*

2008-11-21 Thread Chouser
On Fri, Nov 21, 2008 at 10:46 AM, Stuart Sierra <[EMAIL PROTECTED]> wrote: > > So there's a decision to be made: should Clojure behave more like a > scripting language (invoke by file) or more like Java (invoke by > class)? There are pros and cons either way. Theoretically, it could > support bo

Re: Newbie: Creating a MapEntry

2008-11-21 Thread Stephen C. Gilardi
On Nov 21, 2008, at 10:23 AM, J. McConnell wrote: > user=> (defn map-entry [k v] (first {k v})) Very nice! --Steve --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send emai

Re: Clojure HTML Documentation

2008-11-21 Thread Daniel Eklund
beautiful ! thanks... i was just looking for something like this On Nov 21, 3:17 am, Mark McGranaghan <[EMAIL PROTECTED]> wrote: > I've created some experimental HTML docs for Clojure. You can see them > on S3:http://clj-doc.s3.amazonaws.com/tmp/doc-1116/index.html > > Or, just for kicks, on Ama

Re: Newbie: Creating a MapEntry

2008-11-21 Thread Rich Hickey
On Nov 21, 11:40 am, samppi <[EMAIL PROTECTED]> wrote: > Yes, thank you—(key) and (val) were what I was interested in, so I'll > use the latter function you gave. What I'm wondering though is, if > MapEntries aren't guaranteed for the future, what is being planned for > (key) and (val) too. Oh,

Re: Clojure HTML Documentation

2008-11-21 Thread Michael Beauregard
I like where you are going with this. Reminds me of www.gotapi.com. I don't know if gotapi is open or not, but your stuff may fit nicely in there. Michael On Fri, Nov 21, 2008 at 9:31 AM, Mark McGranaghan <[EMAIL PROTECTED]> wrote: > > Thanks for the thoughts Craig. > > * I'm experimenting with

Re: Newbie: Creating a MapEntry

2008-11-21 Thread samppi
Yes, thank you—(key) and (val) were what I was interested in, so I'll use the latter function you gave. What I'm wondering though is, if MapEntries aren't guaranteed for the future, what is being planned for (key) and (val) too. Oh, well. :) On Nov 21, 8:23 am, "J. McConnell" <[EMAIL PROTECTED]>

Re: Monads in Clojure

2008-11-21 Thread Konrad Hinsen
On 21.11.2008, at 17:10, Chouser wrote: > On Fri, Nov 21, 2008 at 6:14 AM, Konrad Hinsen > <[EMAIL PROTECTED]> wrote: >> >> As a first non-trivial exercice, I wrote an implementation of monads >> in Clojure. I just uploaded it to the Group: >> >>http://clojure.googlegroups.com/web/monads.

Re: Clojure HTML Documentation

2008-11-21 Thread Mark McGranaghan
Thanks for the thoughts Craig. * I'm experimenting with a "namespaces" tab that will complement the current "vars" listing that is available now. * The ability to link in also sounds good, though I'll focus on that once the URL of the docs themselves is stable. * Having online docs opens up a lot

Re: Eclipse Plugin- any plans for this?

2008-11-21 Thread verec
I'm still active on this, as I'm sure Casey is. Though the recent crop of incompatible changes means some rework as the target is moving :) -- JFB On Nov 21, 1:03 pm, MikeM <[EMAIL PROTECTED]> wrote: > This came up on the list not long ago, don't know what the status is: > > http://code.google.co

Re: Monads in Clojure

2008-11-21 Thread Chouser
On Fri, Nov 21, 2008 at 6:14 AM, Konrad Hinsen <[EMAIL PROTECTED]> wrote: > > As a first non-trivial exercice, I wrote an implementation of monads > in Clojure. I just uploaded it to the Group: > >http://clojure.googlegroups.com/web/monads.clj This is pretty code. Did you just implement

Re: Suggest allowing java property to specify *compile-path*

2008-11-21 Thread Stuart Sierra
On Nov 21, 3:56 am, "Stephen C. Gilardi" <[EMAIL PROTECTED]> wrote: > I've uploaded a patch that works like Stuart's file compiler, but it   > takes lib names as arguments and compiles them. Shucks, looks like all that was missing (from my 2nd try) was Symbol.intern! Oh well. This looks good to

Re: Newbie: Creating a MapEntry

2008-11-21 Thread J. McConnell
On Fri, Nov 21, 2008 at 12:03 AM, samppi <[EMAIL PROTECTED]> wrote: > > Is it possible to create a MapEntry from scratch? The reason why I'm > asking is because I want to mess with sequences of two-sized vectors, > and it would be really cool if I could use the key and val functions > on them rath

Re: loss of gen-and-load-class functionality

2008-11-21 Thread Stuart Sierra
On Nov 21, 8:46 am, Rich Hickey <[EMAIL PROTECTED]> wrote: > I'd appreciate examples of gen-and-load-class and gen-and-save-class > use not well supported by the AOT gen-class. Don't know if this is supported now not, but here's my old gen_classes.clj: (defmacro defclass [name & args] `(do

Re: Monads in Clojure

2008-11-21 Thread Stuart Sierra
On Nov 21, 10:06 am, Konrad Hinsen <[EMAIL PROTECTED]> wrote: > Actually, I have no idea of how clojure-contrib works. Is this a > repository for all kinds of Clojure add-ons? Or stuff selected by > Rich for a specific reason? Rich gives out commit permission on clojure-contrib to people who are

Re: Monads in Clojure

2008-11-21 Thread Konrad Hinsen
On Nov 21, 2008, at 15:01, walterc wrote: > how about clojure-contrib? Actually, I have no idea of how clojure-contrib works. Is this a repository for all kinds of Clojure add-ons? Or stuff selected by Rich for a specific reason? Konrad. --~--~-~--~~~---~--~--

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

2008-11-21 Thread [EMAIL PROTECTED]
> I cannot think of an easy way around this at the moment. I've browsed through the namespace documentation and I think that I can get by with the (ns-resolve) form. I feel it could be more concise and elegant, though. > I'm curious > what the reasoning behind creating this temporary namespace

Re: Clojure Box (was Working combination of .emacs, Aquamacs, swank-clojure, clojure-mode?)

2008-11-21 Thread Shawn Hoover
On Fri, Nov 21, 2008 at 7:57 AM, Chouser <[EMAIL PROTECTED]> wrote: > > On Fri, Nov 21, 2008 at 7:39 AM, Rich Hickey <[EMAIL PROTECTED]> wrote: > > > > I'm sure a lot of people will appreciate this, thanks, although I have > > to admit to a pang of sadness that tiny Clojure comes in a box 100x > >

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

2008-11-21 Thread Michael Reid
Hi, I think what is going on here is that the namespace ns-a does not exist until the code is executed; however, in order execute the code it must be first compiled. It is during the compilation phase that the namespace 'ns-a' cannot be found, because indeed, it does not yet exist. I cannot thi

Re: loss of gen-and-load-class functionality

2008-11-21 Thread Robert Lally
I'm not entirely clear how the new AOT compilation works, or how I convert old code to use the new mechanism. As an example - I had a call to gen-and-save-class in a file that created a custom exception type just before the function that would throw it was defined. I've changed that to just gen-cl

Re: odd behavior for use/ ns :use

2008-11-21 Thread Stuart Halloway
> Rich mused about making them macros again at one point to avoid this > quoting. Perhaps the convenient use of requre/use/refer/in-ns at the > repl is a significantly more important use case than passing their > arguments in a way that requires evaluation and we should revisit > making th

Re: Monads in Clojure

2008-11-21 Thread walterc
how about clojure-contrib? On Nov 21, 7:14 pm, Konrad Hinsen <[EMAIL PROTECTED]> wrote: > As a first non-trivial exercice, I wrote an implementation of monads   > in Clojure. I just uploaded it to the Group: > >        http://clojure.googlegroups.com/web/monads.clj > > The file contains the macro

Re: odd behavior for use/ ns :use

2008-11-21 Thread Stephen C. Gilardi
On Nov 21, 2008, at 8:39 AM, Stuart Halloway wrote: > The "right way" to use, most of the time, is inside an ns: > > (ns foo > (:use [clojure.contrib.str-utils :only (str-join re-split)])) > > However, for the interactive examples in the book, it is nice to just > switch namespaces at the REPL,

Re: loss of gen-and-load-class functionality

2008-11-21 Thread Rich Hickey
On Nov 20, 4:42 pm, Stuart Sierra <[EMAIL PROTECTED]> wrote: > On Nov 20, 2:14 pm, Stephen Wrobleski <[EMAIL PROTECTED]> wrote: > > > Furthermore, requiring the use of (ns ..) to create a class makes defining a > > class with a macro somewhat tedious (seems like you'd have to bind *ns*, so > > t

odd behavior for use/ ns :use

2008-11-21 Thread Stuart Halloway
The "right way" to use, most of the time, is inside an ns: (ns foo (:use [clojure.contrib.str-utils :only (str-join re-split)])) However, for the interactive examples in the book, it is nice to just switch namespaces at the REPL, where ns is bad form. So instead, you would do this: (in-n

Re: Clojure HTML Documentation

2008-11-21 Thread Konrad Hinsen
On Nov 21, 2008, at 9:17, Mark McGranaghan wrote: > I've created some experimental HTML docs for Clojure. You can see them > on S3: > http://clj-doc.s3.amazonaws.com/tmp/doc-1116/index.html Very useful, thanks! Konrad. --~--~-~--~~~---~--~~ You received this m

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

2008-11-21 Thread [EMAIL PROTECTED]
Forgot to mention... > (defn f [] >   (try >     (create-ns 'ns-a) >     (in-ns 'ns-a) >     (refer-clojure) >     (defn fn-a [] :a/a) >     (in-ns 'user) >     (println ns-a/fn-a)  ; Expect some function pointer string. >     (finally (remove-ns 'ns-a If I change the (println...) form for t

Creating temporary namespaces from a function fails; why?

2008-11-21 Thread [EMAIL PROTECTED]
Hello all, I am trying to set up a test for a function that finds stuff in a sequence of namespaces given as parameter. So, my test function must set up temporary namespaces with some stuff, which I'll pass on to the function for the test duration. However, the code does not compile, as my refe

Re: Eclipse Plugin- any plans for this?

2008-11-21 Thread Peter Wolf
I've just begun work on an IntelliJ plugin. However since I am new to both Clojure and writing plugins it won't be ready for a while. Eventually I'll be looking for testers. Peter MikeM wrote: > This came up on the list not long ago, don't know what the status is: > > http://code.google.com/p

Re: Clojure Box (was Working combination of .emacs, Aquamacs, swank-clojure, clojure-mode?)

2008-11-21 Thread blackdog
On Fri, 21 Nov 2008 07:57:16 -0500 Chouser <[EMAIL PROTECTED]> wrote: > > On Fri, Nov 21, 2008 at 7:39 AM, Rich Hickey <[EMAIL PROTECTED]> > wrote: > > > > I'm sure a lot of people will appreciate this, thanks, although I > > have to admit to a pang of sadness that tiny Clojure comes in a box >

Re: Eclipse Plugin- any plans for this?

2008-11-21 Thread MikeM
This came up on the list not long ago, don't know what the status is: http://code.google.com/p/clojure-dev/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to cloju

Re: Clojure HTML Documentation

2008-11-21 Thread Craig Andera
Very nice! As it turns out, I've been heavily involved in writing the documentation infrastructure that MSDN uses for the last few years, so I have some sympathy for this problem space. :) A few things I'd like to see: * I'd like to see the URL for the page change when navigating to a new topic.

Re: Clojure Box (was Working combination of .emacs, Aquamacs, swank-clojure, clojure-mode?)

2008-11-21 Thread Chouser
On Fri, Nov 21, 2008 at 7:39 AM, Rich Hickey <[EMAIL PROTECTED]> wrote: > > I'm sure a lot of people will appreciate this, thanks, although I have > to admit to a pang of sadness that tiny Clojure comes in a box 100x > its size :( I would hate to discourage this in any way (or let my vim roots sh

Re: mutability

2008-11-21 Thread islon
There's no problem with clojure, the problem is with me: I'm a complete noob in clojure programming =) That's why I asked if anyone wanted to port the game. I'll probably learn more reading someone's idiomatic code than my own bad code. I started this project to learn scala so the final code could

Re: Clojure Box (was Working combination of .emacs, Aquamacs, swank-clojure, clojure-mode?)

2008-11-21 Thread Rich Hickey
On Nov 20, 7:49 pm, "Shawn Hoover" <[EMAIL PROTECTED]> wrote: > On Thu, Nov 20, 2008 at 8:27 AM, Daniel Renfer <[EMAIL PROTECTED]> wrote: > > perhaps what we need is a clojure-in-a-box solution. We could create a > > package containing a version of clojure, emacs, slime, swank-clojure, > > cloju

Re: Newbie: Creating a MapEntry

2008-11-21 Thread Rich Hickey
On Nov 21, 12:07 am, "Stephen C. Gilardi" <[EMAIL PROTECTED]> wrote: > On Nov 21, 2008, at 12:03 AM, samppi wrote: > > > Is it possible to create a MapEntry from scratch? > > user=> (def a (clojure.lang.MapEntry. 3 4)) > #'user/a > user=> (key a) > 3 > user=> (val a) > 4 > user=> > > You can als

Re: Eclipse Plugin- any plans for this?

2008-11-21 Thread Ralf Bensmann
Take a look at enclojure http://www.enclojure.org (despite it'a NetBeans plugin) On Fri, Nov 21, 2008 at 9:25 AM, [EMAIL PROTECTED] < [EMAIL PROTECTED]> wrote: > > Like it says, I was just curious if any work had been done to > integrate Clojure with the Eclipse environment? It's pretty well the

Re: Bureaucracy has reached Wikibooks

2008-11-21 Thread Jeff Rose
I think having any barriers to entry for contributing documentation will without doubt cut down the amount contributed. If quality becomes an issue then policies like these might make sense to look at, but until then a fully open system that lets people improve the content over time and add w

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

2008-11-21 Thread Tim Lossen
Berlin, Germany --~--~-~--~~~---~--~~ 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

Eclipse Plugin- any plans for this?

2008-11-21 Thread [EMAIL PROTECTED]
Like it says, I was just curious if any work had been done to integrate Clojure with the Eclipse environment? It's pretty well the only thing keeping me from using Clojure at the moment, and I'd guess there are a few others like me coming from the traditional Java code- monkey demographic, so, an

Re: Clojure Box (was Working combination of .emacs, Aquamacs, swank-clojure, clojure-mode?)

2008-11-21 Thread Dmitry Neverov
> The result so far packs all of the above features in a 46MB installer. I'm > willing to pursue finishing it (and possibly making it smaller) if it would > be useful to others and if I can find a place to put it up. Great! I look forward to use it! --~--~-~--~~~---~-

Monads in Clojure

2008-11-21 Thread Konrad Hinsen
As a first non-trivial exercice, I wrote an implementation of monads in Clojure. I just uploaded it to the Group: http://clojure.googlegroups.com/web/monads.clj The file contains the macro definitions, the definitions of three popular monads (maybe, list, state), and some illustratio

Re: Clojure HTML Documentation

2008-11-21 Thread walterc
way cool! thanks! On Nov 21, 4:17 pm, Mark McGranaghan <[EMAIL PROTECTED]> wrote: > I've created some experimental HTML docs for Clojure. You can see them > on S3:http://clj-doc.s3.amazonaws.com/tmp/doc-1116/index.html > > Or, just for kicks, on Amazon's new Cloud Front > CDN:http://d2nbqsesuabw

Re: Clojure Box (was Working combination of .emacs, Aquamacs, swank-clojure, clojure-mode?)

2008-11-21 Thread AlamedaMike
I would find it useful. Given the number of posts on this group concerning editor setups, I'd say that a lot of others would as well. Mike --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to t

Re: Suggest allowing java property to specify *compile-path*

2008-11-21 Thread Stephen C. Gilardi
On Nov 20, 2008, at 2:04 PM, Rich Hickey wrote: > I'm in favor. I'd like to get a single story together incorporating > Stuart's build.xml, his file compiler: > > http://groups.google.com/group/clojure/msg/4f0aa3be9a2dc79d > > and this path suggestion. I've uploaded a patch that works like St

Clojure HTML Documentation

2008-11-21 Thread Mark McGranaghan
I've created some experimental HTML docs for Clojure. You can see them on S3: http://clj-doc.s3.amazonaws.com/tmp/doc-1116/index.html Or, just for kicks, on Amazon's new Cloud Front CDN: http://d2nbqsesuabw8o.cloudfront.net/tmp/doc-1116/index.html You can see the code I used to generate them on

Re: Clojure Box (was Working combination of .emacs, Aquamacs, swank-clojure, clojure-mode?)

2008-11-21 Thread Geoffrey Teale
2008/11/21 Boris Schmid <[EMAIL PROTECTED]> > > Nice!. As a newbie, I found lispbox one of the easiest ways to set up > a lisp + emacs on windows, so I think a clojurebox will be a good > thing for people. > > (although currently I'm just using ssh to get to my work and emacs -nw > from there.) >