Gradle: how to deal with it

2014-05-10 Thread Catonano
Hello I use to press M-. in Emacs to jump to the definition of a function and M-, to jump back to where I came from This requires an nREPL to be working Now I'd like to explore a project using Gradle. Can I get an nREPL with Gradle ? Can Gradle export a project file so that I can use lein to ha

Re: data.xml namespace aware?

2014-05-10 Thread Herwig Hochleitner
test_namespace.clj just contains some unit tests for now. The final patch will have usage examples. With the proposal, you can define your xml namespaces on a clojure-namespace level and refer them via keyword namespaces: (ns thing) (xml-default-prefix *ns* "thing") (xml-prefix *ns* "thing" "h

Re: Headless server, no GUI, no idea

2014-05-10 Thread stiffyrabbit jr
I was running it as displayed but, I get the same result under sudo. For sh, I can't resolve: $ su - sh -e /etc/init.d/xvfb start *su: invalid option -- 'e'* -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clo

Re: Headless server, no GUI, no idea

2014-05-10 Thread stiffyrabbit jr
This line also fails: $ sudo sh -e /etc/init.d/xvfb start *sh: 0: Can't open /etc/init.d/xvfb* -- 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 moderat

Re: What is the status of Clojure on LLVM or C?

2014-05-10 Thread Michał T . Lorenc
Hi, How about to port Clojure on top of golang? To get Clojure running on LLVM some of the ideas could be maybe looked from http://julialang.org/. Mic On Thursday, March 28, 2013 6:05:03 AM UTC+10, Joe Graham wrote: > > Hi Group, > Good afternoon I hope everyone is well. I just wanted to reach

Re: Gradle: how to deal with it

2014-05-10 Thread Gary Trakhman
I'm in the process of writing up a procedure for the latest cider with alternative repls. Here's the relevant bits of how leiningen starts a repl: https://github.com/technomancy/leiningen/blob/master/src/leiningen/repl.clj#L116 https://github.com/technomancy/leiningen/blob/master/src/leiningen/rep

Re: Nominalization

2014-05-10 Thread Mike Fikes
That's interesting. I haven't learned about reductions yet—I'll check it out. If you consider the following, (defn dot-product [v1 v2] (reduce + (map * v1 v2))) perhaps dot-product would be considered a noun, while since the reduce it is defined in terms of speaks of *how* instead of *what,*

Re: Proposing a new Clojure documentation system (in Clojure)

2014-05-10 Thread Val Waeselynck
We can see from this discussion that several strongly opinionated visions of what documentation should be coexist. Some want literate programming whereas others want to avoid it, some want something that looks like javadoc, some just want markdown, etc. I think we can just make room for all of

Re: Proposing a new Clojure documentation system (in Clojure)

2014-05-10 Thread Val Waeselynck
Here :I think it would help if we had a panoramic view of the existing documentation systems and what we could borrow from them. I could only think of a Google Drive spreadsheet for this, but i

Re: Proposing a new Clojure documentation system (in Clojure)

2014-05-10 Thread Timothy Baldridge
If you plan on having this documentation apply to clojure.core.* you'll probably want to pull in Alex Miller or start a conversation in clojure-dev. I'd hate to see a bunch of decisions made, just to find out that Rich has a completely different view, a view that might have been nice to know before

Re: Headless server, no GUI, no idea

2014-05-10 Thread Atamert Ölçgen
When you use sudo or su, I don't think you need sh (or another shell). On Sat, May 10, 2014 at 7:35 PM, stiffyrabbit jr < deliverebay...@googlemail.com> wrote: > This line also fails: > > $ sudo sh -e /etc/init.d/xvfb start > > > *sh: 0: Can't open /etc/init.d/xvfb* > > -- > You received this me

Re: Expected inconsistency between set and map w/ ArrayList?

2014-05-10 Thread John Hume
Thanks for the ticket pointer. I didn't find it in my initial search because it "Affects Version/s: None" :-/, and I knew this behavior was new to 1.6. For those not up for the medium-length comment-thread read: non-Clojure-aware Java Collections Framework interface instances are not considere

Re: Headless server, no GUI, no idea

2014-05-10 Thread stiffyrabbit jr
And it doesn't work, using sudo. Can anybody break me out of this cycle? -- 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

Licensing program written in Clojure under GPL

2014-05-10 Thread Gunnar Völkel
I have written a Clojure library A which is licensed under Eclipse Public License (EPL) as usual which depends on other Clojure libraries with EPL license. In a different program B I use library A and another library G which is licensed under GPLv3. Now, the question arises which license I am a

Re: Gradle: how to deal with it

2014-05-10 Thread Dave Ray
You should use Clojuresque [1]. The latest version (1.7.0) can start an nrepl server for you. Since I'm a bad user (and because of various dependency-related hurdles at work), I still haven't actually started using it though. Luckily, with earlier versions it's pretty easy to define a new task that

Re: Proposing a new Clojure documentation system (in Clojure)

2014-05-10 Thread Val Waeselynck
Le samedi 10 mai 2014 16:09:11 UTC+2, tbc++ a écrit : > > If you plan on having this documentation apply to clojure.core.* you'll > probably want to pull in Alex Miller or start a conversation in > clojure-dev. I'd hate to see a bunch of decisions made, just to find out > that Rich has a compl

Find source/location of anonymous function by name

2014-05-10 Thread Pascal Germroth
Hi, Say I'm getting an "ArityException Wrong number of args (2) passed to: myparser/fn--106751" exception. Unfortunately the code is quite heavy on the higher order side, so the stack trace doesn't reveal anything useful, especially since the exception is thrown by the `apply` before, so I'm no

Re: Find source/location of anonymous function by name

2014-05-10 Thread Ambrose Bonnaire-Sergeant
Have you tried naming the anonymous functions that might be culprits? (fn trace-me [..] ...) Thanks, Ambrose On Sun, May 11, 2014 at 1:33 AM, Pascal Germroth wrote: > Hi, > > Say I'm getting an "ArityException Wrong number of args (2) passed to: > myparser/fn--106751" exception. > Unfortunatel

Re: Licensing program written in Clojure under GPL

2014-05-10 Thread Jozef Wagner
Do you want to distribute binaries (.class files) of the program B? If not, you may license your sources in any license you want. If yes, then it will be possible only if the library G has a linking exception in its license [1], as the clojure itself is EPL so it does not matter how the library A i

Re: Rethinking Literate Programming

2014-05-10 Thread Mars0i
I think we all know this, but just to make sure the point is clear (in some of the dicussion here, it doesn't seem that it is), the alternatives are not only: (a) Source code with docstrings (or fancy formatted docstrings with links, etc.) and sparse comments, but no other explanatory text anyw

Re: Find source/location of anonymous function by name

2014-05-10 Thread Pascal Germroth
On 10 May 2014, at 18:36, Ambrose Bonnaire-Sergeant wrote: > Have you tried naming the anonymous functions that might be culprits? > > (fn trace-me [..] ...) Yes, that turned out to be the quickest way, naming everything with a vim command: :%s/fn \[/\="fn TRACE-" . line(".") . " ["/g Fixing

Re: Rethinking Literate Programming

2014-05-10 Thread u1204
> I think we all know this, but just to make sure the point is clear (in some > of the dicussion here, it doesn't seem that it is), the alternatives are > not only: > > (a) Source code with docstrings (or fancy formatted docstrings with links, > etc.) and sparse comments, but no other explanato

Re: Expected inconsistency between set and map w/ ArrayList?

2014-05-10 Thread Andy Fingerhut
On Sat, May 10, 2014 at 7:51 AM, John Hume wrote: > Thanks for the ticket pointer. I didn't find it in my initial search > because it "Affects Version/s: None" :-/, and I knew this behavior was new > to 1.6. > I changed Affects Version/s to Release 1.6 Whether that field is filled in for any pa

Re: Proposing a new Clojure documentation system (in Clojure)

2014-05-10 Thread Andy Fingerhut
It is pretty easy to make a library that modifies doc metadata on existing vars, e.g.: https://github.com/jafingerhut/thalia The time-consuming part, which I am nowhere near completing myself, is writing the alternate documentation strings. Congrats to anyone that produces something that bec

go-circuit for clojure

2014-05-10 Thread Michał T . Lorenc
Hi, Since, core.async has goroutines maybe it would be possible to implement go-circuitfor clojure to distrubute goroutines across computer nodes? Mic -- You received this message because you are subscribe

How to convert this list into map?

2014-05-10 Thread Hussein B.
Hi, I have this list: (:= :language "Clojure") And I want to convert it to the following map data structure: {:op := , :language "Clojure"} I can't really think of a clear way how to do it. Would you please help? Thanks for help and time. -- You received this message because you are subscr

Re: How to convert this list into map?

2014-05-10 Thread Mike Fikes
user=> (apply hash-map (conj '(:= :language "Clojure") :op)) {:op :=, :language "Clojure"} On Saturday, May 10, 2014 5:56:59 PM UTC-4, Hussein B. wrote: > > Hi, > > I have this list: > > (:= :language "Clojure") > > And I want to convert it to the following map data structure: > > {:op := , :la

Re: How to convert this list into map?

2014-05-10 Thread Mike Fikes
Here is how you can derive that expression: {:op :=, :language "Clojure"} is the same as (hash-map :op := :language "Clojure") which is the same as (apply hash-map '(:op := :language "Clojure")) So, all you need is '(:op := :language "Clojure") which can be produced by prepending :op to y

Re: How to convert this list into map?

2014-05-10 Thread Hussein B.
That is beautiful! Thanks a lot! On Sunday, May 11, 2014 12:33:51 AM UTC+2, Mike Fikes wrote: > > Here is how you can derive that expression: > > {:op :=, :language "Clojure"} > > is the same as > > (hash-map :op := :language "Clojure") > > > which is the same as > > (apply hash-map '(:op := :lang

Re: How to convert this list into map?

2014-05-10 Thread Stephen Gilardi
As a slight simplification you can take advantage of the fact that apply handles in-line arguments as well as a seq of arguments at the end. This also works: user=> (apply hash-map :op '(:= :language "Clojure")) {:op :=, :language "Clojure"} --Steve On May 10, 2014, at 6:37 PM, Hussein B. wro

Re: Licensing program written in Clojure under GPL

2014-05-10 Thread Colin Fleming
I've often wondered about this. This restriction seems to mean that any GPL Clojure library can only ever be for private use. There are a few examples out there, and this would seem to apply to LightTable as well, since it's GPL but uses a lot of EPL code. How do they get around this? With straigh

Re: How to convert this list into map?

2014-05-10 Thread Mike Fikes
That looks much better IMHO :) -- 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

ANN Monger 1.8.0 is released

2014-05-10 Thread Michael Klishin
Monger [1] is a Clojure MongoDB client for a more civilized age. Release notes: http://blog.clojurewerkz.org/blog/2014/05/10/monger-1-dot-8-0-is-released/ Note that the next release will be 2.0, including these breaking API changes: http://blog.clojurewerkz.org/blog/2014/04/26/major-breaking-publ

Java API is copyright protected?

2014-05-10 Thread daly
It appears that the Java API can be copyright protected. This would mean that you have to get Oracle's permission and possibly pay a fee to use it. http://www.theverge.com/2014/5/9/5699958/federal-court-overturns-google-v-oracle Tim Daly -- You received this message because you are subscribed

Re: Java API is copyright protected?

2014-05-10 Thread Colin Fleming
At the risk of getting slightly off-topic here, here's a comment on Hacker News from a well-respected commenter on legal issues - he's a lawyer specialising in startup and technology law and his analysis is uniformly excellent. He argues that while the result may be unpalatable, it's by no means th

Re: Java API is copyright protected?

2014-05-10 Thread daly
> At the risk of getting slightly off-topic here, here's a comment on > Hacker News from a well-respected commenter on legal issues - he's a > lawyer specialising in startup and technology law and his analysis is > uniformly excellent. He argues that while the result may be > unpalatable, it's by n