Re: JSR 223

2009-07-31 Thread pmf
On Aug 1, 2:36 am, Niels Mayer wrote: > PS: I've always seen xwiki as the "emacs of webapps" (and wikis)... > So I'm looking forward to having a real emacsish type language -- clojure > -- > to extend it via a more appropriate language for scripting. I'm the author of the JSR 223 bridge for Cloj

Re: JSR 223

2009-07-31 Thread Niels Mayer
http://www.xwiki.org/xwiki/bin/view/Main/ReleaseNotesXWikiEnterprise20M2On Fri, Jul 31, 2009 at 9:04 AM, Mike wrote: > > Are there plans for Clojure to work in JSR-223 (Java Scripting > Framework)? I see a lot of languages up there already. In fact, the > only major JVM languages missing are Sca

Re: JSR 223

2009-07-31 Thread Stuart Sierra
Someone's working on it: http://github.com/pmf/clojure-jsr223/tree/master -SS On Jul 31, 12:04 pm, Mike wrote: > Sorry if this is a FAQ; couldn't find it on the main site nor in the > group. > > Are there plans for Clojure to work in JSR-223 (Java Scripting > Framework)?  I see a lot of langua

New version of AnotherClojureBox (ACB)

2009-07-31 Thread Darmac
Hi I just release a new version of AnotherClojureBox!! What's new: - First, ACB Launcher!! Many people ask me for what file should be executed in order to edit or run REPL, so I did a launcher that wiil be always there. - Improved inline form documentation (now include clojure.contrib namespace

Is it possible to swap in a new classloader?

2009-07-31 Thread Garth Sheldon-Coulson
Dear Clojurians, Is it possible to dynamically swap in a new classloader or give Clojure's classloader a new parent classloader? I'm embedding Clojure in a parent app, and the parent app has its own classloader that keeps track of its own classpath. It gives my embedded Clojure a pretty meager cl

JSR 223

2009-07-31 Thread Mike
Sorry if this is a FAQ; couldn't find it on the main site nor in the group. Are there plans for Clojure to work in JSR-223 (Java Scripting Framework)? I see a lot of languages up there already. In fact, the only major JVM languages missing are Scala and Clojure. Thanks for any info... Mike --

REQUEST: Add apply-map to contrib.def (or core)

2009-07-31 Thread Sean Devlin
I've been using Meikel's defnk macro a fair bit in some of my code. I have several functions that have sensible defaults that only need to be overridden occasionally, so keyword arguments fit the bill nicely. Let's consider two (contrived) keyword fns. (use 'clojure.contrib.def) (defnk add [

Re: Keyword not serializable

2009-07-31 Thread Chris Kent
Great. As far as my (possibly flawed) understanding goes it should be pretty simple. Make it implement Serializable and add a readResolve method that returns intern(sym). sym will have already been interned by its own readResolve method. On Jul 31, 3:03 am, Chas Emerick wrote: > It turns out

Re: c.c Assembla wiki

2009-07-31 Thread Tom Faulhaber
Sorry, I've been meaning to post info about the "new" autodoc area on github, but it's not totally complete yet (and summer has been keeping my busy in other ways). All of the API documentation is on github at http://richhickey.github.com/clojure-contrib/ and is generally pretty much up to the m

Re: Idiomatic parsing of objects from several lines of a text file

2009-07-31 Thread Richard Newman
> I don't know about you, but I personally prefer to only use symbols > that I can actually type. Copying and pasting from Character Map > kind of interrupts flow, if you know what I mean? Heh, yes indeed :) That was the reason behind writing "suppose"! Sure-fire way to turn off Windows use

Re: c.c Assembla wiki

2009-07-31 Thread Sean Devlin
Okay, good to know. I think that a link in the assembla wiki homepage would help future users a lot. Should I submit a ticket? How should this be handled? Sean On Jul 31, 11:57 am, Christophe Grand wrote: > Hi, > > it's not on assembla but on > github:http://richhickey.github.com/clojure-co

Re: Has anyone tried using Clojure with JavaFX?

2009-07-31 Thread samppi
Cool—does it seem to work fine? Do you think you could upload it to GitHub or the group or something, as an example for everyone? On Jul 30, 5:13 pm, Sam Griffith wrote: > I've done a very simple example.  What the example does currently is > to have a two text fields and a button in JavaFX talk

Re: Good memory profilers (program or human)?

2009-07-31 Thread Berlin Brown
On Jul 31, 12:06 pm, Berlin Brown wrote: > On Jul 31, 4:45 am, Andy Fingerhut > wrote: > > > > > I thought I'd follow up my own question with some programs that I > > should have already known about for memory profiling, which were > > already installed on my Mac as part of the standard Java i

Re: Good memory profilers (program or human)?

2009-07-31 Thread Berlin Brown
On Jul 31, 4:45 am, Andy Fingerhut wrote: > I thought I'd follow up my own question with some programs that I > should have already known about for memory profiling, which were > already installed on my Mac as part of the standard Java installation > from Apple (who are just passing them on fro

Re: c.c Assembla wiki

2009-07-31 Thread Christophe Grand
Hi, it's not on assembla but on github: http://richhickey.github.com/clojure-contrib/ Christophe On Fri, Jul 31, 2009 at 5:09 PM, Sean Devlin wrote: > > The move from Google code to github has been awesome. Rich, you & the > main contributors have done a kick ass job of getting everything in >

c.c Assembla wiki

2009-07-31 Thread Sean Devlin
The move from Google code to github has been awesome. Rich, you & the main contributors have done a kick ass job of getting everything in order. Thank you listening to the community, it has been a big help. I'd like to ask one small thing. The Clojure Contrib wiki doesn't exist on Assembla, an

Re: Idiomatic parsing of objects from several lines of a text file

2009-07-31 Thread Aaron Cohen
I think it's MY C++ background shining through, but I keep reading (ref->commit) as "execute the commit method of the ref datastructure." I'll have to echo the lack of enthusiasm of inputting fancy characters, though the Emacs mode to prettify the display look interesting. Good luck with the conte

Bug in parallel.clj (and fix)

2009-07-31 Thread Eric
I tried to import clojure.parallel today and it didn't work. It couldn't find forkjoin.ParallelArray So I went hunting for it and it doesn't exist. There is a extra166y.ParallelArray. In fact, all of the names imported were in extra166y. So I changed the line in parallel to reflect that. (im

Re: Good memory profilers (program or human)?

2009-07-31 Thread Christian Vest Hansen
Eclipse MAT (Memory Analysis Tool, or something like that) is a program that grok dumps from jmap (or jstat, can't remember). Is that the kind of tool that you're looking for? On Fri, Jul 31, 2009 at 10:45 AM, Andy Fingerhut wrote: > > I thought I'd follow up my own question with some programs t

Re: java 1.4 class files

2009-07-31 Thread Frank Koenig
Usually, there is no problem in running old code on a new jvm. My problem is that the application I am involved with will, because of some unpleasant constraints, never ever run on anything newer than Java 1.4. On 7/30/09, Sean Devlin wrote: > > This is slightly unrelated, but... > > How much wo

Re: Good memory profilers (program or human)?

2009-07-31 Thread Andy Fingerhut
I thought I'd follow up my own question with some programs that I should have already known about for memory profiling, which were already installed on my Mac as part of the standard Java installation from Apple (who are just passing them on from Sun, I'm sure), but I didn't know about them: jcon

Re: Idiomatic parsing of objects from several lines of a text file

2009-07-31 Thread John Harrop
On Thu, Jul 30, 2009 at 9:37 PM, Richard Newman wrote: > I suppose in Clojure we could use a real arrow character, with UTF-8 > available in symbol names... I don't know about you, but I personally prefer to only use symbols that I can actually type. Copying and pasting from Character Map kind

Re: Has anyone tried using Clojure with JavaFX?

2009-07-31 Thread Sam Griffith
I've done a very simple example. What the example does currently is to have a two text fields and a button in JavaFX talk to an adapter/ wrapper in Java which then uses the RT to load a clojure file and then execute a function returning that result back to JavaFX which shows it in one of the text

Re: Idiomatic parsing of objects from several lines of a text file

2009-07-31 Thread Lau
Hey, I wanted to do something with Git and Qt, and the result was a project which never really got off the ground. However its capable of reading an entire Gitlog into a hash-map in the form {:hash 129412849 :commit ..} and so on. Ẃe used it at work to provide a better alternative than Gitweb, an

Re: Idiomatic parsing of objects from several lines of a text file

2009-07-31 Thread Baishampayan Ghose
Richard Newman wrote: >> I'm trying to find an idiomatic way to read through a text file (e.g. >> a Git history log) > > Sidenote: I'm hacking on this: > > http://github.com/rnewman/clj-git/tree/master > > I haven't got to commit messages etc. yet -- I'm primarily using git > as a backing stor