Re: [ANN] Discontinuing 4clojure.com

2021-07-05 Thread Colin Yates
Thanks for all your work Alan - a decade is a lifetime in open source :-). Sent from my iPhone > On 4 Jul 2021, at 21:26, Alan Malloy wrote: > >  > TL;DR: Turning off 4clojure.com by the end of July 2021 > > Hello, 4clojure problem solvers. You've probably noticed SSL errors on > 4clojure.co

Re: 100x startup for Clojure using GraalVM

2019-11-12 Thread Colin Yates
Do we have any idea how that memory saving scales? I know a bunch of meta data isn’t needed as it is hotspot specific, but are there any other memory savings? Sent from my iPhone > On 12 Nov 2019, at 18:42, Alan Thompson wrote: > > In my initial post, I failed to mention the huge memory savi

Re: [ANN] Oz 1.4.0 - Interactive data visualizations and scientific documents with Vega/Vega-Lite

2018-12-17 Thread Colin Yates
Looks great! The link to examples (https://vega.github.io/examples) 404s. Sent from my iPhone > On 17 Dec 2018, at 20:41, Christopher Small wrote: > > > Greetings! > > I'm happy to announce today the release of Oz 1.4.0. > > https://github.com/metasoarous/oz > > If you're on the Slack #data

Re: [ANN] 'Elements of Clojure' is complete

2018-12-02 Thread Colin Yates
That’s awesome - congratulations! Sent from my iPhone > On 2 Dec 2018, at 23:25, Zach Tellman wrote: > > I'm very happy to announce, only two and a half years after the release of > the first chapter, that Elements of Clojure is completely finished. Further > details can be found here: > ht

Re: mu4e:view show email address after display name in message headers

2018-09-25 Thread Colin Yates
Come one now, mocking _AND_ being helpful, that’s just not on! What sort of internet would this be if we all went around, (shudder) helping (urgh) each other ;-). > This is definitely the wrong list, but given how easy it is to do this, I > thought I'd help you out. > > (setq mu4e-view-show-ad

Re: mu4e:view show email address after display name in message headers

2018-09-24 Thread Colin Yates
I guess you could do this in clojure, but you might want to try elisp first ;-). (I expect the overlap of emacs, clojure and mu users to be significant, so maybe this wasn’t the wrong group after all!) Sent from my iPhone > On 24 Sep 2018, at 18:26, Jeff Kowalczyk wrote: > > I would like to c

Re: Bazel as Clojure build tool

2018-06-11 Thread Colin Yates
If we are off topic... I once worked with a really smart guy who decided that AOP (using the Spring proxying mechanisms) was a great way of enforcing that customers could only see their line items. Only he did this before he went on holiday, didn’t tell anybody about it and whilst the filtering

Re: doall

2018-05-16 Thread Colin Yates
If you have a sequence of maps then merge is your friend: (def maps = [{:2 1} {:4 1}]) (apply merge maps) To create convert a sequence into a map whose key is always 1: (into {} (map (fn [x] [x 1]) [:2 :4])) HTH > On 16 May 2018, at 18:08, Renata Soares wrote: > > Hello, > > I have this ve

Re: [ANN] CIDER 0.17 (Andalucía) is out!

2018-05-07 Thread Colin Yates
Awesome - well done to all involved! Sent from my iPhone > On 7 May 2018, at 21:07, Gregg Reynolds wrote: > > Looks awesome! > > Any idea when 1.0 will be out? > >> On Mon, May 7, 2018, 2:55 PM Bozhidar Batsov wrote: >> Hey everyone! >> >> I'm happy to share with you that CIDER finally made

Re: [reagent] ANN: re-frame-10x 0.3.0

2018-03-24 Thread Colin Yates
This looks awesome - well done to you all! Sent from my iPhone > On 24 Mar 2018, at 08:49, Daniel Compton > wrote: > > Look, without wanting to hype it too much, re-frame-10x 0.3.0 contains a > feature likely to send ecstatic, Kundalini energy surging through every > chakra in your body. The

Re: Grateful Appreciation

2017-11-01 Thread Colin Yates
This. Sent from my iPhone > On 31 Oct 2017, at 23:59, Alan Moore wrote: > > All, > > I want to give a shout out to all the Clojure, ClojureScript, library and > tool developers (all y’all really) to say how much I appreciate your efforts. > > It takes a lot of time out of your busy lives to

Re: [ANN] Instaparse 1.4.8

2017-09-23 Thread Colin Yates
Thanks Mark, Instaparse is invaluable for us. Sent from my iPhone > On 23 Sep 2017, at 06:18, Mark Engelberg wrote: > > Instaparse 1.4.8 has been updated to support a breaking change that was made > in Clojurescript 1.9.854, relating to the reader. The change has been tested > with Clojuresc

Re: Starting Clojure again

2017-09-06 Thread Colin Yates
The only way of answering that is with numbers, and I understand https://github.com/hugoduncan/criterium/ is excellent for that. Personally, if I was asking that question I might also be wondering if using a mutable data structure might be worth it (https://clojure.org/reference/transients). >

Re: Starting Clojure again

2017-09-06 Thread Colin Yates
Hi Cecil - welcome back! This would be perfect to test using the new clojure.spec. I can't give you any advice on the specifics as I have yet to break into it myself, but the properties of this function are crying out for generative testing. Cecil Westerhof writes: > I want to start using Clojur

Re: SRSLY? (= (true? identity) (false? identity)) => true

2017-09-02 Thread Colin Yates
A more revealing name for 'true?' and 'false?' would be 'boolean-which-equals-true?' and 'boolean-which-equals-false?'. Since the 'identity' function isn't a boolean both functions return 'false', and '(= false false)' is 'true'. '(true? (true? identity) (false? identity))' would return, you guess

Re: Sum types in Clojure? Better to represent as tagged records or as variant vectors?

2017-08-23 Thread Colin Yates
Just a casual bystander here, and this is fascinating to read. The question screaming out to be answered is what problem are you trying to solve with your choice of encoding? It seems both James and Timothy have different requirements, both of which are valid but incompatible with each other. Noth

Re: Unnamed Types - What Am I Doing Wrong?

2017-07-29 Thread Colin Yates
Maps and name spaced keys would be my recommendation for domain entities. Namespace keys because they help in isolating usages. I thought there would be be many benefits to using records, particularly around protocols but I haven't felt the loss. On Saturday, 29 July 2017, Didier wrote: > I fee

Re: [ANN] CIDER 0.15 (London)

2017-07-20 Thread Colin Yates
Congratulations and thanks Bozhidar and all involved! Bozhidar Batsov writes: > Hey everyone, > > Just in the time for EuroClojure 2017, we've released a major update to > CIDER - the popular Clojure interactive development environment, built on > top of Emacs and nREPL. > > The big news is that C

Re: What is juxt really doing?

2017-07-16 Thread Colin Yates
(defn ->k->node [m k] (into {} (map (juxt k identity) m)) is really useful, particularly (->k->node m :id) On Sunday, 16 July 2017, wrote: > If I do this: > > ((juxt :who :what :when) {:who 1 :when 2} {:who 4 :what 99}) > > I get: > > [1 {:who 4, :what 99} 2] > > Why does a map come back instead

Re: Been away a while

2017-07-14 Thread Colin Yates
Welcome back :-). Our latest application utilises EventSourcing, domain events, DDD and CQRS and with Clojure's data-first and "it's all just maps" it is a nice place to be. We are quite fortunate in that all our consumers are Clojure(Script) so cljc, EDN and transmit have made it even nicer. The

Re: Clojure In London: HealthUnlocked

2017-07-06 Thread Colin Yates
Nice write up. I highly recommend healthunlocked as well, it was very helpful when I did the #c25k On Thursday, 6 July 2017, Jon Pither wrote: > Hi All, > > Read about Clojure being used to build a social network to help medical > patients share experiences and advice: https://juxt.pro/blog/post

Re: error in nrepl

2017-06-24 Thread Colin Yates
Spacemacs is worth a look for a very different emacs experience. Used with emacs from homebrew and macports (at different times :-)). If you are heavily invested in your own init.el then maybe not as a full time replacement but it is worth a look for its evil, which-key and hydra config alone. On

Re: slackpocalypse?

2017-05-23 Thread Colin Yates
I've only been skimming this but "analysis paralysis" comes to mind :-). What is the harm in establishing a presence in matrix (bagsy the "neo" handle) and letting people know? As has been said, people will vote with their feet so if in a months time matrix is a Clojure ghost town then lesson learn

Re: Rust intro for Clojurists

2017-04-30 Thread Colin Yates
+1 :-) On 30 April 2017 at 14:40, Herwig Hochleitner wrote: > 2017-04-30 2:24 GMT+02:00 Alan Thompson : >> >> https://gist.github.com/oakes/4af1023b6c5162c6f8f0 > > > ,,Many people try to compare Rust to Go, but this is flawed. Go is an > ancient board game that emphasizes strategy.'' > > This ma

Re: was Re: ANN: Orchestra, complete instrumentation for clojure.spec

2017-04-08 Thread Colin Yates
They look great. My main reservation about Kotlin (and Fantom?) is the mutability. I fear Clojure has spoiled mutable data structures for me :-). On Saturday, 8 April 2017, Didier wrote: > I have longed for a statically compiled language with type inference with >>> the simplicity and consistenc

Re: was Re: ANN: Orchestra, complete instrumentation for clojure.spec

2017-04-07 Thread Colin Yates
ge as well. I think comparing Clojure Spec against _only_ a static typing machine to be disingenuous, that's all. Love, peace and goodwill to all :-). On Friday, 7 April 2017, Didier wrote: > @Colin Yates > > If spec is a DSL to describe invariants and the static typing of other > langu

Re: was Re: ANN: Orchestra, complete instrumentation for clojure.spec

2017-04-07 Thread Colin Yates
So I see Clojure Spec as an "internal DSL if you squint" for describing invariants that are enforced at runtime. Static typing is also an "internal DSL if you squint" for describing data-shape-invariants at compile time. With Clojure Spec you have the entirety of Clojure to describe those invariant

Re: ANN: Cognitect acquired by Microsoft

2017-04-01 Thread Colin Yates
Oh, very good. Linux on Windows, MSSQL on Linux and Mac, modern day politics (on both sides of the pond) and I am not sure what would be unbelievable nowadays :-). On Saturday, 1 April 2017, Gregg Reynolds wrote: > made ya look! > > -- > You received this message because you are subscribed to th

Re: What makes Clojure Clojure?

2017-03-05 Thread Colin Yates
cljs = ClojureScript clr = Clojure on the Common Language Runtime (aka .NET) cljc = Something that can be interpreted in either clj and cljs (and clr I assume?) using Clojure conditionals. For more info on the excellent cljc read https://clojure.org/guides/reader_conditionals. If you haven't yet

Re: New to Clojure - productivity and debugging with Emacs

2017-01-11 Thread Colin Yates
ols, spacemacs seems interesting. What do you > mean by keymap discoverability? > > Den søndag den 8. januar 2017 kl. 10.52.55 UTC+1 skrev Colin Yates: >> >> Hi ahawk and welcome to Clojure! >> >> Your question seems to cover multiple domains: >> - navigating/discovery i

Re: New to Clojure - productivity and debugging with Emacs

2017-01-08 Thread Colin Yates
Hi ahawk and welcome to Clojure! Your question seems to cover multiple domains: - navigating/discovery in non-statically typed languages, specifically Clojure - developing in Clojure - developer tools (e.g. IDE for Clojure) (I can feel a stream of consciousness/ramble coming so so this might t

Re: [ANN] 2016 State of Clojure Community Survey

2016-12-13 Thread Colin Yates
Oh the joys of a lack of a ubiquitous language :-). I was only surprised it didn't start at 0 ;-). On 13 December 2016 at 15:46, Jose Figueroa Martinez wrote: > Me too :-| > > > El martes, 13 de diciembre de 2016, 2:44:08 (UTC-6), Patrick Kristiansen > escribió: >> >> On Tuesday, December 13, 201

Re: [ANN] An exploration of Hash Array Mapped Tries

2016-12-06 Thread Colin Yates
The "Link" doesn't seem to be working for me (it isn't actually a link). Is this some sort of gateway tested - if you aren't clever enough to figure it out you don't deserve to get in? ;-). On 6 December 2016 at 21:16, Ambrose Bonnaire-Sergeant wrote: > Hi, > > I've been having a ton of fun this

Re: Returning multiple values

2016-11-30 Thread Colin Yates
f you could apply (into [] (map (-> class1 :people) [:name > :age])) to each of the {:name "Peter" :age "24"}, {:name "John" :age "25"}, > {:name "Harry" :age "23"} and then put that into a vector so the final > vector is in the

Re: Returning multiple values

2016-11-30 Thread Colin Yates
;Peter" :age "24"}]}) is probably what you want. (mapv (juxt :name :age) (:people class1)) on either of those will give you your result. On 30 November 2016 at 10:34, Colin Yates wrote: > Ah, I just realised people is _not_ a sequence of maps but the result > of calling 

Re: Returning multiple values

2016-11-30 Thread Colin Yates
ame "John" :age "25"}...] On 30 November 2016 at 10:29, Colin Yates wrote: > (mapv (juxt :name :age) (:people class1)) should work > > On 30 November 2016 at 10:27, 'Rickesh Bedia' via Clojure > wrote: >> I have a definition: >>

Re: Returning multiple values

2016-11-30 Thread Colin Yates
(mapv (juxt :name :age) (:people class1)) should work On 30 November 2016 at 10:27, 'Rickesh Bedia' via Clojure wrote: > I have a definition: > (def class1 {:people ({:name "John" :age "25"} > {:name "Harry" :age "23"} > {:name "

Re: [ANN] Clojure Programming Cookbook

2016-11-14 Thread Colin Yates
Congrats - it is amazing how much effort this takes :-). On Tuesday, 15 November 2016, Nicolas Modrzyk wrote: > Hi Clojure people, > > So after one year and 23 days, (that would be 388 days) the IT book I was > working on with Makoto (merci!) finally got published! > > It has been a long battle

Re: Controlling how maps/records/atoms etc. are printed out

2016-11-12 Thread Colin Yates
tance ^Writer w] > (.write w ...)) > > I do that to provide custom printing for deftypes, but you can easily > override how records are printed as well. > > Timothy > > On Sat, Nov 12, 2016 at 2:35 AM, Colin Yates > wrote: > >> Hi all, >> >> I cach

Controlling how maps/records/atoms etc. are printed out

2016-11-12 Thread Colin Yates
Hi all, I cache quite a bit of stuff on the server, so when I return or print out the 'system' I get the unhelpful recursive stack trace of Java running out of heap. Is there some protocol I can implement on large data structures such that whenever they are serialised they just dump some of their

Re: Using a function in another function

2016-11-10 Thread Colin Yates
Your inner (add1 [x]) is calling add1 with a vector containing x, you want (add1 x): (defn add2 [x] (add1 (add1 x)) HTH On 10 November 2016 at 14:51, 'Rickesh Bedia' via Clojure wrote: > I have this function: > (defn add1 [x] > (+ 1 x)) > which is just a very simple function that adds 1

Re: Voting

2016-11-09 Thread Colin Yates
And I thought we had it bad with the whole Brexit saga over here :-). On 9 November 2016 at 12:23, Mikera wrote: > Given recent events, I advise caution when it comes to relying on votes to > make important decisions. > > On Tuesday, 8 November 2016 23:33:43 UTC+8, Alex Miller wrote: >> >> In the

Re: any? in clojure 1.9.0 alpha

2016-11-08 Thread Colin Yates
> Back at ya. I respect your opinion - I just see things differently. I think that is the perfect way to end this conversation :-). On 8 November 2016 at 16:17, Alex Miller wrote: > > On Tuesday, November 8, 2016 at 9:34:53 AM UTC-6, Colin Yates wrote: >> >> you mean J

Re: any? in clojure 1.9.0 alpha

2016-11-08 Thread Colin Yates
onding to in absolute terms. I am pretty sure that were this discussion next to the magical water cooler we would be much more on the same page as I can't believe you mean what you typed :-). Peace. On 8 November 2016 at 14:39, Alex Miller wrote: > On Tuesday, November 8, 2016 at 2:28:54

Re: any? in clojure 1.9.0 alpha

2016-11-08 Thread Colin Yates
The ship has indeed sailed. However, it is exactly these moments when software starts to degrade - there are many examples of crufty software crippled by legacy decisions. I would much rather have ruthless application of 'good' engineering, deprecating where necessary than continue to pay the cost

Re: any? in clojure 1.9.0 alpha

2016-11-07 Thread Colin Yates
That discussion has left quite a sour taste in my mouth. Naming is so important and to be blunt, this name is awful: - breaks the ubiquitous language of English which already has a very well defined definition of 'any' and those semantics aren't it - breaks the ubiquitous language of Clojure whic

Re: Dealing with conditional dependencies using reader conditionals

2016-10-30 Thread Colin Yates
you need to splice the vectors. Flying by so no time but the CLJX example at http://clojure.org/guides/reader_conditionals gives an example. On 30 October 2016 at 17:45, Ricardo Mayerhofer wrote: > Hi all, > I'm developing an isomorphic project with ClojureScript and Clojure. In > order to solv

Re: Java like static typing for Clojure?

2016-10-22 Thread Colin Yates
Generative testing is great but defining the contract gets more complex the further away from a 'unit' you get. It is easy to define extensive generators for (defn length [s]). It is a much bigger problem to generate extensive inputs for every call-site of (length) and then every call-site of the c

Re: Java like static typing for Clojure?

2016-10-21 Thread Colin Yates
Ironically I ran into an issue where I was receiving "" instead of nil which caused some interesting behaviour. For those who find these things interesting, this was for capturing criteria in the UI which was sent to the server to filter. The behaviour was: - form is nil, server ignores the quer

Re: Java like static typing for Clojure?

2016-10-21 Thread Colin Yates
"making me sad" is unsustainable - problem solving with 1s and 0s is hard enough as it is without using demotivating tools :-). On 21 October 2016 at 18:40, Colin Fleming wrote: > I tried it a couple of years ago, and my impressions were more or less the > same as CircleCI's here. I found the typ

Re: Slides for my talk at EuroClojure 2016

2016-10-21 Thread Colin Yates
thanks Mauricio On 21 October 2016 at 14:09, Mauricio Aldazosa wrote: > > > On Fri, Oct 21, 2016 at 3:36 AM, Colin Yates wrote: >> >> +1. >> >> Remind my old befuddled brain of the JS library used to produce those >> 3d-like presentations? > >

Re: Slides for my talk at EuroClojure 2016

2016-10-21 Thread Colin Yates
+1. Remind my old befuddled brain of the JS library used to produce those 3d-like presentations? On 21 October 2016 at 00:22, Sean Corfield wrote: > That is some seriously impressive performance (in the slides) – very nice! > > > > Sean Corfield -- (970) FOR-SEAN -- (904) 302-SEAN > An Architect

Re: Slides for my talk at EuroClojure 2016

2016-10-20 Thread Colin Yates
://dragan.rocks/talks/EuroClojure2016/clojure-is-not-afraid-of-the-gpu.html > > and it works... > > On Thursday, October 20, 2016 at 11:43:05 PM UTC+2, Colin Yates wrote: > > Unfortunately clicking on the 'here' link takes you to a 404: > http://talks/EuroClojure2016/cl

Re: Slides for my talk at EuroClojure 2016

2016-10-20 Thread Colin Yates
2016 at 23:37, Dragan Djuric wrote: > Hmm, what browser do you use? The link that I'm been shown in the browser is > http://dragan.rocks/talks/EuroClojure2016/clojure-is-not-afraid-of-the-gpu.html > and it works... > > On Thursday, October 20, 2016 at 11:43:05 PM UTC+2, Colin Ya

Re: Slides for my talk at EuroClojure 2016

2016-10-20 Thread Colin Yates
Unfortunately clicking on the 'here' link takes you to a 404: http://talks/EuroClojure2016/clojure-is-not-afraid-of-the-gpu.html On 20 October 2016 at 22:38, Dragan Djuric wrote: > Hi all, I posted slides for my upcoming EuroClojure talk, so you can enjoy > the talk without having to take notes:

Re: Java like static typing for Clojure?

2016-10-17 Thread Colin Yates
t; > Sean Corfield -- (970) FOR-SEAN -- (904) 302-SEAN > An Architect's View -- http://corfield.org/ > > "If you're not annoying somebody, you're not really alive." > -- Margaret Atwood > > On 10/17/16, 10:47 AM, "Colin Yates" colin.ya...@gmail.

Re: Java like static typing for Clojure?

2016-10-17 Thread Colin Yates
I have finally found time to watch Stu's video. It was very useful introducing clojure.spec (even if I thought he over-egged the pudding somewhat ;-)). I know there is a back port, but are there any other strategies of using this on 1.9 and building against 1.8? I was thinking of building a tower

Re: Any interest in a data-driven build tool?

2016-10-15 Thread Colin Yates
I can't offer any time unfortunately but you can certainly have a chunk of my interest - will be fascinating to see how this pans out. On 15 October 2016 at 15:46, James Reeves wrote: > I've been playing around with an idea for a new build tool that I'm > currently calling "Hop", and I was wonder

Re: complex made simple?

2016-10-14 Thread Colin Yates
It has been a while since I watched, but are you asking in terms of solutions (e.g. process modelling) or implementations (e.g. architectural styles). It is really hard to give any comprehensive answer here but some 'tools' I have found useful are: - clear thinking - identifying abstractions - by

Re: Love the Medley library :)

2016-10-14 Thread Colin Yates
Thanks for the prompt to look at that again. I am not ashamed to say that after doing Clojure full-time for years now, I still find value in seeing other people's project.clj let alone their actual code :-). On 14 October 2016 at 04:17, Alan Thompson wrote: > I had nearly forgotten all of the ver

Re: newbee mystery

2016-10-09 Thread Colin Yates
I wouldn't say it is different, only that the REPL is doing an extra step (printing) which forces the evaluation of that lazy sequence. As James mentions, your code can force the evaluation of a lazy sequence using doseq or dorun. Lazy sequences are great when you get used to them but they can tri

Re: [ANN] Re-launching Expectations!

2016-10-06 Thread Colin Yates
Thanks Sean. On 6 October 2016 at 19:03, Sean Corfield wrote: >> is there a 'benefits over clojure.test' blog anywhere? > > Not that I’m aware of. I added a GH issue against the website content for > that. Jay wrote a series of blog posts about Expectations back in 2011 that > included the just

Re: [ANN] Re-launching Expectations!

2016-10-06 Thread Colin Yates
Thanks Sean. I did have a look at that a whilst ago (when I was considering migrating to core clojure.test from midge). I think I 'get it', but is there a 'benefits over clojure.test' blog anywhere? I wonder if it is the benefits are more subjective - I personally like the names I give to tests et

Re: Idiom question

2016-09-28 Thread Colin Yates
Welcome to one of the best things about Clojure - the community. However, if anyone starts using the phrase 'Clojurian' then it is time to leave :-). On Wed, 28 Sep 2016, at 07:17 PM, p...@pwjw.com wrote: > Wow thank you all for the really useful responses. How great. I > appreciate the time. >

Re: Idiom question

2016-09-28 Thread Colin Yates
You might want to checkout 'cond->', 'condp' and 'as->'. Checkout the excellent clojuredocs.org website for examples of their usage (https://clojuredocs.org/clojure.core/condp for example). Sorry to be so succinct - deadlines etc. On Wed, 28 Sep 2016, at 03:26 PM, p...@pwjw.com wrote: > Hi. > > I

Re: Insane stack trace with no reference to my code

2016-09-27 Thread Colin Yates
mall to > troubleshoot this problem. > > /Ragnar > > On Tuesday, 27 September 2016 11:16:15 UTC+1, Colin Yates wrote: >> Thanks Thomas. The NREPL is a red herring as that is a printout from >> my local machine - the production error doesn't reference any REPLs - >&g

Re: Insane stack trace with no reference to my code

2016-09-27 Thread Colin Yates
intx MaxJavaStackTraceDepth= 1024 > {product} > > You could try increasing that value, or increasing the stack size (- > Xss), or possibly binding *print-length* to something small to > troubleshoot this problem. > > /Ragnar > > On Tuesday, 27 September 2016 1

Re: Insane stack trace with no reference to my code

2016-09-27 Thread Colin Yates
Thanks Thomas. The NREPL is a red herring as that is a printout from my local machine - the production error doesn't reference any REPLs - I should have stated that. Unfortunately I can't get it from production as it is a very locked down environment (no copy and paste, no internet connection e

Insane stack trace with no reference to my code

2016-09-27 Thread Colin Yates
Hi all, I have a problem that has been hounding me for a while but has increased in frequency. Basically, something goes wrong with my code and I get a mother of all stack traces, but my code isn't referenced in it anywhere. My gut is telling me it is to do with schema validation - when that f

Re: map/filter/remove etc. change underlying structure

2016-09-09 Thread Colin Yates
for basic task. > In the end comping task is also become more hard. > Have you tried to use Specter? Why do you not consider Specter lib? > > > Br, > Mamun > > > > > > On Friday, September 9, 2016 at 12:23:37 PM UTC+2, Colin Yates wrote: >> Hi all, >>

map/filter/remove etc. change underlying structure

2016-09-09 Thread Colin Yates
Hi all, So in the spirit of exposing my ignorance to the internet :-), I have just been bitten by a bug due to the behaviour of the core libraries which I find really surprising: (def v [1 2 3]) (conj v 4) => [1 2 3 4] (conj (map identity v) 4) => (4 1 2 3) (conj (remove (constantly false) v) 4

Re: Newbie question

2016-09-04 Thread Colin Yates
This form allows the fn to have multiple arities. So if I call (recursive- printer) it will 'invoke' ([] (recursive-printer 0)). If I call (recursive- printer 1) then it will 'invoke' ([iteration] ...). HTH -- Colin Yates colin.ya...@gmail.com On Sun, 4 Sep 2016,

Re: Frustrations so far

2016-07-23 Thread Colin Yates
Abstractions and dynamic/static typing are orthogonal. Static/dynamic is simply _when_ types are considered. Strong/weak typing is arguably more relevant and is about how narrowly type information is considered. I can't find an actual declaration but I consider Clojure is dynamic but strongly type

Re: Frustrations so far

2016-07-23 Thread Colin Yates
As James said it is correct, but maybe not intuitive. Intuitively we think an integer isn't empty, but actually it is a non-sensical question - Integers can no more be empty than they can be full. I noticed that Clojure's use of abstractions, and sticking to those abstractions is far greater than

Re: Good post on remote working

2016-07-18 Thread Colin Yates
Having worked from home for close to 6 years now I would add: - get an exercise regime. Seriously. The c25K program is great for those would like to become runners. - regularly go to the office, without fail. Once a month at least. - in that office get everybody around the whiteboard. - determi

Re: Clojure Spec, performance and workflows

2016-07-15 Thread Colin Yates
Just dipping in to say the pragmatism and maturity around here is hugely attractive compared to other tech communities. +1. In terms of reducing the impact of a change, I have found ruthlessly separating out into separate libraries very beneficial here. lein's 'checkout' capability makes it not mu

Re: Avoiding repetition while still using 'recur'

2016-06-26 Thread Colin Yates
Skimming through but that `case` resolves to either false or a recur so sure you can move that case to an helper fn which returns true or false. If false then `return` else `recur`? On 26 June 2016 at 13:43, Botond Balázs wrote: > Hi, > > Here is my solution to 4clojure problem #177: > >> Write a

Re: Joy of Clojure : Backward running lisp ??

2016-06-23 Thread Colin Yates
Gary - that was great to read. Thanks ;-) On 23 June 2016 at 08:18, Gary Verhaegen wrote: > In functional programming, you work with functions. Functions have a > well-defined list of inputs and a single output. So you can say of the > function cons, for example, that it takes as input a value an

Re: Clojars will be partially down for maintenance this weekend

2016-06-18 Thread Colin Yates
+1 - one of the unsung heroes. On 18 June 2016 at 20:50, Andrey Antukh wrote: > Completely agree! Many thanks for your work! > > On Sat, Jun 18, 2016 at 10:49 PM, Howard Lewis Ship > wrote: >> >> It unfortunately goes unsaid, so I'll say it: thanks for working hard on >> Clojars, and for doing a

Re: When/how are top-level side effects in a namespace executed?

2016-05-22 Thread Colin Yates
Others will have more idea, but my observation is that it is evaluated once, so a namespace which is required by multiple namespaces will only be evaluated once. Should you explicitly re-evaluate it then it will of course be evaluated again. You might be interested in reading Stuart Sierra's 'relo

Re: clj-time/do-at not workin as expected

2016-05-20 Thread Colin Yates
Have you considered using async channels? JvJ writes: > Chime seems great, but I'm looking for something cross-platform (java/js). -- 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

Re: lein project cross-reference tools

2016-04-19 Thread Colin Yates
Have you tried the 'find usages' functionality of https://github.com/clojure-emacs/clj-refactor.el? Also - you might want to download IntelliJ and give cursive a try - cursive is fantastic for this sort of stuff ... and yes, I too feel a bit of despair that my suggestions is 'try this other to

Re: Return from a function

2016-04-15 Thread Colin Yates
Hi Varun - the best advice I think I could give you is to spend a whole bunch of time on https://clojuredocs.org and https://www.conj.io (any others?) familiarising yourself with the core API. There is also the official http://clojure.org/api/api but I find the example on clojuredocs invaluable. F

Re: [ANN] clojure.java.jdbc 0.5.6 -- important deprecations!

2016-04-10 Thread Colin Yates
That's great Sean - I look forward to 'lein ancient'ing tomorrow :-). On 10 April 2016 at 18:42, Sean Corfield wrote: > What? > org.clojure/java.jdbc “0.5.6” > Clojure contrib wrapper for JDBC database operations > > Where? > https://github.com/clojure/java.jdbc#change-log

Re: [ANN] [book] Mastering Clojure published!

2016-04-03 Thread Colin Yates
Congratulations! - I know how much effort goes into this sort of thing. I look forward to reading a copy at some point. On 3 April 2016 at 05:46, Akhil Wali wrote: > I'm pleased to announce that Mastering Clojure has been published. > This book is a fast paced exploration of the more advanced fea

Re: [ANN] Elements of Clojure

2016-03-18 Thread Colin Yates
Really enjoyed this Zach - well done. I have _longed_ to write a book using Clojure as a vehicle but dealing addressing "how to build great code" and you beat me to it. Luckily, a gazillion books in this space would still not be sufficient so the door for my work isn't closed :-). (and a _huge_ +

Re: a project template containing clj, cljs cljc files

2016-03-06 Thread Colin Yates
iously misleading and outdated in > a number of ways in its opinions on the state of the art for clojurescript > tooling. The template I found to be the best was the figwheel template. > > On Sun, Mar 6, 2016 at 1:14 AM, Colin Yates wrote: >> >> Hi Sunil, I always use >>

Re: a project template containing clj, cljs cljc files

2016-03-06 Thread Colin Yates
Quite right - they don't need to live under their own directory. Other than for libraries however, I do find the /clj, /cljc, /cljs structure quite pleasing and clean. On 6 March 2016 at 09:17, Torsten Uhlmann wrote: > Hi, > > I'm using a Chestnut based template in my project and it was quiet eas

Re: a project template containing clj, cljs cljc files

2016-03-06 Thread Colin Yates
Hi Sunil, I always use https://github.com/reagent-project/reagent-template. Not sure it creates cljc out of the box but all you need to do is create a new directory for your .cljc files and add that to the project source-path. On 6 March 2016 at 05:25, Sunil S Nandihalli wrote: > Hi everybody, >

Re: [ANN] Doubling down on Onyx

2016-02-24 Thread Colin Yates
Congrats Michael - Onyx is a thing of beauty :-). On 24 February 2016 at 16:22, Michael Drogalis wrote: > Hi everyone, > > I'm happy to announce that, starting next week, I'll be supporting the Onyx > Platform full time. > I want to thank the incredible Clojure community that's helped to make Ony

Re: [ANN] clj-refactor.el and refactor-nrepl 2.0.0 is released

2016-02-07 Thread Colin Yates
This is great - thanks to all. On 6 February 2016 at 23:29, woz wrote: > The stable release for clj-refactor.el is out together with its nrepl > middleware backend refactor-nrepl. > > clj-refactor.el is an Emacs package for clojure and clojure script > refactorings while refactor-nrepl is an edit

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

2016-02-02 Thread Colin Yates
I see the same issues/feel the same pain, but I attribute it much more to dynamic typing than data. Changing the API is always going to be expensive but without typing we pretty much to do it without tool support. Even in Java and the magic of IDEs there is still pain - changing the return type of

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

2016-02-02 Thread Colin Yates
I think the message is 'data doesn't have to be code' not 'code should be expressed in data' which is significantly different. XML went wrong because people tried to write code in XML. Nobody (I think) is saying explicitly that we should write code, logic etc. as data only that there is no need to

Re: Migrating from Java/Spring to Clojure

2016-02-01 Thread Colin Yates
+1. I also challenge the starting condition that most code will be data access - that was my assumption (when I migrated from Spring/Hibernate). It doesn't take much rigour to ensure every side effecting fn is _only_ concerned with the side effect leaving lots of non-side-effecting code. Also, do

Re: [ANN] New clojure.org!

2016-01-26 Thread Colin Yates
It’s probably just me but I always think tech companies that don’t do SSL reflects badly on them, like they couldn’t be bothered :-). Can’t really justify that prejudice, but anyways, glad this is working now. (There is also http://searchengineland.com/google-starts-giving-ranking-boost-secure-

Re: [ANN] Clojure 1.8.0 is now available

2016-01-19 Thread Colin Yates
Congrats to all contributors and testers - looking forward to trying it out. > On 19 Jan 2016, at 19:54, Alex Miller wrote: > > Some of the new features for 1.8 are: > More string functions in clojure.string > > (portable

Re: [ANN] New clojure.org!

2016-01-14 Thread Colin Yates
+1 this is really great. > On 14 Jan 2016, at 16:07, Stephen Gilardi wrote: > > +1 great fresh look and process! > >> On Jan 14, 2016, at 11:01 AM, Marc O'Morain wrote: >> >> Very nice! Good job all. > > -- > You received this message because you are subscribed to the Google > Groups "Cloju

Re: Naming convention for atoms, refs, etc.?

2015-12-10 Thread Colin Yates
I know it is dangerous to make sweeping statements, but any solution to “a lot of code obscures meaning therefore do X” is often solving the wrong thing - the real problem is "a lot of code that obscures meaning” :-). I hope that doesn’t come across as condescending as I fear... > On 10 Dec 201

Re: Guidance on modelling listeners

2015-12-07 Thread Colin Yates
Or even just leave the > =world= item as local state in a closure of the xform and just emit the new > worlds from the other end of the channel. > > On 8 Dec 2015, at 1:19, Colin Yates wrote: > > Thanks Jason, > > I don’t particularly want dynamic registration; wh

Re: Guidance on modelling listeners

2015-12-07 Thread Colin Yates
asket" into world. > > I've thought a bit about making data-driven middleware and how to register or > deregister, but not come up with a decent solution – mostly because ordering > is often important. > > > On Mon, Dec 7, 2015 at 6:01 AM, Colin Yates <mailto:colin

  1   2   3   4   5   6   >