Re: AOT compilation of "dynamic" code

2008-12-01 Thread Juergen Gmeiner
On Dec 1, 2:53 pm, Rich Hickey <[EMAIL PROTECTED]> wrote: > Could you give some more information on the error you get (when log4j > is not found), especially a stack trace? And also some more > information on how your gjdv.logging macros work? Minimal example to produce the results: 3 libraries:

Re: undefined symbols (CL vs. Clojure)

2008-12-01 Thread Meikel Brandmeyer
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 a function that relies on something currently > not-yet-defined.  Why is this the appropriate behavior? As other stated you shou

Re: Vector concatenation

2008-12-01 Thread Meikel Brandmeyer
Hi, On 30 Nov., 12:10, Meikel Brandmeyer <[EMAIL PROTECTED]> wrote: > (reduce conj v1 v2) And as pointed out by Rich: (into v1 v2). Sincerely Meikel --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Clojure" group

Re: Vim tag file generator

2008-12-01 Thread Meikel Brandmeyer
Hi, On 2 Dez., 00:49, Randall R Schulz <[EMAIL PROTECTED]> wrote: > Trying to make me look bad, eh? Well, it's not really a challenge, you > know... o.O Do I? > I also noticed that there are some defined names with no source file > ('cause they're not defined by Clojure code.) Those must be sup

Re: Vector concatenation

2008-12-01 Thread hoeck
puzzler wrote: > subvec is O(1) because it takes advantage of sharing. This is quite > useful. > > Is there a way to write concatvec in an O(1) way, taking advantage of > sharing? > I suspect that the "obvious way" to concatenate vectors, i.e., (into > [] (concat v1 v2)), would be O(n). Anothe

Re: Lazy living, without variables

2008-12-01 Thread Timothy Pratley
;H but wait, I saw on the website that Clojure does have local variables! user=> (with-local-vars [a 2] (var-set a 3) (var-get a)) 3 ;I am allowed to close over them: user=> (def f (with-local-vars [a 2] #(+ 1 (var-get a #=(var user/f) ;But they stop me to shoot myself user=> (f) java.lan

Re: DISCUSS: replace (rand)

2008-12-01 Thread Paul Barry
Looks like the only synchronization is for lazy initialization of the instance of Random used by the static method: public final class Math { private static Random randomNumberGenerator; private static synchronized void initRNG() { if (randomNumberGenerator == null)

DISCUSS: replace (rand)

2008-12-01 Thread Stuart Halloway
Clojure's rand delegates to Java's Math.random(), which I am pretty sure has a synchronized block in it. One problem with living on top of Java is calling into methods that have no (conceptual) need to be synchronized. This could hurt performance in an app carefully written in Clojure to av

Re: randomize a collection?

2008-12-01 Thread Timothy Pratley
http://groups.google.com/group/clojure/browse_thread/thread/180842eb58c58370/0e19ab338452c64f?lnk=gst&q=shuffle#0e19ab338452c64f The recommendation was to use java.util.Collections/shuffle and an example was given: (defn shuffle [coll] (let [l (java.util.ArrayList. coll)] (java.util.Collect

Re: randomize a collection?

2008-12-01 Thread Craig Andera
Not sure if there's a built-in one, but I had a lot of fun coming up with this one: (defn shuffle [coll] (map second (sort (map (fn [x] [(rand) x]) coll Now I'm looking forward to hearing how I could have done it better...the real fun on this list, since Clojure has so many ways to amaze!

randomize a collection?

2008-12-01 Thread Brian Doyle
Is there a function that takes a collection and randomizes, or shuffles, the items? --~--~-~--~~~---~--~~ 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 uns

Re: undefined symbols (CL vs. Clojure)

2008-12-01 Thread .Bill Smith
I know you're asking for a reason, not a workaround, but I'll suggest a workaround anyway: (def mysecond) (defn myfirst [] (mysecond)) Bill --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post t

Re: undefined symbols (CL vs. Clojure)

2008-12-01 Thread Mon Key
;; you can evaluate: (defn myfirst [x] (mysecond x)) ;; then bind that to: (defn mysecond [x] (+ x 1)) user> (myfirst 1) => 2 Which winds up being more better once you let go of the CL assumptions about ns :) I'm finding that part difficult as well. On Dec 1, 10:47 pm, "[EMAIL PROTECTED]" <[EMAI

Re: undefined symbols (CL vs. Clojure)

2008-12-01 Thread Mon Key
;; you can evaluate: (defn myfirst [x] (mysecond x)) ;; then bind that to: (defn mysecond [x] (+ x 1)) user> (myfirst 1) => 2 Which winds up being more better once you let go of the CL assumptions about ns :) I'm finding that part difficult as well. On Dec 1, 10:47 pm, "[EMAIL PROTECTED]" <[EMAI

Re: undefined symbols (CL vs. Clojure)

2008-12-01 Thread Stuart Halloway
Hi Ryan, In Clojure a var can refer to a function, or something else, and what a var refers to can change at runtime. You can call def with no arguments, or call declare, to def the var name with no initial binding: (declare mysecond) -> #'user/mysecond (defn myfirst [] (mysecond)) -> #'use

undefined symbols (CL vs. Clojure)

2008-12-01 Thread [EMAIL PROTECTED]
I'm reading through Practical Common Lisp as a way to get more familiar with Lisp. In Chapter 4 I came across a stumbling block in the section "S-expressions As Lisp Forms." Towards the end of that section it says "To determine what kind of form a given list is, the evaluator must determine whe

Re: Supporting protected fields in genclass

2008-12-01 Thread Matt Revelle
Patch with requested changes attached. Also fixed a bug, the error message now correctly refers to the class used to initiate the field search. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Clojure" group. To

Re: Lazy living, without variables

2008-12-01 Thread Timothy Pratley
> The reason is simple - plain mutable variables have no concurrency > semantics. What if you closed over a mutable local? Now you have an > object with no synchronization, a concurrency mess. Thanks Rich for the clarification... that makes it immediately obvious why using mutable locals is a bad

Re: Supporting protected fields in genclass

2008-12-01 Thread Matt Revelle
Rich, Will make the change and resubmit tonight or tomorrow night. Having computer issues this evening. -Matt On Dec 1, 2008, at 3:44 PM, Rich Hickey <[EMAIL PROTECTED]> wrote: > > > > On Dec 1, 2:57 pm, Matt Revelle <[EMAIL PROTECTED]> wrote: >> Yes, this again. Now that we have AOT, I wa

Re: Lazy living, without variables

2008-12-01 Thread Rich Hickey
On Dec 1, 7:37 pm, Timothy Pratley <[EMAIL PROTECTED]> wrote: > Local variables are good in these situations > > 1) You want to accumulate some changes eg: > // sum odds > int x = 0; > for (int i=0; i<100; i++) { >if ( i%2==1 ) x+=i; } > > ;It is relatively easy to rearrange these sort of th

Re: Lazy living, without variables

2008-12-01 Thread Timothy Pratley
Local variables are good in these situations 1) You want to accumulate some changes eg: // sum odds int x = 0; for (int i=0; i<100; i++) { if ( i%2==1 ) x+=i; } ;It is relatively easy to rearrange these sort of things into a form that requires no variables user=> (reduce #(+ %1 (if (= 1 (rem

Re: Lazy living, without variables

2008-12-01 Thread Jarkko Oranen
> Here's how I think you could do a mutable local: > (defn f [] >   (def mut-local) >   (binding [mut-local 0] >      (set! mut-local 1) >      mut-local)) > > (f) should yield 1 > > The flaw with this approach is that def actually creates a global > var.  It remains unbound, but the fact that th

Re: Vim tag file generator

2008-12-01 Thread Randall R Schulz
On Monday 01 December 2008 15:25, Meikel Brandmeyer wrote: > Dear vimming Clojurians, > > I stitched together a quick'n'dirty Clojure tags program. > ... Trying to make me look bad, eh? Well, it's not really a challenge, you know... > ... > > Currently it assumes the following file structure:

Re: quit

2008-12-01 Thread Mark Volkmann
On Mon, Dec 1, 2008 at 4:31 PM, André Thieme <[EMAIL PROTECTED]> wrote: > > On 30 Nov., 23:58, "Mark Volkmann" <[EMAIL PROTECTED]> wrote: > >> I think you misunderstood what I was suggesting. I was only referring >> to expressions entered in a REPL, not expressions in a file of Clojure >> code. >

Vim tag file generator

2008-12-01 Thread Meikel Brandmeyer
Dear vimming Clojurians, I stitched together a quick'n'dirty Clojure tags program. It reads in the named namespaces, extracts the file and line information and creates a tags file, which is suitable to be used by Vim. Invokation: java -cp ... de.kotka.cljtags --output tags --prefix src some.na

Re: quit

2008-12-01 Thread André Thieme
On 30 Nov., 23:58, "Mark Volkmann" <[EMAIL PROTECTED]> wrote: > I think you misunderstood what I was suggesting. I was only referring > to expressions entered in a REPL, not expressions in a file of Clojure > code. I understood that part and explained why this wouldn’t work. Not in the REPL, not

proposal: match multimethod

2008-12-01 Thread Stuart Halloway
I am thinking about adding a match method to Clojure-contrib. This would work like Ruby's threequals ("===", a.k.a. case equality) and would be implemented as a multimethod to do sensible things with a wide variety of types. (1) Good idea? (2) What should it be named? Stuart --~--~--

Re: Lazy living, without variables

2008-12-01 Thread Ralf Bensmann
Hm... this way you have to setup a ref and a transaction, but its local: user=> (let [a (ref 0)] (dosync (ref-set a 1))) 1 user=> a java.lang.Exception: Unable to resolve symbol: a in this context (NO_SOURCE_FILE:0) -Ralf On Mon, Dec 1, 2008 at 10:07 PM, jim <[EMAIL PROTECTED]> wrote: > > The rul

Re: Lazy living, without variables

2008-12-01 Thread jim
The rule of thumb I used when I started with Clojure was if I'm tempted to use a def inside a function, I'm doing something wrong. Now, I'm not even tempted. (def mut-local) (defn f [] (binding [mut-local 0] (set! mut-local 1) mut-local)) Is the same as what you wrote. Functional

Re: Lazy living, without variables

2008-12-01 Thread puzzler
I'm often copying "classic algorithms" from various sources, and it is true that it can take some thought to do a functional conversion. Sometimes, it's easier to just go ahead and use mutable local variables. Fortunately, Clojure lets you do mutability if needed. But I'm still unclear on the be

Re: Supporting protected fields in genclass

2008-12-01 Thread Rich Hickey
On Dec 1, 2:57 pm, Matt Revelle <[EMAIL PROTECTED]> wrote: > Yes, this again. Now that we have AOT, I wanted to revisit supporting > the exposing of inherited protected fields that originate from farther > up the hierarchy chain than the super class. > > Attached is a patch against SVN revision

Re: fix imports

2008-12-01 Thread Stuart Sierra
On Nov 28, 7:41 am, lpetit <[EMAIL PROTECTED]> wrote: > The "fix import" action could try to resolve an unknown symbol by > first searching the symbol in one of the classpath available > namespaces, and then search for java classes in the classpath. > It could then add an import/require command fo

Re: Updated version of the ported gears demo

2008-12-01 Thread ivant
On Dec 1, 7:48 pm, mehrheit <[EMAIL PROTECTED]> wrote: > On Mon, 1 Dec 2008 08:37:22 -0800 (PST) > > ivant <[EMAIL PROTECTED]> wrote: > > >You are generally right about this, but not in this case.  This macro > >*explicitly* captures the variable "gl".  It is actually used in the > >body and is ex

Supporting protected fields in genclass

2008-12-01 Thread Matt Revelle
Yes, this again. Now that we have AOT, I wanted to revisit supporting the exposing of inherited protected fields that originate from farther up the hierarchy chain than the super class. Attached is a patch against SVN revision 1133. I promise to never bring this up again. =) -Matt --~--~

Re: slime+clojure problem

2008-12-01 Thread Peter Eddy
> How are you attempting to start slime? Are you doing: > > 1. C-u M-x slime RET clojure RET > > OR > > 2. M-- M-x slime RET clojure RET Well, either method caused this error for me. I deleted all my slime and clojure-related source trees and re-checked everything out again (taking advantage to o

Re: AOT compilation of "dynamic" code

2008-12-01 Thread Stuart Sierra
On Dec 1, 5:36 am, Juergen Gmeiner <[EMAIL PROTECTED]> wrote: > I am toying around with a logging wrapper for log4j that will fall > back on java.util.logging when log4j is not present in the classpath. Just FYI, I think Apache Commons Logging will do that for you. http://commons.apache.org/loggi

Re: Embedding Clojure/swank into existing Java system

2008-12-01 Thread Craig McDaniel
Never mind about my unloaded/reloading servlets comment. Checking for a swank exception as in the original example would work fine. -Craig --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to

Re: slime+clojure problem

2008-12-01 Thread bc
Hi Peter, On Dec 1, 10:05 am, Peter Eddy <[EMAIL PROTECTED]> wrote: > On Dec 1, 1:00 pm, Craig McDaniel <[EMAIL PROTECTED]> wrote: > > > Make sure you're using the latest versions of clojure (SVN version, > > not dated release), and swank-clojure as well. > > Thanks. Everything is current, I just

Re: slime+clojure problem

2008-12-01 Thread Craig Andera
You should double-check: I had the same problem, and it was related to not having an up-to-date implementation of Clojure. Be aware that you probably need to run "ant clean jar" on the Clojure sources after getting them from SVN. On Mon, Dec 1, 2008 at 1:05 PM, Peter Eddy <[EMAIL PROTECTED]> wrot

Re: Java libraries

2008-12-01 Thread Chouser
On Mon, Dec 1, 2008 at 1:01 PM, puzzler <[EMAIL PROTECTED]> wrote: > > Clojure is designed for concurrency, but I don't see any functions in > the API to spin off new threads. See 'send' and 'send-off'. send-off in particular will start a new thread if there are not idle threads available in its

Re: slime+clojure problem

2008-12-01 Thread Peter Eddy
On Dec 1, 1:00 pm, Craig McDaniel <[EMAIL PROTECTED]> wrote: > Make sure you're using the latest versions of clojure (SVN version, > not dated release), and swank-clojure as well. Thanks. Everything is current, I just sync'd everything to be sure but same problem. --~--~-~--~~

Java libraries

2008-12-01 Thread puzzler
Clojure is designed for concurrency, but I don't see any functions in the API to spin off new threads. So I assume you're expected to know and use Java libraries for this. For those of us who are coming to Clojure without knowing a whole lot of Java, it would be useful if someone could provide p

Re: slime+clojure problem

2008-12-01 Thread Craig McDaniel
Make sure you're using the latest versions of clojure (SVN version, not dated release), and swank-clojure as well. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to

Re: Updated version of the ported gears demo

2008-12-01 Thread mehrheit
On Mon, 1 Dec 2008 08:37:22 -0800 (PST) ivant <[EMAIL PROTECTED]> wrote: > >You are generally right about this, but not in this case. This macro >*explicitly* captures the variable "gl". It is actually used in the >body and is expected to be bound to the result of glBegin. > Could you elaborat

Re: slime+clojure problem

2008-12-01 Thread Peter Eddy
Oops, I was using an older version of slime. After updating I get the following error instead: user=> java.lang.Exception: Unable to resolve symbol: progn in this context (NO_SOURCE_FILE:1) I see at least one other person has seen this error but I don't see any solutions, other than installing

slime+clojure problem

2008-12-01 Thread Peter Eddy
Hi, I'm trying to get Clojure working with slime in emacs but see the following error when I try to start slime: Clojure user=> java.lang.Exception: Unable to resolve symbol: t in this context (NO_SOURCE_FILE:1) user=> java.lang.Exception: Unable to resolve symbol: swank:start- server in this co

Re: Lazy living, without variables

2008-12-01 Thread jim
I agree totally. I just implemented a language tokenizer that uses the maximal munch algorithm described in this paper. http://www.csc.lsu.edu/~gb/csc4351/Papers/Reps.pdf The algorithm given uses all kinds of variables and state. I was able to implement it without all that. I've also been abl

Re: Clojure Code Analysis Tools

2008-12-01 Thread Randall R Schulz
On Monday 01 December 2008 08:44, Peter Wolf wrote: > Thanks Randall, > > If you go over to the IntelliJ plugin forums, you will see lots of me > struggling with the "Custom Language API". I'm still trying to get > the icons to change for CLJ files. So, please don't expect anything > soon. > > P

Re: Embedding Clojure/swank into existing Java system

2008-12-01 Thread Craig McDaniel
Since release 1127, you can now do this instead: $ cat src/mypkg/HelloServlet.clj (ns myapp.HelloServlet (:gen-class :extends javax.servlet.http.HttpServlet) (:import (java.io PrintWriter) (java.util.logging Logger Level)) (:require swank clojure.main)) (defn- -init [this con

Re: Clojure Code Analysis Tools

2008-12-01 Thread Peter Wolf
Thanks Randall, If you go over to the IntelliJ plugin forums, you will see lots of me struggling with the "Custom Language API". I'm still trying to get the icons to change for CLJ files. So, please don't expect anything soon. P P.S. I have written the required Lexer and a Parser, however,

Re: Updated version of the ported gears demo

2008-12-01 Thread ivant
On Dec 1, 5:37 pm, mehrheit <[EMAIL PROTECTED]> wrote: > On Mon, 1 Dec 2008 06:53:47 -0800 (PST) > > ivant <[EMAIL PROTECTED]> wrote: > > > On Dec 1, 9:23 am, "Andrew P. Lentvorski, Jr." <[EMAIL PROTECTED]> > > wrote: > > > (defmacro with-gl > >   [gl mode & body] > >   `(try (. ~gl glBegin (. GL

Re: Clojure Code Analysis Tools

2008-12-01 Thread Randall R Schulz
Hi, Peter, On Monday 01 December 2008 08:11, Peter Wolf 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 integrated > environmen

Re: Defaulted (get ...) Not Documented

2008-12-01 Thread Rich Hickey
On Dec 1, 10:19 am, Randall R Schulz <[EMAIL PROTECTED]> wrote: > Hi, > > I looked for a version of (get map key) that would supply a default > value if the key was not present in the map. I was surprised to see (by > looking at the "Data Structure" documentation page, >

Re: Clojure Code Analysis Tools

2008-12-01 Thread Peter Wolf
I am an EMACS user, and I started off by trying SLIME. I liked it. Unfortunately, most of my work is in Java, and because every class has its own file, and Java is so "wordy", EMACS is a terrible Java environment (sorry... Java is a terrible language ;-)) Since I plan to introduce Clojure int

Lazy living, without variables

2008-12-01 Thread Stuart Halloway
Lazyness is just so cool: http://blog.thinkrelevance.com/2008/12/1/living-lazy-without-variables Feedback welcomed, Stu --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send e

Re: Macro debugging

2008-12-01 Thread Konrad Hinsen
On 01.12.2008, at 15:28, Mark McGranaghan wrote: > You might find this group post on a "recursive macroexpand" useful: > http://groups.google.com/group/clojure/browse_thread/thread/ > bba604cee3b232d9/28837d55525306d8?lnk=gst&q=recursive > +macroexpand#28837d55525306d8 Thanks! Like the origina

Re: Updated version of the ported gears demo

2008-12-01 Thread mehrheit
On Mon, 1 Dec 2008 06:53:47 -0800 (PST) ivant <[EMAIL PROTECTED]> wrote: > > On Dec 1, 9:23 am, "Andrew P. Lentvorski, Jr." <[EMAIL PROTECTED]> > wrote: > > (defmacro with-gl > [gl mode & body] > `(try (. ~gl glBegin (. GL ~mode)) > [EMAIL PROTECTED] > (finally (. ~gl glEnd >

Re: Clojure Code Analysis Tools

2008-12-01 Thread Mark Feeney
I'm a long time vim user reluctantly using Emacs (via Clojure Box) for Clojure dev. SLIME and friends are just too convenient to pass up at the moment. I look forward to leaving Emacs though. It's not that it's bad (at all), I've just maxed out the amount of my brain I'm willing to devote to ob

Defaulted (get ...) Not Documented

2008-12-01 Thread Randall R Schulz
Hi, I looked for a version of (get map key) that would supply a default value if the key was not present in the map. I was surprised to see (by looking at the "Data Structure" documentation page, ) that there was none. However, I also did this: user=> (doc

Re: Updated version of the ported gears demo

2008-12-01 Thread ivant
On Dec 1, 9:23 am, "Andrew P. Lentvorski, Jr." <[EMAIL PROTECTED]> wrote: > I'd really like some folks to take a look at the "gl-beg-end" macro. > It took me *way* too long to figure out how to update that. I'd suggest to update it with the following version: (defmacro with-gl [gl mode & body]

Re: SVN or release?

2008-12-01 Thread Dakshinamurthy Karra
I am not sure pulling out whole of clojure is a good idea. Just pulling out trunk should suffice. If and when the tags and branches gets populated, this svn checkout will pull all of them. -- KD Dakshinamurthy Karra (blog: http://blog.marathontesting.com) (daily dose: http://twitter.com/marathon

Re: Macro debugging

2008-12-01 Thread Mark McGranaghan
Konrad, You might find this group post on a "recursive macroexpand" useful: http://groups.google.com/group/clojure/browse_thread/thread/bba604cee3b232d9/28837d55525306d8?lnk=gst&q=recursive+macroexpand#28837d55525306d8 - Mark On Mon, Dec 1, 2008 at 9:25 AM, Konrad Hinsen <[EMAIL PROTECTED]> wro

Macro debugging

2008-12-01 Thread Konrad Hinsen
For debugging a set of macros, I would like to see the form that a given expression is expanded into by the compiler. My first try was macroexpand, of course, but as its docstring says very well, it doesn't expand macros in subforms. Is there any function that does? In other words, given

Re: Clojure Code Analysis Tools

2008-12-01 Thread Mark Volkmann
On Mon, Dec 1, 2008 at 8:06 AM, Randall R Schulz <[EMAIL PROTECTED]> wrote: > > On Monday 01 December 2008 05:21, mehrheit wrote: >> On Sun, 30 Nov 2008 07:34:35 -0800 >> >> Randall R Schulz <[EMAIL PROTECTED]> wrote: >> > So... As I'm writing this, it occurs to me that the compiler >> > attaches

Re: Clojure Code Analysis Tools

2008-12-01 Thread Randall R Schulz
On Monday 01 December 2008 05:21, mehrheit wrote: > On Sun, 30 Nov 2008 07:34:35 -0800 > > Randall R Schulz <[EMAIL PROTECTED]> wrote: > > So... As I'm writing this, it occurs to me that the compiler > > attaches source location information (file name and line number) as > > metadata to any Var it

Re: AOT compilation of "dynamic" code

2008-12-01 Thread Rich Hickey
On Dec 1, 5:36 am, Juergen Gmeiner <[EMAIL PROTECTED]> wrote: > Hello, > > I am toying around with a logging wrapper for log4j that will fall > back on java.util.logging when log4j is not present in the classpath. > > Currently, I have 2 implementation libararies gjdv.logging.log4j and > gjdv.lo

Re: fix imports

2008-12-01 Thread Paul Drummond
2008/12/1 Michael Wood <[EMAIL PROTECTED]> > I think his point is that if he gets an "Unable to resolve symbol: > Polygon" error and also an "Unable to resolve symbol: Point2D" error > then he still has to figure out which one is in java.awt and which is > in java.awt.geom. He wants a tool to spi

Re: fix imports

2008-12-01 Thread Michael Wood
On Mon, Dec 1, 2008 at 1:15 PM, Paul Drummond <[EMAIL PROTECTED]> wrote: > 2008/11/28 Martin DeMello <[EMAIL PROTECTED]> >> >> No, I'd be perfectly happy with a command line tool that could analyse >> my clojure program and tell me what imports I'm missing - I just don't >> want to have to tedious

Re: Clojure Code Analysis Tools

2008-12-01 Thread mehrheit
On Sun, 30 Nov 2008 07:34:35 -0800 Randall R Schulz <[EMAIL PROTECTED]> wrote: > > So... As I'm writing this, it occurs to me that the compiler attaches > source location information (file name and line number) as metadata > to any Var it creates (I think that's the proper locus of the > attachm

Re: AOT Compilation for Contrib

2008-12-01 Thread Juergen Gmeiner
Hello, > - javalog: wants some GLOBAL_LOGGER_NAME, which >    I can't find anywhere. So someone with more Java >    background wants to have a look? GLOBAL_LOGGER_NAME is Java 6. In Java 5, there is java.util.logging.Logger/global which is deprecated in Java 6. diff --git a/src/clojure/contri

AOT compilation of "dynamic" code

2008-12-01 Thread Juergen Gmeiner
Hello, I am toying around with a logging wrapper for log4j that will fall back on java.util.logging when log4j is not present in the classpath. Currently, I have 2 implementation libararies gjdv.logging.log4j and gjdv.logging.javalog that wrap the corresponding java libraries. I have a 3rd libra

Re: Clojure could be to Concurrency-Oriented Programming what Java was to OOP

2008-12-01 Thread Rich Hickey
On Dec 1, 3:03 am, bc <[EMAIL PROTECTED]> wrote: > Hi all, > > I've written a blog post titled "Clojure could be to Concurrency- > Oriented Programming what Java was to OOP" in which I discuss > Clojure's approach to concurrency:http://bc.tech.coop/blog/081201.html > > Any comments/criticisms wo

Re: fix imports

2008-12-01 Thread Paul Drummond
2008/11/28 Martin DeMello <[EMAIL PROTECTED]> > No, I'd be perfectly happy with a command line tool that could analyse > my clojure program and tell me what imports I'm missing - I just don't > want to have to tediously go through the javadocs one by one and see, > for instance, that I need java.a

Clojure could be to Concurrency-Oriented Programming what Java was to OOP

2008-12-01 Thread bc
Hi all, I've written a blog post titled "Clojure could be to Concurrency- Oriented Programming what Java was to OOP" in which I discuss Clojure's approach to concurrency: http://bc.tech.coop/blog/081201.html Any comments/criticisms would be appreciated. Thanks, Bill --~--~-~--~~