Re: core.match and AOT

2012-10-13 Thread Phil Hagelberg
On Sat, Oct 13, 2012 at 3:43 PM, Michael  wrote:
> "if your project depends on AOT do not use core.match at this time"
>
> Can somebody outline what the aot issues are? It seems that deploying a web
> app to heroku with lein2 will compile the app first. Was interested in using
> core.match to match authenticated, roles, and url namespaces.

You can skip AOT during compilation on Heroku by checking in a
`bin/build` script that simply runs `lein deps` or something like
that.

-Phil

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


Re: ANN subpar (paredit for codemirror)

2012-10-13 Thread Andrew
Marc, could you send me an email directly? It's available on my github page. I 
have some questions I'd like to ask you offline and wasn't sure whether 
mslimotte@... would get to you or a stranger...

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


Re: Rouge: Ruby + Clojure

2012-10-13 Thread Softaddicts
We tried to implement Clojure on top of a black hole, it got sucked up

Luc :))


> By the way is there pure clojure lang specs, without dependency on java or 
> some other tools?
> 
> -- 
> 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
--
Softaddicts sent by ibisMail from my ipad!

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


Re: Rouge: Ruby + Clojure

2012-10-13 Thread Alexey Petrushin
By the way is there pure clojure lang specs, without dependency on java or 
some other tools?

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

Re: pmap performance degradation after 30-40 min of work?

2012-10-13 Thread Ben Mabey



I switched from pmap to

(r/fold n (r/monoid into vector) conj coll))

and the same thing happened again!
after approximately 50 minutes cpu utilisation dropped from 4/4 to 
1/4...I don't understand!


Jim



Are you holding on to the head of the collection?  That is often the 
source of memory leaks like this.


-Ben

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


core.match and AOT

2012-10-13 Thread Michael
core.match is alpha and has the following documentation note:

"if your project depends on AOT do not use core.match at this time"

Can somebody outline what the aot issues are? It seems that deploying a web 
app to heroku with lein2 will compile the app first. Was interested in 
using core.match to match authenticated, roles, and url namespaces.


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

Re: pmap performance degradation after 30-40 min of work?

2012-10-13 Thread Niels van Klaveren
If it is a memory / gc problem, the easiest way to spot it is writing a gc 
log.

Add the following parameters to your JVM parameters:

-Xloggc:D:/log/myGClog.log
-XX:+PrintGCDetails


Then, use a GC log viewer to keep a look on the logs (by refreshing or tail 
refresh) with a GC log viewer. These will show you heap usage and GC pause 
timings  GCviewer  or HP 
Jmeterare
 pretty useful. I prefer HP Jmeter although it might need some logfile 
wrangling because of some unlogical newlines in the Oracle JVM logs. 
Usually replacing \n: with : does the trick if it gives an 'insane data' 
error.

On Saturday, October 13, 2012 7:14:43 PM UTC+2, Mark wrote:
>
> This feels like a memory leak problem.  Try adding 
> -XX:-HeapDumpOnOutOfMemoryError.  You might try lowering the max heap to 
> try and force an OOM earlier.  Heap dumps can be analyzed using a variety 
> of tools.  My favorite is eclipse.org/mat
>
> On Saturday, October 13, 2012 8:16:54 AM UTC-7, Jim foo.bar wrote:
>>
>> On 13/10/12 12:55, Jim - FooBar(); wrote: 
>> > On 13/10/12 12:50, Tassilo Horn wrote: 
>> >> pmap might not be as perfect for you use-case as you think.  Because 
>> it 
>> >> is lazy and chunked, it won't keep you cores busy.  Some time ago, 
>> there 
>> >> was a detailed thread about this on this list. 
>> > 
>> > But it does keep my cores fully busy (99-100%) for the first 40 min 
>> > roughly...IT is only after that that things go downhill... garbage 
>> > collection issues sound more plausible to me...I'm about to try the 
>> > new G1 collector and also since I'm doing string processing I'll try 
>> > "-XX:+OptimizeStringConcat" and potentially 
>> > "-XX:+UseCompressedStrings" (as long as the speed penalty is not that 
>> > big)... 
>> > 
>> > 
>> > Jim 
>>
>> I switched from pmap to 
>>
>> (r/fold n (r/monoid into vector) conj coll)) 
>>
>> and the same thing happened again! 
>> after approximately 50 minutes cpu utilisation dropped from 4/4 to 
>> 1/4...I don't understand! 
>>
>> Jim 
>>
>

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

Re: where is pvmap?

2012-10-13 Thread Andy Fingerhut
On Oct 13, 2012, at 6:49 AM, Jim - FooBar(); wrote:

> I am struggling to find the namespace in which 'pvmap' lives! Can anyone help?

I am pretty sure that it was implemented on a branch of the Clojure source 
tree, but never merged into the master branch.  You can use git to check out a 
version of the Clojure source code that contains pvmap, but it might be more 
trouble than you are looking for right now, depending upon your level of 
interest.  If that sounds like the right amount of trouble, ask away and 
someone could lead you through the steps.  It would be included in an older 
version of Clojure from about 2 years ago, I think.

Andy

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


Re: Bug in printing futures

2012-10-13 Thread AtKaaZ
Hi S, that's encouraging, I've to admit I've been poking at this for a few
hours now, but I'm not as productive as the (real)programmers.

I've yet to read the following which is a how to submit patches:
http://dev.clojure.org/display/design/JIRA+workflow

Meanwhile poking around, I've found the two locations that are showing *
:pending* and I've learned quite some things in the process. core_print.clj
and dispatch.clj are the relevant files for showing the future ( => f )
respectively for (clojure.pprint/pprint f)

I've also found a few relevant inconsistencies between
clojure.pprint/pprint and the normal printing (how do you call that), it's
clearly no big deal since it's just printing:
*(let [d (delay (throw (Exception. "a")) 100)] (print d)
(clojure.pprint/pprint d) d)*
 ##
 #
 *(let [d (delay (throw (Exception. "a")) 100)] (print d)
(clojure.pprint/pprint d) d)*
 ##
 #

Notice that some say :pending and one says :not-delivered

I've also considered this case(or similar to others like
promise/delay/future):
=> *(def d (delay (throw (Exception. "a")) 100))*
#'cloj2.ka/d
=> *d*
#
=> *@d*
Exception a  cloj2.ka/fn--7187 (NO_SOURCE_FILE:1)
=>* d*
#

At this time, I've been thinking that instead of :pending maybe there could
be something else like :threw especially considering that it can never
recover if it threw (right?), so having :pending might suggest that it is
still working, maybe even pending is not quite right for delay. Maybe I'm
getting too wannabe perfectionist here, after-all it's not one of my
projects to do such detailed analysis :) - if it were, I'd be putting quite
a few different messages here like: Delay :executing, Delay :threw, Delay
:completed (and the return value)

I feel like I'm overthinking this, the only real issue is really that of
printing an interrupted future should not throw.

At this time I'm not yet sure if I should pursue making a patch mainly
because I feel it would be incomplete to just fix the printing future issue
and not the other tiny things that I mentioned(but that's more of a fault
in me for wanting all addressed) and also because it seems somewhat
complicated to do, ie. required CA as I see here: http://clojure.org/patches

Thanks.

PS: someone who knows can probably do the futures patch in under 10
minutes, it would take me some hours I admit :)
Whoever does it, don't forget to add test cases in *test_pretty.clj*
currently somewhere at line 231:
*(tst-pprint 20 future-unfilled) #"#"*

On Fri, Oct 12, 2012 at 8:34 PM, Stuart Sierra
wrote:

> Patch welcome.
> -S
>
>
>  --
> 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 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

Re: pmap performance degradation after 30-40 min of work?

2012-10-13 Thread Mark
This feels like a memory leak problem.  Try adding 
-XX:-HeapDumpOnOutOfMemoryError.  You might try lowering the max heap to 
try and force an OOM earlier.  Heap dumps can be analyzed using a variety 
of tools.  My favorite is eclipse.org/mat

On Saturday, October 13, 2012 8:16:54 AM UTC-7, Jim foo.bar wrote:
>
> On 13/10/12 12:55, Jim - FooBar(); wrote: 
> > On 13/10/12 12:50, Tassilo Horn wrote: 
> >> pmap might not be as perfect for you use-case as you think.  Because it 
> >> is lazy and chunked, it won't keep you cores busy.  Some time ago, 
> there 
> >> was a detailed thread about this on this list. 
> > 
> > But it does keep my cores fully busy (99-100%) for the first 40 min 
> > roughly...IT is only after that that things go downhill... garbage 
> > collection issues sound more plausible to me...I'm about to try the 
> > new G1 collector and also since I'm doing string processing I'll try 
> > "-XX:+OptimizeStringConcat" and potentially 
> > "-XX:+UseCompressedStrings" (as long as the speed penalty is not that 
> > big)... 
> > 
> > 
> > Jim 
>
> I switched from pmap to 
>
> (r/fold n (r/monoid into vector) conj coll)) 
>
> and the same thing happened again! 
> after approximately 50 minutes cpu utilisation dropped from 4/4 to 
> 1/4...I don't understand! 
>
> Jim 
>

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

Re: pmap performance degradation after 30-40 min of work?

2012-10-13 Thread Jim - FooBar();

On 13/10/12 12:55, Jim - FooBar(); wrote:

On 13/10/12 12:50, Tassilo Horn wrote:

pmap might not be as perfect for you use-case as you think.  Because it
is lazy and chunked, it won't keep you cores busy.  Some time ago, there
was a detailed thread about this on this list.


But it does keep my cores fully busy (99-100%) for the first 40 min 
roughly...IT is only after that that things go downhill... garbage 
collection issues sound more plausible to me...I'm about to try the 
new G1 collector and also since I'm doing string processing I'll try 
"-XX:+OptimizeStringConcat" and potentially 
"-XX:+UseCompressedStrings" (as long as the speed penalty is not that 
big)...



Jim


I switched from pmap to

(r/fold n (r/monoid into vector) conj coll))

and the same thing happened again!
after approximately 50 minutes cpu utilisation dropped from 4/4 to 
1/4...I don't understand!


Jim

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


where is pvmap?

2012-10-13 Thread Jim - FooBar();
I am struggling to find the namespace in which 'pvmap' lives! Can anyone 
help?


Jim

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


Re: ANN subpar (paredit for codemirror)

2012-10-13 Thread Marc Limotte
Hi Andrew.

Nice project.  I'm super excited about being able to use LightTable for
actual development (wondering when my kickstarter/lighttable t-shirt will
arrive), and this will be a nice addition to that platform.

I wanted to let you know that The Climate Corporation is hiring.  Climate
is based in San Francisco and frequently hosts the Clojure Meetup.   They
also have an office in Seattle, and I personally work remotely from New
York City.  Where are you based?  There are a variety of engineering jobs
listed on Climate's career page (
http://hire.jobvite.com/CompanyJobs/Careers.aspx?c=qT59VfwM&v=1&page=Jobs).
 It's a polyglot shop (including Clojure, python, Java, Ruby).  A lot of
Clojure, so it is an opportunity to work professionally with Clojure on a
daily basis.  As a quick synopsis, Climate is a startup (but about 150
people now); we sells Crop insurance to farmers.  This  means a lot of Big
Data problems evaluating Climatological data, and planting field conditions
to create the products at the right price.  Does this sound like something
you'd be interested in?

Marc


On Fri, Oct 12, 2012 at 4:21 PM, Andrew  wrote:

> A ParEdit approximation for use in CodeMirror.
> https://github.com/achengs/subpar  Could conceivably benefit Light Table.
> *In other news, I'm in the market for a job...*
>
> --
> 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 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

Re: ANN subpar (paredit for codemirror)

2012-10-13 Thread Andrew
Anthony: Great! What needs to happen on my end for that to happen?

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


Re: pmap performance degradation after 30-40 min of work?

2012-10-13 Thread Jim - FooBar();

On 13/10/12 12:50, Tassilo Horn wrote:

pmap might not be as perfect for you use-case as you think.  Because it
is lazy and chunked, it won't keep you cores busy.  Some time ago, there
was a detailed thread about this on this list.


But it does keep my cores fully busy (99-100%) for the first 40 min 
roughly...IT is only after that that things go downhill... garbage 
collection issues sound more plausible to me...I'm about to try the new 
G1 collector and also since I'm doing string processing I'll try 
"-XX:+OptimizeStringConcat" and potentially "-XX:+UseCompressedStrings" 
(as long as the speed penalty is not that big)...



Jim

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


Re: pmap performance degradation after 30-40 min of work?

2012-10-13 Thread Tassilo Horn
"Jim foo.bar"  writes:

> So you can see, this is perfect for pmap and indeed it seems to be
> doing extremely well but only for the first 240 papers roughly! all
> the cpus are working hard but after approximately 30-40 min cpu
> utilisation and overall performance seems to degrade quite a bit...For
> some strange reason, 2 of my cores seem to refuse to do any work after
> these 240 papers which results in a really really slow process.

pmap might not be as perfect for you use-case as you think.  Because it
is lazy and chunked, it won't keep you cores busy.  Some time ago, there
was a detailed thread about this on this list.

Bye,
Tassilo

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


arguments to 'lein uberjar'?

2012-10-13 Thread Jim - FooBar();

Hello everyone,

I was just wondering...
with leiningen we can do 'lein compile [foo.core]' and lein will aot 
compile only the foo.core namespace. Is there a way to do the same for 
the 'uberjar' option?


In other words, is there a trick to achieve 'lein uberjar foo.core' so 
that only foo.core + clojure are packaged? My intuition says it is not 
currently possible to do that and i'd have to pull my gen-class 
namespace out in a separate project in order to package it as standalone...


is my intuition correct? thanks in advance...

Jim

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


Re: Packaging ClojureScript libraries for use with Leiningen

2012-10-13 Thread Pierre-Henry Perret
This project /bOOtOne/ 
could be of some help .

It uses *enfocus* * *and make use of *dynamic *libs by referencing *git *
repo.
Take a look at the *project;.clj *with the usage of *lein-cljsbuild * and 
*cross 
languages *inclusion. 

Le vendredi 12 octobre 2012 20:54:09 UTC+2, Conrad a écrit :
>
> Hi, can someone point me towards some documentation as to the proper way 
> to package a ClojureScript-based library that can be used in the usual way 
> via leiningen?
>
> I'm thinking I'd be able to upload it to clojars.org (as I would do for a 
> Clojure library), but given that "Jars" are something Java-specific, I'm 
> confused as to whether that'll work...
>
> Can someone point me in the right direction? Thanks!
>

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