Re: Support for IBM JVM?

2015-03-19 Thread Bruce Adams
Some fun (for some value of fun) vaguely related history: A fix has gone into IBM Java 1.7 for a crash triggered by Leiningen. see: http://www-01.ibm.com/support/docview.wss?uid=swg1IV32629 (where Clojure is misspelled) and https://github.com/technomancy/leiningen/issues/954. - Bruce

Re: Clojure Logo Licensing

2015-03-19 Thread Alex Miller
Rich generally does not approve any use of the Clojure logo if: a) it's for commercial use (anything that involves collecting money) b) any modification or inclusion of the logo in other logos c) any use of the logo or Clojure where there could be confusion about whether something is official

Re: Clojure Logo Licensing

2015-03-19 Thread Uday Verma
I understand, I wasn't very clear on it so decided to ask :) I will send you a note right away! Thanks a lot! On Mar 19, 2015, at 6:03 PM, Alex Miller a...@puredanger.com wrote: Rich generally does not approve any use of the Clojure logo if: a) it's for commercial use (anything that

Re: Problem deploying to heroku using the boot buildpack

2015-03-19 Thread Taylor Sando
I made a buildpack based on the leiningen one and the other boot buildpack. This one seems to work properly: https://github.com/taylorSando/heroku-buildpack-clojure On Thursday, March 19, 2015 at 9:09:06 AM UTC-5, Taylor Sando wrote: When I try to deploy an application using boot I get:

Re: Support for IBM JVM?

2015-03-19 Thread Alex Miller
You are welcome to file a jira ticket for this problem in the system and a patch would be welcome if it seems like an issue in the tests (assuming things that should not be assumed across JDKs). The percentage of users on IBM JDK is very small so it is not the highest priority platform, but I

Re: [ANN] Dunaj project, an alternative core API for Clojure

2015-03-19 Thread Jozef Wagner
Thank you for all the responses so far! 9th experiment is a small one compared to previous ones, but still worth of mention. Experiment #9 - Improved Math Facilities Dunaj extends available math facilities with means to specify precision of arithmetic operations and to round numbers. A

Sorting a collection of elements according to a given list of elements

2015-03-19 Thread Henrik Heine
Hi, I want to sort a set/map according to an ordering given by a seq of elements - e.g. (def some-order [:u :a :e :i :o]) (def some-order-fn (order-fn some-order)) (sorted-set-by some-order-fn :a :e :i :o :u) ; -- #{:u :a :e :i :o} This is what I came up with: (defn order-fn [ks] #(-

Re: Sum up second elemsts of pairs in a sequence by grouping by the first item in pair

2015-03-19 Thread Erick Pintor
Just one more way to solve it but, getting a hash-map as a result (- [[1 0.5] [1 0.7] [2 1.0] [3 0.1] [3 0.1]] (map (partial apply hash-map)) (apply merge-with +)) Em quinta-feira, 19 de março de 2015 19:02:28 UTC-3, Ambrose Bonnaire-Sergeant escreveu: user= (def a (group-by

Re: Support for IBM JVM?

2015-03-19 Thread Andy Fingerhut
Created a ticket: http://dev.clojure.org/jira/browse/CLJ-1678 It appears there is no bug here. Some Clojure tests were written with particular constants that have equal .hashCode values, to test Clojure's code generation for case expressions when hashCode values collide. Somewhere between IBM

Re: [ANN] Dunaj project, an alternative core API for Clojure

2015-03-19 Thread Jozef Wagner
Dunaj, an alternative core API for Clojure, has been released! Try it yourself and check out its extensive documentation at http://www.dunaj.org/ Last Dunaj experiment aims to improve API's primary documentation. Official documentation is available at project's homepage at

Re: [GSoC] Source meta information model proposal

2015-03-19 Thread Alex Miller
Chris (and anyone else), Daniel mentioned to me in a note that it is ok for multiple students to submit a proposal for the same project. We do not know how many spots we will be given as an organization and whether particular students will meet whatever guidelines are set out by Google. So I

Re: compile time evaluation

2015-03-19 Thread James Reeves
As an aside, there is also an undocumented reader macro #=() that will evaluate at compile time. - James On 19 March 2015 at 17:45, Ambrose Bonnaire-Sergeant abonnaireserge...@gmail.com wrote: Not equivalent, macro expansion happens at compile time, unquotes are evaluated at runtime. On

Re: compile time evaluation

2015-03-19 Thread danle...@gmail.com
Thanks -- I deleted the post as soon as I wrote it but, I guess as Shakespeare said, stupidity will out. Or something along those lines. But awesome about #= that is exactly what i was looking for -- I was thinking of making my own #eval reader tag so that's nice to have. Sorry again for the

Problem deploying to heroku using the boot buildpack

2015-03-19 Thread Taylor Sando
When I try to deploy an application using boot I get: - Fetching custom git buildpack... done - BootClojure app detected - Installing OpenJDK 1.8... /tmp/buildpack_8dd5d6e1eb90146982470bbee05eb89d/bin/compile: 192: /tmp/buildpack_8dd5d6e1eb90146982470bbee05eb89d/bin/compile: Bad

Re: Sorting a collection of elements according to a given list of elements

2015-03-19 Thread Andy Fingerhut
I don't know if it is a more elegant implementation, but I found something like this for maps in the useful library a while back, called ordering-map: https://github.com/amalloy/useful/blob/master/src/flatland/useful/map.clj#L243-L245 I have been putting a few different varieties of sorted maps

Re: compile time evaluation

2015-03-19 Thread Ambrose Bonnaire-Sergeant
Not equivalent, macro expansion happens at compile time, unquotes are evaluated at runtime. On Thu, Mar 19, 2015 at 11:59 AM, danle...@gmail.com danle...@gmail.com wrote: I noticed the macro #'const in the im.chit/hara library:

Macro Help with Symbols and Evaluation

2015-03-19 Thread Mark Bastian
Hi All, I am trying to write a simple macro to resolve local symbols and I just can't seem to figure out the right invocation. Here are some commands you can type/paste in a repl: (def ONE 1) ;define one (def s1 (symbol ONE)) ;get the symbol (eval s1) ;evaluates to 1, no surprise ;My goal is

Re: Macro Help with Symbols and Evaluation

2015-03-19 Thread Colin Yates
I don't have the answer (as I too am in the still-going-blind phase) but the following might help: - deref symbols to get their value - http://learnxinyminutes.com/docs/clojure-macros/ (short and very helpful) - http://www.braveclojure.com/writing-macros/ (long and very helpful) -

Re: Macro Help with Symbols and Evaluation

2015-03-19 Thread Ambrose Bonnaire-Sergeant
What problem are you trying to solve? On Thu, Mar 19, 2015 at 12:49 PM, Mark Bastian markbast...@gmail.com wrote: Hi All, I am trying to write a simple macro to resolve local symbols and I just can't seem to figure out the right invocation. Here are some commands you can type/paste in a

Re: Sorting a collection of elements according to a given list of elements

2015-03-19 Thread Fluid Dynamics
On Thursday, March 19, 2015 at 8:53:37 AM UTC-4, Henrik Heine wrote: Hi, I want to sort a set/map according to an ordering given by a seq of elements - e.g. (def some-order [:u :a :e :i :o]) (def some-order-fn (order-fn some-order)) (sorted-set-by some-order-fn :a :e :i :o :u) ; -- #{:u

Re: Macro Help with Symbols and Evaluation

2015-03-19 Thread Mark Bastian
To provide a little more context, the problem I am trying to solve is this: Often in Java I see constructors that have a pattern of (ClassName. X) where X is some static integer value. For example, in Swing you build a Box like so (Box. BoxLayout/X_AXIS). I want to simplify this by doing

Re: [GSoC] Source meta information model proposal

2015-03-19 Thread Reid McKenzie
Found var-link kicking around in my projects dir so I re-published it for this thread. https://github.com/clojure-grimoire/var-link Reid -- 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

Preferred way to connect to embedded Immutant Message Queuing service from eg C# application?

2015-03-19 Thread Daniel
With straight HornetQ I would just use StompConnect to expose the service to the outside world and that would allow .NET clients to connect pretty easily. There's also the possibility of websockets and REST now. What is the preferred method? SO question here:

Clojure Logo Licensing

2015-03-19 Thread Uday Verma
Hello All, Please accept my apologies in advance if this is not the right channel to ask this question. I wanted to get some Clojure stickers printed for my upcoming Clojure(script) workshop at Mission Creek Tech Innovation Conference[1]. I see that the clojure-swag[2] has some stickers, but

Re: Macro Help with Symbols and Evaluation

2015-03-19 Thread Ambrose Bonnaire-Sergeant
If there are a unknown number of layouts you can just define a map from keywords to layouts: {:x_axis BoxLayout/x_axis ..} Otherwise using java reflection is another option. Thanks, Ambrose On Thu, Mar 19, 2015 at 4:34 PM, Mark Bastian markbast...@gmail.com wrote: To provide a little more

Sonian is hiring for remote Clojure positions!

2015-03-19 Thread Dan Dillinger
For the official job opening, look here: http://sonian.com/about/careers/software-engineer-core/ -- there are a few other openings as well, have a look around! At Sonian, we work in Clojure full-time. We use it for just about everything, and wouldn't have it any other way. We're a fully remote

Sum up second elemsts of pairs in a sequence by grouping by the first item in pair

2015-03-19 Thread Alex
Hello everybody, How to transform sequence *[[1 0.5] [1 0.7] [2 1.0] [3 0.1] [3 0.1]]* to *[[1 1.2] [2 1.0] [3 0.2]]* ? Best regards, Alex -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to

Re: Sum up second elemsts of pairs in a sequence by grouping by the first item in pair

2015-03-19 Thread Ambrose Bonnaire-Sergeant
user= (def a (group-by first [[1 0.5] [1 0.7] [2 1.0] [3 0.1] [3 0.1]])) #'user/a user= (for [[k vs] a] [k (apply + (map second vs))]) ([1 1.2] [2 1.0] [3 0.2]) On Thu, Mar 19, 2015 at 3:41 PM, Alex updates...@gmail.com wrote: Hello everybody, How to transform sequence *[[1 0.5] [1 0.7] [2

compile time evaluation

2015-03-19 Thread danle...@gmail.com
I noticed the macro #'const in the im.chit/hara library: https://github.com/zcaudate/hara/blob/master/src/hara/expression/compile.clj#L3 which is essentially: (defmacro const [body] (eval body)) (const (+ 1 1)) ;; = 2 would it be equivalent (and idiomatic) in clojure to effect

Re: Support for IBM JVM?

2015-03-19 Thread Thomas
FYI: At IBM we are suppose to only the IBM JVM and not other version due to legal reason. Thomas -- 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

Re: Support for IBM JVM?

2015-03-19 Thread Andy Fingerhut
The following article is from a survey of users of the Plumbr software tool (823 of them, in Feb-Apr 2014), so may not be representative of Clojure/JVM users. https://plumbr.eu/blog/most-popular-java-environments-in-2014 If it is representative, note that 0 of them were using a JVM from IBM.