Re: [ANN] jmh-clojure 0.2.0 - Seamless JMH benchmarking for Clojure

2017-12-21 Thread Tim Visher
Looks neat! :) On Sun, Dec 17, 2017 at 11:25 AM, wrote: > This library (github link ) > provides a data-oriented API to JMH, the Java Microbenchmark Harness. > > Some of the new features since 0.1.0: > > External profiler support. Wiki example >

Re: Using catch/throw inside a macro gives RuntimeException

2017-12-21 Thread crispin
Almost! That should be macroexpand, not macroexpand-1, in case the macro expands to another macro (I have 'catch-cause' for catching a nested expression and then 'catch-psql' that utilises that). (defmacro try [& body] (cons 'try (map macroexpand body))) Thanks again Crispin On Thursday, De

Re: Using catch/throw inside a macro gives RuntimeException

2017-12-21 Thread crispin
Ah that explains it, Alex. What I ended up doing is making a custom try macro that macroexpands its body forms and wraps them in a try, like this: (defmacro try* [& body] (cons 'try (map macroexpand-1 body))) So by the time try is handled, the inner custom catch macros are already expanded.

[ann] pusher-clj: a thin convenience wrapper around the pusher.com java lib

2017-12-21 Thread Sean Doig
This is a tiny wrapper lib around the official pusher.com java library. It's incomplete and not extensively battle-tested but may be of use to someone. Contributions to finish implementing the full feature set most welcome. Repo: https://github.com/lorddoig/pusher-clj Sean -- You received t