Re: [ANN] stateful-check 0.4.0 - test stateful systems with test.check

2018-02-12 Thread Lucas Bradstreet
Thanks Carlo! I've enjoyed using stateful-check in the part, and I'm looking forward to trying the update. On 12 February 2018 at 14:32, Carlo Zancanaro wrote: > Hey everyone! > > I've just released a new version of my library for testing stateful systems > with

Re: [ANN] clojure-future-spec, a backport of clojure.spec for 1.8

2016-06-30 Thread Lucas Bradstreet
Thanks Sean. You make an excellent point with specs being in a separate namespace. I had thought that using fdef would have prevented doing something like this but it appears I am wrong. On 30 June 2016 at 01:20, Sean Corfield <s...@corfield.org> wrote: > On 6/29/16, 10:03 AM, "Lu

Re: [ANN] clojure-future-spec, a backport of clojure.spec for 1.8

2016-06-29 Thread Lucas Bradstreet
This looks great Nikita. Sean, a lot of library developers still want to support Clojure 1.8, but this would prevent using spec with their projects. This would help there. Onyx in particular was going to avoid using spec for the time being, but we may re-evaluate now. On 30 June 2016 at 00:31,

Re: How is the emphasis of “data over code” different than the XML advocacy of the early 2000s?

2016-02-03 Thread lucas . bradstreet
Hi Josh, I am one of the core Onyx developers, so I am biased in some respects. I'm going to only speak to specific advantages that code > data gives Onyx. An advantage with Onyx is the ability to build up your jobs dynamically using data that is easily transformable by code, using all of the

Re: Reducing the pain of a clojars outage

2016-01-06 Thread Lucas Bradstreet
iners list. Thank you for your effort in providing this essential service. Lucas On 5 January 2016 at 11:51, Toby Crawley <t...@tcrawley.org> wrote: > On Mon, Jan 4, 2016 at 3:31 PM, Lucas Bradstreet > <lucasbradstr...@gmail.com> wrote: >> Good info. Now that we've performe

Re: Reducing the pain of a clojars outage

2016-01-04 Thread Lucas Bradstreet
Good info. Now that we've performed the initial clojars drive, which was performed at a very fortuitous time, do you think that the problem is primarily one of money, man poweror, or both? I realise that there's a lot of kI'm happy to help in I'm one of Ri way, because I think we

Re: crazy idea...

2015-11-28 Thread Lucas Bradstreet
Kibit (https://github.com/jonase/kibit) does many of the things that you describe, though it doesn't go as far you dream. It also uses core.logic to suggest equivalent substitutions. I'd be happy to see more work in this area. Lucas On 29 November 2015 at 02:01, Jules

Re: [ANN] core.async-0.2.371

2015-10-29 Thread Lucas Bradstreet
Fantastic release. I've been waiting for poll! and offer! for a while. What is the recommended way to check whether a channel is closed? Previously if the channel returned nil, then we know the channel is closed, however with poll! we can't tell between the channel being closed or just empty.

Onyx Platform Release Digest

2015-09-21 Thread Lucas Bradstreet
The Onyx team is proud to announce some releases of Onyx Platform projects. Michael Drogalis (https://twitter.com/michaeldrogalis) and myself (https://twitter.com/ghaz) will both be at Strange Loop this week. If you're interested in Onyx come find us to have a chat! == Onyx Redis ==

Re: Edn, Fressian, Transit: which of these formats have a future?

2015-03-16 Thread Lucas Bradstreet
I have had a lot of success with nippy https://github.com/ptaoussanis/nippy, which is quite well documented. We had problems with fressian round tripping Clojure collections, as you've described. It has a number of other features (compression, encryption) that I may end up using. It has given

Re: clj-uuid: time-based uuid now 350% faster than java.util.UUID/randomUUID

2015-03-04 Thread Lucas Bradstreet
Thanks for the extra analysis. My feeling was that it would be possible, but I wasn't sure. Luckily my current use cases don't depend on keeping UUIDs secret, but I was still wondering if there was a trade off. A mention in the docs seems worthwhile. Cheers On 4 Mar 2015, at 21:40,

Re: clj-uuid: time-based uuid now 350% faster than java.util.UUID/randomUUID

2015-03-03 Thread Lucas Bradstreet
Hi, Nice work! I wanted to clarify something: it seems to me that the v1 uuids clj-uuid generate are not exactly equivalent or comparable to the uuids generated by java.util/randomUUID? It appears that V1 uuids are time (and MAC) based and don't use a cryptographic random number generator, so

Re: clj-uuid: time-based uuid now 350% faster than java.util.UUID/randomUUID

2015-03-03 Thread Lucas Bradstreet
at pretty much the same time :). On 3 Mar 2015 20:11, Lucas Bradstreet lucasbradstr...@gmail.com wrote: Hi, Nice work! I wanted to clarify something: it seems to me that the v1 uuids clj-uuid generate are not exactly equivalent or comparable to the uuids generated by java.util/randomUUID

Re: clj-uuid: time-based uuid now 350% faster than java.util.UUID/randomUUID

2015-03-03 Thread Lucas Bradstreet
uniqueness at pretty much the same time :). On 3 Mar 2015 20:11, Lucas Bradstreet lucasbr...@gmail.com wrote: Hi, Nice work! I wanted to clarify something: it seems to me that the v1 uuids clj-uuid generate are not exactly equivalent or comparable to the uuids generated by java.util

Re: Is there a way to stop a long running expression in the REPL

2015-02-21 Thread Lucas Bradstreet
Which repl are you using? In lein repl, this does not happen to me, it just terminates the expression. On 21 February 2015 at 19:45, Cecil Westerhof cldwester...@gmail.com wrote: Sometimes I execute something that takes to long. With Ctrl-C I can cancel it, but this also cancels the REPL

ANN: Onyx Dashboard 0.5.2.1

2015-02-18 Thread Lucas Bradstreet
Onyx is a batch/stream processing hybrid, written in Clojure, for Clojure. https://github.com/MichaelDrogalis/onyx Today I released a dashboard for Onyx, that leverages Onyx's information model to provide some nifty monitoring and job management features. You can read about its use of its

Re: [ANN] cqrs-server - An opinionated CQRS/ES implementation using Onyx, Datomic, DynamoDB, Kafka and Zookeeper.

2015-02-13 Thread Lucas Bradstreet
Just a small clarification: both Storm and Onyx both depend on Zookeeper. Onyx is masterless as of 0.5.0, however it still requires Zookeeper IN order to write an append only log used by the peers in order to coordinate. In contrast to Storm, Onyx does not have dedicated coordinator nodes (in

Re: which are the pros and cons between stuartsierra/component and prismatic/graph?

2015-02-04 Thread Lucas Bradstreet
Component is more for managing state, whereas graph is for structuring computation. All I can really tell you is that after using component I am never going back (at least in Clojure). Lucas On 4 Feb 2015, at 20:46, Juan A. Ruz juanantonio...@gmail.com wrote: Hi guys! Can anyone give

Re: gofmt like tool for Clojure?

2015-01-28 Thread Lucas Bradstreet
This was released recently: https://github.com/weavejester/cljfmt On 29 January 2015 at 10:20, Papa Balyo papaba...@gmail.com wrote: Greetings, Is there a tool that reads .clj(s) source file and prints it in canonical fashion? (things like equal number of blank lines between forms, consistent

Re: simple procedure for updating a value one level down

2015-01-26 Thread Lucas Bradstreet
Given these points I would probably just do: (defn update-val-with-id [values m] (map (fn [v] (if (= (:id v) id) (merge v m) v)) values)) I'm not that happy with it either, so other suggestions are welcome. On 27

Re: simple procedure for updating a value one level down

2015-01-25 Thread Lucas Bradstreet
Are you sure you want to return: [ [ { :id 1 :text foo } { :id 2 :text bar :ack 5 } ] [ { :id 3 :age 12 :somethingElse 29 } ] ] (notice the two nested vectors), or rather [ [ { :id 1 :text foo } { :id 2 :text bar :ack 5 } { :id 3 :age 12 :somethingElse 29 } ] ] Lucas On 26 January 2015 at 13:10,

Re: Charting Data Format Feedback Requested

2014-12-14 Thread Lucas Bradstreet
and general. I agree that the data frame/set spec is definitely the place to start. Cheers On Thursday, 11 December 2014 17:45:00 UTC+8, Lucas Bradstreet wrote: Hi everyone, We are currently writing an OM based visualisation / charting library that we intend to use extensively in combination

Re: Charting Data Format Feedback Requested

2014-12-14 Thread Lucas Bradstreet
Hi Jony, I'm a fan of Gorilla REPL. I'd love to have this work supported with it. Is it easy to support Clojurescript based renderers within GorillaREPL? It would be nice to support interactive figures with this kind of use case (in addition to SVG based plots, of course). From the responses

Re: test.check slow shrinking

2014-11-13 Thread Lucas Bradstreet
) n)) (def gen-tsv2 (gen/bind gen-matrix-size (fn [[x y]] (gen/hash-map :probes (gen-names x) :samples (gen-names y) :matrix (gen-matrix2 x y) On Wednesday, November 12, 2014 12:47:37 PM UTC-8, Lucas Bradstreet wrote: I'm pretty sure I did

Re: test.check slow shrinking

2014-11-12 Thread Lucas Bradstreet
I've also had some tricky shrinking type issues with recursive generators using bind. I had a play with your generators, using such-that to reduce the row/column name length and also preventing some generator shrinking by using no-shrink, but I didn't have much luck improving the resulting

Re: test.check slow shrinking

2014-11-12 Thread Lucas Bradstreet
-8, Lucas Bradstreet wrote: I've also had some tricky shrinking type issues with recursive generators using bind. I had a play with your generators, using such-that to reduce the row/column name length and also preventing some generator shrinking by using no-shrink, but I didn't have much luck

Re: On Testing

2014-10-31 Thread Lucas Bradstreet
I totally agree about pr-str in test.check. Quite often I want to copy and paste the failure into a repl and play around, but need to re-add missing quotation marks or quote lists. On 31 Oct 2014, at 22:05, Jessica Kerr jessit...@gmail.com wrote: My top wish it more readable output from

Re: [ANN] om-bootstrap 0.2.6 released

2014-09-16 Thread Lucas Bradstreet
Bootstrap doesn't have tables with functionality like that and is used on a *lot* of sites, so it's hardly of little use. If you need a sortable table, you could write an om wrapper around https://github.com/glittershark/reactable I may give this a try soon myself. Lucas On 16 Sep 2014, at

Re: Productivity tip for code transformations with cider

2014-09-15 Thread Lucas Bradstreet
The same tip can be used in vim-fireplace with c!! (minus the quotes). I find it especially useful when creating tests (as in OP). Lucas On 15 Sep 2014, at 13:11, Mayank Jain firesof...@gmail.com wrote: Nice! Thanks for sharing! On Mon, Sep 15, 2014 at 1:40 AM, Jony Hudson

Re: Optimizing lein profile for Heroku deployment

2014-08-26 Thread Lucas Bradstreet
A quick fix would be to increase the repl timeout time: :repl-options {:timeout 12} I believe you can also run the repl with a different profile: e.g. lein with-profile production repl Lucas On 26 August 2014 19:28, Jonathon McKitrick jmckitr...@gmail.com wrote: I'm able to deploy my