Re: Build tool for mixed Clojure/Java projects

2011-07-04 Thread Steve
On Jul 5, 12:43 pm, Ken Wesson wrote: > > What method was used to create the projects ab initio? Some sort of > direct interaction with Maven, followed by some kind of import into > each IDE instance? Or can one of those IDEs create a Maven project (as > opposed to a built-in project management pr

Re: Build tool for mixed Clojure/Java projects

2011-07-04 Thread Sean Corfield
On Mon, Jul 4, 2011 at 7:43 PM, Ken Wesson wrote: > I was using it in the sense typically meant in phrases like "source > code repository", as seems reasonable given the context, but oh well. If you're using git, "source code repository" could easily be local and not require an Internet connectio

Re: Build tool for mixed Clojure/Java projects

2011-07-04 Thread Ken Wesson
On Mon, Jul 4, 2011 at 7:11 PM, Steve wrote: > On Jul 5, 7:13 am, Ken Wesson wrote: > >> > No, there's no server, no port, nothing to firewall. It's just a >> > directory (~/.m2/repository). >> >> So, not actually a repository, then. :) > > Well not as you're defining it :) But yes it is a reposi

Re: nrepl example/tutorial

2011-07-04 Thread isaac praveen
You can try jark: http://icylisper.in/jark/ Jark provides an nrepl-server and client. The client has a REPL too. - isaac -- 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 Note that posts fr

nrepl example/tutorial

2011-07-04 Thread rfhayashi
Hi I just can't find an example/tutorial on how to use nrepl. Anyone knows? The github page only shows how to get it from maven central and build it. Maybe it is too obvious, but I'm quite new to clojure and it would be good to have some guidance. I could find that counterclockwise is able to con

Re: Build tool for mixed Clojure/Java projects

2011-07-04 Thread Steve
On Jul 5, 7:13 am, Ken Wesson wrote: > > > No, there's no server, no port, nothing to firewall. It's just a > > directory (~/.m2/repository). > > So, not actually a repository, then. :) > Well not as you're defining it :) But yes it is a repository if repository means "place to store stuff". In p

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

2011-07-04 Thread Ken Wesson
On Mon, Jul 4, 2011 at 1:44 PM, Mark Rathwell wrote: > > A function is a function, whether it is bound to a Var or not.  I think that > was Ken's point, that you need to wrap a Java method in a function > (anonymous or named) in order to pass to an HOF, as Java methods are not > first class.  So,

Re: Build tool for mixed Clojure/Java projects

2011-07-04 Thread Ken Wesson
On Mon, Jul 4, 2011 at 10:16 AM, Steve wrote: > On Jul 4, 9:08 pm, Ken Wesson wrote: >> >> That's actually a bit worrying. I'm not sure I want a potential >> security hole into my computer, such as a repository, being "handled >> for me" without having *some* input into the matter. For example if

Re: iterate?

2011-07-04 Thread Alan Malloy
Or, to defeat the purpose of iterate entirely: (= (repeat 100 :foo) (take 100 (iterate (constantly :foo) :foo))) On Jul 4, 3:51 am, Christophe Grand wrote: > => (= (repeat 100 :foo) >         (take 100 (iterate identity :foo))) > true > > hth, > > Christophe > > > > > > > > > > On Mon, Jul 4,

Re: Clojure for large programs

2011-07-04 Thread Timothy Washington
Yes, exactly. I'm going to check that out. Thanks Shantanu Tim On Sun, Jul 3, 2011 at 11:42 AM, Shantanu Kumar wrote: > > > On Jul 3, 7:39 pm, Timothy Washington wrote: > > I'm using pre / post assertions quite a bit in a project I'm building. > And I > > too would love to see better or custo

Re: Sample Vaadin application in Clojure

2011-07-04 Thread Chas Emerick
On Jul 2, 2011, at 12:53 PM, Dmitry Gutov wrote: >> Is there any hope of getting rid of the servlet altogether, and >> somehow get a Ring handler to perform whatever Vaadin stuff that needs >> to be done on the server? > > Well, you could rewrite the servlet in Clojure... right? > Aside from tha

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

2011-07-04 Thread Mark Rathwell
A function is a function, whether it is bound to a Var or not. I think that was Ken's point, that you need to wrap a Java method in a function (anonymous or named) in order to pass to an HOF, as Java methods are not first class. So, that is one instance where a function whose sole purpose is to w

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

2011-07-04 Thread James Keats
On Jul 3, 6:15 am, Ken Wesson wrote: > > There's one obvious use case for such a wrapper function, though: if > you'll want to pass the Java method to HOFs from time to time. You > can't directly pass a Java method to a HOF, but you can pass such a > wrapper function. > Pardon me if I'm wrong,

Re: Clojure for large programs

2011-07-04 Thread Christian Schuhegger
No worries. I have the book on my shelf. The first version. But thanks for making me aware of the second version. -- 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 Note that posts from new me

Re: Build tool for mixed Clojure/Java projects

2011-07-04 Thread Steve
On Jul 4, 9:08 pm, Ken Wesson wrote: > > That's actually a bit worrying. I'm not sure I want a potential > security hole into my computer, such as a repository, being "handled > for me" without having *some* input into the matter. For example if I > intend to use it purely locally I'd want to fire

Re: Clojure for large programs

2011-07-04 Thread Islon Scherer
I think the issue with large programs is not the language but software engineering. A large program should be well designed and architected, and this is a problem (I think) many people in clojure and functional programming in general have. "Clojure is a very high level and concise language so I'll

Re: Build tool for mixed Clojure/Java projects

2011-07-04 Thread Hugo Duncan
On Mon, 04 Jul 2011 03:14:01 -0400, Konrad Hinsen wrote: AOT compilation: My case is probably a bit complex in this respect. I need AOT compilation only because I want to produce an executable jar, so there is at least one namespace that must be AOT compiled. For building that executable

Re: Clojure for large programs

2011-07-04 Thread James Keats
On Jul 4, 1:26 pm, James Keats wrote: > On Jul 4, 5:45 am, Christian Schuhegger > A good > book to get you started would SEMANTIC WEB for the WORKING ONTOLOGIST, > of which a second edition has recently come out. :-) Sorry about the unintentional "to get you started" figure of speech; I note yo

Re: Clojure for large programs

2011-07-04 Thread James Keats
On Jul 4, 5:45 am, Christian Schuhegger wrote: > Thanks for your feed-back. I already have RDF/OWL in my tool-kit. I am > only not sure if an ERP like system should be modeled along those > lines. But I did not put enough thought in that direction yet. Would > you base an ERP like system on top

Re: Build tool for mixed Clojure/Java projects

2011-07-04 Thread Daniel Janus
> 2) Network independence. I often work without Internet access, and I   > don't want to be blocked at some point because some build tool wants   > to access some repository to see if my version is still current. For the record, this is easily doable with both Leiningen and Cake (which both use Ma

Re: Build tool for mixed Clojure/Java projects

2011-07-04 Thread Michael Wood
Hi On 4 July 2011 13:08, Ken Wesson wrote: > On Mon, Jul 4, 2011 at 6:29 AM, Steve wrote: >> On Jul 3, 10:01 pm, Ken Wesson wrote: >>> >>> OK...ridiculous leap reduced to merely huge leap then, if you only >>> have to learn 2 of these three things at once: big, interdependent >>> groups of proj

Re: Build tool for mixed Clojure/Java projects

2011-07-04 Thread Shantanu Kumar
>     (ns leiningen.sub >       (:use [leiningen.core :only [apply-task task-not-found]])) > >     (defn sub [task-name & args] >       (doseq [project (projects-in-dir)] >         (apply-task task-name project args task-not-found))) > > Implementation of projects-in-dir left as an exercise for the

Re: Build tool for mixed Clojure/Java projects

2011-07-04 Thread Ken Wesson
On Mon, Jul 4, 2011 at 6:29 AM, Steve wrote: > On Jul 3, 10:01 pm, Ken Wesson wrote: >> >> OK...ridiculous leap reduced to merely huge leap then, if you only >> have to learn 2 of these three things at once: big, interdependent >> groups of projects, maven/etc. repository-accessing tools, and ser

Re: iterate?

2011-07-04 Thread Christophe Grand
=> (= (repeat 100 :foo) (take 100 (iterate identity :foo))) true hth, Christophe On Mon, Jul 4, 2011 at 12:39 PM, Antonio Recio wrote: > Do you know how to solve this? > > (= (repeat 100 :foo) > (take 100 (iterate ___ :foo))) > > -- > You received this message because you are subs

iterate?

2011-07-04 Thread Antonio Recio
Do you know how to solve this? (= (repeat 100 :foo) (take 100 (iterate ___ :foo))) -- 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 Note that posts from new members are moderated - ple

Re: Build tool for mixed Clojure/Java projects

2011-07-04 Thread Steve
On Jul 3, 10:01 pm, Ken Wesson wrote: > > OK...ridiculous leap reduced to merely huge leap then, if you only > have to learn 2 of these three things at once: big, interdependent > groups of projects, maven/etc. repository-accessing tools, and server > administration. :) > It's really not that har

Re: Clojure for large programs

2011-07-04 Thread Mark Engelberg
On Sat, Jul 2, 2011 at 8:19 PM, Luc Prefontaine wrote: > Were did you find the link between functional languages and close proximity of > errors ? That's a language design decision. You may want to use assertions > on your fns to validate inputs. That sould improve your ability to track > errors

Re: Build tool for mixed Clojure/Java projects

2011-07-04 Thread Ken Wesson
On Mon, Jul 4, 2011 at 3:14 AM, Konrad Hinsen wrote: > AOT compilation: My case is probably a bit complex in this respect. I need > AOT compilation only because I want to produce an executable jar, so there > is at least one namespace that must be AOT compiled. For building that > executable jar,

Re: Build tool for mixed Clojure/Java projects

2011-07-04 Thread Meikel Brandmeyer
Hi, Am Montag, 4. Juli 2011 09:14:01 UTC+2 schrieb konrad...@laposte.net: > Thanks for everyone's suggestions and comments! > > Some remarks: > > Gradle/clojuresque: I never tried them, but it looks like I should! > > AOT compilation: My case is probably a bit complex in this respect. I > need

Re: Build tool for mixed Clojure/Java projects

2011-07-04 Thread Wilson MacGyver
FYI, here is how to add jar deps in gradle for local files, either as a file or a dir of files http://stackoverflow.com/questions/2572811/gradle-make-a-3rd-party-jar-available-to-local-gradle-repository and getting started is at https://bitbucket.org/kotarak/clojuresque/wiki/Home while the tutor

Re: Build tool for mixed Clojure/Java projects

2011-07-04 Thread Konrad Hinsen
On 3 Jul 2011, at 21:57, Konrad Hinsen wrote: I am looking for a build tool that fulfills the following requirements: 1) Must handle Clojure namespaces that are AOT-compiled. 2) Must handle Clojure namespaces that are not AOT-compiled. 3) Must handle Java source code files. 4) Must handle dep

Unknown constant tag 32 in class file error

2011-07-04 Thread Peter T
Hi all, Since I started using Clojure (I think from just before 1.0) I have, on the odd occasion, received an error message of this form (Unknown constant tag X in class file error) while trying to evaluate a namespace in Slime/Emacs. Whenever it cropped up, it was completely random: it never see