Re: The soul of case

2017-06-26 Thread Adam Clements
This came up in 2014 on the mailing list https://groups.google.com/forum/m/#!topic/clojure/3yGjDO2YnjQ And resulting enhancement requests Alex asked for: https://dev.clojure.org/jira/browse/CLJ-1367 https://dev.clojure.org/jira/browse/CLJ-1368 For what it's worth (though I realise we don't want t

Re: error in nrepl

2017-06-26 Thread Juraj Martinka
+1 for Spacemacs. I think it's the best alternative if you want to start with Clojure development in Emacs. It works out of the box most of the time and contains a curated set of packages, so no need to spend a huge amount of effort by chasing down the best Emacs configuration. Check https://c

Re: Seeking a function to partially parallelize collection processing

2017-06-26 Thread Tom Connors
Thanks for these two examples, Didier. In particular, I like the second one a lot. I'm currently using a slightly altered version of my first solution that avoids batching, but the code has gotten pretty nasty. Once I get a chance I'll cleanup my solution and benchmark yours and mine and post he

Re: error in nrepl

2017-06-26 Thread Bozhidar Batsov
Newer versions of CIDER are much easier to setup than the older ones (e.g. they auto-inject their dependencies, so you don't have to fiddle with profiles.clj). You should try the latest stable or dev release. That said you can also check Monroe (https://github.com/sanel/monroe) which is a fork of a

Getting Symbol objects instead of java.lang.Class objects when using reflect/reflect

2017-06-26 Thread Manas Marthi
Hi, I have a jar files with more than 200 DTO classes. Some have only primitive data type values and some have other beans from the same jar. I am trying to traverse through a class hierarchy to find the field count. If a class has a mix of some primitive types and other java classes, then th

Re: Getting Symbol objects instead of java.lang.Class objects when using reflect/reflect

2017-06-26 Thread Gary Trakhman
Is this what you're looking for? user=> (resolve 'java.lang.String) java.lang.String user=> (type (resolve 'java.lang.String)) java.lang.Class On Mon, Jun 26, 2017 at 1:34 PM Manas Marthi wrote: > Hi, > I have a jar files with more than 200 DTO classes. Some have only > primitive data type

Re: Getting Symbol objects instead of java.lang.Class objects when using reflect/reflect

2017-06-26 Thread Manas Marthi
Hi Gary, thank you. It worked now after adding a call to resolve (defn all-fields-are-of-primitive-type? [fields-list] (every? #(primitive-types (resolve %) ) fields-list) ) On Monday, June 26, 2017 at 6:50:01 PM UTC+1, Gary Trakhman wrote: > > Is this what you're looking for? >

[ANN] ring-sse

2017-06-26 Thread Bobby Calderwood
https://github.com/bobby/ring-sse ring-sse is a small library implementing Server-Sent Events as an asynchronous Ring (spec 1.4+) handler. This libr

[ANN] kafka-streams-clojure

2017-06-26 Thread Bobby Calderwood
https://github.com/bobby/kafka-streams-clojure Clojure transducers interface to Kafka Streams . This combo provides the best of both worlds for building streaming applications on Kafka with Clojure: * Si

Re: How to call Clojure from Java?

2017-06-26 Thread Didier
Using gen-class or the Clojure Java API like Daniel showed are the best ways I know of. If you want static types in Java and auto-complete, and things to feel like Java, use gen-class, if not, use the Clojure Java API. On Saturday, 24 June 2017 12:05:55 UTC-7, thelmuth wrote: > > Thanks for the

Disable namespaced maps formatting in the REPL?

2017-06-26 Thread Christian Johansen
Hi, *print-namespace-maps* disables the new namespace maps formatting in Clojure 1.9. However, it does not seem to affect formatting of return values in the REPL (tried both the standard REPL as well as in Emacs with CIDER). Is it possible to completely disable this kind of formatting of maps