Re: Bit rot and leiningen?

2020-02-06 Thread 'Simon Brooke' via Clojure
On Wednesday, 5 February 2020 22:34:42 UTC, Sean Corfield wrote: > > > because I still haven't found a development environment I like better > than LightTable > > > > Have you looked at Atom/Chlorine recently? It has the same inline result > display that LightTable had, it has a built-in Cloj

Re: Bit rot and leiningen?

2020-02-05 Thread 'Simon Brooke' via Clojure
On Wednesday, 5 February 2020 09:59:25 UTC, Simon Brooke wrote: > > On Tuesday, 4 February 2020 15:56:47 UTC, James Reeves wrote: >> >> This may be due to the plugins overriding a dependency that Leiningen >> itself needs. There was an issue like this >>

Re: Bit rot and leiningen?

2020-02-05 Thread 'Simon Brooke' via Clojure
On Tuesday, 4 February 2020 15:56:47 UTC, James Reeves wrote: > > This may be due to the plugins overriding a dependency that Leiningen > itself needs. There was an issue like this > logged with > Lein-Ring, which I notice you're using. Try

Bit rot and leiningen?

2020-02-04 Thread 'Simon Brooke' via Clojure
Hi all I recently wanted to do some work on a project of mine I've not worked on for more than a year, and found to my great surprise that it will no longer build. Full details of the bug are here , but the core seems to be: clojure.lang.Com

Re: Re-frame - on-click handler doesn't work, and I can't understand why not

2018-08-28 Thread 'Simon Brooke' via Clojure
Thanks, yes, that was part of the problem. The other part was failing to deref the atom. D'oh! On Tuesday, 28 August 2018 17:16:00 UTC+1, Matching Socks wrote: > > Did you intend to pass a function-that-returns-a-function instead of just > a function as the handler? Also, it is a bit odd (maybe

Re-frame - on-click handler doesn't work, and I can't understand why not

2018-08-28 Thread 'Simon Brooke' via Clojure
Hi, I'm stuck... Consider this function : (defn big-link [text & {:keys [target handler]}] (js/console.log (str "Big link with target '" target "'; handler '" handler "'"))

Re: Automatically upversioning a project in continuous integration?

2016-06-14 Thread 'Simon Brooke' via Clojure
Many thanks, googling 'leiningen release tasks' has certainly found me interesting things to read and digest. On Tuesday, 14 June 2016 12:35:57 UTC+1, Alex Miller wrote: > > > > On Tuesday, June 14, 2016 at 5:21:04 AM UTC-5, Simon Brooke wrote: >> >> Apologies if this is a FAQ, I have done a numb

Automatically upversioning a project in continuous integration?

2016-06-14 Thread 'Simon Brooke' via Clojure
Apologies if this is a FAQ, I have done a number of searches and not found anything. I see that the Clojure project's internal Hudson CI server does automatic upversioning on release builds (see documentation here ). It doesn't, ho

Re: Removing duplicates from a series

2016-05-17 Thread 'Simon Brooke' via Clojure
Thank you everyone who responded. After looking over the ideas I chose a variant on Thomas Mulvaney's suggestion: (defn consolidate-events "Return a time series like this `series`, but without those events whose value is identical to the value of the preceding event." [series] (map last

Re: Removing duplicates from a series

2016-05-17 Thread 'Simon Brooke' via Clojure
changed. You could also assemble a > transducer pipeline using the transducer arities of the functions: `(into > [] (comp (partition-by :value) (map first)) events)`. > > Hope that helps, > > Tom > > On Tue, May 17, 2016 at 10:47 AM, 'Simon Brooke' via Clojure

Removing duplicates from a series

2016-05-17 Thread 'Simon Brooke' via Clojure
I'm having trouble with writing a function 1. in idiomatic clojure 2. which doesn't blow the stack The problem is I have a time series of events e.g. ({:idhistory 78758272, :timestamp #inst "2016-03-31T19:34:27.31300-00:00", :nameid 5637, :stringvalue nil, :value 8000.0} {:idhistor

Re: Serialising/deserialising mixed Clojure and Java datastructures

2016-05-10 Thread 'Simon Brooke' via Clojure
On Tuesday, 10 May 2016 10:11:58 UTC+1, Simon Brooke wrote: > > On Monday, 9 May 2016 16:55:59 UTC+1, Alex Miller wrote: >> >> Clojure is designed with enough extensibility to modify the printer and >> reader to cover this case. >> >> You can define a custom print strategy for these types by exten

Re: Serialising/deserialising mixed Clojure and Java datastructures

2016-05-10 Thread 'Simon Brooke' via Clojure
On Monday, 9 May 2016 16:55:59 UTC+1, Alex Miller wrote: > > Clojure is designed with enough extensibility to modify the printer and > reader to cover this case. > > You can define a custom print strategy for these types by extending the > print-dup multimethod. If you print it as a tagged litera

Serialising/deserialising mixed Clojure and Java datastructures

2016-05-09 Thread 'Simon Brooke' via Clojure
I'm working on some complex analysis where it takes about twelve hours to construct the model to be analysed. Once it's constructed I'm doing various interactive things to explore it, but I can't currently persist it in a form in which it can be read back in, so that when the REPL session ends i