Re: (Newbie) Are lexically-scoped methods possible?

2008-11-18 Thread mb
Hi, On 19 Nov., 06:53, samppi <[EMAIL PROTECTED]> wrote: > Yes, but I meant creating methods rather than regular functions, in a > lexical scope. Is it possible to create methods using fn? (ns foo) (defmulti bar ...) (ns foo.test) (defmethod foo/bar ...) One can also use the MultiFn Java met

Re: clojure slime

2008-11-18 Thread Jeffrey Chu
Sorry for the inconvenience. It's been fixed. - Jeff On Nov 18, 5:41 pm, islon <[EMAIL PROTECTED]> wrote: > I'll not use slime right now (thanks Bill). > swank-clojure will be fixed anytime soon? > > On Nov 18, 11:15 pm, "Stephen C. Gilardi" <[EMAIL PROTECTED]> wrote: > > > SVN version 1110 of Cl

Re: (Newbie) Are lexically-scoped methods possible?

2008-11-18 Thread Allen Rohner
On Nov 18, 11:53 pm, samppi <[EMAIL PROTECTED]> wrote: > Yes, but I meant creating methods rather than regular functions, in a > lexical scope. Is it possible to create methods using fn? > What do you mean by methods as distinct from functions? In clojure there are only functions. Are you referr

Re: General question, what are using for clojure?

2008-11-18 Thread Geoffrey Teale
2008/11/19 Allen Rohner <[EMAIL PROTECTED]> > > On Nov 18, 5:16 pm, BerlinBrown <[EMAIL PROTECTED]> wrote: > > What projects have you used clojure for? Have you completed them? Are > > they one-off projects. Small big? Is it web based, a GUI? > > > > I am working on this, haven't made much prog

Re: (Newbie) Are lexically-scoped methods possible?

2008-11-18 Thread samppi
Yes, but I meant creating methods rather than regular functions, in a lexical scope. Is it possible to create methods using fn? On Nov 18, 10:47 pm, Allen Rohner <[EMAIL PROTECTED]> wrote: > On Nov 18, 6:48 pm, samppi <[EMAIL PROTECTED]> wrote: > > > I'm trying to unit-test a library with which a

Re: (Newbie) Are lexically-scoped methods possible?

2008-11-18 Thread Allen Rohner
On Nov 18, 6:48 pm, samppi <[EMAIL PROTECTED]> wrote: > I'm trying to unit-test a library with which a user can define methods > on the library's multi-function to change its behavior. So I need to > be able to define lexically-scoped methods in each test. Is it > possible to use let to create a

Re: General question, what are using for clojure?

2008-11-18 Thread Allen Rohner
On Nov 18, 5:16 pm, BerlinBrown <[EMAIL PROTECTED]> wrote: > What projects have you used clojure for?  Have you completed them? Are > they one-off projects.  Small big?  Is it web based, a GUI? > > I am working on this, haven't made much progress but at least I > started. > > http://code.google.co

A request for clojure code critique

2008-11-18 Thread Scott Fleckenstein
So, I'm starting to get my feet wet with a real project written in Clojure. One of the first things needed in the project is a periodic process to check an external server for updates, and so I wrote some functions to help this. The code is here: http://pastie.textmate.org/private/1q0c0ydhvdjlzs

Re: strings

2008-11-18 Thread Dave Newton
--- On Tue, 11/18/08, joejoe wrote: > Yeah I got so fed up with trying to do it I > almost gave up, then I found the (reverse string). That doesn't actually do what your spec said, though. Dave --~--~-~--~~~---~--~~ You received this message because you are subs

Re: strings

2008-11-18 Thread Timothy Pratley
If your new to Clojure, such a succinct solution might be a little confusing... so I've broken islon's solution down into its parts: > (defn string-reverse [s] >   (reduce #(str %1 " " %2) (reverse (seq (. s (split " ")) The main part of your problem is that you want to pick out words. In th

Re: strings

2008-11-18 Thread joejoe
thanks guys( or gals!) Yeah I got so fed up with trying to do it I almost gave up, then I found the (reverse string). Wow, one word does what I was trying to do. Oh well, I guess I'll try to finish doing it the long way to learn it. Thanks for the fast replies! :) On Nov 18, 6:00 pm, joejoe <

Re: clojure slime

2008-11-18 Thread islon
I'll not use slime right now (thanks Bill). swank-clojure will be fixed anytime soon? On Nov 18, 11:15 pm, "Stephen C. Gilardi" <[EMAIL PROTECTED]> wrote: > SVN version 1110 of Clojure made a breaking change to a feature that   > swank-clojure is using. For now, I recommend moving back one rev by

Re: strings

2008-11-18 Thread islon
It doesn't work: (apply str (reverse "i am cold")) "dloc ma i" The correct output is "cold am i". You must reverse words not letters. On Nov 18, 11:33 pm, "Kevin Downey" <[EMAIL PROTECTED]> wrote: > (apply str (reverse "I am cold")) > > shorter and it does the same thing. no need to take out the

Re: strings

2008-11-18 Thread Kevin Downey
(apply str (reverse "I am cold")) shorter and it does the same thing. no need to take out the spaces and put them back in On Tue, Nov 18, 2008 at 5:21 PM, Mark Volkmann <[EMAIL PROTECTED]> wrote: > > Here's another solution that came from help on the chat. Thanks Chouser! > > (apply str (interpo

Re: strings

2008-11-18 Thread Mark Volkmann
Here's another solution that came from help on the chat. Thanks Chouser! (apply str (interpose " " (reverse (.split "I am cold" " " On Tue, Nov 18, 2008 at 7:15 PM, islon <[EMAIL PROTECTED]> wrote: > > (defn string-reverse [s] > (reduce #(str %1 " " %2) (reverse (seq (. s (split " ")) >

Re: clojure slime

2008-11-18 Thread Stephen C. Gilardi
SVN version 1110 of Clojure made a breaking change to a feature that swank-clojure is using. For now, I recommend moving back one rev by using: svn up -r 1109 from within your checkout of clojure/trunk. In the past, Jeff has updated swank-clojure very quickly on those rare occasions where

Re: strings

2008-11-18 Thread islon
(defn string-reverse [s] (reduce #(str %1 " " %2) (reverse (seq (. s (split " ")) You're probably looking for something like this =) On Nov 18, 9:00 pm, joejoe <[EMAIL PROTECTED]> wrote: > hello all, > so I'm not only new to this group but I am new to Clojure.  I may be > going about this

Re: clojure slime

2008-11-18 Thread Bill Clementson
On Tue, Nov 18, 2008 at 5:01 PM, islon <[EMAIL PROTECTED]> wrote: > > I checkouted the last clojure from svn, swank-clojure and clojure-mode > too. > When I start slime it give me the following errors: > > Clojure > user=> (add-classpath "file:home/islon/opt/swank-clojure/") > nil > user=> > (

clojure slime

2008-11-18 Thread islon
I checkouted the last clojure from svn, swank-clojure and clojure-mode too. When I start slime it give me the following errors: Clojure user=> (add-classpath "file:home/islon/opt/swank-clojure/") nil user=> (require (quote swank)) java.lang.Exception: No such var: swank.util/gen-and-load-clas

(Newbie) Are lexically-scoped methods possible?

2008-11-18 Thread samppi
I'm trying to unit-test a library with which a user can define methods on the library's multi-function to change its behavior. So I need to be able to define lexically-scoped methods in each test. Is it possible to use let to create a lexically-scoped method? The problems I'm encountering are tha

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

2008-11-18 Thread Timothy Pratley
Hobart, Australia --~--~-~--~~~---~--~~ 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

strings

2008-11-18 Thread joejoe
hello all, so I'm not only new to this group but I am new to Clojure. I may be going about this all wrong but here's what I got. I want to simply take a string and reverse it, ex: "I am cold" would become "cold am I" (haha I just realized that's probably how yoda would say it). So for now I am

Re: clojure.contrib.test-is changes

2008-11-18 Thread Meikel Brandmeyer
Hello, as previously threatened here the anatomy of my TAP library. The testing and reporting is split in separate parts. The testing part provides is as main interface. I first followed Perl's Test::More, but thought it would be better to be closer to test-is. So I adopted is, but - as I think

General question, what are using for clojure?

2008-11-18 Thread BerlinBrown
What projects have you used clojure for? Have you completed them? Are they one-off projects. Small big? Is it web based, a GUI? I am working on this, haven't made much progress but at least I started. http://code.google.com/p/botnodetoolkit/ And if you are interested, post your project here.

Re: thanks, errata, and one gaffe

2008-11-18 Thread Christopher Taylor
Stuart, I'd be very interested to see something on Ties (http://www.bitbucket.org/achimpassen/clojure-ties/wiki/Home ), which while not being in clojure-contrib, shows lots of promise. all the best, --Chris On 17.11.2008, at 15:13, Stuart Halloway wrote: > > Hi Brian, > > The libraries cha

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

2008-11-18 Thread Jeff Rose
Originally from San Francisco, and now living in Amsterdam. This has been fun already. I think Clojure is going to make it. -Jeff Chanwoo Yoo wrote: > Seoul, South Korea, which LG and Samsung are belongs to (I know there > is few who knows where South Korea is. ^_^; It is placed between China

Re: Test Coerced-BigDecimal in clojure.contrib.test-clojure throws an Exception

2008-11-18 Thread Stephen C. Gilardi
I think Clojure should change to allow (bigdec 3) to succeed. BigDecimal has a valueOf method that accepts a long. It has a constructor that accepts an int. I haven't made a bug report on this yet, but here it is. Here are another thing that came up during testing of numbers: I think the id

Re: Working combination of .emacs, Aquamacs, swank-clojure, clojure-mode?

2008-11-18 Thread bc
In order to help prevent others from having problems with the slime setup instructions in my earlier weblog post (http://bc.tech.coop/blog/ 081023.html), I've added an update at the bottom of the post. I never intended that post to be a tutorial for others to follow, it was simply a recounting of

Clojure in MathRider (an easy way for newbies to experiment with Clojure code)

2008-11-18 Thread Ted Kosan
I am in the process of developing a mathematics-oriented IDE called MathRider and I have recently added Clojure to it. One nice thing about MathRider is that it provides a way for Clojure newbies to quickly start experimenting with Clojure inside an IDE by downloading and extracting a single file

Test Coerced-BigDecimal in clojure.contrib.test-clojure throws an Exception

2008-11-18 Thread Jarkko Oranen
As stated in the subject line, the last test in numbers.clj throws an exception because it is trying to cast an integer into a BigDecimal, which is not possible. This is on Mac OS X 10.5.5 with Java 1.5, the exception it fails with is: java.lang.IllegalArgumentException: No matching method found:

Re: (new user) - Problem passing a double[][] to Java constructor.

2008-11-18 Thread everyman
That has worked out very well, and its fast. Thanks very much. :-)) --~--~-~--~~~---~--~~ 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

Re: Eager map?

2008-11-18 Thread Adam Jones
On Nov 18, 11:18 am, Robert Ewald <[EMAIL PROTECTED]> wrote: > On Tuesday 18 November 2008 08:20:15 mb wrote: > > > > > Hi, > > > On 18 Nov., 03:01, Adam Jones <[EMAIL PROTECTED]> wrote: > > > I'm in the middle of writing some code to extract sql results, which > > > means I'm doing a *lot* of f

Re: Can functions be decompiled?

2008-11-18 Thread Rich Hickey
On Nov 18, 2:48 pm, Konrad Hinsen <[EMAIL PROTECTED]> wrote: > On 18.11.2008, at 19:32, Shawn Hoover wrote: > > > For functions defined in libs that you load into Clojure, you can > > find out the file and line from the metadata. For functions you > > define in the REPL, this trick won't help. S

Re: Can functions be decompiled?

2008-11-18 Thread Konrad Hinsen
On 18.11.2008, at 19:32, Shawn Hoover wrote: > For functions defined in libs that you load into Clojure, you can > find out the file and line from the metadata. For functions you > define in the REPL, this trick won't help. Say you have (defn myfn > [] :test) in the user namespace. ^#'user/

Re: (new user) - Problem passing a double[][] to Java constructor.

2008-11-18 Thread Chouser
On Tue, Nov 18, 2008 at 2:23 PM, Shawn Hoover <[EMAIL PROTECTED]> wrote: > > Here's a slight tweak using double-array instead of nested calls to > into-array (double-array isn't mentioned in clojure.org/java_interop page, > but it is in the full API listing): > > user=> (into-array (map double-arr

Re: (new user) - Problem passing a double[][] to Java constructor.

2008-11-18 Thread Shawn Hoover
On Tue, Nov 18, 2008 at 1:50 PM, Chouser <[EMAIL PROTECTED]> wrote: > > On Tue, Nov 18, 2008 at 11:44 AM, everyman <[EMAIL PROTECTED]> > wrote: > > > > The signature for the Java constructor I am trying to use is: > > ; Matrix(double[][] A) > > > > (ns clojure-matrix > > (:import (Jama Matrix)))

Re: Eager map?

2008-11-18 Thread Robert Ewald
On Tuesday 18 November 2008 08:20:15 mb wrote: > Hi, > > On 18 Nov., 03:01, Adam Jones <[EMAIL PROTECTED]> wrote: > > I'm in the middle of writing some code to extract sql results, which > > means I'm doing a *lot* of forcing right now. It's almost enough for > > me to wish there was a convention

Yegge would "probably" prefer Clojure

2008-11-18 Thread Stuart Sierra
Steve Yegge tried to implement JavaScript in Emacs Lisp: http://steve-yegge.blogspot.com/2008/11/ejacs-javascript-interpreter-for-emacs.html Choice parts: "In the end, it comes down to personal choice. I've now written at least 30,000 lines of serious code in both Emacs Lisp and JavaScript, ...

Re: clojure.contrib.test-is changes

2008-11-18 Thread Stuart Sierra
On Nov 18, 10:14 am, mb <[EMAIL PROTECTED]> wrote: > This leads me to another question: Is it possible to look into > pluggable harnesses? That is: can we separate the tests > from the result reporting? Yes, that's an important feature I want to add. There will probably be a reporting function t

Re: (new user) - Problem passing a double[][] to Java constructor.

2008-11-18 Thread Chouser
On Tue, Nov 18, 2008 at 11:44 AM, everyman <[EMAIL PROTECTED]> wrote: > > The signature for the Java constructor I am trying to use is: > ; Matrix(double[][] A) > > (ns clojure-matrix > (:import (Jama Matrix))) > > clojure-matrix=> (new Matrix (to-array-2d [[1.0 2.0] [3.0 4.0]]))) > > java.lang.C

Re: Adapting a functional pretty-printer to Clojure

2008-11-18 Thread steve...@acm.org
On Nov 18, 12:03 pm, Chouser <[EMAIL PROTECTED]> wrote: > On Tue, Nov 18, 2008 at 11:29 AM, [EMAIL PROTECTED] > > <[EMAIL PROTECTED]> wrote: > > > I looked at Wadler's "A Prettier Printer" paper (http:// > > homepages.inf.ed.ac.uk/wadler/papers/prettier/prettier.pdf) and did a > > rote translation

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] >   (cond (empty? x) >         (doc-nil) >         (=

Re: Can functions be decompiled?

2008-11-18 Thread Shawn Hoover
On Tue, Nov 18, 2008 at 12:37 PM, Konrad Hinsen <[EMAIL PROTECTED]>wrote: > > Is there a way to recover readable source code from a compiled > function in Clojure? Debugging things like "[EMAIL PROTECTED]" is > not much fun. It would already be a great help to be able to find out > from where in t

(new user) - Problem passing a double[][] to Java constructor.

2008-11-18 Thread everyman
Hi All. I have been experimenting with the Java interop in Clojure by trying to talk to the matrix maths library Jama: (http://math.nist.gov/javanumerics/jama/doc/) I can create a new Matrix if I specify row col integers for the constructor and I have been able to read and write to the embedded

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 single line. > > That's certainly what i

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. > It starts with x,

Re: Adapting a functional pretty-printer to Clojure

2008-11-18 Thread Chouser
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 single line. That's certainly what it does, but I don't think it has to. My plan was to use *print-length

Re: Adapting a functional pretty-printer to Clojure

2008-11-18 Thread Meikel Brandmeyer
Hi, Am 18.11.2008 um 17:29 schrieb [EMAIL PROTECTED]: What could be some good strategies to adapt the code I have here to Clojure, where tail calls are not eliminated and structs are not lazy? There is the lazy-map package[1], which also allows lazy (struct)maps. However it is not updated to

Can functions be decompiled?

2008-11-18 Thread Konrad Hinsen
Is there a way to recover readable source code from a compiled function in Clojure? Debugging things like "[EMAIL PROTECTED]" is not much fun. It would already be a great help to be able to find out from where in the source code the function was compiled. Konrad. --~--~-~--~~-

Re: Working combination of .emacs, Aquamacs, swank-clojure, clojure-mode?

2008-11-18 Thread Bill Clementson
On Tue, Nov 18, 2008 at 6:42 AM, Raffael Cavallaro <[EMAIL PROTECTED]> wrote: > On Nov 18, 1:46 am, "Cosmin Stejerean" <[EMAIL PROTECTED]> wrote: > >> What kind of bugs are acceptable for the >> purpose of a known good combination? Is slime starting up sufficient? > > It's a whole lot better than

Re: Adapting a functional pretty-printer to Clojure

2008-11-18 Thread Chouser
On Tue, Nov 18, 2008 at 11:29 AM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > I looked at Wadler's "A Prettier Printer" paper (http:// > homepages.inf.ed.ac.uk/wadler/papers/prettier/prettier.pdf) and did a > rote translation of it into Clojure. Then I wrote printing routines > for sequences a

Patch: Use vector binding for with-in-str

2008-11-18 Thread Chouser
tWip in IRC notice with-in-str is broken. Patch attached. --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

Adapting a functional pretty-printer to Clojure

2008-11-18 Thread [EMAIL PROTECTED]
Hello everyone, I looked at Wadler's "A Prettier Printer" paper (http:// homepages.inf.ed.ac.uk/wadler/papers/prettier/prettier.pdf) and did a rote translation of it into Clojure. Then I wrote printing routines for sequences and maps -- very barebones. They work OK: user> (def something '(a b c

Re: Working combination of .emacs, Aquamacs, swank-clojure, clojure-mode?

2008-11-18 Thread Matt Revelle
On Nov 18, 2008, at 9:42 AM, Raffael Cavallaro <[EMAIL PROTECTED] > wrote: > > > > On Nov 18, 1:46 am, "Cosmin Stejerean" <[EMAIL PROTECTED]> wrote: > >> What kind of bugs are acceptable for the >> purpose of a known good combination? Is slime starting up sufficient? > > It's a whole lot bett

Re: Alioth binary-tree benchmark

2008-11-18 Thread Michael Wood
On Tue, Nov 18, 2008 at 4:55 PM, mb <[EMAIL PROTECTED]> wrote: [...] > I don't know, whether this is more idiomatic Clojure code, but > it works... [...] What revision is that? On r1099 I got: java.lang.IllegalArgumentException: Don't know how to create ISeq from: Symbol (NO_SOURCE_FILE:31) so

Re: clojure.contrib.test-is changes

2008-11-18 Thread mb
Hello Stuart, On 18 Nov., 15:58, Stuart Sierra <[EMAIL PROTECTED]> wrote: > 1. I want to keep optional messages per-assertion.  These are very > useful in the RSpec testing framework for Ruby; they're like comments > explaining what each assertion is supposed to demonstrate. I'd also like to see

Re: Working combination of .emacs, Aquamacs, swank-clojure, clojure-mode?

2008-11-18 Thread Rich Hickey
On Tue, Nov 18, 2008 at 9:42 AM, Raffael Cavallaro < [EMAIL PROTECTED]> wrote: > > > > On Nov 18, 1:46 am, "Cosmin Stejerean" <[EMAIL PROTECTED]> wrote: > > > What kind of bugs are acceptable for the > > purpose of a known good combination? Is slime starting up sufficient? > > It's a whole lot bet

Re: POLL: Domain name for project hosting site.

2008-11-18 Thread Fogus
I like forj, but after reflecting on that it might be better to simply use clojure.org. -m --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.c

Re: clojure.contrib.test-is changes

2008-11-18 Thread Stuart Sierra
Hi Frantisek, Meikel, Good suggestions, all. I'll have to spend some time looking at these and figure out if I can make them work with the existing test-is. Two thoughts first: 1. I want to keep optional messages per-assertion. These are very useful in the RSpec testing framework for Ruby; th

Re: Alioth binary-tree benchmark

2008-11-18 Thread mb
Hi, blindly copying code is usually not a good way to learn a new language I don't know, whether this is more idiomatic Clojure code, but it works... (defn build-tree [item depth] (when (< 0 depth) (let [i (* 2 item) d (dec depth)] [item (build-tree (dec i) d) (build

Re: Working combination of .emacs, Aquamacs, swank-clojure, clojure-mode?

2008-11-18 Thread Raffael Cavallaro
On Nov 18, 1:46 am, "Cosmin Stejerean" <[EMAIL PROTECTED]> wrote: > What kind of bugs are acceptable for the > purpose of a known good combination? Is slime starting up sufficient? It's a whole lot better than slime *not* starting up. Again, context: "Getting Started." BTW, it's this sort of

Re: Working combination of .emacs, Aquamacs, swank-clojure, clojure-mode?

2008-11-18 Thread Stuart Halloway
Hi Ralph, In some sense you can think of a cached stable install of some set of developer tools as a performance optimization. In this case, the performance being optimized is the developer's performance installing a tool set. Like any performance optimization, it should not be made premat

Re: POLL: Domain name for project hosting site.

2008-11-18 Thread Geoffrey Teale
2008/11/18 David <[EMAIL PROTECTED]> --- %< --- > That being said, why can't clojure.org be used for that purpose? If I > remember correctly, all it takes is some DNS magic, and we have a, > say, project.clojure.org. Hosted on another physical machine, if need > be. > That gets my vote! +1 --

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

2008-11-18 Thread bnb
On Oct 17, 3: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 proud and say it. > > I'm from Slovakia. :) > > RK First pos

Re: POLL: Domain name for project hosting site.

2008-11-18 Thread Matt Revelle
+1 On Nov 18, 2008, at 8:27 AM, blackdog <[EMAIL PROTECTED]> wrote: > > > +1 > > On Tue, 18 Nov 2008 04:54:22 -0800 (PST) > David <[EMAIL PROTECTED]> wrote: > >> >> I'm not in favour of slangish derivatives. They're good for code- >> names, but when you get serious, a silly name is an obstacle.

Re: POLL: Domain name for project hosting site.

2008-11-18 Thread blackdog
+1 On Tue, 18 Nov 2008 04:54:22 -0800 (PST) David <[EMAIL PROTECTED]> wrote: > > I'm not in favour of slangish derivatives. They're good for code- > names, but when you get serious, a silly name is an obstacle. > > First of all, pronunciation descriptors after the name are down-right > silly.

Re: Agent errors reporting

2008-11-18 Thread Rich Hickey
On Tue, Nov 18, 2008 at 3:14 AM, Toralf Wittner <[EMAIL PROTECTED]>wrote: > On Sun, 2008-11-16 at 01:35 +0100, [EMAIL PROTECTED] wrote: > > Currently agent errors are only reported when the agent is derefenced > > or further actions are dispatched to the agent. It would be great if > > one can get

Re: POLL: Domain name for project hosting site.

2008-11-18 Thread David
I'm not in favour of slangish derivatives. They're good for code- names, but when you get serious, a silly name is an obstacle. First of all, pronunciation descriptors after the name are down-right silly. People start making remarks that you sound like a Wikipedia article. Moreover, it's hard to

Re: Alioth binary-tree benchmark

2008-11-18 Thread J. McConnell
On Tue, Nov 18, 2008 at 5:58 AM, Simon Brooke <[EMAIL PROTECTED]> wrote: > > However Giraud uses the Common > LISP ASH (arithmetic shift) function, and, if there's a built-in > function in Clojure, I did not find it; find-doc is your friend in this case: user=> (find-doc "shift") ---

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 > > somehow? > > My understanding i

Re: Patch: standalone compiler (almost)

2008-11-18 Thread Rich Hickey
On Nov 18, 2008, at 12:53 AM, Stephen C. Gilardi wrote: > > On Nov 17, 2008, at 11:42 PM, Stephen C. Gilardi wrote: > >> It seems there's something not quite right, though. I did a fresh >> checkout of 1108 and built with "ant" and ran with "java -jar >> clojure.jar" and got an exception: >

Re: multi-method dispatch for structs

2008-11-18 Thread Stuart Halloway
Hi Steve, Metadata is data that does not contribute to an equality relationship. In most scenarios different types are considered not equal, and so should be modelled as data. Stuart > > On Nov 14, 3:42 pm, Chouser <[EMAIL PROTECTED]> wrote: >> On Fri, Nov 14, 2008 at 2:11 PM, Jeff Rose <[

Alioth binary-tree benchmark

2008-11-18 Thread Simon Brooke
As a learning exercise and also to continue to investigate Clojure performance I've roughly translated the Alioth binary-tree benchmark into Clojure. I chose the binary-tree simply because it's the first of the Alioth benchmarks in alphabetical collation; I may do others later. I've based my impl

Re: POLL: Domain name for project hosting site.

2008-11-18 Thread Paul Drummond
At the risk of sounding like an old fart, I cringe when I hear "Clojury" and "Jewel" - they are too "cute" (as Rich nicely put it a while back - http://groups.google.com/group/clojure/msg/0351ca20c758b0b3). I agree with Brian Carper - we should keep it readable so +1 for something like "clojurefor

Re: POLL: Domain name for project hosting site.

2008-11-18 Thread Rastislav Kassak
Ruby has gems, python has eggs, I guess Clojure could have jewels. And Clojure could have Clojury of jewels. So +1 for clojury. On 11/17/08, Drew Crampsie <[EMAIL PROTECTED]> wrote: > > Hey All, > > I've finally found some time to start getting the project hosting site > together, and i need a

Re: POLL: Domain name for project hosting site.

2008-11-18 Thread Christian Vest Hansen
Clojury and conj.us are good names, I think. On Tue, Nov 18, 2008 at 6:47 AM, cwyang <[EMAIL PROTECTED]> wrote: > > What a great name 'conj' is, for project hosting site name! > (no shame for self-complement :-) ) > > user=> (def repository '(proj-foo proj-bar)) > #=(var user/repository) > user=>

Re: Agent errors reporting

2008-11-18 Thread Toralf Wittner
On Sun, 2008-11-16 at 01:35 +0100, [EMAIL PROTECTED] wrote: > Currently agent errors are only reported when the agent is derefenced > or further actions are dispatched to the agent. It would be great if > one can get immediate notification of agent errors maybe through a > callback. I also have a