Re: Vagrant setup [was Re: Please stand firm against Steve Yegge's yes language push]

2011-07-09 Thread Vivek Khurana
On Fri, Jul 8, 2011 at 10:28 PM, Lee Spector lspec...@hampshire.edu wrote: On Jul 8, 2011, at 12:38 PM, Vivek Khurana wrote: That is still not as easy as python. Running VM is a bigger overhead... There are different kinds of overhead. If the installation and setup of the VM is simple and

Re: Recommendation for Clojure Enterprise Development toolkit

2011-07-09 Thread MarkH
As a tech lead or architect you should be fired for even suggesting to use Clojure as an enterprise greenfield. Industry and academia is moving towards advanced type systems. Nobody in industry seriously considers Clojure for enterprise systems. On Jul 8, 12:43 pm, Colin Yates

Looking for examples of using Java iterators from Clojure...

2011-07-09 Thread stu
Hi, I'd like to make use of Java classes implementing the Java2D PathIterator interface: http://download.oracle.com/javase/6/docs/api/java/awt/geom/PathIterator.html Which leads to a serious impedance mismatch between immutable Clojure data structures and the iterator's approach of calling

Re: Recommendation for Clojure Enterprise Development toolkit

2011-07-09 Thread Jonathan Fischer Friberg
That's not very constructive at all. I think clojure would work fine (or better) for enterprise applications. The one thing that could pull it down is maintainability, as the maintainers must know clojure. There was recently a thread about working on large programs in clojure. It might contain

Re: Looking for examples of using Java iterators from Clojure...

2011-07-09 Thread Jonathan Fischer Friberg
Maybe this would do: https://gist.github.com/1073506 I should add that I have never used iterators, and that the code is untested ;) Jonathan On Sat, Jul 9, 2011 at 11:10 AM, stu stuart.hungerf...@gmail.com wrote: Hi, I'd like to make use of Java classes implementing the Java2D

Re: Recommendation for Clojure Enterprise Development toolkit

2011-07-09 Thread László Török
I agree not very constructive. Re your comment, Backtype was just acquired by Twitter and they have built a pretty decent system using clojure. I saw another job ad not long ago for a clojure position at a wall street bank. I think can't get more enterprise grade than that. So maybe you want to

Re: Recommendation for Clojure Enterprise Development toolkit

2011-07-09 Thread Colin Yates
Nobody in industry seriously considers Clojure for enterprise systems. Your argument is internally inconsistent as I am in industry and seriously considering Clojure for enterprise systems. On 9 July 2011 09:29, MarkH markhanif...@gmail.com wrote: As a tech lead or architect you should be fired

Re: Recommendation for Clojure Enterprise Development toolkit

2011-07-09 Thread Colin Yates
Hi Jonathon, I did see that thread, but most of the (excellent and useful) advice was around programming practices/idiomatic Clojure if I remember correctly. I am for tool recommendations as well I guess. I will re-read that thread though - thanks for the link. Col P.S. Is there a place

Re: Recommendation for Clojure Enterprise Development toolkit

2011-07-09 Thread Vivek Khurana
On Sat, Jul 9, 2011 at 1:59 PM, MarkH markhanif...@gmail.com wrote: As a tech lead or architect you should be fired for even suggesting to use Clojure as an enterprise greenfield.   Industry and academia is moving towards advanced type systems.  Nobody in industry seriously considers Clojure

Re: Recommendation for Clojure Enterprise Development toolkit

2011-07-09 Thread Stuart Halloway
On Jul 9, 2011, at 3:29 AM, MarkH wrote: As a tech lead or architect you should be fired for even suggesting to use Clojure as an enterprise greenfield. Industry and academia is moving towards advanced type systems. Nobody in industry seriously considers Clojure for enterprise systems.

Re: Please stand firm against Steve Yegge's yes language push

2011-07-09 Thread Christian Marks
On Jul 7, 4:58 pm, James Keats james.w.ke...@gmail.com wrote: For people's sense of sanity, it's not wise to try to run before you walk. ... But fine, people are free to be impatient and get frustrated and depressed if they so insist. I must respectfully disagree. I was interested in

Question on eliminating recur

2011-07-09 Thread Christian Marks
The clojure code below applies the constant space algorithm to apply a permutation to an array of C. J. Gower to the computation of the order of a permutation [Knuth, D. E., “Selected Papers on Analysis of Algorithms,” CSLI Lecture Notes Number 102, CSLI Publications, (2000), p 4]. The order of a

Re: Modelling complex data structures (graphs and trees for example)

2011-07-09 Thread Colin Yates
I did think about moving this logic to the database, but I am toying around with a different model - having the entire data set in memory (possibly across multiple nodes using messaging infrastructure to communicate). The reason for this is: - writes are very small but reads are very high -

Re: Looking for examples of using Java iterators from Clojure...

2011-07-09 Thread David Powell
On Sat, Jul 9, 2011 at 10:10 AM, stu stuart.hungerf...@gmail.com wrote: Hi, I'd like to make use of Java classes implementing the Java2D PathIterator interface: http://download.oracle.com/javase/6/docs/api/java/awt/geom/PathIterator.html Which leads to a serious impedance mismatch

Re: Question on eliminating recur

2011-07-09 Thread Brian Hurt
On Sat, Jul 9, 2011 at 8:58 AM, Christian Marks 9fv...@gmail.com wrote: I'm using recur, however some clojure programmers inform me that recur should be eliminated in favor of doseq or fold. I see nothing wrong with recur myself--am I missing something? If there is an obvious way to

Re: Looking for examples of using Java iterators from Clojure...

2011-07-09 Thread Jonathan Fischer Friberg
I don't think I like the notion of a lazy-seq and an iterator, since reading the iterator also changes it. Consider the case where you create a lazy-seq from an iterator, and the iterator somehow escapes. Somewhere else the iterator is read from, and now the data that where supposed to be in the

Re: Looking for examples of using Java iterators from Clojure...

2011-07-09 Thread Stuart Halloway
I don't think I like the notion of a lazy-seq and an iterator, since reading the iterator also changes it. Consider the case where you create a lazy-seq from an iterator, and the iterator somehow escapes. Somewhere else the iterator is read from, and now the data that where supposed to be

Re: Recommendation for Clojure Enterprise Development toolkit

2011-07-09 Thread Luc Prefontaine
We have a complex messaging app in prod since Jan. 2009. It's 24x7 and fully redundant. The high level functions are all in Clojure and we are moving away from Java low level code written in the early days. I have been writing complex software for 30 years now. I found a way to decide what tools

Re: Modelling complex data structures (graphs and trees for example)

2011-07-09 Thread James Keats
Well if it's a project you own then you're free to do whatever you want, but if you're only an employee then I urge you to consider carefully what you're about to do, and be as conservative as you could be about it. :-) On Jul 9, 2:15 pm, Colin Yates colin.ya...@gmail.com wrote: I did think

Re: Modelling complex data structures (graphs and trees for example)

2011-07-09 Thread Colin Yates
he he :) Well, conservative might be a run-of-the-mill Java/Spring/Hibernate application with all of that fun as those are the tools which I am most familiar with. I am not going to type another long email, but it is interesting how people define risk and conservative. I *do not* think doing

Re: Looking for examples of using Java iterators from Clojure...

2011-07-09 Thread Jonathan Fischer Friberg
Well, I guess. But I get the feeling that the iterator are probably coming from some java object somewhere, and might get passed around in that environment, that's why I'm worried. In the examples you mentioned, line-seq for example. The reader has already 'escaped' since it is passed as an

Re: Modelling complex data structures (graphs and trees for example)

2011-07-09 Thread Benny Tsai
Hi Colin, Sorry, a bit late to the party here, but it might be worth taking a look at Jeffrey Straszheim's c.c.graph library to see one way of modeling DAG's and implementing various graph operations (such as topological sort and computing strongly connected components) in Clojure: API:

Re: Modelling complex data structures (graphs and trees for example)

2011-07-09 Thread Colin Yates
Nice link - many thanks On 9 July 2011 17:27, Benny Tsai benny.t...@gmail.com wrote: Hi Colin, Sorry, a bit late to the party here, but it might be worth taking a look at Jeffrey Straszheim's c.c.graph library to see one way of modeling DAG's and implementing various graph operations (such

Re: Modelling complex data structures (graphs and trees for example)

2011-07-09 Thread Benny Tsai
Oops, correction: since the library already defines a struct called directed-graph, it appears that you can't define a record of the same name. So it'll have to be called something else: (defrecord graph [nodes neighbors]) (def my-graph (graph. [:a :b] {:a [:b], :b [:a]})) -- You

Clojure Mentions

2011-07-09 Thread James Estes
I thought some folks on this list might be interested in a mention graph I put up. It shows the # mentions of clojure across several sources (twitter, blogs, etc). http://twitpic.com/5nm8ve -- You received this message because you are subscribed to the Google Groups Clojure group. To post to

Re: Recommendation for Clojure Enterprise Development toolkit

2011-07-09 Thread Sam Aaron
On 9 Jul 2011, at 09:29, MarkH wrote: Industry and academia is moving towards advanced type systems. I'm not even sure what this means - especially in the context of programming languages. Industry and academia are orthogonal and have extremely different goals. Perhaps one might perceive them

Re: [ANN] emacs-clojure-vagrant: a sane development virtual environment

2011-07-09 Thread Stan Dyck
Another thing to try is this: 1. Bring up the vm with a vagrant up 2. Log in with vagrant ssh 3. Run the /vagrant/clojure_emacs.sh script directly on the vm That might not work either, but at least you'll get some feedback about what fails from the script output. I'm curious about why it's

Re: [ANN] emacs-clojure-vagrant: a sane development virtual environment

2011-07-09 Thread Phil Hagelberg
Running the script will probably need Audi fwiw. -Phil On Jul 9, 2011 10:17 AM, Stan Dyck stan.d...@gmail.com wrote: Another thing to try is this: 1. Bring up the vm with a vagrant up 2. Log in with vagrant ssh 3. Run the /vagrant/clojure_emacs.sh script directly on the vm That might not

Re: Clojure Mentions

2011-07-09 Thread Phil Hagelberg
Wow, Heroku really made a splash on Tuesday! Phil On Jul 9, 2011 9:57 AM, James Estes james.es...@gmail.com wrote: I thought some folks on this list might be interested in a mention graph I put up. It shows the # mentions of clojure across several sources (twitter, blogs, etc).

Re: Multiple slime instances in Emacs

2011-07-09 Thread Marko Kocić
On Friday, July 8, 2011 2:56:42 PM UTC+2, Stefan Kamphausen wrote: I don't know of any way to have different SLIMEs in one Emacs. In the past I used to call Emacs with different init-files for that, but it's not nice. That works, but requires one to restart Emacs every so often. Not so

Re: Recommendation for Clojure Enterprise Development toolkit

2011-07-09 Thread Sean Corfield
On Sat, Jul 9, 2011 at 1:29 AM, MarkH markhanif...@gmail.com wrote: As a tech lead or architect you should be fired for even suggesting to use Clojure as an enterprise greenfield.   Industry and academia is moving towards advanced type systems.  Nobody in industry seriously considers Clojure

Re: Modelling complex data structures (graphs and trees for example)

2011-07-09 Thread Sean Corfield
On Sat, Jul 9, 2011 at 9:27 AM, Benny Tsai benny.t...@gmail.com wrote: Sorry, a bit late to the party here, but it might be worth taking a look at Jeffrey Straszheim's c.c.graph library to see one way of modeling DAG's and implementing various graph operations (such as topological sort and

Re: Recommendation for Clojure Enterprise Development toolkit

2011-07-09 Thread Shree Mulay
Clojure REALLY isn't ready for Enterprise level development. see: http://dev.clojure.org/display/community/Clojure+Success+Stories http://www.quora.com/Whos-using-Clojure-in-production -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this

Re: Recommendation for Clojure Enterprise Development toolkit

2011-07-09 Thread Sean Corfield
On Sat, Jul 9, 2011 at 1:52 PM, Shree Mulay shreemu...@gmail.com wrote: Clojure REALLY isn't ready for Enterprise level development. That's your opinion but I expect there are enterprise companies using Clojure already who just have a policy of not talking publicly about their technology

Re: Recommendation for Clojure Enterprise Development toolkit

2011-07-09 Thread Colin Yates
I think he was being sarcy :) On 9 July 2011 22:03, Sean Corfield seancorfi...@gmail.com wrote: On Sat, Jul 9, 2011 at 1:52 PM, Shree Mulay shreemu...@gmail.com wrote: Clojure REALLY isn't ready for Enterprise level development. That's your opinion but I expect there are enterprise

Re: Recommendation for Clojure Enterprise Development toolkit

2011-07-09 Thread Phil Hagelberg
To my knowledge Clojure has not yet been ported to LCARS[1]. This clearly disqualifies it from being used in the Enterprise. Phil [1] http://en.m.wikipedia.org/wiki/LCARS On Jul 9, 2011 1:29 AM, MarkH markhanif...@gmail.com wrote: As a tech lead or architect you should be fired for even

Re: Recommendation for Clojure Enterprise Development toolkit

2011-07-09 Thread Sean Corfield
On Sat, Jul 9, 2011 at 2:06 PM, Colin Yates colin.ya...@gmail.com wrote: I think he was being sarcy :) In which case, apologies to Shree... but those lists don't really offer many companies that would generally be considered enterprise so I'm not sure how persuasive they would be (in either

Idiomatic Clojure for variadic functions with optional leading arguments?

2011-07-09 Thread Sean Corfield
If I need a function to have something like the following signatures, what's the most idiomatic way to do it: ([fn-arg str-arg vec-arg others] ...) ([str-arg vec-arg others] ...) Background: several functions in clojure.java.jdbc are already variadic but as part of JDBC-6 I want to enable

Re: Recommendation for Clojure Enterprise Development toolkit

2011-07-09 Thread Shree Mulay
i though all we needed was a sleek logo??? look forward to the clojure port to LCARS. Please keep us updated (whoever has info) On Sat, Jul 9, 2011 at 7:11 PM, Andreas Kostler andreas.koestler.le...@gmail.com wrote: What is generally considered enterprise then? On 10/07/2011, at 9:07

Re: Recommendation for Clojure Enterprise Development toolkit

2011-07-09 Thread LordGeoffrey
http://en.wikipedia.org/wiki/Enterprise_software tl;dr model the entire enterprise. On 10/07/11 09:11, Andreas Kostler wrote: What is generally considered enterprise then? On 10/07/2011, at 9:07 AM, Sean Corfield wrote: In which case, apologies to Shree... but those lists don't really offer

Lein build question

2011-07-09 Thread Mark Engelberg
As of today, my lein uberjar command is no longer working on an unchanged project that compiled perfectly three days ago. The errors I'm getting seem to be suggesting that lein is no longer able to get the contrib library for 1.2. Can anyone think of any reason why this line: :dependencies

Re: Lein build question

2011-07-09 Thread Mark Engelberg
More specifically, it seems to be that clojure.contrib.duck-streams is no longer being found even though the project.clj file is unchanged. Was duck-streams removed from the monolithic 1.2.0 contrib build? -- You received this message because you are subscribed to the Google Groups Clojure

Re: Recommendation for Clojure Enterprise Development toolkit

2011-07-09 Thread Luc Prefontaine
Maybe we should create something better than SAP :) On Sun, 10 Jul 2011 12:18:37 +1000 LordGeoffrey lordgeoff...@optusnet.com.au wrote: http://en.wikipedia.org/wiki/Enterprise_software tl;dr model the entire enterprise. On 10/07/11 09:11, Andreas Kostler wrote: What is generally

Re: Recommendation for Clojure Enterprise Development toolkit

2011-07-09 Thread Vivek Khurana
On Sun, Jul 10, 2011 at 9:06 AM, Luc Prefontaine lprefonta...@softaddicts.ca wrote: Maybe we should create something better than SAP :) Not exactly better than SAP, but I am working on a business management framework based on clojure. regards Vivek -- The hidden harmony is better than the

Re: Recommendation for Clojure Enterprise Development toolkit

2011-07-09 Thread Luc Prefontaine
Hey, if it does not take a year and an army of nuclear scientists to implement, it would already be better : On Sun, 10 Jul 2011 09:22:18 +0530 Vivek Khurana hiddenharm...@gmail.com wrote: On Sun, Jul 10, 2011 at 9:06 AM, Luc Prefontaine lprefonta...@softaddicts.ca wrote: Maybe we

Re: Lein build question

2011-07-09 Thread Mark Engelberg
Never mind. I figured out the problem. Somehow, one of the runs of lein must have gotten interrupted in a way that left the compiled duck-stream files corrupted in my classes directory. By manually deleting the contents of the classes directory and starting fresh, everything worked. --Mark --

Re: Idiomatic Clojure for variadic functions with optional leading arguments?

2011-07-09 Thread Michael Gardner
On Jul 9, 2011, at 6:16 PM, Sean Corfield wrote: If I need a function to have something like the following signatures, what's the most idiomatic way to do it: ([fn-arg str-arg vec-arg others] ...) ([str-arg vec-arg others] ...) Background: several functions in clojure.java.jdbc are

Re: Clojure 1.3 Beta 1

2011-07-09 Thread Mark Engelberg
On Fri, Jun 24, 2011 at 1:53 PM, Stuart Sierra the.stuart.sie...@gmail.com wrote: There is currently no plan for a Clojure 1.3-compatible release of old clojure-contrib. However, if people with commit access to old clojure-contrib have time to fix all the little things that prevent it from

Re: Question on eliminating recur

2011-07-09 Thread Michael Gardner
On Jul 9, 2011, at 8:47 AM, Brian Hurt wrote: If there is an obvious way to rewrite the code using doseq or fold (or reduce or map or etc), then yes- you should do it. However, if this way to rewrite the code isn't obvious in 10 seconds of thought, don't worry about it. Use loop/recur.

Re: ANN: Gantry system administration and deploy tool written in clojure

2011-07-09 Thread Damon Snyder
Hi Martin, Thanks! Under the hood gantry uses rsync for the upload. See https://github.com/drsnyder/gantry/blob/master/src/gantry/core.clj#L148. Damon On Jul 8, 1:30 am, martin_clausen martin.clau...@gmail.com wrote: Looks very nice. You should consider supporting rsync for the upload command.

1.3 compatible clojure.contrib.gen-html-docs ?

2011-07-09 Thread Mark Derricutt
Hi all, Does anyone know if theres a 1.3 compatible version of the clojure.contrib.gen-html-docs library at all? There's nothing listed under http://dev.clojure.org/display/design/Contrib+Projects and with the version I was using before ( from org.clojure.contrib/gen-html-docs/1.3.0-alpha4