Re: spec docs

2017-04-03 Thread Alex Miller
Either an issue or a PR on the clojure-site repo is best for the site. On Monday, April 3, 2017 at 6:21:57 PM UTC-5, Gregg Reynolds wrote: > > > > On Mon, Apr 3, 2017 at 6:20 PM, Gregg Reynolds wrote: > >> >> >> On Mon, Apr 3, 2017 at 5:38 PM, Sean Corfield

Re: spec docs

2017-04-03 Thread Gregg Reynolds
On Mon, Apr 3, 2017 at 6:20 PM, Gregg Reynolds wrote: > > > On Mon, Apr 3, 2017 at 5:38 PM, Sean Corfield wrote: > >> For clojure.org, the source is on GitHub, and you can submit a Pull >> Request (as long as you have a CA on file I believe?). The

Re: spec docs

2017-04-03 Thread Gregg Reynolds
On Mon, Apr 3, 2017 at 5:38 PM, Sean Corfield wrote: > For clojure.org, the source is on GitHub, and you can submit a Pull > Request (as long as you have a CA on file I believe?). The clojure.spec > Guide page is: > > > >

Re: ANN: Cognitect acquired by Microsoft

2017-04-03 Thread Gregg Reynolds
On Mon, Apr 3, 2017 at 5:19 PM, Matthew Boston wrote: > Not believable at all. > > Everyone knows Cognitect will be acquired by Oracle  > Haha. Or maybe Cognitect will acquire Microsoft. Stranger things have happened, heh. > > On Saturday, April 1, 2017 at 2:00:16

Re: spec docs

2017-04-03 Thread Sean Corfield
For clojure.org, the source is on GitHub, and you can submit a Pull Request (as long as you have a CA on file I believe?). The clojure.spec Guide page is:     https://github.com/clojure/clojure-site/blob/master/content/guides/spec.adoc You could draft a PR for an enhancement

Re: ANN: Cognitect acquired by Microsoft

2017-04-03 Thread Matthew Boston
Not believable at all. Everyone knows Cognitect will be acquired by Oracle  On Saturday, April 1, 2017 at 2:00:16 PM UTC-6, Gregg Reynolds wrote: > > made ya look! > -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email

spec docs

2017-04-03 Thread Gregg Reynolds
i think the spec docs could be improved; my question is whether suggestions should go into jira. one can always write a blog post, and one does not want to pollute jira. case in point: validating maps, in particular taking some action if a map contains an unrecognized key. it might be fine to do

Re: I can not find any function that might give rise tothisStackOverflow error

2017-04-03 Thread piastkrakow
Thank you again. This has been educational. On Monday, April 3, 2017 at 1:07:18 PM UTC-4, Sean Corfield wrote: > > This is lazy: (remove #{(first scores)} scores) > > > > Since find-related-positive-negative-true-false-records does not realize > set-of-scores in order to return its value,

Re: How do I just use AOT compiled class files over clj(c) source with a leiningen uberjar?

2017-04-03 Thread lvh
Thanks, Alex! That helps a lot. Is my understanding of how uberjars with aot complication work otherwise correct? I.e. apart from the dynamically loaded One thing I particularly care about is compile-time precomputation. My app uses source JSON data (that I don't control) that's pretty big, but

Re: I can not find any function that might give rise tothisStackOverflow error

2017-04-03 Thread Sean Corfield
This is lazy: (remove #{(first scores)} scores) Since find-related-positive-negative-true-false-records does not realize set-of-scores in order to return its value, then you still have laziness on scores. I think, in your original, if you wrap that remove call with doall, you won’t get

Re: I can not find any function that might give rise tothisStackOverflow error

2017-04-03 Thread piastkrakow
I apologize for my ignorance, but why is this lazy? (conj vector-of-maps-of-vector-key-and-score (find-related-positive-negative-true-false-records scores (first scores Assuming the functions are not called eagerly simply because I am in a loop. But what would the eager version of

Re: How do I just use AOT compiled class files over clj(c) source with a leiningen uberjar?

2017-04-03 Thread Alex Miller
On Saturday, April 1, 2017 at 2:24:30 PM UTC-5, Daniel Compton wrote: > > Zach Tellman talked > about > making Clojure work better with Proguard in August 2016. I couldn’t find > any open JIRA tickets about this though. > Zach

Re: How do I just use AOT compiled class files over clj(c) source with a leiningen uberjar?

2017-04-03 Thread Alex Miller
core_instant18.clj is conditionally loaded if you are using >= Java 1.8 to extend the Inst protocol to java.time.Instant (which didn't exist in prior JDKs). This is set up at: https://github.com/clojure/clojure/blob/7aad2f7dbb3a66019e5cef3726d52d721e9c60df/src/clj/clojure/core.clj#L6661-L6665

Re: Is it normal for exercise-fn to return examples that don't conform?

2017-04-03 Thread Jason Felice
That's a complicated question, but the simplified answer is: test.check (which clojure.spec uses) generates random test cases. This is advantageous when the state space is very large, where tracking previous examples is hard and gives very little advantage. When the state space is small, there

Re: Is it normal for exercise-fn to return examples that don't conform?

2017-04-03 Thread Didier
Do you know why they are not unique? Was that on purpose or an accidental behaviour of the implementation? -- 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

Re: tool.namespace reload not working

2017-04-03 Thread Joachim De Beule
Hi JPatrick. I'm having the same sort of problems. Quite annoying! Did you manage to fix this in the end? Hello, >>> I'm trying to implement the Component ideology. When run something >>> manually with component/start-system and stop, it works fine. The main >>> method calls

Re: ANN: Cognitect acquired by Microsoft

2017-04-03 Thread Rangel Spasov
Good one! :) On Saturday, April 1, 2017 at 1:00:16 PM UTC-7, Gregg Reynolds wrote: > > made ya look! > -- 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