[ANN] Troncle: Emacs convenience functions for tracing clojure code

2013-11-12 Thread Alex Coventry
troncle Troncle is a proof-of-concept integration of clojure's tracing tools with emacs, built around technomancy's innovative nrepl-discover and a robust (very simple) code-walking/wrapping macro

Re: Confusing ArityExceptions from macros

2013-10-23 Thread Alex Coventry
anks, > James > > > On Thursday, October 17, 2013 1:14:21 PM UTC-5, Alex Coventry wrote: >> >> If you've ever had a confusing >> ArityException<http://clojure-log.n01se.net/date/2013-10-16.html#19:37> >> while >> working with macros, the reason may b

Confusing ArityExceptions from macros

2013-10-17 Thread Alex Coventry
If you've ever had a confusing ArityException while working with macros, the reason may be that clojure.lang.Compiler.macroexpand1 rethrows any ArityExceptions

Why does (send a f) hang in this code, if f returns an agent?

2012-05-26 Thread Alex Coventry
I was messing with the example at clojure.org/agents to get it to log which agents called which, and finally came up with (use 'clojure.pprint) (defn relay [x i agidx] (when (:next x) (send (:next x) relay i (:idx x))) (when (and (zero? i) (:report-queue x)) (.put (

Re: Would it be possible to make a "dumped" clojure, a la dumped emacs?

2010-03-24 Thread Alex Coventry
My impression from reading Remco van 't Veer's posts about his experience running clojure on Android is that it tends to be slow in general because introspection is expensive in Dalvik. So while you can sprinkle typehints throughout your own code, you really don't want to do that to the core, and

Would it be possible to make a "dumped" clojure, a la dumped emacs?

2010-03-23 Thread Alex Coventry
I am considering developing for Android using clojure, but I gather it's slow to start up. I'm wondering whether the startup delay would be substantially reduced in a "dumped" version of clojure. This would be an image which already contains initialized versions of most of the data structures clo