Exploring the (tap>) functions

2019-03-02 Thread Glen Mailer
Hello All I was wondering if there is an annoucement or a rationale doc coming for (tap>) and it's related functions? The current docstrings do a good job of telling you what they do and how to use them, but the docs on the homepage seem quite

Re: [ANN] Clojure 1.9.0-alpha1

2016-05-26 Thread Glen Mailer
Is the plan that any lib which adds specs will force the rest of the running system up to 1.9, or is it possible to keep the specs in a different namespace and not blow up? Would it be reasonable to release something for 1.8 which contains all the spec vars but no-ops them? -- You received th

Re: [ANN] Elements of Clojure

2016-03-20 Thread Glen Mailer
> > > Maybe this is what's conveyed in some programming contexts, and perhaps > that's reason enough not to use "style" in your title, but "style" doesn't > convey that in general. > > It would appear that "style", being a natural name, has an ambiguous sense. I suppose then that we must rel

Re: Reducing the pain of a clojars outage

2016-01-02 Thread Glen Mailer
This seems like it could be a fruitful avenue to me (cloudflare or another CDN) I know the folks at npm use fastly in a similar fashion - gaining both geographical distribution and improved resiliency. -- You received this message because you are subscribed to the Google Groups "Clojure" group.

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

2015-12-06 Thread Glen Mailer
I saw some sample code that prefixed the atom name with a ! recently, seemed to look sensible to me. (swap! !state conj :whatever) And so on. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.

[ANN] Shrubbery 0.2.0, a stubbing, spying, and mocking library for Clojure protocols

2015-05-08 Thread Glen Mailer
This looks neat Brian! People who find this useful may also like a similar lib I wrote that provides mocking tools at a single function level: https://github.com/glenjamin/q -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send

Re: Om design query

2015-03-06 Thread Glen Mailer
In ordinary React I think I would keep all of this logic in the parent, and read from the DOM in didUpdate. There's a feature called refs which can be used to grab references to the rendered children to get their DOM nodes. I'm afraid I don't know how to do the equivalent in Om. -- You receive

ANN: ClojureScript 0.0-2496, cljs.test - a clojure.test port

2014-12-17 Thread Glen Mailer
> Also there's a doc macro now in the cljs.repl namespace that works as > expected. This is great to hear! Excited to see test.check being on the horizon as well. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to

Re: [ANN] seqspert-1.7.0-alpha4-1.0-SNAPSHOT now on Clojars - Merge big hash-maps, FAST !

2014-11-17 Thread Glen Mailer
I did? I have no recollection of this at all! Is this a similar concept to the Patricia trees as found in https://github.com/clojure/data.int-map ? Glen -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@g

Eager (cat) in transducers

2014-09-21 Thread Glen Mailer
While watching Rich's strangeloop talk, I noticed a slight oddity in the definition of mapcat. I brought this up briefly in the IRC channel yesterday and the general consensus seemed to be that this is awkward, but not easily solvable: The original lazy definition of (mapcat) uses (concat), and

Top-down code in namspaces

2014-06-01 Thread Glen Mailer
Hi everyone, I'm looking to get some opinions on code style. Specifically, I like to write my code in a top-down. What I mean by that is that within a file the highest-level functions sit at the top, and are implemented in terms of lower-level functions further down. The idea is that through s

Re: Kwargs vs explicit parameter map for APIs?

2014-04-26 Thread Glen Mailer
While reading the clojure.java.jdbc code yesterday, I discovered to my surprise that map destructuring can be used after an & in an arglist. This should give you all the described benefits of the two approaches you mention ((fn [a & {:as d}] d) 1 :opt1 'blah :opt2 false) You can also do defaul

Need HTTP Client not to verify cert on Heroku

2014-04-17 Thread Glen Mailer
The option you need is ":insecure? true" - although it's worth considering if you'd be better off setting up the certificate chain with the appropriate CA for the service in question (see trust store section in readme) -- You received this message because you are subscribed to the Google Groups

Re: Lein, Speclj & clojure 1.6.0-beta1

2014-02-17 Thread Glen Mailer
:eval-in can be overridden in your project.clj, just add: :speclj-eval-in :subprocess I agree that the default is rather odd - especially when the only reason I'm aware of is "it's a bit faster" Cheers Glen On Monday, 17 February 2014 12:09:13 UTC, Karsten Schmidt wrote: > > Hi all, am tryin

Re: fast parallel reduction into hash-set/map

2014-02-17 Thread Glen Mailer
Is there a specific part of this implementation which means it needs to live in core? It would be cool to have this as a library that could be used with existing versions of clojure (I have no idea if enough of the internals are exposed to make this viable) Glen On Saturday, 15 February 2014

Code re-use in Speclj

2014-02-03 Thread Glen Mailer
My usual approach is to use a macro that expands to the appropriate (it) forms, or have a helper function that is called inside each (it) -- 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 No

Re: Contributors needed for Rouge (Clojure on Ruby)

2014-01-05 Thread Glen Mailer
Have you looked into running clojurescript on Node.js? This should be a reasonable environment for command line scripting -- -- 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 pos

Re: Parallel http requests

2014-01-02 Thread Glen Mailer
I can't speak for whether this is a truly idiomatic way of doing this, but this is a macro i've been using for this case. (defmacro plet [bindings & body] "Just like let, but evaluates bindings in parallel" (let [bindings (partition-all 2 bindings)destructs (map first bindings)

loop/recur with multiple branches

2013-12-10 Thread Glen Mailer
I was recently working on some toy recursion problems, when I ran into a function that I can express simply using normaly recursion, but I can't seem to convert it into a form that works nicely with loop/recur. It's certainly not the right way to solve this problem, but I'm intrigued to see wha

Re: blog article on RSpec like TDD with a rapid feedback cycle in Clojure

2013-10-21 Thread Glen Mailer
If you're on a Mac and using Speclj you may want to try out https://github.com/pgr0ss/speclj-growl - you won't even need to look at your terminal! Glen -- -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure

Re: Clojure generates unnecessary and slow type-checks

2013-06-14 Thread Glen Mailer
This doesn't really answer your question directly, but is there a reason you need to keep this in clojure, or are you just aiming to establish why this is happening? My understanding was that for performance critical code the general advice is to drop down to raw java? Glen -- -- You receiv

Re: Screencast: Clojure development with Sublime Text 2

2013-05-19 Thread Glen Mailer
I've been using sublime-paredit for a while, and the dodgy closing bracket behaviour has been bugging me - so it was nice to spot a fix in your key bindings file. Would you be able to submit this back upstream to the author? Cheers Glen On Saturday, 18 May 2013 21:36:21 UTC+1, James MacAulay w

Re: Utility libraries and dependency hygiene

2013-05-15 Thread Glen Mailer
At the risk of making a slight strawman here, I agree this issue has the potential to drag on Clojure adoption - but in the opposite way to what you describe. At the root of it, is the Clojure ecosystem a "dependencies are bad" system, or a "dependencies are good" system? The former encourages

Re: Utility libraries and dependency hygiene

2013-05-13 Thread Glen Mailer
Are dependencies the potential problem, or are "utility belt" dependencies the issue here? If its the latter, then should we be trying to break down the utility belt into groups of related functionality, which can be stable and focused. Promoting zero-dependency libraries just means re-inventin

Parallel let form

2013-04-27 Thread Glen Mailer
it. Now, to my actual questions: What are the differences between the pmap approach and the futures approach? And would a construction like this be useful in core? If so, how does it potentially get there? Thanks Glen Mailer Budding Clojurer -- -- You received this message because you are su