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
http://www.dunaj.org. API and SPI documentation is
automatically generated from Dunaj sources. Other parts of
the documentation are written in AsciiDoc format and are available in
project's repository alongside other sources.
Everything is released under the same license as Clojure.

Library used for the actual documentation generation can be used
to generate documentation for any Clojure project, and will be
released soon.

API documentation is presented in a clear and user friendly way.
Vars in a given namespace are grouped by their purpose into
several categories. In addition to Var's docstring, type signatures,
examples and see also references are provided.

Moreover, Dunaj defines new metadata keys for vars that provide
additional information to IDEs. With these metadata, editors can
offer improved and more precise highlighting and indentation.

You can read about this and previous experiments at the documentation
section of Dunaj at http://www.dunaj.org/doc.html 

Best,
Jozef Wagner

On Thursday, March 5, 2015 at 10:33:53 PM UTC+1, Jozef Wagner wrote:
>
> I'm happy to announce a project called Dunaj [1], which provides an 
> alternative core API for Clojure. Its main aim is to experimentally test 
> major additions to the language. 
>
> Dunaj /ˈdunaɪ/ is a set of core language experiments aimed to improve 
> Clojure language and its core API. It deals with language features that 
> require changes across different parts of Clojure and which cannot be 
> evaluated in isolation. Dunaj aims to bring Clojure even more towards 
> simplicity, consistency and performance. 
> It is intended to be used by regular Clojure developers, either for 
> application or library development.
>
> Dunaj was created to test 10 experiments that bring significant changes to 
> the Clojure language. As there is a substantial number of additions and 
> changes, I want to try a bit unconventional approach here. Before I'll 
> release the actual library, I will introduce Dunaj's experiments in a 
> series of individual posts. Every part states the motivation behind the 
> experiment, introduces changes and additions to the language and 
> demonstrates its intended use. If you do not want to miss any of this, you 
> may want to register for a mailing list at [1] or follow @dunajproject at 
> Twitter.
>
> -- Jozef Wagner
>
> [1] http://www.dunaj.org/ 
>
>

-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 JDK 1.6 and 1.7 the hashCode for the BigInteger value
used in those tests changed.

Andy

On Thu, Mar 19, 2015 at 4:08 PM, Alex Miller  wrote:

> 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
> don't know of any reason that Clojure itself would have issues on it.
>
> Alex
>
>
> On Thursday, March 19, 2015 at 11:03:12 AM UTC-5, Thomas wrote:
>>
>> 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 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
> ---
> You received this message because you are subscribed to the Google Groups
> "Clojure" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to clojure+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 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 > 
> wrote:
>
>> 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 clo...@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+u...@googlegroups.com 
>> For more options, visit this group at
>> http://groups.google.com/group/clojure?hl=en
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "Clojure" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to clojure+u...@googlegroups.com .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 


On Thu, Mar 19, 2015, at 07:08 PM, Alex Miller wrote: 

> 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  
> don't know of any reason that Clojure itself would have issues on it.
>
> Alex
>
> On Thursday, March 19, 2015 at 11:03:12 AM UTC-5, Thomas wrote:
>> 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 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
>
--- 

>
You received this message because you are subscribed to the Google Groups  
"Clojure" group. 

>
To unsubscribe from this group and stop receiving emails from it, send an  
email to clojure+unsubscr...@googlegroups.com. 

>
For more options, visit https://groups.google.com/d/optout. 


-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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:
>
> -> Fetching custom git buildpack... done
> -> BootClojure app detected
> -> Installing OpenJDK 1.8...
> /tmp/buildpack_8dd5d6e1eb90146982470bbee05eb89d/bin/compile: 192: 
> /tmp/buildpack_8dd5d6e1eb90146982470bbee05eb89d/bin/compile: Bad 
> substitution
> cp: cannot stat '//opt/with_jmap': No such file or directory
>
> Looking at the source code for the buildpack.  It seems identical to how 
> the clojure buildpack works with leiningen.  The problem occurs before 
> there is really any divergence in how the two work.
>
> # Install JDKjavaVersion=$(detect_java_version ${BUILD_DIR})echo -n "-> 
> Installing OpenJDK ${javaVersion}..."install_java ${BUILD_DIR} 
> ${javaVersion}jdk_overlay ${BUILD_DIR}echo "done"
>
>
> It doesn't get past the install_java
>
> I deployed an app using clojure/leiningen, so I know the above could 
> should work.  
>

-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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  wrote:
> 
> 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" 
> 
> That's all pretty normal trademark usage stuff. Beyond that, things get a bit 
> murkier, and I think this falls in that category. What might be best is if we 
> (Cognitect) just send you some stickers, which we would be happy to do for a 
> such a thing. 
> 
> Can you drop me a note at alex.mil...@cognitect.com and I'll work with you on 
> that?
> 
> Alex
> 
> 
>> On Thursday, March 19, 2015 at 4:01:14 PM UTC-5, Uday Verma wrote:
>> 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 they don't seem close 
>> to the quality that sticker mule[3] delivers (sheets vs. shape cut stickers).
>> 
>> I was just wondering if I can get the Clojure logo stickers printed through 
>> sticker mule and if there would be any potential legal issues if I do so.
>> 
>> Any help would be greatly appreciated.
>> 
>> Thanks,
>> Uday
>> 
>> [1] https://github.com/verma/mcti-clojure-workshop
>> [2] http://clojure.org/swag
>> [3] https://www.stickermule.com/
> 
> -- 
> 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
> --- 
> You received this message because you are subscribed to a topic in the Google 
> Groups "Clojure" group.
> To unsubscribe from this topic, visit 
> https://groups.google.com/d/topic/clojure/mc-JzjXspe0/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to 
> clojure+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 
don't know of any reason that Clojure itself would have issues on it.

Alex

On Thursday, March 19, 2015 at 11:03:12 AM UTC-5, Thomas wrote:
>
> 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 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
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 think I 
was a bit incorrect in my understanding of the process and you would still 
be welcome to submit a proposal with the caveat that there are no 
guarantees that any particular proposal will move forward.

Alex

On Wednesday, March 18, 2015 at 3:28:41 PM UTC-5, Christopher Medrela wrote:
>
> Hello! Alex decided to proceed with Richard. Therefore, I'd like to find 
> some
> other project. I'm glad to see so much feedback and I'd really like to 
> reply to
> all your feedback but there is not much time to the end of application 
> period
> and therefore I will focus exclusively on the another project. I hope that
> yours feedback will be helpful for Richard (and the entire community). If
> that's not the case and I've wasted your time, I'm really sorry.
>

-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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" 

That's all pretty normal trademark usage stuff. Beyond that, things get a 
bit murkier, and I think this falls in that category. What might be best is 
if we (Cognitect) just send you some stickers, which we would be happy to 
do for a such a thing. 

Can you drop me a note at alex.mil...@cognitect.com and I'll work with you 
on that?

Alex


On Thursday, March 19, 2015 at 4:01:14 PM UTC-5, Uday Verma wrote:
>
> 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 they don't seem 
> close to the quality that sticker mule[3] delivers (sheets vs. shape cut 
> stickers).
>
> I was just wondering if I can get the Clojure logo stickers printed 
> through sticker mule and if there would be any potential legal issues if I 
> do so.
>
> Any help would be greatly appreciated.
>
> Thanks,
> Uday
>
> [1] https://github.com/verma/mcti-clojure-workshop
> [2] http://clojure.org/swag
> [3] https://www.stickermule.com/
>

-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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  wrote:

> 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 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
> ---
> You received this message because you are subscribed to the Google Groups
> "Clojure" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to clojure+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 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
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 team 
distributed across 5 time zones in the Americas. We pair a lot, talk all 
the time on IRC, and have lots of cool automations around our builds, 
tests, and github workflows.

What do we do with Clojure? Tons of stuff! We work with Elasticsearch to 
index petabytes of documents in several clouds, including AWS and 
Softlayer. We use Datomic as a system of record to manage metadata over all 
those documents. We write RESTful, service-oriented platforms using tools 
like Pedestal, and components like Zookeeper and RabbitMQ.

What would you do here? All the same kinds of things, working along with a 
great team of smart, experienced developers.

We are a US-based company, so things like US eligibility, and a willingness 
to work around a timezone difference to accomodate that scheduling "center 
of gravity" are important to us. We love to pair on our code, so that kind 
of thing does matter. A couple of times a year, we get together as a team 
for meetups, where we can all get to know each other face to face too. We 
also attend conferences, especially showing up in force at Clojure/conj 
each year. Maybe you already know some of us!

To get in touch with us about this or any of the other positions on our 
site, send an email to j...@sonian.net with your resumé.

-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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: 
http://stackoverflow.com/questions/29149610/preferred-way-to-connect-to-immutant-message-queuing-service-from-eg-c-sharp-app

-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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
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
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 they don't seem close 
to the quality that sticker mule[3] delivers (sheets vs. shape cut 
stickers).

I was just wondering if I can get the Clojure logo stickers printed through 
sticker mule and if there would be any potential legal issues if I do so.

Any help would be greatly appreciated.

Thanks,
Uday

[1] https://github.com/verma/mcti-clojure-workshop
[2] http://clojure.org/swag
[3] https://www.stickermule.com/

-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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  wrote:

> 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
> something along the lines of (make-box :x_axis) by building the symbol and
> passing it into the constructor. Here is a complete example of how I've
> solved the problem using eval:
>
> (import '(javax.swing Box BoxLayout))
>
> (defn make-symbol[sym] (->> x name .toUpperCase (str "BoxLayout/") symbol))
>
> ;This works, but I am eval-ing. Seems like I could use a macro instead.
> (defn make-box[box-type]
>   (Box. (eval (make-symbol box-type
>
> ;Works
> (make-box :x_axis)
>
> ;Works
> (map make-box [:x_axis :y_axis])
>
> ;My first attempt using a macro
> (defmacro make-box-macro[box-type]
>   `(Box. (make-symbol ~box-type)))
>
> ;ClassCastException - Symbol cannot be cast to java.lang.Number
> (make-box-macro :x_axis)
>
> ;Hmmm, works, but still using eval. Might as well use the defn.
> (defmacro make-box-macro2[box-type]
>   `(let[x# (make-symbol ~box-type)]
>  (Box. (eval x#
>
> (make-box-macro2 :x_axis)
>
> Hopefully one of you can point out some small change I need to make to
> make this work. Any help would be appreciated. I've read brave clojure and
> learnxinyminutes, but I am still missing something.
>
> Thanks,
> Mark
>
> --
> 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
> ---
> You received this message because you are subscribed to the Google Groups
> "Clojure" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to clojure+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 something 
along the lines of (make-box :x_axis) by building the symbol and passing it 
into the constructor. Here is a complete example of how I've solved the 
problem using eval:

(import '(javax.swing Box BoxLayout))

(defn make-symbol[sym] (->> x name .toUpperCase (str "BoxLayout/") symbol))

;This works, but I am eval-ing. Seems like I could use a macro instead.
(defn make-box[box-type]
  (Box. (eval (make-symbol box-type

;Works
(make-box :x_axis)

;Works
(map make-box [:x_axis :y_axis])

;My first attempt using a macro
(defmacro make-box-macro[box-type]
  `(Box. (make-symbol ~box-type)))

;ClassCastException - Symbol cannot be cast to java.lang.Number
(make-box-macro :x_axis)

;Hmmm, works, but still using eval. Might as well use the defn.
(defmacro make-box-macro2[box-type]
  `(let[x# (make-symbol ~box-type)]
 (Box. (eval x#

(make-box-macro2 :x_axis)

Hopefully one of you can point out some small change I need to make to make 
this work. Any help would be appreciated. I've read brave clojure and 
learnxinyminutes, but I am still missing something.

Thanks,
Mark

-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 dumb question though.



On Thursday, March 19, 2015 at 1:46:02 PM UTC-4, Ambrose Bonnaire-Sergeant 
wrote:
>
> Not equivalent, macro expansion happens at compile time, unquotes are 
> evaluated at runtime.
>
> On Thu, Mar 19, 2015 at 11:59 AM, danl...@gmail.com  <
> danl...@gmail.com > wrote:
>
>> 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 compile-time 
>> evaluation with quasi-quotation, instead?
>>
>> `~(+ 1 1)
>>
>> ;; => 2
>>
>> -- 
>> You received this message because you are subscribed to the Google
>> Groups "Clojure" group.
>> To post to this group, send email to clo...@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+u...@googlegroups.com 
>> For more options, visit this group at
>> http://groups.google.com/group/clojure?hl=en
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "Clojure" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to clojure+u...@googlegroups.com .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 Thu, Mar 19, 2015 at 11:59 AM, danle...@gmail.com 
> wrote:
>
>> 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 compile-time
>> evaluation with quasi-quotation, instead?
>>
>> `~(+ 1 1)
>>
>> ;; => 2
>>
>> --
>> 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
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "Clojure" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to clojure+unsubscr...@googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>  --
> 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
> ---
> You received this message because you are subscribed to the Google Groups
> "Clojure" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to clojure+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 
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 repl:
>
> (def ONE 1) ;define one
> (def s1 (symbol "ONE")) ;get the symbol
> (eval s1) ;evaluates to 1, no surprise
>
>
> ;My goal is to pass a symbol into a macro or function, have it evaluate to
> its defined value, then use it.
> ;I would like these to happen
> (add-3 s1) ;Should evaluate to 4
> (add-3 (symbol "ONE")) ;Should evaluate to 4
>
> ;The following works, but uses eval, which I am told is less desirable. My
> current understanding is that a macro is the way to go.
> (defn add-three-fn[s](+ 3 (eval s)))
> (add-three-fn (symbol "ONE")) ;4 - it works!
>
> ;Here is one of my failed attempts at a macro version:
> (defmacro add-3 [s] `'(+ 3 ~s)) ;Just puts unevaluated contents in s
>
> I'd post other examples, but I can't even see straight anymore. Any help
> would be appreciated.
>
> Thanks,
> Mark
>
> --
> 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
> ---
> You received this message because you are subscribed to the Google Groups
> "Clojure" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to clojure+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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)
 - https://pragprog.com/book/cjclojure/mastering-clojure-macros

HTH

On 19 March 2015 at 16:49, Mark Bastian  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 repl:
>
> (def ONE 1) ;define one
> (def s1 (symbol "ONE")) ;get the symbol
> (eval s1) ;evaluates to 1, no surprise
>
>
> ;My goal is to pass a symbol into a macro or function, have it evaluate to
> its defined value, then use it.
> ;I would like these to happen
> (add-3 s1) ;Should evaluate to 4
> (add-3 (symbol "ONE")) ;Should evaluate to 4
>
> ;The following works, but uses eval, which I am told is less desirable. My
> current understanding is that a macro is the way to go.
> (defn add-three-fn[s](+ 3 (eval s)))
> (add-three-fn (symbol "ONE")) ;4 - it works!
>
> ;Here is one of my failed attempts at a macro version:
> (defmacro add-3 [s] `'(+ 3 ~s)) ;Just puts unevaluated contents in s
>
> I'd post other examples, but I can't even see straight anymore. Any help
> would be appreciated.
>
> Thanks,
> Mark
>
> --
> 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
> ---
> You received this message because you are subscribed to the Google Groups
> "Clojure" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to clojure+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 
wrote:

> 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 compile-time
> evaluation with quasi-quotation, instead?
>
> `~(+ 1 1)
>
> ;; => 2
>
> --
> 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
> ---
> You received this message because you are subscribed to the Google Groups
> "Clojure" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to clojure+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 to pass a symbol into a macro or function, have it evaluate to 
its defined value, then use it.
;I would like these to happen
(add-3 s1) ;Should evaluate to 4
(add-3 (symbol "ONE")) ;Should evaluate to 4

;The following works, but uses eval, which I am told is less desirable. My 
current understanding is that a macro is the way to go.
(defn add-three-fn[s](+ 3 (eval s)))
(add-three-fn (symbol "ONE")) ;4 - it works!

;Here is one of my failed attempts at a macro version:
(defmacro add-3 [s] `'(+ 3 ~s)) ;Just puts unevaluated contents in s

I'd post other examples, but I can't even see straight anymore. Any help 
would be appreciated.

Thanks,
Mark

-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 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
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 compile-time 
evaluation with quasi-quotation, instead?

`~(+ 1 1)

;; => 2

-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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.

Andy

On Wed, Mar 18, 2015 at 8:40 PM, Andy Fingerhut 
wrote:

> Clojure is regularly built and tested with the following JVM versions, as
> you can find out here:
> http://build.clojure.org/view/Clojure/job/clojure-test-matrix/
>
> Sun JDK 1.6
> Oracle JDK 1.7
> Oracle JDK 1.8
> IBM JDK 1.6
> OpenJDK 1.6
>
> I believe a JIRA ticket would be appropriate.  The core team can decide
> what they would like to do about it.
>
> Andy
>
> On Wed, Mar 18, 2015 at 7:41 PM, Aaron Cummings 
> wrote:
>
>> Is there an official statement of support (or non-support) for the IBM
>> JVM?
>>
>> I'm finding that when building Clojure from source with the IBM JVM
>> that one of the tests fails.  The failure appears to be caused by the
>> IBM implementation of BigInteger.hashCode() being different from
>> Oracle's.  Is this something that I should report?
>>
>> -Aaron
>>
>> --
>> 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
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "Clojure" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to clojure+unsubscr...@googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 :a :e :i :o}
>
> This is what I came up with:
>
> (defn order-fn [ks]
>   #(- (.indexOf ks %1)
>   (.indexOf ks %2)))
>

This is going to do two inefficient linear searches on every lookup. 
There's a fix for that, but it meshes so well with the rest of your request 
that I'll post it below.

But then one may want to replace .indexOf for some other ord-function- like 
> this:
>
> (defn order-fn
>   ([ks] (order-fn ks #(.indexOf %1 %2)))
>   ([ks ord-fn]
>  #(- (ord-fn ks %1)
>  (ord-fn ks %2
>
> Now we may force the elements to be present in ks:
>
> (defn order-fn
>   ([ks] (order-fn ks #(.indexOf %1 %2)))
>   ([ks ord-fn]
>  (letfn
>  [(-ord-fn [e]
> (let [o (ord-fn ks e)]
>   (if (> o -1) o
>   (throw
>(RuntimeException.
> (format "'%s' not found in %s" e ks))]
>#(compare (-ord-fn %1)
>  (-ord-fn %2)
>
> Is there something like this in clojure.core already or a more elegant 
> implementation?
>

I'd suggest the following.

First, for explicitly supplying an ord-fn:

(defn order-by
  "Given a map or function with integer values, returns a comparison fn 
that will order the keys by these values.
   That function will throw an exception if passed an argument that's not a 
key in the map, or for which the
   passed map or function throws an exception or returns a nonnumeric 
value."
  [order-map]
  (fn [x y]
(- (order-map x) (order-map y

And then, for ordering by a sequence:

(defn order-by-seq
  "Given a sequential coll of keys, returns a comparison fn that will order 
the keys per the sequence."
  [order-seq]
  (-> (map vector order-seq (range))
(into {})
(order-by)))

(NOTE: untested.)

Note that the lookups inside the comparator are O(1) hashmap lookups now, 
rather than linear .indexOf lookups. And this version *should* also work in 
CLJS and Clojure-CLR since it avoids host-specific interop and only uses 
clojure.core functions.

-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 
substitution
cp: cannot stat '//opt/with_jmap': No such file or directory

Looking at the source code for the buildpack.  It seems identical to how 
the clojure buildpack works with leiningen.  The problem occurs before 
there is really any divergence in how the two work.

# Install JDKjavaVersion=$(detect_java_version ${BUILD_DIR})echo -n "-> 
Installing OpenJDK ${javaVersion}..."install_java ${BUILD_DIR} 
${javaVersion}jdk_overlay ${BUILD_DIR}echo "done"


It doesn't get past the install_java

I deployed an app using clojure/leiningen, so I know the above could should 
work.  

-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 and sets,
including ordering-maps, into the Sets/Create and Maps/Create categories of
the Clojure cheat sheet here:
http://jafingerhut.github.io/cheatsheet/clojuredocs/cheatsheet-tiptip-cdocs-summary.html

Andy

On Thu, Mar 19, 2015 at 5:53 AM, 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 :a :e :i :o}
>
> This is what I came up with:
>
> (defn order-fn [ks]
>   #(- (.indexOf ks %1)
>   (.indexOf ks %2)))
>
> But then one may want to replace .indexOf for some other ord-function-
> like this:
>
> (defn order-fn
>   ([ks] (order-fn ks #(.indexOf %1 %2)))
>   ([ks ord-fn]
>  #(- (ord-fn ks %1)
>  (ord-fn ks %2
>
> Now we may force the elements to be present in ks:
>
> (defn order-fn
>   ([ks] (order-fn ks #(.indexOf %1 %2)))
>   ([ks ord-fn]
>  (letfn
>  [(-ord-fn [e]
> (let [o (ord-fn ks e)]
>   (if (> o -1) o
>   (throw
>(RuntimeException.
> (format "'%s' not found in %s" e ks))]
>#(compare (-ord-fn %1)
>  (-ord-fn %2)
>
> Is there something like this in clojure.core already or a more elegant
> implementation?
>
>  --
> 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
> ---
> You received this message because you are subscribed to the Google Groups
> "Clojure" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to clojure+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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]
  #(- (.indexOf ks %1)
  (.indexOf ks %2)))

But then one may want to replace .indexOf for some other ord-function- like 
this:

(defn order-fn
  ([ks] (order-fn ks #(.indexOf %1 %2)))
  ([ks ord-fn]
 #(- (ord-fn ks %1)
 (ord-fn ks %2

Now we may force the elements to be present in ks:

(defn order-fn
  ([ks] (order-fn ks #(.indexOf %1 %2)))
  ([ks ord-fn]
 (letfn
 [(-ord-fn [e]
(let [o (ord-fn ks e)]
  (if (> o -1) o
  (throw
   (RuntimeException.
(format "'%s' not found in %s" e ks))]
   #(compare (-ord-fn %1)
 (-ord-fn %2)

Is there something like this in clojure.core already or a more elegant 
implementation?

-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 pluggable mechanism for
using random number generators is introduced, and math related API was
extended with functions of an angle, exponentiations and logarithms.

Instead of using prefixes and suffixes like in Clojure, facilities for
unchecked and precise math are in Dunaj specified in separate namespaces.
Common arithmetic functions are provided in dunaj.math namespace, with
unchecked functions and arithmetic functions with arbitrary precisions
defined in dunaj.math.unchecked and dunaj.math.precise respectively.

List of available math functions is extended with exponentiation,
logarithms functions and several miscellaneous ones. A separate namespace
called dunaj.math.angle contains math functions of an angle, with
floating point numbers. Precision of these functions is as implemented by 
host.
Both circular and hyperbolic functions are available.

You can read more about this experiment at http://www.dunaj.org 

Best,
Jozef

On Thursday, March 5, 2015 at 10:33:53 PM UTC+1, Jozef Wagner wrote:
>
> I'm happy to announce a project called Dunaj [1], which provides an 
> alternative core API for Clojure. Its main aim is to experimentally test 
> major additions to the language. 
>
> Dunaj /ˈdunaɪ/ is a set of core language experiments aimed to improve 
> Clojure language and its core API. It deals with language features that 
> require changes across different parts of Clojure and which cannot be 
> evaluated in isolation. Dunaj aims to bring Clojure even more towards 
> simplicity, consistency and performance. 
> It is intended to be used by regular Clojure developers, either for 
> application or library development.
>
> Dunaj was created to test 10 experiments that bring significant changes to 
> the Clojure language. As there is a substantial number of additions and 
> changes, I want to try a bit unconventional approach here. Before I'll 
> release the actual library, I will introduce Dunaj's experiments in a 
> series of individual posts. Every part states the motivation behind the 
> experiment, introduces changes and additions to the language and 
> demonstrates its intended use. If you do not want to miss any of this, you 
> may want to register for a mailing list at [1] or follow @dunajproject at 
> Twitter.
>
> -- Jozef Wagner
>
> [1] http://www.dunaj.org/ 
>
>

-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.