Re: clojure-mode survey

2009-09-11 Thread Jimmie Houchin
On 9/11/2009 7:38 PM, Phil Hagelberg wrote: > > Tom Faulhaber writes: > >> I'm not so excited about deriving authorship data from git, though. It >> seems like there are a lot of reasons that could be "wrong" from the >> point of view of what we want for the documentation (how do you decide >> wh

Re: clojure-mode survey

2009-09-11 Thread Vagif Verdi
I use clojure-mode with slime. But i did not use clojure-install. I also do not run clojure from within emacs. I run it via script, and then connect to it via slime-connect. I prefer it much more than clojure-install, because i have a control over where my clojure and other libraries are resided

Re: clojure-mode survey

2009-09-11 Thread Phil Hagelberg
Phil Hagelberg writes: > The solution I've settled on is the clojure-project function: Here's what I've added to the swank-clojure codebase. It supports the somewhat standard src/ and classes/ project layout style as well as one based on Maven conventions. (defun swank-clojure-project (pat

Re: clojure-mode survey

2009-09-11 Thread Phil Hagelberg
Tom Faulhaber writes: > I'm not so excited about deriving authorship data from git, though. It > seems like there are a lot of reasons that could be "wrong" from the > point of view of what we want for the documentation (how do you decide > when a checkin represents a true "co--author?", etc.).

Re: Cells for Clojure

2009-09-11 Thread Fogus
Even more information here: https://www.assembla.com/spaces/clojure-contrib/tickets/19-Re-add-auto-agent-clj -m --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to cl

Re: clojure-mode survey

2009-09-11 Thread Rick Moynihan
2009/9/11 Brenton : > > I use clojure-mode. > > I have a ruby script named clj that I use to start Clojure from the > command line and from emacs. > > When I set up a new Clojure project I create the following files: > > .cljrc.clj > bin/ > src/ > test/ > lib/ > > The clj script does the following

Re: clojure-mode survey

2009-09-11 Thread Rick Moynihan
2009/9/11 Andy Kish : > > On Sep 10, 6:23 am, Rick Moynihan wrote: >> As I'm sure you and many others know, this problem exists in the Java >> community also...  A few years ago I found a solution in Apache >> Commons Launcher: >> >> http://commons.apache.org/launcher/ > > Another cool launcher I

Using Clojure with Swank

2009-09-11 Thread Gorsal
Hello ! I need to rewrite a swank implementation which is in java for the Cusp plugin. Looking around, I saw swank-clojure. I thought i would ask more knowledgeable people than me whether it is what i'm looking for (crosses fingers!). (1) The plugin currently starts a lisp implementation and load

Re: Cells for Clojure

2009-09-11 Thread kyle smith
See this thread on the clojure-dev group: http://groups.google.com/group/clojure-dev/browse_thread/thread/8fe671d08d8e275c# --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send e

Re: How do I access a Java list element?

2009-09-11 Thread Richard Newman
In Clojure the abstraction is the sequence, rather than an iterator. The concept is similar. On 11 Sep 2009, at 11:55 AM, carey wrote: > > Thanks Richard, that helps. I've not used iterators much (only in C++, > and they aren't nice there), I'll look this up. I have Halloways book > here, but

Re: How do I access a Java list element?

2009-09-11 Thread Lauri Pesonen
2009/9/11 Richard Newman : > >>> Where I'm stuck >>> is how to get access to the particle names, as I would in the above >>> line of Java code. > > The final bit, once you have an iterator over particles, would be: > > (fn [p] (.getName p)) > > To avoid the use of reflection, you might want explic

Re: clojure-mode survey

2009-09-11 Thread Phil Hagelberg
Jim Menard writes: > I do something similar to Brenton. I use clojure-mode, and vote for > keeping it as-is, making SLIME integration optional or ancillary. Could you guys give SLIME another shot via M-x clojure-install? If you haven't been using it because you had a hard time installing SLIME/

Re: Ann Arbor Clojure Meetup?

2009-09-11 Thread Daniel Renfer
I live in Redford, and I'll happily go to any local clojure group. On Fri, Sep 11, 2009 at 1:01 PM, Lance Carlson wrote: > > http://www.a2rb.org/ <- We just had our monthly meeting this week on > Wednesday. Perhaps we can make the functional programming group again > in between the Ruby meetings

Re: clojure-mode survey

2009-09-11 Thread Jim Menard
I do something similar to Brenton. I use clojure-mode, and vote for keeping it as-is, making SLIME integration optional or ancillary. Jim On Fri, Sep 11, 2009 at 12:21 PM, Brenton wrote: > > I use clojure-mode. > > I have a ruby script named clj that I use to start Clojure from the > command li

Re: How do I access a Java list element?

2009-09-11 Thread carey
Thanks Richard, that helps. I've not used iterators much (only in C++, and they aren't nice there), I'll look this up. I have Halloways book here, but that doesn' mention them, so its back to the boards I guess :) On 11 Sep, 19:17, Richard Newman wrote: > >> Where I'm stuck > >> is how to get ac

Cells for Clojure

2009-09-11 Thread Roland
Hello, where can I find documentation for a Cells implementation for Clojure? I read that there are several and I know that there is one version by Stuart Sierra(I don't know about others). Where can I read more and download it? Thanks! --~--~-~--~~~---~--~~ Yo

Re: seeking examples/tutorials on clojure/lisp-y design (vs Java/Ruby)

2009-09-11 Thread CuppoJava
You should have a good understanding of the usefulness of functional programming from Ruby and Python, so you're in good shape. As for learning Clojure, the best way is to start a *new* project, and write it in the most straightforward way. The reasoning being: 1) When porting over an existing pr

Re: seeking examples/tutorials on clojure/lisp-y design (vs Java/Ruby)

2009-09-11 Thread cody koeninger
On Sep 11, 10:56 am, Michael Teter wrote: > What I would like to find now is some kind of guide or document to > help me learn to design the functional way, instead of just writing > Java in Clojure. http://htdp.org/ --~--~-~--~~~---~--~~ You received this mess

Re: How do I access a Java list element?

2009-09-11 Thread Richard Newman
>> Where I'm stuck >> is how to get access to the particle names, as I would in the above >> line of Java code. The final bit, once you have an iterator over particles, would be: (fn [p] (.getName p)) To avoid the use of reflection, you might want explicit type annotations: (fn [#^Particle p

Re: How do I access a Java list element?

2009-09-11 Thread Lauri Pesonen
2009/9/11 carey : > (. dataLoader  getEnvironmentParticleSet) > > But what I want is to go through the list that this method returns and > get the name of each particle in the list. > > I now that in Java this would be (inside some form of loop) > > dataLoader.getEnvironmentParticleSet().get(i).ge

Re: seeking examples/tutorials on clojure/lisp-y design (vs Java/Ruby)

2009-09-11 Thread David Nolen
Rich Hickey's reading list is comprehensive (daunting even ;) http://www.amazon.com/Clojure-Bookshelf/lm/R3LG3ZBZS4GCTH/ref=cm_lm_byauthor_title_full Some people suggest going through Project Euler. Stuart Halloway's Programming Clojure emphasizes the functional perspective. Another good approac

Re: minor grievance with arithmetic on characters

2009-09-11 Thread Stephen C. Gilardi
On Sep 11, 2009, at 10:58 AM, Lauri Pesonen wrote: 2009/9/11 Rich Hickey : We should fix the doc. Patch welcome for this. Ticket #189 - I've provided a patch following Stephen's suggested doc string. Thanks very much! --Steve smime.p7s Description: S/MIME cryptographic signature

Re: clojure-mode survey

2009-09-11 Thread Brenton
I use clojure-mode. I have a ruby script named clj that I use to start Clojure from the command line and from emacs. When I set up a new Clojure project I create the following files: .cljrc.clj bin/ src/ test/ lib/ The clj script does the following: 1) Put the standard Clojure jars in the cla

How do I access a Java list element?

2009-09-11 Thread carey
I've got a java class that contains several lists of data. I starts by loading them in from a set of files in a given directory, thus: (def dataLoader (new com.politespider.nmod.ProjectLoader)) (. dataLoader loadProject "H:/workspace/referenceProject") This works, I beleive, certainly it appea

seeking examples/tutorials on clojure/lisp-y design (vs Java/Ruby)

2009-09-11 Thread Michael Teter
Hello all. I'm very new to Clojure, but I have watched several screencasts and read what examples I can find online. Suffice to say I'm very excited about what I've seen. What I would like to find now is some kind of guide or document to help me learn to design the functional way, instead of ju

Re: Ann Arbor Clojure Meetup?

2009-09-11 Thread Lance Carlson
http://www.a2rb.org/ <- We just had our monthly meeting this week on Wednesday. Perhaps we can make the functional programming group again in between the Ruby meetings. On Fri, Sep 11, 2009 at 2:48 AM, Andy Kish wrote: > > I live in Ann Arbor and I'd love to meet people doing clojure stuff. > La

Re: clojure-mode survey

2009-09-11 Thread Tom Faulhaber
Phil, I didn't realize that had been implemented either, that's cool. I'm not so excited about deriving authorship data from git, though. It seems like there are a lot of reasons that could be "wrong" from the point of view of what we want for the documentation (how do you decide when a checkin

Re: Matlab for Lisp programmers?

2009-09-11 Thread CuppoJava
Hi David, Thanks for the link. I am interested in Mathematica, but for numerical matrix crunching, I prefer Matlab. I just don't really get the peculiarities of the syntax and am hoping there is a book out there that explains it in a nice clean way. -Patrick --~--~-~--~~~

Re: Matlab for Lisp programmers?

2009-09-11 Thread David Cabana
If clean syntax really matters to you, you might want to take a look at Mathematica. Its syntax is extremely simple and regular, very lispy. Check out this link: http://reference.wolfram.com/mathematica/tutorial/EverythingIsAnExpression.html On Fri, Sep 11, 2009 at 10:43 AM, CuppoJava wrote:

Re: minor grievance with arithmetic on characters

2009-09-11 Thread Lauri Pesonen
2009/9/11 Rich Hickey : > > We should fix the doc. Patch welcome for this. Ticket #189 - I've provided a patch following Stephen's suggested doc string. > Rich -- ! Lauri --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Matlab for Lisp programmers?

2009-09-11 Thread CuppoJava
Hi guys, I'm just wondering if there's anybody here that knows of a good Matlab book to teach the semantics and syntax of the language? The books that I've run into so far mostly focus on teaching the library and teach the syntax in an ad-hoc learn-it-as-you-go fashion, which I don't like. After C

Tricks for transforming a DB ResultSet into XLM?

2009-09-11 Thread Robert Campbell
I am using clojure.contrib.sql which gives me the typical Clojure ResultSet: a set of maps. Are there any tricks you've used in the past to transform this into XML? I was looking at Enlive since I've used it - and loved it - for HTML transformations in the past, but examples are few and I don't se

Re: minor grievance with arithmetic on characters

2009-09-11 Thread Rich Hickey
On Tue, Sep 8, 2009 at 5:35 PM, Stephen C. Gilardi wrote: > > On Sep 8, 2009, at 2:14 AM, Timothy Pratley wrote: > >> According to the docstring compare returns -1, 0 or 1: >> user=> (compare \b \g) >> -5 > > We could fix the doc along the lines of: > > "Comparator. Returns a negative number, zero

RE: Class function alwayrs returns java.lang.class??

2009-09-11 Thread Seth Burleigh
Thanks! That did the trick. From: clojure@googlegroups.com [mailto:cloj...@googlegroups.com] On Behalf Of J. McConnell Sent: Thursday, September 10, 2009 12:40 PM To: clojure@googlegroups.com Subject: Re: Class function alwayrs returns java.lang.class?? On Thu, Sep 10, 2009 at 1:20 PM, Seth

Re: clojure-mode survey

2009-09-11 Thread Andy Kish
Phil thank you for your work on ESK and clojure-mode. When I started doing more lisp stuff, I knew that I had to move from textmate to emacs. ESK made switching a lot less daunting. I use clojure-install (worked like a charm on debian and os x 10.6) and clojure-update and I find them useful. They

Re: Ann Arbor Clojure Meetup?

2009-09-11 Thread Andy Kish
I live in Ann Arbor and I'd love to meet people doing clojure stuff. Lance, what ruby meetings have the folks interested in functional languages? SRT solutions hosts a bunch of UGs [1], but I haven't been to any of them yet. If there's not a better place to meet, I'll show up at the AAJUG on the

Re: clojure-mode survey

2009-09-11 Thread Andy Kish
Very much agreed on the need for a default launcher/script. This is an annoying obstacle to adoption in my mind. Most of the "Getting Started with Clojure" tutorials show you how to launch clojure with java and the jar, and then provide a shell script wrapper to simplify things. On Sep 10, 6:23 a