Keep application running when main thread only starts go blocks

2016-08-05 Thread Richard Möhn
I'm using core.async. In my application the main thread creates a few channels, starts a few go blocks and that's it. When I run it as a stand-alone (i.e. not in the REPL), it starts those go blocks and then exits. After being surprised initially, I understand why this happens: the main thread

Re: Is this behavior of clojure.core/pr a bug?

2016-08-05 Thread Blake Miller
I agree with Herwig in principal ... even though EDN is not meant to cover the whole set of possible pure Clojure data, if it can be made to cover more (all other things being equal) that would be a Good Thing. I think it would be possible to fix these edge cases with reader macro dispatches witho

Hoplon with websockets

2016-08-05 Thread William la Forge
I've added a new demo to hoplon which uses sente websockets in place of castra: https://github.com/hoplon/demos/tree/master/ws-simple#readme The demo is similar to the castra-simple demo, where the client requests and then displays a series of random numbers that are generated by the server. Th

Multi-OS Engine | Intel(R) Software

2016-08-05 Thread Gregg Reynolds
For those interested in mobile clojure, I just discovered this. Haven't tried it but it sounds good: https://software.intel.com/en-us/multi-os-engine?utm_source=Develop+Blog+http://www.develop-online.net/&utm_medium=Text+Link&utm_campaign=Android_EMEA_Q2-16_Developer-Blog_Blog-Page?29062016 --

Re: Why (first [*' *]) instead of just *?

2016-08-05 Thread Alex Miller
I believe your guess is right - this is a hack to work with older versions (pre 1.3) of Clojure where the reader didn't support ' as a constituent character in symbols. On Friday, August 5, 2016 at 12:28:08 PM UTC-5, Shannon Severance wrote: > > Lines 57--62 of > https://github.com/clojure/mat

Re: clojure.spec for specifying sequences of states over time

2016-08-05 Thread Alex Miller
There are a variety of possible extensions to what is currently offered by spec wrt regex derivatives but that's up to Rich. On Friday, August 5, 2016 at 12:37:15 PM UTC-5, Russell Mull wrote: > > Suppose you have a reactive process, something that receives a message, > processes it, updates it

Why (first [*' *]) instead of just *?

2016-08-05 Thread Shannon Severance
Lines 57--62 of https://github.com/clojure/math.numeric-tower/blob/master/src/main/clojure/clojure/math/numeric_tower.clj ;; so this code works with both 1.2.x and 1.3.0: (def ^{:private true} minus (first [-' -])) (def ^{:private true} mult (first [*' *])) (def ^{:private true} plus (first [+

clojure.spec for specifying sequences of states over time

2016-08-05 Thread Russell Mull
Suppose you have a reactive process, something that receives a message, processes it, updates its, state, and repeats. For example: (go-loop [s :initial] (case ( :processsing :processing ->: :processing :processing -> :stopping :stopping -> (done) This is pretty easy to write as a regular expre

Monroe 0.3.0 released

2016-08-05 Thread Sanel Zukan
Monroe, an easy to use Emacs client for Clojure, got a new release. Notable changes are: * Support for ClojureScript stacktraces. * Allow urls with 'nrepl://' prefix * Added support for decoding negative numbers in protocol (thanks to @technomancy) * Added support for custom nREPL operators (tha

Specter 0.12.0 released

2016-08-05 Thread Nathan Marz
Specter 0.12.0 has been released with many new features, performance improvements, and bug fixes. There are a few highlights: 1. Performance of `select` has been greatly improved. Specter no longer creates intermediate vectors during navigation and has performance very close to transducers (for

Re: Implementing a generic parameterized Java interface so that it satisfies (instance? ParameterizedType)

2016-08-05 Thread Jakub Holý
Thanks a lot, Colin! It is good to get my beliefs confirmed :-) (And you too, tbc++, for contributing!) On Friday, August 5, 2016 at 3:30:22 AM UTC+2, Colin Fleming wrote: > > The JVM does retain some generic information (see for example Neil > Gafter's Super Type Tokens), in particular Type ins