Re: clojure.compiler.disable-locals-clearing memory leak?

2016-01-25 Thread Mars0i
On Monday, January 25, 2016 at 9:26:17 AM UTC-6, Alex Miller wrote: > > When you disable locals clearing, you will start holding the head of > (potentially large) locals everywhere. This is the reason that locals are > aggressively called in the first place. This is a typical consequence of >

Re: Anyone use Eastwood lint tool on a Clojure project managed by boot?

2016-01-25 Thread Mikhail Malchevskiy
There is https://github.com/tolitius/boot-check. вторник, 26 января 2016 г., 4:40:01 UTC+3 пользователь Andy Fingerhut написал: > > I haven't used boot yet, so haven't discovered any issues that might exist > with using Eastwood [1] on a project where boot is used. There might not > be any,

Re: [ANN] New clojure.org!

2016-01-25 Thread Alex Miller
You can now access https://clojure.org, thanks for the push. On Thursday, January 14, 2016 at 2:25:42 PM UTC-6, Alex Miller wrote: > > Noted, I will bump it up the priority list. > > On Thursday, January 14, 2016 at 1:49:55 PM UTC-6, Laurens Van Houtven > wrote: >> >> Hi, >> >> On Jan 14, 2016,

Re: Transduce with a minus '-'

2016-01-25 Thread Mark Tinsley
Hi Alex, Completing is exactly what I used to solve this, but It felt like a bit of a hack/work around. I think this is a case of being pragmatic, having the reason reaffirmed makes it feel less like a work around and more of a choice in behaviour. Thanks Mark On Monday, January 25,

Re: Transduce with a minus '-'

2016-01-25 Thread Alex Miller
I think you've explained it well. You can use https://clojure.github.io/clojure/clojure.core-api.html#clojure.core/completing to patch in a better completion arity for - (here I think identity is what you want and that is the default for completing): (transduce xf (completing -) 0 (range 10))

Re: clojure.compiler.disable-locals-clearing memory leak?

2016-01-25 Thread Ghadi Shayban
It's explicitly to help a debugger. Best to not use that option except when debugging. (It disables certain bytecode patterns that help to avoid OutOfMemory errors) On Monday, January 25, 2016 at 1:49:03 AM UTC-5, Mars0i wrote: > > In my application, I seem to get a memory leak when I use >

Transduce with a minus '-'

2016-01-25 Thread Mark Tinsley
Hi all, Could I have some clarification on something, I know how to solve the issue I just want to make sure I understand the reasons behind it, given the following: (def xf (comp (filter odd?) (map inc) (take 5))) (transduce xf + 0 (range 10)) I get the answer: => 30 Makes

Re: What's the best option similar to Vert.x, Reactor, Nodejs for use with Clojure?

2016-01-25 Thread Fabio T.
Hi, I agree it really depends what you're looking for. If you're especially looking for async performance then I think you can't go wrong with Pulsar which is a Clojure language integration module + a thin, idiomatic wrapper around Quasar

Re: lein: managing versions of common deps / soliciting assistance on PR review

2016-01-25 Thread Charles Loomis
For many reasons, we’re currently looking at migrating the clojure part of our large, multi-language build from maven to leiningen or boot. Because we’ve run into difficult dependency conflicts between modules in the past, maintaining central management of dependency versions is critical for

Re: clojure.compiler.disable-locals-clearing memory leak?

2016-01-25 Thread Alex Miller
When you disable locals clearing, you will start holding the head of (potentially large) locals everywhere. This is the reason that locals are aggressively called in the first place. This is a typical consequence of disabling locals clearing and the reason why they are cleared by default. This

Clojure Jobs!

2016-01-25 Thread Francesca Scantlebury
Hi all, My name is Francesca and I work at Functional Works, we are a start-up bringing technology to the recruitment industry, we hope to better connect members of the software development community. See our website @ www.functionalworks.com

Re: java.lang.NoSuchFieldError: __thunk__0__

2016-01-25 Thread Ryan Fowler
I just submitted http://dev.clojure.org/jira/browse/CLJ-1886 I was able to narrow down the problem space a little bit, but it's still gnarly. Ryan On Mon, Jan 25, 2016 at 4:27 AM, Nicola Mometto wrote: > Can you log this issue in clojure's JIRA? > > On Friday, January 15,

[Newbe] how to 'unpack' clojure internal instance

2016-01-25 Thread Jacek Grzebyta
Hi All, Sorry for trivial question but I am a newbe in Clojure. I need to manage some object which is created by calling java method: (let [result #(.getStatements c nil nil nil (into-array Resource '[]))] > (log/debug (format "Result class: %s" (type result))) > (map #(log/debug

Re: [Newbe] how to 'unpack' clojure internal instance

2016-01-25 Thread Alex Miller
I think your most immediate issue is the "#" after result - that makes this into an anonymous function instance. Instead, you want to actually evaluate that expression in the let: (let [result (.getStatements c nil nil nil (into-array Resource '[]))] (log/debug (format "Result class: %s"

Re: [Newbe] how to 'unpack' clojure internal instance

2016-01-25 Thread Jacek Grzebyta
Thanks Alex. That was the problem. I have wrapped the results in anonymous function. I overuse anonymous functions due to my small experience with common lisp lambdas. On Monday, 25 January 2016 15:59:57 UTC, Alex Miller wrote: > > I think your most immediate issue is the "#" after result -

Re: emacs Expectations Mode - can't make it work

2016-01-25 Thread Sean Corfield
Yuri Steinschreiber wrote on Monday, January 25, 2016 at 1:17 AM: Sadly, Expectations Mode seems to be abandoned. Leaving an FYI to the community. We stopped using expectations-mode a long time ago, instead adding this to our Emacs config: ;; run expectations (defun run-expectations ()

NullPointerException on ManagementFactory/getThreadMXBean ???

2016-01-25 Thread piastkrakow
I've never had this problem before, but now I'm getting this: in resource-usage there was this exception: # at startup, for this function: (defn- resource-usage [] (let [my-pool (at/mk-pool)] (at/every 6 (fn [] (try (timbre/log :trace

Re: NullPointerException on ManagementFactory/getThreadMXBean ???

2016-01-25 Thread piastkrakow
This error is also intermittent. It doesn't happen every time I start the app. I would guess this is some kind of timing issue, but I can't think where the issue of timing comes up. On Monday, January 25, 2016 at 4:04:50 PM UTC-5, piast...@gmail.com wrote: > > I've never had this problem

RE: emacs Expectations Mode - can't make it work

2016-01-25 Thread Yuri Steinschreiber
Thanks Sean! Simple and sufficient. I’ll try to also implement something similar (probably a macro) in IntelliJ while waiting for Cursive to add Expectations support. Cheers……. Yuri From: Sean Corfield Sent: Monday, January 25, 2016 9:47 AM To: Clojure Mailing List Subject: Re: emacs

Re: clojure.compiler.disable-locals-clearing memory leak?

2016-01-25 Thread Mars0i
On Monday, January 25, 2016 at 9:26:17 AM UTC-6, Alex Miller wrote: > > When you disable locals clearing, you will start holding the head of > (potentially large) locals everywhere. This is the reason that locals are > aggressively called in the first place. This is a typical consequence of >

Anyone use Eastwood lint tool on a Clojure project managed by boot?

2016-01-25 Thread Andy Fingerhut
I haven't used boot yet, so haven't discovered any issues that might exist with using Eastwood [1] on a project where boot is used. There might not be any, which would be great, but if there are I'd like to hear about them. Even better, if you have some short instructions on how to use Eastwood

Re: emacs Expectations Mode - can't make it work

2016-01-25 Thread Yuri Steinschreiber
Responding to my own question: 1. Indeed, Expectations Mode can't work with CIDER starting from 0.8.0, after refactoring and function renaming. So apparently no one is using it. 2. The same issue was already reported to Expectations Mode

Re: java.lang.NoSuchFieldError: __thunk__0__

2016-01-25 Thread Nicola Mometto
Can you log this issue in clojure's JIRA? On Friday, January 15, 2016 at 11:21:17 PM UTC, Ryan Fowler wrote: > > I've got a head-scratcher. > > A combination of aot compiling, ring-jetty, slf4j-timbre, timbre and > core.async causes "java.lang.NoSuchFieldError: __thunk__0__" > > I've created a