Re: Using :clojure.spec.alpha/invalid inside clojure.core macros throw exception

2019-09-18 Thread 'David Bürgin' via Clojure
This is a known issue, see https://clojure.atlassian.net/projects/CLJ/issues/CLJ-1966 -- 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 -

[no subject]

2019-07-18 Thread 'David Bürgin' via Clojure
I’m an email user. For some reason official announcements (by Alex Miller) don’t get sent out via email, they only appear in the Google Groups web interface. Replies (and all other messages) do land in my inbox, though. Something wrong with your email Alex, or is it Google Groups? -- You

[ANN] tools.deps.alpha 0.6.496 and clj 1.10.0.442

2019-03-18 Thread 'David Bürgin' via Clojure
Nice, thank you, Alex! By the way, I am no longer getting email notifications from Jira, though nothing has changed on my end … just to let you know. -- David -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to

Re: Can someone explains the difference between print-method and print-dup once and for all?

2018-08-10 Thread David Bürgin
On 10/08/18 06:33, Didier wrote: > Thanks David. So if I need to extend edn to serialize custom types, I should > extend print-method? And have it switch on print-readably? Where when true, > prints a reabale edn literal #x/y ... for example, otherwise it prints as > standard? > > Would that

Re: Can someone explains the difference between print-method and print-dup once and for all?

2018-08-09 Thread David Bürgin
If your goal is to produce edn, go with pr/prn/*print-readably*, not print-dup. print-dup output often cannot be read as edn: (print-dup {:k "v"} *out*) ;; #=(clojure.lang.PersistentArrayMap/create {:k "v"}) -- David -- You received this message because you are subscribed to the Google

Forward-declare a spec before use?

2018-07-22 Thread David Bürgin
I am running into an issue where a spec is aliased before it is defined. (s/def :x/foo :x/missing) ; throws :x/missing is only defined later. Some of the spec macros do allow referring to non-existent specs, for example s/nilable: (s/def :x/foo (s/nilable :x/missing)) ; fine,

Re: [ANN] clojure tools 1.9.0.315, tools.deps.alpha 0.5.342

2018-01-29 Thread David Bürgin
Ah, I didn’t think of checking other branches, thank you both. -- 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

Re: [ANN] clojure tools 1.9.0.315, tools.deps.alpha 0.5.342

2018-01-29 Thread David Bürgin
On 23/01/18 21:37, Alex Miller wrote: > clojure tools 1.9.0.315 is now available in brew and > via https://clojure.org/guides/getting_started > > Highlights: > >   * NEW -Stree to print dependency tree >   * NEW -Sdeps to supply a deps.edn on the command line as data >   * FIX bug with git deps

How to spec reducible collections

2018-01-01 Thread David Bürgin
Suppose I want to spec a function like run!. run! takes an ifn? and a ‘coll’, where the coll argument may be any reducible collection (so coll? is really not the right choice, nor is seqable?). I tried to construct a spec for reducible collections but failed. The protocol used in reduce is

Re: Clojure CLI tool fails to resolve weird transitive dependencies.

2017-12-11 Thread David Bürgin
Hm, looks like this is an open issue: https://dev.clojure.org/jira/browse/TDEPS-12 -- David -- 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

Re: Clojure CLI tool fails to resolve weird transitive dependencies.

2017-12-11 Thread David Bürgin
On 11/12/17 20:47, Jonathan Fischer wrote: > com.badlogicgames.gdx/gdx {:mvn/versin "1.9.6"} Typo? -- David -- 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

Re: Unexpected performace of transducers

2017-11-27 Thread David Bürgin
Jiacai – I saw you updated the gist. Just in case it passed you by: performance profits from the source collection being reducible. So pouring ‘dataset’ into a vector beforehand should speed up the processing quite a bit. Also, I think the transducer version should always be faster, no matter

Re: Using ring, jetty plugin: No reader function for tag object

2017-10-22 Thread David Bürgin
Perhaps try downgrading Leiningen to 2.7.1: lein upgrade 2.7.1 See https://github.com/technomancy/leiningen/issues/2328. -- David -- 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

Couplet 0.1.0 – Unicode code points support for Clojure

2017-10-19 Thread David Bürgin
Clojure strings are made up of chars, but the conventional unit of digital texts is Unicode characters (‘code points’). Effective work at the boundary requires a library – • a reducible seqable representation of strings as code points • supports fold • transducer for converting chars to code

Re: Help ship Clojure 1.9!

2017-10-02 Thread David Bürgin
Hello Stu, On 02/10/17 16:55, Stuart Halloway wrote: > Spec will be in alpha for a while. That is part of the point of it being > a separate library. Can you say more about what problems this is causing? I don’t have any stakes in this so it’s better if I withdraw my question. I was (still am)

Re: Help ship Clojure 1.9!

2017-09-30 Thread David Bürgin
On 28/09/17 16:00, Stuart Halloway wrote: > Clojure 1.9 has been quite stable throughout the alpha period, and we > now hope to release after a very short beta. Please test your existing > programs on the latest beta (see below), and respond on this thread ASAP > if you discover anything you

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

Re: Should the completion arity of a stateful transducer reset state?

2017-07-22 Thread David Bürgin
On 22/07/17 22:02, Timothy Baldridge wrote: > Once a transducer is completed it should never be called again. Thank you, Timothy, this was probably obvious but I don't remember reading it anywhere so this really helped. David -- You received this message because you are subscribed to the Google

Re: How is this code to create a stateful lazy sequence?

2017-07-22 Thread David Bürgin
Perhaps you want to study the implementation in Medley, those are always very good quality: https://github.com/weavejester/medley/blob/254989ed3de83c30ce0101d66c7ce1b6ee257b4d/src/medley/core.cljc#L173 David -- You received this message because you are subscribed to the Google Groups "Clojure"

Should the completion arity of a stateful transducer reset state?

2017-07-22 Thread David Bürgin
Hello all, I found an edge case where stateful transducers in core differ in whether they reset or clear state in the completion arity (partition-all) or don’t (take). Given the two transformed reducing functions (def conj-partitioning-all-3 ((partition-all 3) conj)) (def conj-taking-3