[ANN] System

2014-07-29 Thread Daniel Szmulewicz
Hi everyone, 

Announcing system, some candy built on top of component, the Reloaded 
pattern by Stuart Sierra. 

https://github.com/danielsz/system

The idea behind this library is to serve as a community-backed repository 
of readymade components. 

The README has the details. 

Please don't hesitate to comment/ask/contribute. 

Thank you.

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

2014-07-29 Thread Michael Klishin
 On 29 July 2014 at 10:00:31, Daniel Szmulewicz (daniel.szmulew...@gmail.com) 
wrote:
  The idea behind this library is to serve as a community-backed  
 repository of readymade components.

So, basically like Modular?

https://github.com/juxt/modular
--  
@michaelklishin, github.com/michaelklishin

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

2014-07-29 Thread Daniel Szmulewicz
I wasn't aware of it. 

How does it relate to Jig (of which I was aware), if it does?

Anyway, modular looks neat and has more components, for sure. The example 
in the README shows usage via a Leiningen template. I found it was 
difficult to retrofit changes on existing projects with the template 
approach. 

But yes, it looks like there's some duplication of effort going on. Ouch.


On Tuesday, July 29, 2014 9:03:07 AM UTC+3, Michael Klishin wrote:

  On 29 July 2014 at 10:00:31, Daniel Szmulewicz (daniel.s...@gmail.com 
 javascript:) wrote: 
   The idea behind this library is to serve as a community-backed   
  repository of readymade components. 

 So, basically like Modular? 

 https://github.com/juxt/modular 
 --   
 @michaelklishin, github.com/michaelklishin 


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

2014-07-29 Thread Michael Klishin
On 29 July 2014 at 10:21:33, Daniel Szmulewicz (daniel.szmulew...@gmail.com) 
wrote:
  I wasn't aware of it.
  
 How does it relate to Jig (of which I was aware), if it does?

Jig originally was reinventing parts of Component + did what Modular does.
Malcolm will likely correct me but I believe Modular is what Jig meant to be,
built on top of Component (which has taken off in the community).

 Anyway, modular looks neat and has more components, for sure.  
 The example in the README shows usage via a Leiningen template.  
 I found it was difficult to retrofit changes on existing projects  
 with the template approach.

You can use the modules individually, the template simply brings together
a few commonly used for Web development. You can use e.g. the Netty module
w/o the template or any other modules. 
--  
@michaelklishin, github.com/michaelklishin

-- 
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: Tools for cleaning namespaces?

2014-07-29 Thread benedek fazekas
hi,

for your second point clj-refactor.el [1] has a solution called remove 
unused requires. You can find other other useful 
cleaning/sorting/reorganising functions there too -- for example 'move one 
or more forms to an other namespace' can be helpful too for your use case. 
You can run the above mentioned cleaning functions against your *whole* 
project with 'run project cleaner functions' [2] -- a detailed explanation 
of this and intro for the clj-refactor.el can be found here: [3]

the only caveat that these are implemented as an emacs extension. we are 
currently working on reimplement and extend these as a nREPL middleware so 
making them editor agnostic. However, if you happen to use emacs you are 
good to go.

benedek

[1] https://github.com/clojure-emacs/clj-refactor.el
[2] https://github.com/clojure-emacs/clj-refactor.el#project-clean-up
[3] http://benedekfazekas.github.io/2014/03/16/clean-clj-project-en-masse/

On Monday, July 28, 2014 12:58:31 PM UTC+1, Bertrand Dechoux wrote:

 Hello,

 I am trying to tidy up a project and I have two actions that could be 
 somehow be automatized.

 *1) Display the dependencies between the namespace of my project as a 
 graph (text graph being good enough).*
 One would want to break dependencies which do not make sense and sometimes 
 to create indirection in order to lessen the impact of changes.

 *2) Find out which dependencies are not required.*
 Splitting a namespace might be quite easy (the complex part is on the 
 consumer side) but often I find out that dependencies were not pruned 
 correctly.
 And so there are useless remaining dependencies that were not removed. 

 I understand that a 100% bullet proof solution might be really hard to do.
 But I was wondering, is there any tools that allows to do these tasks for 
 common cases?

 Regards

 Bertrand Dechoux


-- 
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: Tools for cleaning namespaces?

2014-07-29 Thread Daniel Compton
There’s also a lein plugin, ns-dep-graph which will generate a graphviz file 
for your namespace dependencies. https://github.com/hilverd/lein-ns-dep-graph

Daniel.


On Tuesday, 29 July 2014 at 2:38 am, Andy Fingerhut wrote:

 You can try Eastwood's :unused-namespaces linter for #2.  It is disabled by 
 default, so you need to give an option on the command line to enable it.  If 
 you want to try *only* that linter, and none of the other warnings, first 
 follow the simple install instructions in the README, then change to the home 
 dir of your project and type:
  
 lein eastwood '{:linters [:unused-namespaces]}'
  
 Eastwood will not currently help you with your request #1, but it would not 
 be difficult to add such a feature to it, since it determines dependencies 
 between namespaces already using tools.namespace.  There are other tools that 
 can do this for you, e.g. nephila [2] will create a graphics image of your 
 project's namespace dependencies, but you must have graphviz installed.  I 
 don't know of a similar tool that only creates text dependency output.
  
 Andy
  
 [1] https://github.com/jonase/eastwood
  
 [2] https://github.com/timmc/nephila
  
  
 On Mon, Jul 28, 2014 at 4:58 AM, Bertrand Dechoux decho...@gmail.com 
 (mailto:decho...@gmail.com) wrote:
  Hello,
   
  I am trying to tidy up a project and I have two actions that could be 
  somehow be automatized.  
   
  1) Display the dependencies between the namespace of my project as a graph 
  (text graph being good enough).
  One would want to break dependencies which do not make sense and sometimes 
  to create indirection in order to lessen the impact of changes.
   
  2) Find out which dependencies are not required.
  Splitting a namespace might be quite easy (the complex part is on the 
  consumer side) but often I find out that dependencies were not pruned 
  correctly.
  And so there are useless remaining dependencies that were not removed.  
   
  I understand that a 100% bullet proof solution might be really hard to do.
  But I was wondering, is there any tools that allows to do these tasks for 
  common cases?
   
  Regards
   
  Bertrand Dechoux  
   
  --  
  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 
  (mailto: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 
  (mailto:clojure%2bunsubscr...@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 
  (mailto: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 
 (mailto: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 
 (mailto: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 
 (mailto: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.


Is clojars down?

2014-07-29 Thread Yves Parès
Hi, it seems than clojars is down. Lein refuses to start, and apparently it 
won't download jars from maven central either...
Am I the only one with this problem?

-- 
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: Is clojars down?

2014-07-29 Thread Di Xu
I can open cljars.org as normal, and can also download jars from there.

2014-07-29 20:42 GMT+08:00 Yves Parès limestr...@gmail.com:

 Hi, it seems than clojars is down. Lein refuses to start, and apparently
 it won't download jars from maven central either...
 Am I the only one with this problem?

 --
 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: Is clojars down?

2014-07-29 Thread Marc Limotte
lein is working for me, and is downloading jars from clojars.  Assuming
it's a network issue on your side, and if you don't need any new jars right
now (b/c it's just looking for updates), you can try the -o (for offline)
option.



On Tue, Jul 29, 2014 at 8:42 AM, Yves Parès limestr...@gmail.com wrote:

 Hi, it seems than clojars is down. Lein refuses to start, and apparently
 it won't download jars from maven central either...
 Am I the only one with this problem?

 --
 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: Is clojars down?

2014-07-29 Thread Josh Kamau
I cannot.

Oops! Google Chrome could not find cljars.org


Josh


On Tue, Jul 29, 2014 at 3:44 PM, Di Xu xudi...@gmail.com wrote:

 I can open cljars.org as normal, and can also download jars from there.

 2014-07-29 20:42 GMT+08:00 Yves Parès limestr...@gmail.com:

 Hi, it seems than clojars is down. Lein refuses to start, and apparently
 it won't download jars from maven central either...
 Am I the only one with this problem?

 --
 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: Is clojars down?

2014-07-29 Thread Josh Kamau
Sorry... the url is clojars.org and its working perfectly.

josh


On Tue, Jul 29, 2014 at 3:46 PM, Marc Limotte mslimo...@gmail.com wrote:

 lein is working for me, and is downloading jars from clojars.  Assuming
 it's a network issue on your side, and if you don't need any new jars right
 now (b/c it's just looking for updates), you can try the -o (for offline)
 option.



 On Tue, Jul 29, 2014 at 8:42 AM, Yves Parès limestr...@gmail.com wrote:

 Hi, it seems than clojars is down. Lein refuses to start, and apparently
 it won't download jars from maven central either...
 Am I the only one with this problem?

 --
 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: Is clojars down?

2014-07-29 Thread Nicola Mometto

There seem to be problems with clojars.org, early this morning and for
the past few days clojars.org has been responding with a black page for
me and it was confirmed in #clojure by a number of different people.
I opened a ticket https://github.com/ato/clojars-web/issues/235 and
found out that a similar issue was opened over 10 days ago.

Now clojars.org works on my machine, I don't know if the problem is
being worked out or if the issue appears randomly.

I've never had issues fetching dependencies though, only accessing the
front page of the website.

Nicola

-- 
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: Is clojars down?

2014-07-29 Thread Di Xu
sorry for that..

2014-07-29 20:49 GMT+08:00 Josh Kamau joshnet2...@gmail.com:

 Sorry... the url is clojars.org and its working perfectly.

 josh


 On Tue, Jul 29, 2014 at 3:46 PM, Marc Limotte mslimo...@gmail.com wrote:

 lein is working for me, and is downloading jars from clojars.  Assuming
 it's a network issue on your side, and if you don't need any new jars right
 now (b/c it's just looking for updates), you can try the -o (for offline)
 option.



 On Tue, Jul 29, 2014 at 8:42 AM, Yves Parès limestr...@gmail.com wrote:

 Hi, it seems than clojars is down. Lein refuses to start, and apparently
 it won't download jars from maven central either...
 Am I the only one with this problem?

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


-- 
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: Is clojars down?

2014-07-29 Thread Yves Parès
It's a network problem. It might come from the network of my lab or
university (Paris 6, France) as at home it works.
But lein always worked well at my university, and clojars is the only site
I can't access. That's odd...


2014-07-29 14:57 GMT+02:00 Di Xu xudi...@gmail.com:

 sorry for that..

 2014-07-29 20:49 GMT+08:00 Josh Kamau joshnet2...@gmail.com:

 Sorry... the url is clojars.org and its working perfectly.

 josh


 On Tue, Jul 29, 2014 at 3:46 PM, Marc Limotte mslimo...@gmail.com
 wrote:

 lein is working for me, and is downloading jars from clojars.  Assuming
 it's a network issue on your side, and if you don't need any new jars right
 now (b/c it's just looking for updates), you can try the -o (for offline)
 option.



 On Tue, Jul 29, 2014 at 8:42 AM, Yves Parès limestr...@gmail.com
 wrote:

 Hi, it seems than clojars is down. Lein refuses to start, and
 apparently it won't download jars from maven central either...
 Am I the only one with this problem?

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


  --
 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/ytlRoegKZUY/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: Leiningen profile problem

2014-07-29 Thread Paul Butcher
Ah! Thanks Curtis - much appreciated.

Any insight as to why that’s not the default configuration?

--
paul.butcher-msgCount++

Silverstone, Brands Hatch, Donington Park...
Who says I have a one track mind?

http://www.paulbutcher.com/
LinkedIn: http://www.linkedin.com/in/paulbutcher
Skype: paulrabutcher

Author of Seven Concurrency Models in Seven Weeks: When Threads Unravel
http://pragprog.com/book/pb7con

On 29 July 2014 at 01:19:17, Curtis Summers (curtis.summ...@gmail.com) wrote:

Paul,

Leiningen can isolate the target-paths by profile if you use :target-path in 
your project.clj with the %s in it.  

Per the sample project.clj file 
(https://github.com/technomancy/leiningen/blob/master/sample.project.clj):


;; All generated files will be placed in :target-path. In order to avoid
  ;; cross-profile contamination (for instance, uberjar classes interfering
  ;; with development), it's recommended to include %s in in your custom
  ;; :target-path, which will splice in names of the currently active profiles.
  :target-path target/%s/



--Curtis


On Monday, July 28, 2014 12:40:45 PM UTC-5, Paul Butcher wrote:
Ah! I thought that Leiningen put class files in different places for different 
profiles, but it looks like I was mistaken.

Thanks for the EDN hint - that sounds like a good way to go.

Cheers!

--
paul.butcher-msgCount++

Silverstone, Brands Hatch, Donington Park...
Who says I have a one track mind?

http://www.paulbutcher.com/
LinkedIn: http://www.linkedin.com/in/paulbutcher
Skype: paulrabutcher

Author of Seven Concurrency Models in Seven Weeks: When Threads Unravel
http://pragprog.com/book/pb7con

On 28 July 2014 at 18:01:16, Thomas Heller (th.h...@gmail.com) wrote:

Your issue is probably due to AOT compilation, uberjar aot compiles everything 
and leaves alot of class files in your target directory (aka classpath). When 
you run your app afterwards the class file is used instead of the clj file 
since the .class file is newer. When you run lein clean those .class files 
are removed and the classloader then looks for the clj file.

I'd recommend keeping a config file (can be EDN) and just having a development 
and production version instead of using different code. You can either use a 
command line argument to choose which config to load or use leinigen profiles 
and resource paths so only include the one you want.

HTH,
/thomas

On Monday, July 28, 2014 3:45:51 PM UTC+2, Paul Butcher wrote:
Oops - I originally sent this to the ClojureScript group, which probably wasn’t 
the best place. Apologies to those who subscribe to both lists for the spam:

I’m clearly misunderstanding something fundamental about how Leiningen profiles 
work. I’d appreciate help fixing my understanding.

I’m trying to create a Ring server that behaves differently when in production 
or development mode. I’ve checked a minimal cut-down version of my server into 
GitHub here:

https://github.com/paulbutcher/profile-problem

There are two different versions of config.clj. The production version looks 
like this:


(ns problem.config)
(def production true)

And the development version like this:


(ns problem.config)
(def production false)

The profiles section of project.clj adds the appropriate one of these to 
source-paths depending on which profile is active:


  :profiles {:production {:source-paths [production/src]}
 :dev {:source-paths [dev/src]}
 :uberjar [:production {:aot :all}]}

Finally, the server prints a message during startup:


(println Starting
in (if config/production production development) mode))

This all works fine - if I run “lein ring server-headless” or “lein 
with-profile dev server-headless”, I see “Starting in development mode” and if 
I run “lein with-profile production server-headless”, I see “Starting in 
production mode”.

So far so good.

The problem arises after I run “lein ring uberjar”. The uberjar works exactly 
as I would expect (it runs in production mode). But if I then run “lein ring 
server-headless” or “lein with-profile dev server-headless” in my project 
directory, instead of seeing “Starting in development mode”, I see “Starting in 
production mode”.

Running “lein clean” sorts the problem out, but I worry that I’m missing 
something fundamental that’s going to bite me at some point…

Thanks in advance...

--
paul.butcher-msgCount++

Silverstone, Brands Hatch, Donington Park...
Who says I have a one track mind?

http://www.paulbutcher.com/
LinkedIn: http://www.linkedin.com/in/paulbutcher
Skype: paulrabutcher

Author of Seven Concurrency Models in Seven Weeks: When Threads Unravel
http://pragprog.com/book/pb7con
--
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 

Re: Is clojars down?

2014-07-29 Thread Reid McKenzie
AFAIK clojars.org's / has been on the blink since at least about eight
hours ago. Other pages are reported to work, but / was returning a 500
internal server error with a blank body.

Reid
On 07/29/2014 09:23 AM, Yves Parès wrote:
 It's a network problem. It might come from the network of my lab or
 university (Paris 6, France) as at home it works.
 But lein always worked well at my university, and clojars is the only
 site I can't access. That's odd...


 2014-07-29 14:57 GMT+02:00 Di Xu xudi...@gmail.com
 mailto:xudi...@gmail.com:

 sorry for that..

 2014-07-29 20:49 GMT+08:00 Josh Kamau joshnet2...@gmail.com
 mailto:joshnet2...@gmail.com:

 Sorry... the url is clojars.org http://clojars.org and its
 working perfectly.

 josh


 On Tue, Jul 29, 2014 at 3:46 PM, Marc Limotte
 mslimo...@gmail.com mailto:mslimo...@gmail.com wrote:

 lein is working for me, and is downloading jars from
 clojars.  Assuming it's a network issue on your side, and
 if you don't need any new jars right now (b/c it's just
 looking for updates), you can try the -o (for offline)
 option.



 On Tue, Jul 29, 2014 at 8:42 AM, Yves Parès
 limestr...@gmail.com mailto:limestr...@gmail.com wrote:

 Hi, it seems than clojars is down. Lein refuses to
 start, and apparently it won't download jars from
 maven central either...
 Am I the only one with this problem?
 -- 
 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 mailto: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
 mailto:clojure%2bunsubscr...@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
 mailto: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 mailto: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
 mailto:clojure%2bunsubscr...@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
 mailto: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
 mailto: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
 mailto:clojure%2bunsubscr...@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
 mailto: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
 

Re: [ClojureScript] Re: ANN: ClojureScript 0.0-2277

2014-07-29 Thread David Nolen
Can someone please confirm that the follow Closure releases solve the issues?

https://oss.sonatype.org/content/repositories/orgclojure-1312 and
https://oss.sonatype.org/content/repositories/orgclojure-1311

Thanks!
David

On Sat, Jul 26, 2014 at 4:38 AM, Thomas Heller th.hel...@gmail.com wrote:
 Hey David,

 CLJS-826 is only partly resolved in this release since it only takes effect
 with a new closure-third-party release since the current jar is causing the
 problem.

 Would be nice if you could build a new closure release and bump the
 dependency in clojurescript.

 Thanks,
 /thomas



 On Friday, July 25, 2014 8:37:06 PM UTC+2, David Nolen wrote:

 ClojureScript, the Clojure compiler that emits JavaScript source code.

 README and source code: https://github.com/clojure/clojurescript

 New release version: 0.0-2277

 Leiningen dependency information:

 [org.clojure/clojurescript 0.0-2277]

 The main reason behind this release is fixing a critical issue around
 the structure of the Google Closure Library which broke REPL support
 in some cases.

 ## Enhancements
 * All IEquiv implementor now export equiv Object method

 ## Fixes
 * CLJS-824: Unsigned hash for keywords produced via keyword fn
 * CLJS-827: CLJS-827: wrap macro expansion in try/catch
 * CLJS-826: fix broken closure release script
 * CLJS-825: conflict between node js support files
 * typo in unchecked-subtract-int

 --
 Note that posts from new members are moderated - please be patient with your
 first post.
 ---
 You received this message because you are subscribed to the Google Groups
 ClojureScript group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to clojurescript+unsubscr...@googlegroups.com.
 To post to this group, send email to clojurescr...@googlegroups.com.
 Visit this group at http://groups.google.com/group/clojurescript.

-- 
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: [ClojureScript] Re: ANN: ClojureScript 0.0-2277

2014-07-29 Thread Thomas Heller
Uhm small hint on how I'd do that? My maven-fu is weak.

But given that

https://oss.sonatype.org/content/repositories/orgclojure-1311/org/clojure/google-closure-library-third-party/0.0-20140718-946a7d39/google-closure-library-third-party-0.0-20140718-946a7d39.jar

does not contain a goog/base.js or goog/deps.js we should be good.

-- 
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: [ClojureScript] Re: ANN: ClojureScript 0.0-2277

2014-07-29 Thread David Nolen
Just add sonatype to your :repositories project.clj entry
https://github.com/technomancy/leiningen/blob/master/sample.project.clj#L79

David

On Tue, Jul 29, 2014 at 4:22 PM, Thomas Heller th.hel...@gmail.com wrote:
 Uhm small hint on how I'd do that? My maven-fu is weak.

 But given that

 https://oss.sonatype.org/content/repositories/orgclojure-1311/org/clojure/google-closure-library-third-party/0.0-20140718-946a7d39/google-closure-library-third-party-0.0-20140718-946a7d39.jar

 does not contain a goog/base.js or goog/deps.js we should be good.

 --
 Note that posts from new members are moderated - please be patient with your 
 first post.
 ---
 You received this message because you are subscribed to the Google Groups 
 ClojureScript group.
 To unsubscribe from this group and stop receiving emails from it, send an 
 email to clojurescript+unsubscr...@googlegroups.com.
 To post to this group, send email to clojurescr...@googlegroups.com.
 Visit this group at http://groups.google.com/group/clojurescript.

-- 
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: [ClojureScript] Re: ANN: ClojureScript 0.0-2277

2014-07-29 Thread Thomas Heller
Just tried

  :repositories {sonatype-oss-public {:url 
https://oss.sonatype.org/content/groups/public/;
:snapshots false}
 sonatype-1311 {:url 
http://oss.sonatype.org/content/repositories//orgclojure-1311}
 sonatype-1312 {:url 
http://oss.sonatype.org/content/repositories//orgclojure-1312}

 local file:maven} 

and

[org.clojure/clojurescript 0.0-2234]
[org.clojure/google-closure-library 0.0-20140718-946a7d39]

Confirmed to resolve CLJS-826.


On Tuesday, July 29, 2014 10:30:21 PM UTC+2, David Nolen wrote:

 Just add sonatype to your :repositories project.clj entry 
 https://github.com/technomancy/leiningen/blob/master/sample.project.clj#L79 

 David 

 On Tue, Jul 29, 2014 at 4:22 PM, Thomas Heller th.h...@gmail.com 
 javascript: wrote: 
  Uhm small hint on how I'd do that? My maven-fu is weak. 
  
  But given that 
  
  
 https://oss.sonatype.org/content/repositories/orgclojure-1311/org/clojure/google-closure-library-third-party/0.0-20140718-946a7d39/google-closure-library-third-party-0.0-20140718-946a7d39.jar
  
  
  does not contain a goog/base.js or goog/deps.js we should be good. 
  
  -- 
  Note that posts from new members are moderated - please be patient with 
 your first post. 
  --- 
  You received this message because you are subscribed to the Google 
 Groups ClojureScript group. 
  To unsubscribe from this group and stop receiving emails from it, send 
 an email to clojurescrip...@googlegroups.com javascript:. 
  To post to this group, send email to clojur...@googlegroups.com 
 javascript:. 
  Visit this group at http://groups.google.com/group/clojurescript. 


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

2014-07-29 Thread Alex Miller
I'm glad you are all building these very helpful libraries. I am sad panda 
that names like Component, System, and Modular are terrible for me to ever 
find them again!!! 

:)

On Tuesday, July 29, 2014 1:00:17 AM UTC-5, Daniel Szmulewicz wrote:

 Hi everyone, 

 Announcing system, some candy built on top of component, the Reloaded 
 pattern by Stuart Sierra. 

 https://github.com/danielsz/system

 The idea behind this library is to serve as a community-backed repository 
 of readymade components. 

 The README has the details. 

 Please don't hesitate to comment/ask/contribute. 

 Thank you.



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

2014-07-29 Thread Daniel Szmulewicz
Hi Alex, 

I opened an issue on github to address this. 

https://github.com/danielsz/system/issues/2

I'll readily admit that I'm partial to the name. Like Component or Modular, 
it conveys genericity with double-entendre, at least to my ears. If it 
turns out too much of a hassle, I'll change it. Please feel free to suggest 
alternate names.

Thank you.

On Tuesday, July 29, 2014 11:56:53 PM UTC+3, Alex Miller wrote:

 I'm glad you are all building these very helpful libraries. I am sad panda 
 that names like Component, System, and Modular are terrible for me to ever 
 find them again!!! 

 :)

 On Tuesday, July 29, 2014 1:00:17 AM UTC-5, Daniel Szmulewicz wrote:

 Hi everyone, 

 Announcing system, some candy built on top of component, the Reloaded 
 pattern by Stuart Sierra. 

 https://github.com/danielsz/system

 The idea behind this library is to serve as a community-backed repository 
 of readymade components. 

 The README has the details. 

 Please don't hesitate to comment/ask/contribute. 

 Thank you.



-- 
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: [ClojureScript] Re: ANN: ClojureScript 0.0-2277

2014-07-29 Thread David Nolen
Thanks!

On Tue, Jul 29, 2014 at 4:48 PM, Thomas Heller th.hel...@gmail.com wrote:
 Just tried

   :repositories {sonatype-oss-public {:url
 https://oss.sonatype.org/content/groups/public/;
 :snapshots false}
  sonatype-1311 {:url
 http://oss.sonatype.org/content/repositories//orgclojure-1311}
  sonatype-1312 {:url
 http://oss.sonatype.org/content/repositories//orgclojure-1312}

  local file:maven}

 and

 [org.clojure/clojurescript 0.0-2234]
 [org.clojure/google-closure-library 0.0-20140718-946a7d39]

 Confirmed to resolve CLJS-826.


 On Tuesday, July 29, 2014 10:30:21 PM UTC+2, David Nolen wrote:

 Just add sonatype to your :repositories project.clj entry

 https://github.com/technomancy/leiningen/blob/master/sample.project.clj#L79

 David

 On Tue, Jul 29, 2014 at 4:22 PM, Thomas Heller th.h...@gmail.com wrote:
  Uhm small hint on how I'd do that? My maven-fu is weak.
 
  But given that
 
 
  https://oss.sonatype.org/content/repositories/orgclojure-1311/org/clojure/google-closure-library-third-party/0.0-20140718-946a7d39/google-closure-library-third-party-0.0-20140718-946a7d39.jar
 
  does not contain a goog/base.js or goog/deps.js we should be good.
 
  --
  Note that posts from new members are moderated - please be patient with
  your first post.
  ---
  You received this message because you are subscribed to the Google
  Groups ClojureScript group.
  To unsubscribe from this group and stop receiving emails from it, send
  an email to clojurescrip...@googlegroups.com.
  To post to this group, send email to clojur...@googlegroups.com.
  Visit this group at http://groups.google.com/group/clojurescript.

 --
 Note that posts from new members are moderated - please be patient with your
 first post.
 ---
 You received this message because you are subscribed to the Google Groups
 ClojureScript group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to clojurescript+unsubscr...@googlegroups.com.
 To post to this group, send email to clojurescr...@googlegroups.com.
 Visit this group at http://groups.google.com/group/clojurescript.

-- 
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] Clara 0.6.0

2014-07-29 Thread Alan Moore
On Monday, July 28, 2014 7:25:31 PM UTC-7, Ryan Brush wrote:

 This may change in the future. If there's interest in improved Storm 
 integration that's something we can kick around, and I would like to get 
 back to that at some point. But for the time being I've focused on making 
 the core of Clara a solid basis for expert systems.


I need something very much like what the Storm integration provides so I 
have been playing around with it and reading the code to understand how it 
works. I updated the project.clj to compile against the most recent 
versions the libraries it depends on, including your latest Clara release, 
but it doesn't compile.
 


 As a side note, I always like to hear ideas on Clara's direction, and of 
 course contributions are welcome. 


I will try to get the Storm example working with the latest libraries and 
will send you a pull request when I'm done.

FYI - my work on Clarity, a LightTable plugin for Clara, continues. I'll 
send you a link to the repo when I have a working prototype worthy of 
review. I'm trying to make it generalized and not too LT specific so it can 
be ported to other environments as well, e.g. IntelliJ, 
Eclipse/CounterClockwise.

Thanks again for your work on Clara!

Alan

-- 
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.core.async and ThreadLocals

2014-07-29 Thread coltnz
Do we expect this, seems inconsistent?

cheers
Colin

(def ^:dynamic dvar 1)
(def tl (ThreadLocal.))
(.set tl 1)
(def _ (clojure.core.async/go 
  (println Expect 1, ThreadLocal:  (.get tl)) 
  (println Expect 1, Dvar:  dvar)))

#'user/_
Expect 1, ThreadLocal:  nil
Expect 1, Dvar:  1

-- 
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: Could I get some feedback on this function?

2014-07-29 Thread Christopher Elwell
Thanks for the very helpful feedback/advice! Definitely some major 
improvements here.

On Friday, July 25, 2014 5:32:43 PM UTC-4, Christopher Elwell wrote:

 New to Clojure, how is this function that I wrote? Any suggestions for 
 improvement; is it too complicated?

 It filters a sequence, leaving only the first occurrence of each item in 
 the seq that has a matching prefix (get-form-id-without-timestamp gets 
 just the id prefix).

 (defn only-keep-unique-ids [ids]
   (let [seen-ids (atom #{})
 filter-fn #(let [raw-form-id (get-form-id-without-timestamp %)
  is-unique (not (contains? @seen-ids raw-form-id))]
  (do (swap! seen-ids conj raw-form-id)
  is-unique))]
 (filter filter-fn ids)))





-- 
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.core.async and ThreadLocals

2014-07-29 Thread Timothy Baldridge
Go blocks are not the only thing that will do this. On a whole, thread
locals are not propigated between threads in Clojure. However, dynamic vars
are in some cases. Try this again with (future ...) and you should see the
same behavior.

Behind the scenes dynamic vars are all stored in a single thread local, so
it is quite easy to collect them all and pass them to a new thread. Not so
easy with random ThreadLocals created by users.

Timothy


On Tue, Jul 29, 2014 at 7:42 PM, coltnz colin.tay...@gmail.com wrote:

 Do we expect this, seems inconsistent?

 cheers
 Colin

 (def ^:dynamic dvar 1)
 (def tl (ThreadLocal.))
 (.set tl 1)
 (def _ (clojure.core.async/go
   (println Expect 1, ThreadLocal:  (.get tl))
   (println Expect 1, Dvar:  dvar)))

 #'user/_
 Expect 1, ThreadLocal:  nil
 Expect 1, Dvar:  1

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




-- 
“One of the main causes of the fall of the Roman Empire was that–lacking
zero–they had no way to indicate successful termination of their C
programs.”
(Robert Firth)

-- 
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.core.async and ThreadLocals

2014-07-29 Thread Timothy Baldridge
s/propigated/propagated

need to slow down when I type sometimes.


On Tue, Jul 29, 2014 at 8:35 PM, Timothy Baldridge tbaldri...@gmail.com
wrote:

 Go blocks are not the only thing that will do this. On a whole, thread
 locals are not propigated between threads in Clojure. However, dynamic vars
 are in some cases. Try this again with (future ...) and you should see the
 same behavior.

 Behind the scenes dynamic vars are all stored in a single thread local, so
 it is quite easy to collect them all and pass them to a new thread. Not so
 easy with random ThreadLocals created by users.

 Timothy


 On Tue, Jul 29, 2014 at 7:42 PM, coltnz colin.tay...@gmail.com wrote:

 Do we expect this, seems inconsistent?

 cheers
 Colin

 (def ^:dynamic dvar 1)
 (def tl (ThreadLocal.))
 (.set tl 1)
 (def _ (clojure.core.async/go
   (println Expect 1, ThreadLocal:  (.get tl))
   (println Expect 1, Dvar:  dvar)))

 #'user/_
 Expect 1, ThreadLocal:  nil
 Expect 1, Dvar:  1

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




 --
 “One of the main causes of the fall of the Roman Empire was that–lacking
 zero–they had no way to indicate successful termination of their C
 programs.”
 (Robert Firth)




-- 
“One of the main causes of the fall of the Roman Empire was that–lacking
zero–they had no way to indicate successful termination of their C
programs.”
(Robert Firth)

-- 
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.core.async and ThreadLocals

2014-07-29 Thread coltnz
Thanks Timothy, yeah I gave it some thought and did seem non trivial.

Shame because Netty uses ThreadLocals for ref counting its direct memory 
buffers so they don't release cleanly in go blocks.

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