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 pos

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

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 thr

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

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 re

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 o

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 wrote: > Just tried > > :repositories {"sonatype-oss-public" {:url > "https://oss.sonatype.org/content/groups/public/"; > :snapshots false} > "sonatype-1311" {:url > "http://oss.sonat

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.

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 b

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-

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 wrote: > Uhm small hint on how I'd do that? My maven-fu is weak. > > But given that > > https://oss.sonatype.

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 o

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 wrote: > Hey David, > > CLJS

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 o

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

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 : > sorry for that.. > > 2014-07-29 20:4

Re: Is clojars down?

2014-07-29 Thread Di Xu
sorry for that.. 2014-07-29 20:49 GMT+08:00 Josh Kamau : > Sorry... the url is clojars.org and its working perfectly. > > josh > > > On Tue, Jul 29, 2014 at 3:46 PM, Marc Limotte wrote: > >> lein is working for me, and is downloading jars from clojars. Assuming >> it's a network issue on your s

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 s

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

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 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 : > > Hi, it seems than clojars is down. Lein refuses to start, and

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 wrote: > Hi, it seem

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

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 clo

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 disabl

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 abov