Re: (gen/sample (s/gen #{'nil})): Couldn't satisfy such-that predicate

2019-01-31 Thread Rostislav Svoboda
Hi Alex, > quote is a special form that returns the value you pass it, without evaluation Aah! "without evaluation" is the key! Now it makes sense. Yea you mentioned it before already, but it takes twice the effort to undo and re-comprehend an acquired misconception. Thank you so much! Would you

Re: (gen/sample (s/gen #{'nil})): Couldn't satisfy such-that predicate

2019-01-31 Thread Alex Miller
Go for it. Not sure the type stuff is adding anything in the context of quote examples here beyond the other explanation though. On Thu, Jan 31, 2019 at 6:50 AM Rostislav Svoboda < rostislav.svob...@gmail.com> wrote: > Hi Alex, > > > quote is a special form that returns the value you pass it, wit

Re: (gen/sample (s/gen #{'nil})): Couldn't satisfy such-that predicate

2019-01-31 Thread Andy Fingerhut
Sometimes text in comments in ClojureDocs.org examples can be more useful than the examples. They are effectively longer (unofficial) doc strings. Andy On Thu, Jan 31, 2019 at 5:36 AM Alex Miller wrote: > Go for it. Not sure the type stuff is adding anything in the context of > quote examples

ANN: ClojureScript 1.10.516

2019-01-31 Thread David Nolen
ClojureScript, the Clojure compiler that emits JavaScript source code. README and source code: https://github.com/clojure/clojurescript Please refer to the announce post for the details: https://clojurescript.org/news/2019-01-31-release As always, feedback welcome! -- You received this message

Re: avoiding casts with aget & friends

2019-01-31 Thread Brian Craft
Is there any way to inspect what the jit does to it? On Wednesday, January 30, 2019 at 10:07:38 PM UTC-8, Alex Miller wrote: > > > > On Wed, Jan 30, 2019 at 11:07 PM Brian Craft > wrote: > >> With much experimentation, I ended up with this: >> >> (let [a 1 >> b (.longValue ^Long (:foo {

Re: avoiding casts with aget & friends

2019-01-31 Thread Alex Miller
Yes, there a bunch of jvm options to show you when it’s jit-ing, and even the rewritten code. You can google for that stuff like LogCompilation. Occasionally I have found that useful. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this

Issue with using keywords as function in a spec conformer

2019-01-31 Thread Daniel Dinnyes
Hi everyone, I have ran into an issue with spec, and suspect it is a bug. The following code throws an error: (clojure.spec.alpha/conformer :foo) The error is a java.lang.Exception and says: Unable to resalve spec; :foo This is unexpected because I intend to use the keyword as a conformer fu