On Thu, Apr 8, 2010 at 11:33, Alex Osborne <a...@meshy.org> wrote:
> Tassilo Horn <tass...@member.fsf.org> writes:
>> Isn't it a bad idea to include all deps into a project, so that one ends
>> up with so much duplication?
>
> What is a "bad idea" is subjective and depends on your use case and your
> workflow.  You may need to use a particular version of Clojure for a
> particular project, for example because AOT-compiled 1.1.0 and git
> master are incompatible.  Similarly I find having a project checkout
> fully self-contained so that it can just be copied to a server and run
> without any prior setup except having a JVM installed extremely handy.
> But it seems a lot of people don't agree and would prefer to save a small
> amount of disk space by sharing jars between projects.

It's not about saving disk space. Copying files around like this
creates another sort of maintenance burden, familiar to anyone who's
used frameworks that auto-generate any sort of files (code, .jar's,
...).

If I have 10 Clojure projects I'm going to have 10 src/clojure.jar
files. Do they really need to be there or could I just use the clojure
that comes with my operating system (Debian)?

When I hack Common Lisp I don't copy sbcl into all my projects, I just
install it once globally. I'd like to do the same with clojure.

> It's up to you really, you can use symlinks if you prefer (and there's
> apparently a patch you can apply to Lein that makes it use symlinks).
> There's also a branch of Lein which allows you to use checked out
> projects as dependencies which lets you hack on multiple inter-dependent
> projects at once nicely:

I'd rather just avoid the whole concept of having some files being
autogenerated in my ~/ and have swank-clojure use one copy of
clojure*.jar globally by default, which is what I've done.

-- 
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 - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

To unsubscribe, reply using "remove me" as the subject.

Reply via email to