Re: How to escape a space in a keyword?

2018-08-09 Thread Alex Miller
Thanks, wasn't familiar (and this was clashing in my head with Datomic Ions). Sounds to me like you should make a new tagged literal edn type like #ion/symbol rather than trying to force this into edn symbols, which do not support the semantics you want. Printing as (keyword "foo bar") means you

Re: How to escape a space in a keyword?

2018-08-09 Thread Timothy Baldridge
Have you tried this with Transit instead of EDN? From what I understand by all this Transit shouldn't have problems with spaces in keywords/strings as it doesn't print them in the same way, it's more of a marshaling format than a printer/reader, and you get the big upside of Transit being *way* fas

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

2018-08-09 Thread Didier
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 be the correct way? -- You received this mes

Re: How to escape a space in a keyword?

2018-08-09 Thread Didier
Ion is a data serialization format from Amazon http://amzn.github.io/ion-docs/ One lf its supported data type is symbol, defined as: Interned, Unicode symbolic atoms (aka identifiers) I interact with systems that interchange their data using ION. My systems use EDN though internally. Thus I nee

Re: Clojure treat all Thread's as deamon?

2018-08-09 Thread Alex Miller
Clojure does not have the ability to "treat a manually created java Thread as if it a daemon thread", so I'm pretty sure we can rule that out. Just skimming the original code, it's processing 16M+ values. At a glance, looks like maybe the sync version doesn't hold head where maybe the async one

Clojure treat all Thread's as deamon?

2018-08-09 Thread Alan Thompson
There is question on StackOverflow: https://stackoverflow.com/questions/51776663/why-does-looping-over-a-large-amount-of-data-in-another-thread-cause-an-overacti/5164#5164 In my answer, I document how Clojure seems to tread a manually created java Thread as if it a daemon thread, even tho

Re: [ANN]: clambda 0.1.4 - reducible Java Streams

2018-08-09 Thread Andrew Oberstar
Dimitris, always glad to see people improving Java interop! Nice work! I noticed your mention of my library (ike.cljj) in the readme and was curious about the parallel streams. I haven't had a use case for them in any of my stream work so far, so I didn't think to test it when I wrote ike.cljj. Is

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 Groups

Re: [ANN]: clambda 0.1.4 - reducible Java Streams

2018-08-09 Thread dimitris
Damn! Here is the correct link: https://github.com/jimpil/clambda On 09/08/18 17:03, dimitris wrote: Hi folks, https://github.com/jimpil/clambda /clambda/ is a little library for working with Java Streams from Clojure, and to a lesser extend, for working with Clojure seqs from Java. Paral

[ANN]: clambda 0.1.4 - reducible Java Streams

2018-08-09 Thread dimitris
Hi folks, https://github.com/jimpil/clambda /clambda/ is a little library for working with Java Streams from Clojure, and to a lesser extend, for working with Clojure seqs from Java. Parallel streams are fully supported, but there are some gotchas (described in the README). Convenience helper

Re: How to escape a space in a keyword?

2018-08-09 Thread James Reeves
If Clojure lacks a type that exactly matches ION's symbol type, why not add your own type with a record, then add a data reader for it. For example: #ion/symbol "foo" On Thu, 9 Aug 2018, 05:48 Didier, wrote: > Thanks Andy, ya I actually realized this, I'm using a custom reader > literal now ins

Re: How to escape a space in a keyword?

2018-08-09 Thread Alex Miller
I don’t understand what ION -> EDN -> ION means? -- 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. T