Re: ANN: Preliminary Clojure Support in Buildr

2009-03-03 Thread Daniel Spiewak
djspiewak-buildr This will keep you up to date with the latest stuff in my fork without the need to clone it yourself or go through the conniptions of installing all of the build dependencies (which include some other weird installs like assaf-docter). Daniel On Feb 27, 4:21 pm, Daniel Spiewak djspie

Re: ANN: Preliminary Clojure Support in Buildr

2009-02-27 Thread Daniel Spiewak
rake install Note that there is no need to run rake under sudo, the install task will handle that for you. Daniel On Feb 26, 7:59 pm, Daniel Spiewak djspie...@gmail.com wrote: Crud.  I suspect this is something weird with the way that the GitHib gem server works.  I'll try to repeat

Re: ANN: Preliminary Clojure Support in Buildr

2009-02-27 Thread Daniel Spiewak
Correction: git clone git://github.com:djspiewak/buildr.git Daniel On Feb 27, 11:44 am, Daniel Spiewak djspie...@gmail.com wrote: I was able to repeat the problem.  I suspect that the issue is the way in which GitHub is building its gems.  I think Assaf (the lead dev for Buildr) has

Re: ANN: Preliminary Clojure Support in Buildr

2009-02-27 Thread Daniel Spiewak
wrote: On Fri, Feb 27, 2009 at 6:47 PM, Daniel Spiewak djspie...@gmail.com wrote: Correction:  git clone git://github.com:djspiewak/buildr.git git clone git://github.com/djspiewak/buildr.git Excellent. Got it installed. Daniel On Feb 27, 11:44 am, Daniel Spiewak djspie...@gmail.com

Re: ANN: Preliminary Clojure Support in Buildr

2009-02-26 Thread Daniel Spiewak
... (Gem::RemoteFetcher::FetchError)     timed out (http://gems.rubyforge.org/gems/net-ssh-2.0.4.gem) On Sat, Feb 21, 2009 at 10:33 PM, Daniel Spiewak djspie...@gmail.com wrote: I'm pleased to announce preliminary (and very experimental) support for the Clojure AOT compiler and REPL within

Re: ANN: Preliminary Clojure Support in Buildr

2009-02-26 Thread Daniel Spiewak
Note that you cannot mix Java and Clojure sources within the same project. Aww... :( Joint-compilation is actually a hard problem normally. However, since Clojure is late-bound, I should be able to do it without too much horror. Actually, I should be able to do joint compilation with

Re: ANN: Preliminary Clojure Support in Buildr

2009-02-26 Thread Daniel Spiewak
 * does it support namespaces separated in several files (handling files that begin with 'in-ns, or just not trying to compile them ?)  * if so, will it support the scenario of multiple files per ns, where just another file (and not the file defining the ns) is modified ? I didn't even know

Re: ANN: Preliminary Clojure Support in Buildr

2009-02-26 Thread Daniel Spiewak
Note that you cannot mix Java and Clojure sources within the same project. It is supported in the latest changeset. The following configurations are possible: - Just Clojure: * src/main/clojure Clojure and Scala: * src/main/clojure * src/main/scala Clojure, Scala

Re: ANN: Preliminary Clojure Support in Buildr

2009-02-26 Thread Daniel Spiewak
I'm not sure what the File not found thing is all about, but you should still be ok (crazy gems). Try the following: buildr --version Daniel On Feb 26, 3:16 pm, Christian Vest Hansen karmazi...@gmail.com wrote: On Thu, Feb 26, 2009 at 6:17 PM, Daniel Spiewak djspie...@gmail.com wrote

Re: ANN: Preliminary Clojure Support in Buildr

2009-02-26 Thread Daniel Spiewak
/custom_require.rb:36:in `require'         from /opt/local/lib/ruby/gems/1.8/gems/djspiewak-buildr-1.3.4/bin/buildr:18         from /opt/local/bin/buildr:19:in `load'         from /opt/local/bin/buildr:19 rowe:~$ gem --version 1.3.1 rowe:~$ On Thu, Feb 26, 2009 at 10:30 PM, Daniel Spiewak

ANN: Preliminary Clojure Support in Buildr

2009-02-21 Thread Daniel Spiewak
I'm pleased to announce preliminary (and very experimental) support for the Clojure AOT compiler and REPL within Apache Buildr (http:// buildr.apache.org). At present, this support is only available within my Git fork available here: git://github.com/djspiewak/buildr.git More specifically,

Re: jEdit Mode for Clojure

2008-12-15 Thread Daniel Spiewak
I been thinking about this during the weekend, and I think I prefer the mode to be aware of nesting (unless you can cause it to blow the stack on a large Well, this would be my question: why? :-) Auto-indent needs to be aware of nesting, but that's already handled in a separate pass from the

Re: jEdit Mode for Clojure

2008-12-15 Thread Daniel Spiewak
that jEdit's greedy matching will get in the way. Daniel On Dec 16, 1:22 am, Daniel Spiewak djspie...@gmail.com wrote: I been thinking about this during the weekend, and I think I prefer the mode to be aware of nesting (unless you can cause it to blow the stack on a large Well, this would be my

Re: jEdit Mode for Clojure

2008-12-12 Thread Daniel Spiewak
(courtesy of enclojure) - anyone want to take it on and improve it, I don't have time right now?? It was based on the scheme plugin. bd On Thu, 11 Dec 2008 17:30:37 -0800 (PST) Daniel Spiewak djspie...@gmail.com wrote: I merged in all the interesting stuff from David Moss's ClojurejEdit mode

Re: jEdit Mode for Clojure

2008-12-12 Thread Daniel Spiewak
we have the best superset in the editor. Does it sound like a plan? Kind Regards, David. 2008/12/12 Daniel Spiewak djspie...@gmail.com Which highlighting does it use? Daniel On Dec 12, 5:10 am, blackdog black...@ipowerhouse.com wrote: If anyone on this thread is interested I

Re: jEdit Mode for Clojure

2008-12-11 Thread Daniel Spiewak
It's been too long since I've looked at this thread... I took a look at the mode you linked. My mode is quite a bit more powerful, particularly with the changes I added today. The linked mode does do some highlighting of special forms like @[...] that mine doesn't do yet, mainly because I

Re: jEdit Mode for Clojure

2008-12-11 Thread Daniel Spiewak
Oh, also I should mention that I found the magic incantation to make auto-indentation work perfectly. It handles multiple unindents just fine now. Daniel On Dec 11, 12:34 pm, Daniel Spiewak djspie...@gmail.com wrote: It's been too long since I've looked at this thread... I took a look

Re: jEdit Mode for Clojure

2008-12-11 Thread Daniel Spiewak
Hi, just saw this thread. I had made some modifications to the edit mode and uploaded it for inclusion (as a patch) here:http://sourceforge.net/tracker/index.php?func=detailaid=2201893grou... . I haven't checked the status in a while as my internet is very intermittent ATM. Please let me

Re: jEdit Mode for Clojure

2008-12-11 Thread Daniel Spiewak
Where do we find your latest version? Or do you want / need to refine it further? I'm constantly messing around with it and trying to make it a little better. The very latest version is always here: http://github.com/djspiewak/jedit-modes/tree/master/clojure.xml Daniel

Re: jEdit Mode for Clojure

2008-12-11 Thread Daniel Spiewak
correctly. Feedback is welcome. I'm certainly willing to change the way things are highlighted, add highlighting or remove it. Daniel On Dec 11, 2:58 pm, Daniel Spiewak djspie...@gmail.com wrote: Hi, just saw this thread. I had made some modifications to the edit mode and uploaded

Re: newbie: can clojure do ...

2008-11-10 Thread Daniel Spiewak
Sounds like you're wasting your time trying to get this working with just static HTML pages. I think that it's possible, but you would have to do a lot of really nasty javascript hackery to make the button targets dynamic. Alternatively, the HTML could be truely static and pre-generated using a

Re: Generalized Type Inference Optimization

2008-11-07 Thread Daniel Spiewak
((String)x).length. There's no need to unify the types. There's nothing 'bad' about the code above, that's why we're using Lisp - the type systems are still struggling to be expressive enough. If some third class had both methods, that would become the preferred branch. I actually hadn't

Re: jEdit Mode for Clojure

2008-11-06 Thread Daniel Spiewak
After I posted this, I realized that it was a little silly to talk about a Lisp editor mode without auto-indentation. It has been added! The main caveat is it doesn't seem to handle multiple unindents with the correctness I would like. For example: (defn say-hi [n] (println (str Hello,

Generalized Type Inference Optimization

2008-11-06 Thread Daniel Spiewak
I've been perusing Stu Halloway's beta of Programming Clojure and I came across the following example: (defn describe-class [c] {:name (.getName c) :final (java.lang.reflect.Modifier/isFinal (.getModifiers c))}) As demonstrated by the *warn-on-reflection* flag, Clojure is unable to

Re: Generalized Type Inference Optimization

2008-11-06 Thread Daniel Spiewak
PROTECTED] wrote: On Nov 6, 4:31 pm, Daniel Spiewak [EMAIL PROTECTED] wrote: I've been perusing Stu Halloway's beta of Programming Clojure and I came across the following example: (defn describe-class [c]   {:name (.getName c)    :final (java.lang.reflect.Modifier/isFinal (.getModifiers c

jEdit Mode for Clojure

2008-11-05 Thread Daniel Spiewak
Just thought it was about time I gave someone a heads up about this... Mostly for amusement, I created a jEdit mode for Clojure a while back. I don't get a chance to play with Clojure all that much, so it hasn't been heavily tested (go-to *is* a Clojure keyword, right?). ;-) It's primarily

Re: Deploying with SWT

2008-10-02 Thread Daniel Spiewak
SWT has made huge strides in the past few releases in improving ease of deployment. As of 3.4, all you need to do is include the swt.jar file for your particular platform and you're all set. So long as it is on your application's classpath, SWT will figure out the appropriate steps to bring the