"wrong number of args" with nested map

2010-04-16 Thread Derek
sure what I'm doing wrong. Any tips would be appreciated. Derek -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please b

Re: "wrong number of args" with nested map

2010-04-17 Thread Derek
Thank you all for the explanations. I see now that I wasn't paying close enough attention, and needed to add another pair of brackets to destructure my lambda's single argument. On Apr 16, 11:51 am, Per Vognsen wrote: > Tangent: > > On Fri, Apr 16, 2010 at 7:41 PM, Douglas Philips wrote: > > (1)

Re: [ANN] Clojure Applied: From Practice to Practitioner

2015-04-09 Thread Derek Koziol
What do you recommend as "fine introductory books" to get myself at the level needed for this book? I have very little experience with functional programming and Clojure. On Wednesday, April 8, 2015 at 9:27:58 AM UTC-4, Alex Miller wrote: > > Hey all, > > I'm very happy to announce that Clojure

Re: fdef for defmulti?

2017-06-29 Thread Derek Thurn
I'm also interested in this functionality. Is there an existing JIRA issue we can follow for allowing specs for multimethods? On Thursday, 18 August 2016 05:32:01 UTC-7, Patrik Sundberg wrote: > > Hi, > > Am I right to think you can't currently fdef a defmulti function? I tried > and when runnin

Datascript return values

2016-02-16 Thread Derek Frost
I need some advice about return values please. I'm using Datascript on the console with clojure and I'm doing this to get values from the d/b (println(d/q q-list @conn)) which gives me a hash-map of arrays. I'm trying to put values in a text file to convert to pdf - this is a bit mad but it's

core.async chan ex-handler

2015-01-22 Thread Derek Troy-West
ex-handler fn doesn't have a second arity which also takes the val which caused the transformation error? Ta, Derek -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note tha

Re: Minimum Viable Database Component

2015-04-30 Thread Derek Troy-West
Hi Andy, We use component at SMX, and do follow an approach similar to the one you hint at but as Stuart suggests we tend to have protocols that are more application-centric. For instance, we use Cassandra extensively and our general interaction with that is captured by the protocol: (def

Re: How to implement a distributed and concurrent system in Clojure?

2015-07-19 Thread Derek Troy-West
We use Storm/Trident fairly extensively for distributed computation, it has not been painless and the documentation is poor, however it does perform well once you understand its peculiarities. I'm keeping an interested eye on Onyx but my bandwidth is fairly limited at the moment. The only thing

Re: Idiomatic program for someone new to Clojure

2020-12-16 Thread Derek Troy-West
Hello James, Aditya links to one of Stuart Sierra's Do's and Don't posts. That series of posts really influenced my basic Clojure style and I'd suggest reading them all: https://stuartsierra.com/tag/dos-and-donts, they're (mostly!) great and simple advice. Best, De

Re: Tour of our 250k line Clojure codebase

2021-06-03 Thread Derek Troy-West
eeing the product when it's available, this is very much in my area of interest. Best, Derek On Friday, June 4, 2021 at 4:06:16 AM UTC+10 natha...@gmail.com wrote: > I published a post today giving on overview of our codebase at Red Planet > Labs and the many ways it leverages the

Ann: factorhouse/slipway - A Clojure Companion to Jetty.

2022-12-21 Thread Derek Troy-West
), Derek -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this g

Re: core.async top use cases

2016-10-02 Thread Derek Troy-West
Fine grained control of parallelism is a superb aspect of core.async. Cassandra is a distributed database, often a query requires you resolve-on-read denormalised data partitioned multiple ways (semantically, by time, etc). You can think of it like a grid I guess. Lets say I have a query that I

Real world Clojure (video).

2017-05-29 Thread Derek Troy-West
ll tell you a secret - I don't care. All the best, Derek p.s. come see us: https://www.meetup.com/melbourne-distributed/ https://www.meetup.com/clj-melb/ -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send ema

Re: How to implement a distributed and concurrent system in Clojure?

2017-06-30 Thread Derek Troy-West
I still have Storm topologies in prod, but I'm investigating Kafka Streams and Onyx right now. On Saturday, July 1, 2017 at 9:38:08 AM UTC+10, Bobby Calderwood wrote: > > Onyx is super cool, has matured substantially, and has a great team behind > it. > > I've also had success building with Kafk

[ANN] Arche: A Battery Pack for Alia/Cassandra

2017-09-01 Thread Derek Troy-West
iguration from EDN as possible (see: tagged literal support) If you work with Clojure and Cassandra I hope you find this useful. Best, Derek Troy-West -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email

[ANN] Cronut: Scheduled Execution via Quartz and Integrant

2018-06-08 Thread Derek Troy-West
) * Easily extensible for further triggers / tagged literals * Zero dependencies other than Clojure, Quartz, and Integrant. This is a fairly early release, but we use it internally and will be pushing it along as needed. Ta, Derek -- You received this message because you are subscribed to the Goo

Re: Attempting to call unbound function in Hadoop (cluster mode) runs fine on single node.

2019-01-04 Thread Derek Troy-West
Bit of a long-shot since my example is related to Storm not Hadoop, and my experience was five years ago, but this blog post might help: http://derek.troywest.com/articles/trident-in-clojure and this related ticket: https://github.com/sorenmacbeth/marceline/issues/9 I could run a Storm topology

Open-Source Clojure / Kafka Workshop Materials.

2019-05-27 Thread Derek Troy-West
about data and transformations rather than domains and modelling. Contributions welcome if you find any issues or can make improvements. All the best, Derek -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send e

Re: Feedback on datafy/nav project

2020-01-31 Thread Derek Troy-West
Hi Dimitris. I think your library is an excellent idea. Like the other replies I'd prefer if it used Datafiable. Would you consider adopting an explicit options map instead of the jdt/now! varags destructuring? I'm not sure if that style is adopted throughout, but in general I prefer maps to t

Re: [ANN] core.async-0.2.371

2015-10-29 Thread Derek Troy-West
Hi Alex, thanks for your efforts and the update. I have a few questions about promise-chan if you have a moment. Firstly, why provide promise-chan rather than requiring (chan (buffers/promise)). The buffer provides the promise semantics and we don't similarly have sliding-chan, dropping-chan, e

Re: [ANN] core.async-0.2.371

2015-10-29 Thread Derek Troy-West
> > > >> Secondly, I've perhaps mistakenly considered channels more as a conduit >> between processes rather than a replacement for single assignment message >> passing. I get the value of using a channel and the core.async state >> machine for achieving promise-like semantics in a non-blocki

Re: [ANN] core.async-0.2.371

2015-10-29 Thread Derek Troy-West
Thanks Alex, I think I can sum up my confusion as: I thought channels were single take, but understand now that is not necessarily the case. In his 2013 Strange Loop talk Rich described first-class channels and the subset of state that they expose: "But I think what's really cool about first clas

Re: Examples of core.async usage in production?

2015-11-09 Thread Derek Troy-West
We have a number of back-end services which use core.async fairly extensively, some of which have been in production for over a year. They tend to utilise Netty (Java non-blocking networking framework) to serve/send requests, for example Alia (https://github.com/mpenet/alia) is an excellent Cas

Re: Advice on introducing a Java dev to Clojure

2016-02-10 Thread Derek Troy-West
. This thread is a little old, so I have to ask - have you had any luck? Derek On Friday, July 10, 2015 at 8:20:23 AM UTC+10, Johanna Belanger wrote: > > Hi :) > > I've recently broached the subject of Clojure with another dev in my > organization, and his response was basic

Re: Protocols in another namespace, retract-type possible ?

2016-04-03 Thread Derek Troy-West
Hi Neils, If I've understood you correctly, can you just redefine the protocol implementation for Associative? E.g. (defprotocol ProtX (do-thing [x])) => ProtX (extend clojure.lang.Associative ProtX {:do-thing (fn [x] (str/lower-case (get x :a-val)))}) => nil (do-thing {:a-val "Some Str

Leiningen, Release Me!

2016-04-15 Thread Derek Troy-West
http://derek.troywest.com/articles/leiningen-release Ta, Derek -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with y

Re: Processing an array

2016-04-25 Thread Derek Troy-West
) time)) result))) Derek On Sunday, April 24, 2016 at 8:01:14 PM UTC+10, Olivier Scalbert wrote: > > Hi all, > > I am a Clojure beginner > And I have an advice to ask ! > > I have an array of events: > > (def events [ > {:id "1" :duration 100}

Re: [ANN] components.md

2016-04-30 Thread Derek Troy-West
I've quite enjoyed reading the various approaches to using Component (or not as the case may be), so much so that I've added my own two pence: http://derek.troywest.com/articles/how-i-use-component On Tuesday, April 5, 2016 at 6:28:48 PM UTC+10, Renzo Borgatti wrote: > > Hello clj, > > kinda la