Re: [ANN] Clojure 1.9.0 is now available!

2018-01-03 Thread Luc
Thank you, I was not searching strictly for a bug or regression, a malpractice was also something I wanted to ear about. The let form generates this in both 1.8 & 1.9. No idea why the defrecord compiles in 1.8 but that could be related to the way it is expanded in each version. I don't see the

Re: [ANN] Clojure 1.9.0 is now available!

2018-01-03 Thread Luc
Should have posted this instead, same protocol. (defprotocol Anonymous (start-job! [this])) ;; Clojure 1.8.0 => (defrecord NoopJob [] Anonymous (start-job! [this] (yabug.services.logger/environment))) (clojure.core/zipmap '(__meta this __extmap) [__meta this __extmap])

Re: [ANN] Clojure 1.9.0 is now available!

2018-01-02 Thread Nicola Mometto
The code that caused this issue is https://github.com/clojure/clojure/commit/a1c3dafec01ab02fb10d91f98b9ffd3241e860c0?diff=unified#diff-03234b041c0917ec98f2ad9477a0a014R260 But this is not a bug in the clojure code nor a regression, in fact you can reproduce this in any clojure version with the

Re: [ANN] Clojure 1.9.0 is now available!

2018-01-02 Thread Alex Miller
What’s GatewayJob look like? -- 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

Re: [ANN] Clojure 1.9.0 is now available!

2018-01-02 Thread Luc
Hi, finally got some time to dig deeper. The minimal code to reproduce this has shrunk: (defprotocol Anonymous (start-job! [this])) (defrecord NoopJob [] Anonymous (start-job! [this] (yabug.services.logger/environment))) The environment macro was called by log/error but not by the

Re: [ANN] Clojure 1.9.0 is now available!

2017-12-30 Thread Gary Verhaegen
What version of clojure.tools.logging are you using? > On 30 Dec 2017, at 02:05, Luc wrote: > > I went through the compiler code, it has to do with a bad local binding > expression. > > It crashes in the same way in the REPL with this minimal defrecord: > >

Re: [ANN] Clojure 1.9.0 is now available!

2017-12-29 Thread Luc
The call to the log/error macro. Theres an interaction with the expanded code from the defrecord macro and this macro. I posted both expansions in a message 30secs ago. Ill play with these this weekend to see if I can narrow it down further. On Saturday, 30 December 2017 01:00:05 UTC, Alex

Re: [ANN] Clojure 1.9.0 is now available!

2017-12-29 Thread Luc
I went through the compiler code, it has to do with a bad local binding expression. It crashes in the same way in the REPL with this minimal defrecord: (defrecord NoopJob [name job-controller-channel env job-state parameters job-output] impl/GatewayJob (start-job! [this] (log/error

Re: [ANN] Clojure 1.9.0 is now available!

2017-12-29 Thread Alex Miller
On Fri, Dec 29, 2017 at 6:17 PM, Luc wrote: > here it is, I did not get through the compiler source code yet, it might > be obvious to you: > > java.lang.UnsupportedOperationException: Can't type hint a primitive > local, compiling:(yabug/jobs/noop.clj:21:9) >

Re: [ANN] Clojure 1.9.0 is now available!

2017-12-29 Thread Luc
Hi Alex, here it is, I did not get through the compiler source code yet, it might be obvious to you: java.lang.UnsupportedOperationException: Can't type hint a primitive local, compiling:(yabug/jobs/noop.clj:21:9) Exception in thread "main" java.lang.UnsupportedOperationException: Can't type

Re: [ANN] Clojure 1.9.0 is now available!

2017-12-29 Thread Gary Verhaegen
Can you try deleting code until the error disappears, and try to get to a minimal reproducing case that way? Does it still happen if the protocol and record are in the same ns? Does it still happen if you remove the reset! and >!! forms? Is that whole code within a custom macro? The name e# for

Re: [ANN] Clojure 1.9.0 is now available!

2017-12-28 Thread Alex Miller
What’s the full stack trace on the original exception? (Or if same repros without aot)? -- 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 -

Re: [ANN] Clojure 1.9.0 is now available!

2017-12-28 Thread Luc
Hi, I am baffled. I switched a project from 1.8 to 1.9.0 upgrading also other dependencies (latest version fo core.async, ...) via lein ancient. As usual I ran an AOT pass to make sure I don't have anything fishy before running the code. I got this from the AOT pass:

Re: [ANN] Clojure 1.9.0 is now available!

2017-12-26 Thread Mamun
Thanks It is working with (defmethod mycomp ~m [~'_] ~m)) _ is also clojure valid symbol identifier. I miss that point. Br, Mamun On Tuesday, December 26, 2017 at 11:59:23 PM UTC+1, Gary Verhaegen wrote: > > The spec is correct; your code is wrong and I don't know how you got your >

Re: [ANN] Clojure 1.9.0 is now available!

2017-12-26 Thread Gary Verhaegen
The spec is correct; your code is wrong and I don't know how you got your expansion there. $ lein try org.clojure/clojure 1.9.0 nREPL server started on port 55018 on host 127.0.0.1 - nrepl:// 127.0.0.1:55018 REPL-y 0.3.7, nREPL 0.2.12 Clojure 1.8.0 Java HotSpot(TM) 64-Bit Server VM 1.8.0_144-b01

Re: [ANN] Clojure 1.9.0 is now available!

2017-12-26 Thread Mamun
Congratulation. I am getting one problem for defmacro spec with defmethod. Here it is (defmulti mycomp (fn [v] v)) (defmacro defcomp [m] `(defmethod mycomp ~m [_] ~m ) ) (defcomp :test) ;; Throwing exception ;; Expand macro (defmethod mycomp :test [_] :test) ;; it is

Re: [ANN] Clojure 1.9.0 is now available!

2017-12-25 Thread Isaac Tsang
I think is better to add AOT cache to speed up startup time. eg. https://gist.github.com/gfZeng/c4e54ec0381892f78c60f03e7d957a34#file-run-clj-L50 On Saturday, December 9, 2017 at 3:35:39 AM UTC+8, Alex Miller wrote: > > Clojure 1.9 is now available! > > > Clojure 1.9 introduces two major new

Re: [ANN] Clojure 1.9.0 is now available!

2017-12-10 Thread Isaac Tsang
I think is better to add AOT cache to speed up startup time. eg. https://gist.github.com/sound2gd/dc4dd1e2345949182e258182689c2b2e#file-run-clj-L50 On Saturday, December 9, 2017 at 3:35:39 AM UTC+8, Alex Miller wrote: > > Clojure 1.9 is now available! > > > Clojure 1.9 introduces two major new

RE: [ANN] Clojure 1.9.0 is now available!

2017-12-09 Thread Sean Corfield
eally alive." -- Margaret Atwood From: clojure@googlegroups.com <clojure@googlegroups.com> on behalf of Georgi Danov <georgi.da...@gmail.com> Sent: Saturday, December 9, 2017 6:38:16 AM To: Clojure Subject: Re: [ANN] Clojure 1.9.0 is now available! is

Re: [ANN] Clojure 1.9.0 is now available!

2017-12-09 Thread Alex Miller
> is the new clj CLI going to be alternative to Lein? No, it’s not intended to replace lein. clj is about building classpath and launching programs, not building or deploying artifacts. > For example can I run repl with middleware? No. > also, if I use lein repl, is deps.edn taken into

Re: [ANN] Clojure 1.9.0 is now available!

2017-12-09 Thread Georgi Danov
is the new clj CLI going to be alternative to Lein? For example can I run repl with middleware? also, if I use lein repl, is deps.edn taken into account? I love that feature -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group,

Re: [ANN] Clojure 1.9.0 is now available!

2017-12-09 Thread Rostislav Svoboda
To give you a bit of an explanation - I'd like to use clojure/clojurescript for scripting... I was reading the: http://blog.brunobonacci.com/2017/08/10/lumo-vs-planck-vs-clojure-vs-pixie/ and got curious how does the 1.9.0 behave when talking about startup times. (Oh BTW notice that lumo and

Re: [ANN] Clojure 1.9.0 is now available!

2017-12-08 Thread Alex Miller
On Friday, December 8, 2017 at 7:54:23 PM UTC-6, Bost wrote: > > Hi, first of all: thanks for the 1.9.0! > And now issue: it looks like the 1.9.0 is slower than 1.8.0. Is there > any --turbo switch to flip? > I think to be a better comparison, I would do clj -Spath to grab your classpath and

Re: [ANN] Clojure 1.9.0 is now available!

2017-12-08 Thread Andy Fingerhut
Rostislav: I haven't run a bunch of benchmarks to double-check this in detail, but just running a '(println "Hello")' shows a difference between 1.8 and 1.9, which is purely Clojure startup time. I don't see anything in your results that suggests the time difference is getting large with more

Re: [ANN] Clojure 1.9.0 is now available!

2017-12-08 Thread Rostislav Svoboda
Hi, first of all: thanks for the 1.9.0! And now issue: it looks like the 1.9.0 is slower than 1.8.0. Is there any --turbo switch to flip? Bost time java -jar /home/bost/.m2/repository/org/clojure/clojure/1.8.0/clojure-1.8.0.jar -e '(defn Σ [n] (reduce + (range (inc n (println (Σ (* 1000

Re: [ANN] Clojure 1.9.0 is now available!

2017-12-08 Thread Jose Figueroa Martinez
Excelent news! Thank you all for your effort. It feels like christmas but earlier :-D *"We wish you a merry christmas and a happy new Clojure!"* José FM El viernes, 8 de diciembre de 2017, 13:35:39 (UTC-6), Alex Miller escribió: > > Clojure 1.9 is now available! > > > Clojure 1.9 introduces

Re: [ANN] Clojure 1.9.0 is now available!

2017-12-08 Thread Didier
Awesome Job! Now looking forward to spec improving and eventually getting out of alpha! On Friday, 8 December 2017 13:54:26 UTC-8, Rick Moynihan wrote: > > Wow great news... Thanks to everyone who made it happen!! > > R. > > On Fri, 8 Dec 2017, 21:11 Sergey Didenko, >

Re: [ANN] Clojure 1.9.0 is now available!

2017-12-08 Thread Rick Moynihan
Wow great news... Thanks to everyone who made it happen!! R. On Fri, 8 Dec 2017, 21:11 Sergey Didenko, wrote: > Congratulations! > > On Fri, Dec 8, 2017 at 10:03 PM, Jozef Wagner > wrote: > >> Congratulations on the long awaited release and

Re: [ANN] Clojure 1.9.0 is now available!

2017-12-08 Thread Sergey Didenko
Congratulations! On Fri, Dec 8, 2017 at 10:03 PM, Jozef Wagner wrote: > Congratulations on the long awaited release and thanks to Rich, Stu, Alex > and all contributors! I'm glad and proud to be part of it! > > Jozef > > On Friday, December 8, 2017 at 8:35:39 PM UTC+1,

Re: [ANN] Clojure 1.9.0 is now available!

2017-12-08 Thread Jozef Wagner
Congratulations on the long awaited release and thanks to Rich, Stu, Alex and all contributors! I'm glad and proud to be part of it! Jozef On Friday, December 8, 2017 at 8:35:39 PM UTC+1, Alex Miller wrote: > > Clojure 1.9 is now available! > > > Clojure 1.9 introduces two major new features:

Re: [ANN] Clojure 1.9.0 is now available!

2017-12-08 Thread Alex Miller
whoops, last one should have been: https://clojure.org/reference/deps_and_cli On Friday, December 8, 2017 at 1:52:00 PM UTC-6, Alex Miller wrote: > > I will also mention that if you have visited any of these docs in the > past, they have all been rewritten as well: > >-

Re: [ANN] Clojure 1.9.0 is now available!

2017-12-08 Thread Alex Miller
I will also mention that if you have visited any of these docs in the past, they have all been rewritten as well: - https://clojure.org/guides/getting_started - https://clojure.org/guides/deps_and_cli - https://clojure.org/reference_deps_and_cli And if you're on a Mac, you can grab

[ANN] Clojure 1.9.0 is now available!

2017-12-08 Thread Alex Miller
Clojure 1.9 is now available! Clojure 1.9 introduces two major new features: integration with spec and command line tools. spec (rationale , guide ) is a library for describing the structure of data and functions with