Re: [ANN] Clojure 1.8.0-RC2

2015-12-11 Thread Alex Miller
Hey Serzh, Rich just pushed a change to master that removes unused interns in the static initializers - we are doing some further testing on it before creating an RC but if you wanted to check it out as a snapshot, I'd be interested in hearing your feedback in particular as you have a specific

Re: [ANN] Clojure 1.8.0-RC2

2015-12-03 Thread Serzh Nechyporchuk
There is an error in the link in the issue: you leave "):" in the end of url. On Monday, November 16, 2015 at 4:32:10 PM UTC+2, Alex Miller wrote: > > Clojure 1.8.0-RC2 is now available. *This build is a "release candidate"!* We > would appreciate any and all testing you can do on your own libr

Re: [ANN] Clojure 1.8.0-RC2

2015-12-03 Thread Serzh Nechyporchuk
Thanks Alex, I will watch on this issue. середа, 2 грудня 2015 р. 17:47:57 UTC+2 користувач Alex Miller написав: > > Hi Serzh, > > Rich plans to work on this in 1.9 (ticket for tracking here: > http://dev.clojure.org/jira/browse/CLJ-1861). > > Thanks, > Alex > > > On Tuesday, December 1, 2015 a

Re: [ANN] Clojure 1.8.0-RC2

2015-12-02 Thread Alex Miller
Hi Serzh, Rich plans to work on this in 1.9 (ticket for tracking here: http://dev.clojure.org/jira/browse/CLJ-1861). Thanks, Alex On Tuesday, December 1, 2015 at 1:46:22 AM UTC-6, Serzh Nechyporchuk wrote: > > Hello, Alex. Thank you for your work. > > Direct linking is a feature that we wait

Re: [ANN] Clojure 1.8.0-RC2

2015-11-30 Thread Serzh Nechyporchuk
Hello, Alex. Thank you for your work. Direct linking is a feature that we wait for a long. We need to obfuscate our code, so direct linking is really helps us. But I wonder, why there is keyword and symbols interning left in the static initalizer in the class: L1 { ldc "clojure.cor

Re: [ANN] Clojure 1.8.0-RC2

2015-11-20 Thread Ambrose Bonnaire-Sergeant
Thanks. Here's a good test, feel free to use it. (deftest direct-linking-for-load (let [original-load load called? (atom nil) logger (fn [& args] (reset! called? true) nil)] (with-redefs [load logger] ;; doesn't actually load clojure.r

Re: [ANN] Clojure 1.8.0-RC2

2015-11-20 Thread Alex Miller
I reopened the ticket. You can hold on the patch - I think we're going to make another change that will affect what the patch will be. On Friday, November 20, 2015 at 9:29:43 AM UTC-6, Ambrose Bonnaire-Sergeant wrote: > > I was going to reopen the ticket and create/test a patch. Does that work

Re: [ANN] Clojure 1.8.0-RC2

2015-11-20 Thread Ambrose Bonnaire-Sergeant
Aha, thanks! On Fri, Nov 20, 2015 at 10:35 AM, Nicola Mometto wrote: > It doesn't, but direct linking only affects invocations > > > > On 20 Nov 2015, at 15:21, Ambrose Bonnaire-Sergeant < > abonnaireserge...@gmail.com> wrote: > > > > Wait, how does the compiler know that *clojure-version* isn't

Re: [ANN] Clojure 1.8.0-RC2

2015-11-20 Thread Nicola Mometto
It doesn't, but direct linking only affects invocations > On 20 Nov 2015, at 15:21, Ambrose Bonnaire-Sergeant > wrote: > > Wait, how does the compiler know that *clojure-version* isn't a function? > > On Fri, Nov 20, 2015 at 10:01 AM, Nicola Mometto wrote: > *clojure-version* is not a functi

Re: [ANN] Clojure 1.8.0-RC2

2015-11-20 Thread Ambrose Bonnaire-Sergeant
I was going to reopen the ticket and create/test a patch. Does that work for you? On Fri, Nov 20, 2015 at 10:22 AM, Ambrose Bonnaire-Sergeant < abonnaireserge...@gmail.com> wrote: > Alex, > > That sounds correct. > > Thanks, > Ambrose > > > On Fri, Nov 20, 2015 at 10:10 AM, Alex Miller wrote: >

Re: [ANN] Clojure 1.8.0-RC2

2015-11-20 Thread Ambrose Bonnaire-Sergeant
Alex, That sounds correct. Thanks, Ambrose On Fri, Nov 20, 2015 at 10:10 AM, Alex Miller wrote: > I see the same and I suspect it's because of the forward declare. :( > > > On Friday, November 20, 2015 at 12:25:28 AM UTC-6, Ambrose > Bonnaire-Sergeant wrote: >> >> I don't think CLJ-1845

Re: [ANN] Clojure 1.8.0-RC2

2015-11-20 Thread Ambrose Bonnaire-Sergeant
Wait, how does the compiler know that *clojure-version* isn't a function? On Fri, Nov 20, 2015 at 10:01 AM, Nicola Mometto wrote: > *clojure-version* is not a function, it's not affected by direct linking > > > On 20 Nov 2015, at 14:56, Ambrose Bonnaire-Sergeant < > abonnaireserge...@gmail.com>

Re: [ANN] Clojure 1.8.0-RC2

2015-11-20 Thread Alex Miller
I see the same and I suspect it's because of the forward declare. :( On Friday, November 20, 2015 at 12:25:28 AM UTC-6, Ambrose Bonnaire-Sergeant wrote: > > I don't think CLJ-1845 had > the intended effect. > > user=> (alter-var-root #'load (fn [f]

Re: [ANN] Clojure 1.8.0-RC2

2015-11-20 Thread Nicola Mometto
*clojure-version* is not a function, it's not affected by direct linking > On 20 Nov 2015, at 14:56, Ambrose Bonnaire-Sergeant > wrote: > > I'm missing something, alter-var-root'ing *clojure-version* works just fine > when calling (clojure-version). > > (alter-var-root #'*clojure-version* ass

Re: [ANN] Clojure 1.8.0-RC2

2015-11-20 Thread Ambrose Bonnaire-Sergeant
I'm missing something, alter-var-root'ing *clojure-version* works just fine when calling (clojure-version). (alter-var-root #'*clojure-version* assoc :qualifier "patched") (clojure-version) ;=> "1.8.0-patched" Thanks, Ambrose On Fri, Nov 20, 2015 at 1:24 AM, Ambrose Bonnaire-Sergeant < abonnaire

Re: [ANN] Clojure 1.8.0-RC2

2015-11-19 Thread Ambrose Bonnaire-Sergeant
I don't think CLJ-1845 had the intended effect. user=> (alter-var-root #'load (fn [f] (fn [& args] (prn "patched") (apply f args #object[user$eval1241$fn__1242$fn__1243 0x1c857e6 "user$eval1241$fn__1242$fn__1243@1c857e6"] user=> (load) "patched" ni

[ANN] Clojure 1.8.0-RC2

2015-11-16 Thread Alex Miller
Clojure 1.8.0-RC2 is now available. *This build is a "release candidate"!* We would appreciate any and all testing you can do on your own libraries or internal projects to find problems. Try it via - Download: https://repo1.maven.org/maven2/org/clojure/clojure/1.8.0-RC2 - Leiningen: [org