[ANN] kibit-helper.el 0.1.1 on melpa.org

2015-05-08 Thread James Elliott
If you are in the set of Clojure developers who use Emacs and the Kibit https://github.com/jonase/kibit Leiningen plugin, you may be interested in kibit-helper https://github.com/brunchboy/kibit-helper. I started out by submitting a small pull request to Kibit to fix the sample Emacs lisp code

Re: [ANN] Clojure 1.7.0-RC2

2015-06-22 Thread James Elliott
After using it all weekend, everything looks good for me. Thanks! On Wednesday, June 17, 2015 at 12:44:39 PM UTC-5, Alex Miller wrote: Clojure 1.7.0-RC2 is now available. Try it via - Download: https://repo1.maven.org/maven2/org/clojure/clojure/1.7.0-RC2/ - Leiningen: [org.clojure/clojure

Re: [ANN] Clojure 1.7.0-RC2

2015-06-19 Thread James Elliott
After some quick testing, everything is looking good for me. I will pound on it more heavily this weekend, and report back if that changes, although I do not expect it to. Thanks! On Wednesday, June 17, 2015 at 12:44:39 PM UTC-5, Alex Miller wrote: Clojure 1.7.0-RC2 is now available. Try it

Re: cider-error go to line

2015-07-03 Thread James Elliott
Yes, please comment in support of merging that patch! On Friday, July 3, 2015 at 12:52:20 AM UTC-5, Bozhidar Batsov wrote: This is a problem on nREPL, not CIDER. See http://dev.clojure.org/jira/browse/NREPL-59 for details. There aren't any real solutions to this, other than fixing nREPL,

Re: [ANN]: Matcha, a library for composable test assertions with human readable error messages

2015-05-26 Thread James Elliott
This looks pretty cool! One thing I wonder, though, why am I seeing all these \n values rather than actual newlines in the actual value, which would make the output so much easier to read? Is there any way to configure or use it differently that would avoid this issue? (This is with lein test

Re: [ANN]: Matcha, a library for composable test assertions with human readable error messages

2015-05-26 Thread James Elliott
Oh, sorry, here is my actual test: (m/is (m/has-entry-that :status (m/= 200)) (http/get http://localhost:12081/idp/status;)) -- 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

Re: [ANN]: Matcha, a library for composable test assertions with human readable error messages

2015-05-26 Thread James Elliott
The API docs need a little love too... It seems that the examples for has-nth are actually for has-count; the second example for both has-denominator and has-numerator are actually about nil?, the examples for has-key appear to actually be testing the values, not the keys, the examples for not

Re: Complete lack of helpful compilation errors with :gen-class

2015-08-03 Thread James Elliott
Indeed, I visited the page you cite while trying to pin down this problem. However, I am fairly certain that in my case it is a weird side effect, not a root cause: I get that message when compiling my Clojure file if I try to call a function which is defined later in the file. If I move the

Re: Complete lack of helpful compilation errors with :gen-class

2015-08-03 Thread James Elliott
solutions. Thanks, -James On Aug 3, 2015, at 09:41, Alex Miller a...@puredanger.com wrote: If you can create a small, reproducible test case (that does not require Leiningen), please file a ticket. On Monday, August 3, 2015 at 9:27:47 AM UTC-5, James Elliott wrote: Indeed, I visited

Re: Clojure beyond Java 6 ?

2015-08-08 Thread James Elliott
to just have functions/macros to wrap/define methods implementing java.util.function interfaces. Ideally, the compiler would support this better. This is the only one that really would require any change to Clojure itself for better Java 8 support IMO. I can understand James' (Elliott

Re: Decomplecting Clojure

2015-08-12 Thread James Elliott
Wow, this is fantastic, I now have a new link to send anyone who asks me why I find Clojure valuable. Thanks so much! As a small return of favor, may I point a few small things that look like editing errors? The last limitation bullet in the JVM section states “The JVM is not design with code

Re: Friendlier deploy rejection messages from Clojars

2015-08-12 Thread James Elliott
Nice! That will be very helpful. On Wednesday, August 12, 2015 at 5:50:55 AM UTC-5, Toby Crawley wrote: We just deployed some changes to Clojars that should make it more user-friendly when a deployment is rejected due to validation failures. Before this release, when you deployed an

[ANN] ola-clojure 0.1.0, Open Lighting Architecture from Clojure

2015-08-12 Thread James Elliott
In response to an excellent request from the Open Lighting Architecture team, I have separated the low-level communication library I developed for Afterglow into its own project, ola-clojure

Complete lack of helpful compilation errors with :gen-class

2015-08-02 Thread James Elliott
I don't know if this is an issue with the compiler in general, with Leiningen more specifically, or something I am doing wrong in trying to use them, but I have wasted many hours over the last couple weeks while working on afterglow-max https://github.com/brunchboy/afterglow-max#afterglow-max

Re: Complete lack of helpful compilation errors with :gen-class

2015-08-03 Thread James Elliott
Yay, this is the kind of insight I was hoping for! ^_^ On Monday, August 3, 2015 at 9:49:17 AM UTC-5, Mars0i wrote: Ah--if that's the problem, it sounds familiar. Try doing 'lein clean' before 'lein compile' and see whether you get the same error. That's assuming you have

Re: Complete lack of helpful compilation errors with :gen-class

2015-08-03 Thread James Elliott
a linkage error like this before and I'm not aware of any ticket like this. Generally a linkage error indicates you are seeing the wrong version of a class loaded by a different classloader. On Monday, August 3, 2015 at 9:47:10 AM UTC-5, James Elliott wrote: Wow, that is a challenge, Alex! I

Re: Clojure beyond Java 6 ?

2015-08-07 Thread James Elliott
This fact has become hugely important for me, as it allowed me to host my Clojure-based lighting control system inside Cycling ’74’s Max visual data-flow environment for music, synthesis and video. Their Java integration on the Mac currently requires the use of the legacy Apple VM, which is

[ANN] Afterglow 0.1.0, an open-source live-coding Clojure environment for light shows

2015-07-19 Thread James Elliott
I just released version 0.1.0 of Afterglow so that other interested people can start exploring it. I simply cannot believe I have been able to create a system like this in a couple of months, after being inspired by the example of Overtone. Thank you, Clojure community, for making software

Re: [:ann :book] ClojureScript Unraveled

2015-07-20 Thread James Elliott
This looks like it will be great when I am ready to dive into ClojureScript! Thanks for writing it. One quick erratum you may want to jump on, since it rather sticks out: The title of Section 4.4 is missing a “t” at the end. On Friday, July 17, 2015 at 12:30:34 PM UTC-5, Alejandro Gómez wrote:

Re: Examples of core.async usage in production?

2015-11-09 Thread James Elliott
We have as well, for a similar time frame. And, separately, I don’t know if you would consider it “production” or “server” since it is a completely different realm, but my open-source live-coding environment for creating light shows with theatrical lighting hardware uses core.async as well. On

Cryptic crashes in Leiningen

2015-11-08 Thread James Elliott
This weekend I was thrilled to have two people pick up and start experimenting with Afterglow, the live-coding light show software I’ve been working on this year, and both are new to Clojure as well. Unfortunately one is stuck and I am stumped about how to try to help: He’s been able to use

Re: Cryptic crashes in Leiningen

2015-11-08 Thread James Elliott
t clojure.lang.Compiler$BodyExpr$Parser.parse(Compiler.java:5861) > ... > > I'm not sure what's causing leiningen to omit the full stacktrace, but > it's possible you can get to it with *e from the repl, since you're doing a > dynamic require. > > In this case, w

Re: core.cache limits?

2015-11-02 Thread James Elliott
And yes, the first time you look at the details of map destructuring for optional keyword arguments in Clojure functions it can be a bit confusing, but it is such a handy idiom once you get used to it. On Monday, November 2, 2015 at 5:53:33 PM UTC-6, James Elliott wrote: > > If you rea

Re: core.cache limits?

2015-11-02 Thread James Elliott
If you really do want to set both parameters, you need both to be keywords, i.e: (f :s-history-limit 1000 :q-history-limit 1000) That may have just been a typo in your posting, but I wanted to be sure it was not also in your code. -James On Monday, November 2, 2015 at 5:11:03 PM UTC-6,

Re: deprecation warnings?

2015-10-20 Thread James Elliott
Sweet, I’m starting to really look forward to that release. :D On Monday, October 19, 2015 at 10:54:04 AM UTC-5, Lars Andersen wrote: > > Font-locking of deprecated vars was just added to CIDER. It's available > in snapshots now, and will be included in 0.10. > > On Wednesday, October 14, 2015

Re: core.async mult "damaged" on reload

2015-11-14 Thread James Elliott
If I understand what you’re saying, then it sounds like you are reloading a protocol definition, which creates a new protocol with the same name as the old protocol, but they are different things. Old objects which implement the old protocol do not implement the new protocol, even though it

Filter predicates and side-effects

2015-09-02 Thread James Elliott
I notice that the documentation for filter and filterv are emphatic that the predicate you are using be free of side effects. Why is that so? For example, I would like to use filterv to collect a list of lighting effects which respond false to a protocol method which asks whether they have

Re: Filter predicates and side-effects

2015-09-02 Thread James Elliott
sequence. This means that it's not guaranteed to eagerly perform > your side-effects, unless you wrap it in `doall`. > > On Wed, Sep 2, 2015 at 8:48 AM, James Elliott <brun...@gmail.com > > wrote: > >> I notice that the documentation for filter and filterv are emphatic that &g

Re: Live rendering of AsciiDoc files in Chrome browser

2015-09-02 Thread James Elliott
Wow, thank you, this is fantastic! I have been developing an extensive set of AsciiDoc documentation (having been forced to transition from FrameMaker to DocBook XML, then driven by its complexity to Markdown, and frustrated by its limitations to AsciiDoc), but found it frustrating that I had

Re: is there a way I can use a co-worker's uberjar without unpacking it to ./.m2?

2015-09-14 Thread James Elliott
To hopefully help address another aspect of your question: This local repo is *not* inside ~/.m2 It is a directory that can be part of your project, and checked into git along with it. You just tell Leiningen where to find it using something like this: :repositories {"project"

Re: cider-error go to line

2015-09-16 Thread James Elliott
W00t, look at what just was released! :D https://github.com/clojure/tools.nrepl/commit/64238a10a8465e0c590acb660ec5d54bf7cc3af4 On Friday, July 3, 2015 at 1:59:23 PM UTC-5, Ritchie Cai wrote: > > Ah, ha, good to know I'm not crazy. For sure I'm join the voices to push > the changes on nrepl

Puzzlement over closing core.async channels asynchronously

2015-09-17 Thread James Elliott
We’ve been watching Timothy Baldridge’s great O’Reilly video series on core.async, but are perplexed by one of the examples. In lecture 14 on tuning back-pressure, he introduces a function map-pipe for giving a channel a pipeline of work to do, and then as the final step, adds the ability to

Re: Puzzlement over closing core.async channels asynchronously

2015-09-17 Thread James Elliott
ipeline with > a map transducer. > > And yes, the 0 vs 1 thing is a typeo. I'll have to see if there is a way I > can submit some errata to O’Reilly. Thanks for the report. > > Timothy Baldridge > > On Thu, Sep 17, 2015 at 2:40 PM, James Elliott <brun...@gmail.com > > wro

Re: [ANN] Leiningen 2.5.3

2015-09-24 Thread James Elliott
Awesome! I got the Homebrew recipe updated to include this (there were some additional changes needed to accommodate their new sandbox mechanism on their Continuous Integration server), so now everyone using Homebrew is past the GPG issue, and I can be back on their mainline release. On

Re: [ANN] Clojure 1.8.0-RC3

2015-12-08 Thread James Elliott
I’ve been working with it for a few days and have seen no issues yet. On Wednesday, December 2, 2015 at 10:03:31 AM UTC-6, Alex Miller wrote: > > Clojure 1.8.0-RC3 is now available. *This build is a "release candidate"!* We > would appreciate any and all testing you can do on your own libraries

Re: lein cljsbuild once works, but another build method doesn't -- ?

2016-01-05 Thread James Elliott
Indeed. If your project has dependencies that are being managed by Leiningen, you probably want to use Leiningen to run it (so that the classpath can be set properly to include all those dependencies; it can vet very long), or tell Leiningen to build an uberjar that embeds both your code and

Re: [ANN] Clojure 1.8.0-RC4 is now available

2015-12-20 Thread James Elliott
This release candidate appears to be working fine for me, as have the previous ones. On Wednesday, December 16, 2015 at 3:45:21 PM UTC-6, Alex Miller wrote: > > Clojure 1.8.0-RC4 is now available. *This build is a "release candidate"!* We > would appreciate any and all testing you can do on

Re: Clojars maintenance this weekend

2015-12-19 Thread James Elliott
I second both of those thanks. And what timing, I just happen to be catching up on this mailing list right as the upgrade is happening, so I am perfectly forewarned. I hope it goes smoothly! Also, evidence of karma? Shortly after contributing to the Clojars Bountysource campaign, I received an

Re: gen-class: override only 1 method of an arity-overloaded method of a (Java) superclass

2015-12-27 Thread James Elliott
I don’t have a ton of experience with gen-class, but I think you need to tell it to expose the superclass methods you want to call using :exposes-methods, as described in http://stackoverflow.com/questions/9060127/how-to-invoke-superclass-method-in-a-clojure-gen-class-method In case it is of

Re: [ANN] Clojure 1.8.0-RC5

2016-01-11 Thread James Elliott
I’ve done some testing and Afterglow appears to work fine with this latest release candidate as well. On Monday, January 11, 2016 at 8:52:11 AM UTC-6, Alex Miller wrote: > > Clojure 1.8.0-RC5 is now available. > > *This is likely the final "release candidate" for 1.8. Please test this > build

Re: java.lang.IllegalArgumentException: Parameter declaration make-response should be a vector

2016-01-09 Thread James Elliott
That is puzzling indeed. There doesn’t seem to be anything wrong with the function itself, as you say. I can evaluate it and run it. There must be some other element of your environment which you have not shared here which is throwing sand in the gears. On Sunday, January 10, 2016 at 1:28:00

Re: java.lang.IllegalArgumentException: Parameter declaration make-response should be a vector

2016-01-10 Thread James Elliott
(make-response company-name >> outputSpeech-text false)] >> >> In some other function, and the compiler feels that I am defining a new >> arity for that other function? But then I would expect to see the name of >> the other function. >> >> >> On Sund

Re: [ANN] Truss, an assertions lib for Clojure/Script

2016-01-13 Thread James Elliott
Wow, this feels exactly right. I am eager to start using it, and delighted it will be so easy. On Wednesday, January 13, 2016 at 12:21:53 AM UTC-6, Peter Taoussanis wrote: > > BTW have had some folks comment on the length of the video. > > This wasn't clear, so will point it out now: if you're

Re: Undocumented reader macros?

2016-02-10 Thread James Elliott
Understood! I am certainly not diving in to submit pull requests to add features. On Wednesday, February 10, 2016 at 10:43:25 AM UTC-6, Andy Fingerhut wrote: > > It may be as finished as it will ever be. > > Andy > > On Wed, Feb 10, 2016 at 8:35 AM, James Elliott <brun...

Re: Undocumented reader macros?

2016-02-10 Thread James Elliott
will give up on it until/unless it gets finished and becomes official. :) On Monday, February 8, 2016 at 9:49:57 PM UTC-6, James Elliott wrote: > > Quite dissonant, I mean, derp. > > On Monday, February 8, 2016 at 9:49:28 PM UTC-6, James Elliott wrote: >> >> Oh, I see…

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

2016-02-09 Thread James Elliott
on, we are looking into > further improving this area, watch > https://github.com/clojure-emacs/refactor-nrepl/issues/134 (slightly > misleading title) for discussion around it. > > On Monday, February 8, 2016 at 6:10:22 PM UTC, James Elliott wrote: >> >> Thank you a

Re: Scripting with Clojure / "slow" boot time

2016-02-09 Thread James Elliott
I don’t have any examples to share, I just wanted to thank you for doing this. It is really wonderful to see how responsive Clojure is to community input and concerns, and the launch of an effort like this so quickly in response to the survey feedback. On Tuesday, February 9, 2016 at 12:36:43

Re: Undocumented reader macros?

2016-02-08 Thread James Elliott
: > > Rich has never committed to officially making this part of Clojure so it > has been left as an undocumented feature. > > On Monday, February 8, 2016 at 12:33:44 PM UTC-6, James Elliott wrote: >> >> I learned recently <http://stackoverflow.com/a/15332367/802383>

Re: Undocumented reader macros?

2016-02-08 Thread James Elliott
Quite dissonant, I mean, derp. On Monday, February 8, 2016 at 9:49:28 PM UTC-6, James Elliott wrote: > > Oh, I see… interesting. What would it take to achieve commitment? :) I > humbly submit that it feels qiote dissonant to stumble across something > like this in a language that

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

2016-02-08 Thread James Elliott
Thank you all! I have been watching progress on the Gitter chat and am very excited to be able to use all the great new features in this amazing package. The fact that I am now warned when the project needs to be re-evaluated, and that I can recover from issues with my protocols being

Undocumented reader macros?

2016-02-08 Thread James Elliott
I learned recently that you can tell the reader to evaluate a function at read time, if you want some potentially costly operation that you know will result in a constant value to be done just once, rather than every time the surrounding form is

Re: [ANN] Leiningen 2.6.0

2016-02-08 Thread James Elliott
Thanks, I’ve created a PR to update the version in homebrew (this time I checked to make sure nobody else had already done so first... *blush*) -James On Monday, February 8, 2016 at 12:06:32 PM UTC-6, Jean Niklas L'orange wrote: > > Hi all, > > Instead of creating a new thread for the 2.6.1

Re: [ANN] dali SVG library 0.7.0

2016-02-12 Thread James Elliott
I agree, lovely indeed--I am already being tempted to learn to use it to just create some diagrams for my own documentation! Thank you. On Wednesday, February 10, 2016 at 7:40:57 PM UTC-6, Colin Fleming wrote: > > This looks really lovely, thanks! > > On 11 February 2016 at 13:51, Stathis

Re: Clojure beyond Java 6 ?

2016-01-19 Thread James Elliott
, 2015 at 1:03:38 PM UTC-5, Andrew Oberstar wrote: > > [...] > I can understand James' (Elliott) desire to keep Java 6 compatibility for > platforms that are slower to adopt newer JVMs, but I hope that doesn't > become an excuse for Clojure to stay moored to the JVM's past for t

Re: Clojure beyond Java 6 ?

2016-01-19 Thread James Elliott
> On 8 August 2015 at 20:52, James Elliott <brun...@gmail.com > > wrote: > >> That sounds like a great project. And I know that in the medium to long >> term, even if Clojure continues to support Java 1.6, eventually Apple will >> stop supporting their legacy VM

Re: [ANN] Elements of Clojure

2016-03-18 Thread James Elliott
That’s excellent! I had high hopes after watching your keynote on this topic, and the chapter has more than lived up to my expectations. I’ve bought the book in anticipation of the remaining chapters. Leanpub looks like a really interesting platform! I thought about converting my Afterglow

Re: XOR two arrays into a third on Clojure

2016-03-12 Thread James Elliott
Interesting! This is the first time I have had to drop out of Clojure for performance reasons. It is not too surprising, given that I am doing low-level byte bashing in a tight loop to send pixels to a display over USB at sixty frames per second. But it is surprising that nothing like this has

Re: XOR two arrays into a third on Clojure

2016-03-14 Thread James Elliott
m/mikera/imagez > > New ideas / PRs gratefully received! > > On Sunday, 13 March 2016 04:14:34 UTC+8, James Elliott wrote: > Interesting! This is the first time I have had to drop out of Clojure for > performance reasons. It is not too surprising, given that I am doing > l

Re: Emacs cider mode has problems with macros

2016-03-19 Thread James Elliott
You might have better luck asking in the cider-emacs group, https://groups.google.com/forum/#!forum/cider-emacs or even more active, the Gitter chat: https://gitter.im/clojure-emacs/cider -James On Wednesday, March 16, 2016 at 3:01:23 PM UTC-5, JvJ wrote: > > > > Something unusual happens

Re: Unum in Clojure/ClojureScript?

2016-05-03 Thread James Elliott
Heh! I just read about these in an email from ACM, and found your post by searching this Group for UNUM. It looks like not yet, but perhaps we should do something about that? The article which excited me: http://ubiquity.acm.org/article.cfm?id=2913029 On Friday, November 6, 2015 at 8:23:35 AM

Re: Unum in Clojure/ClojureScript?

2016-05-03 Thread James Elliott
possible. Think about ways to represent > pi for a bit! > > -Jason > > > On Tue, May 3, 2016 at 5:51 PM, James Elliott <brun...@gmail.com > > wrote: > >> Heh! I just read about these in an email from ACM, and found your post by >> searching this Gr

Re: Recur in an overloaded function does not work?

2016-04-18 Thread James Elliott
And the reason for this is to be able to simulate tail-call optimization even though the Java VM doesn’t natively support that; recur can allow you to express things in a style that looks recursive, but does not suffer from stack space limitations that actual recursive calls do. If you actually

Re: Recur in an overloaded function does not work?

2016-04-19 Thread James Elliott
But recur does not do that. Recur does not call a function at all. It is the opposite of calling a function, it says “I want to loop, without the overhead of calling a function and creating a stack frame.” Recur is even used outside of functions entirely; it is how you iterate using the (loop

Re: Recur in an overloaded function does not work?

2016-04-20 Thread James Elliott
Does trampoline really help in this case? I don’t see where we are ever returning a new function for trampoline to call, avoiding a new stack frame. It seems to me no different than simply calling the other arities directly in this example. What am I missing? On Wednesday, April 20, 2016 at

Re: Use latest stable

2016-07-15 Thread James Elliott
I was going to recommend the same thing! I used to use lein ancient all the time, but now love how VersionEye keeps track of all my open source projects for me so I don’t have to do that. That became even more important as the projects started spinning off other projects. :) On Friday, July

Sneaky ways to get people to learn Clojure

2016-07-02 Thread James Elliott
As a spinoff from Afterglow , my Clojure-based live-coding environment for light shows, I’ve created a library that facilitates synchronizing things with Pioneer’s professional DJ equipment.