Controlling how maps/records/atoms etc. are printed out

2016-11-12 Thread Colin Yates
Hi all, I cache quite a bit of stuff on the server, so when I return or print out the 'system' I get the unhelpful recursive stack trace of Java running out of heap. Is there some protocol I can implement on large data structures such that whenever they are serialised they just dump some of their

ANN: konserve 0.4.4 kv-protocol with core.async + new backends

2016-11-12 Thread Christian Weilbach
Hey, not yet another kv-store? I written a blog post to clearify the design decisions here: https://whilo.github.io/articles/16/unified-storage-io >From the README: A simple document store protocol defined with core.async semantics to allow Clojuresque collection operations on associative key-v

Re: defrecord in cljc

2016-11-12 Thread Thomas Heller
You may overwrite the default IPrintWriter by doing calling extend-type after the defrecord. But CLJS should probably allow the protocol in defrecord itself instead of forcing the default. Not sure if there is an open issue for it. On Friday, November 11, 2016 at 9:29:25 PM UTC+1, William la Fo

Re: Controlling how maps/records/atoms etc. are printed out

2016-11-12 Thread Timothy Baldridge
clojure.core/print-method is a multi method that handles the printing of objects. You can override or implement the print method by: (defmethod print-method my.class.Foo [^my.class.Foo instance ^Writer w] (.write w ...)) I do that to provide custom printing for deftypes, but you can easil

Re: Controlling how maps/records/atoms etc. are printed out

2016-11-12 Thread Colin Yates
Thanks Timothy On Saturday, 12 November 2016, Timothy Baldridge wrote: > clojure.core/print-method is a multi method that handles the printing of > objects. You can override or implement the print method by: > > (defmethod print-method my.class.Foo > [^my.class.Foo instance ^Writer w] > (.wr

[ANN] clojure.java.jdbc 0.7.0 Alpha 1

2016-11-12 Thread Sean Corfield
What? Clojure contrib wrapper for JDBC https://github.com/clojure/java.jdbc Release? 0.7.0 Alpha 1 (previous release was 0.6.2 Alpha 3) [org.clojure/java.jdbc “0.7.0-alpha1”] ** potentially breaking changes ** Summary? • Minor enhancements but version bum

Re: Good way of handling metric gathering?

2016-11-12 Thread Didier
You could use: https://github.com/technomancy/robert-hooke Its basically an AOP library for Clojure. You can use "with-hooks-disabled" in your tests to disable the hooks that have side effects. On Friday, 11 November 2016 21:42:59 UTC-8, Shantanu Kumar wrote: > > Hi Tianxiang, > > In my experie