[ANN] clamda - reducible Java Streams

2018-08-08 Thread dimitris
Hi folks, /clamda/ [1], 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 for constructing Lamdas on-de

Re: [ANN] clamda - reducible Java Streams

2018-08-08 Thread dimitris
Ignore my previous post please - I will try to get clamda 0.1.2 removed from clojars as it is misspelled (:facepalm:). There will be a new email eventually. Apologies for the noise... Kind regards, Dimitris On 08/08/18 22:01, dimitris wrote: Hi folks, /clamda/ [1], is a little library for

Re: How to escape a space in a keyword?

2018-08-08 Thread Didier
Reviving an old thread. I have a case where I convert ION to Clojure, and ION has a SYMBOL type, which can be any UTF-8 character, including spaces. I though of making them keywords in Clojure, since they serve the same purpose, to be used as identifiers. I can create such keyword with the keyw

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

2018-08-08 Thread Didier
Can someone explains the difference between print-method and print-dup once and for all? Regards -- 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 moder

Re: How to escape a space in a keyword?

2018-08-08 Thread Andy Fingerhut
If you want to serialize the data to EDN and back, and print them out into the EDN file as (keyword "arbitrary-char-sequence"), then using the normal Clojure functions for reading the EDN data in will leave those expressions as the lists (keyword "arbitrary-char-sequence"). Of course you could wri

Re: How to escape a space in a keyword?

2018-08-08 Thread Alex Miller
Why are you fighting so hard to make keywords with spaces? If you need things with spaces, use strings. -- 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

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

2018-08-08 Thread Alex Miller
This is glossing over some details, but print-method is for “human” printing (print, println). print-dup is for printing readable data (pr, prn). Often these are the same. Strings are a good example where they aren’t. -- You received this message because you are subscribed to the Google Group

[ANN] hystrix-dynamicvar -- Clojure dynamic var binding through hystrix command

2018-08-08 Thread Jiacai Liu
https://github.com/Netflix/Hystrix does its job quiet good. However, its thread-style isolation makes dynamic var not work any more. hystrix-dynamicvar to the rescue. More refer: - https://github.com/jiacai2050/hystrix-dynamicvar - https://github.com/Netflix/Hystrix/wiki/Plugins#concurrencystrategy

Re: How to escape a space in a keyword?

2018-08-08 Thread Didier
Thanks Andy, ya I actually realized this, I'm using a custom reader literal now instead. > Why are you fighting so hard to make keywords with spaces? If you need things > with spaces, use strings. Why have keywords at all then? What does a space add that somehow negates the premise of keywords

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

2018-08-08 Thread Didier
Thanks, but I think I need the details. It seems pr, prn and company default to using print-method, and print-method implementations check for *print-readably*. So how exactly would print-dup differ? I ask specifically in the context of serializing Clojure to EDN and back. Would it be best to d

Re: How to escape a space in a keyword?

2018-08-08 Thread Erik Assum
I was wondering about the rationale for the unreadable keywords a while a ago. Weavejester pointed me to https://clojure.org/guides/faq#unreadable_keywords and https://dev.clojure.org/jira/browse/CLJ-2309 Erik. -- i farta > 9. aug. 2018 kl. 06:48 skrev Didier : > > Thanks Andy, ya I actuall