[ANN] Instaparse 1.4.8

2017-09-22 Thread Mark Engelberg
Instaparse 1.4.8 has been updated to support a breaking change that was made in Clojurescript 1.9.854, relating to the reader. The change has been tested with Clojurescript versions 1.7.28 and up. No functionality changes, and this update should not matter for Clojure users. Instaparse supports C

Re: Is it wrong that I'm thinking about this?

2017-09-22 Thread Didier
> The goal is to add the macro to orchestra, as a tool to help encourage > spec'ing all functions. That would be great. My macro for now was also not supporting all defn cases yet. And it automatically instruments the fn with orchestra. So if orchestra had a more complete one defacto, I wouldn'

Re: Is it wrong that I'm thinking about this?

2017-09-22 Thread Jeaye
I think you're on the right track, personally. We've had a macro similar to that which we've been using for a handful of months. Just this week, I rewrote it using the defn specs from clojure.specs.alpha to support all of the forms which defn supports, including multiple arities with different s

Re: Java 9 module system quirks

2017-09-22 Thread Piyush Katariya
Awesome. Thanks On 22-Sep-2017 21:23, "Alex Miller" wrote: > For a rundown, see: > https://groups.google.com/d/msg/clojure/IB2CaORBMnM/oKvk6cLuDAAJ > > Since then CLJ-2077 has been applied and is available in Clojure > 1.9.0-beta1. > > I expect all important issues to be resolved by GA release o

Re: When does .getThreadCpuTime return nil?

2017-09-22 Thread Neil Okamoto
Maybe it's because you attempted method invocation via reflection but the object is nil. So for example if (threads) returns a list containing nils, then calling (.getId t) or (.getName t) would probably throw a null pointer exception. I'm not sure it's possible for (ManagementFactory/getThrea

Re: Obtaining the predicate of a spec

2017-09-22 Thread David Bürgin
On 22/09/17 23:19, Beau Fabry wrote: > Not sure if I'm being glib here but #(s/valid? ::pm-hours %) returns a > predicate that has the exact same results as #(s/int-in-range? 12 24 %) Fair, but I was thinking specifically of those situations where you want to bypass the spec registry, say where yo

Re: Obtaining the predicate of a spec

2017-09-22 Thread Beau Fabry
Not sure if I'm being glib here but #(s/valid? ::pm-hours %) returns a predicate that has the exact same results as #(s/int-in-range? 12 24 %) On Friday, September 22, 2017 at 1:10:51 PM UTC-7, Didier wrote: > > I'd try to call describe on the spec. As far as I know that's the only > introspecti

When does .getThreadCpuTime return nil?

2017-09-22 Thread lawrence . krubner
I've been using this code for years. I copy and pasted it from someone else on this group, someone much smarter than I am. I have never seen an error from this code. Now suddenly I get a null pointer exception at the last line of this code: (ns denormalize_mysql_to_mongodb.monitoring (:impor

Obtaining the predicate of a spec

2017-09-22 Thread Didier
I'd try to call describe on the spec. As far as I know that's the only introspection feature of spec. See if it returns what you need. -- 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

Re: Clojure/conj hotel reservations

2017-09-22 Thread Michael Glaesemann
I have a double room with an extra bed at the conference Hilton. If you're interested in sharing a room, please email me directly! See you there! > On 2017-09-18, at 08:55, Duncan McGreggor wrote: > > Hey all, > > If anyone else is registering late for conj, the website is showing rooms as >

Obtaining the predicate of a spec

2017-09-22 Thread David Bürgin
Is it possible to extract the predicate from a spec? Seeing the predicate form is easy enough but how can I actually use it as a predicate? (s/def ::pm-hours #(s/int-in-range? 12 24 %)) (s/form ::pm-hours) I did come up with the following construct, which does give me the result I’m look

Re: Clojure.org

2017-09-22 Thread Nathan Fisher
Hi Alex, Understood, thanks for the quick reply! I recently came across Steve Yegge's rant on Clojure accessibility to newbies and was reflecting on how it could be improved. Thought it was a little thing but could be a nice addition to ease people in and give them a flavour for the language. Tot

Re: Clojure.org

2017-09-22 Thread Alex Miller
It's there at: https://github.com/clojure/clojure-site We considered this when building the site and decided not to include it on the front page, so probably not interested in including it now. I expect we'll look at front page updates at some point though and we'll consider it again. Alex On

Re: Java 9 module system quirks

2017-09-22 Thread Alex Miller
For a rundown, see: https://groups.google.com/d/msg/clojure/IB2CaORBMnM/oKvk6cLuDAAJ Since then CLJ-2077 has been applied and is available in Clojure 1.9.0-beta1. I expect all important issues to be resolved by GA release of Clojure 1.9. On Friday, September 22, 2017 at 8:16:13 AM UTC-5, Piyush

Clojure.org

2017-09-22 Thread Nathan Fisher
Hi All, I'm probably dense but I didn't see the source for clojure.org on https://github.com/clojure. It looks like it's served out of S3 based on at the response headers so I'm guessing it's a static site of some sort... While I don't necessarily subscribe to "everyone else is doing it" I was

Java 9 module system quirks

2017-09-22 Thread Piyush Katariya
Java 1.9 has been released with module system feature Does Clojure v1.9 before going GA solve the issues mentioned in this talk or will it be possible in next version Clojure only ? https://www.youtube.com/watch?v=4fevIDAxQAM -- You received this message because you are subscribed to the Googl