Re: [ANN] Book "The Clojure Standard Library - Annotated Reference"

2016-12-07 Thread Ryan Fowler
I love the idea. ​A gotchas section of some sort could be useful. For instance, a detail about `case` to consider mentioning is that Java Constants don't work as tests. ryans-mbp:~% cat test.clj (let [incoming-character Character/LINE_SEPARATOR] (println "case w/ constant" (case inco

Re: lein repl and own functions

2016-07-14 Thread Ryan Fowler
you might find success with putting some injections in your ~/.lein/profiles.clj file. {:user {:injections [(defn foo[] (println "foo"))]}} On Thu, Jul 14, 2016 at 1:13 PM, Cecil Westerhof wrote: > 2016-07-14 20:06 GMT+02:00 Timothy Baldridge : > >> There probably is, since the user.clj file c

Re: instrumenting clojure.core

2016-06-12 Thread Ryan Fowler
> On Jun 12, 2016, at 10:45 AM, Alex Miller wrote: > > Still much to be determined about this but I expect that specs for core will > be provided and maintained by us, because while there are a lot of obvious > specs in core, there are also a lot of far more subtle ones. I think this is the ri

instrumenting clojure.core

2016-06-12 Thread Ryan Fowler
Is there an effort to write specs for Clojure's core namespaces? Apologies if this has already been addressed. I've been tinkering with trivial (and probably wrong) fdefs on clojure.core/map and clojure.core/identity. It seems that the spec exception messages are way better than what we have now.

Re: [ANN] HugSQL 0.4.0 release

2016-02-15 Thread Ryan Fowler
Great release, Curtis! I'm looking forward to cleaning up some of my composition hacks. On Mon, Feb 15, 2016 at 8:04 AM, Curtis Summers < curtis.summ...@layerware.com> wrote: > I'm happy to announce the 0.4.0 release of HugSQL. > > HugSQL is a Clojure library for embracing SQL in your projects.

Re: Scripting with Clojure / "slow" boot time

2016-02-11 Thread Ryan Fowler
On Tue, Feb 9, 2016 at 12:36 PM, Alex Miller wrote: > I'm doing some research on slow Clojure boot time and would be interested > in collecting info about example use cases where it's been a problem for > people. > ​The following snippet helps me visualize load times. It might be helpful to othe

Re: java.lang.NoSuchFieldError: __thunk__0__

2016-01-25 Thread Ryan Fowler
2016 at 11:21:17 PM UTC, Ryan Fowler wrote: >> >> I've got a head-scratcher. >> >> A combination of aot compiling, ring-jetty, slf4j-timbre, timbre and >> core.async causes "java.lang.NoSuchFieldError: __thunk__0__" >> >> I've created a

java.lang.NoSuchFieldError: __thunk__0__

2016-01-15 Thread Ryan Fowler
I've got a head-scratcher. A combination of aot compiling, ring-jetty, slf4j-timbre, timbre and core.async causes "java.lang.NoSuchFieldError: __thunk__0__" I've created a repo that reproduces the problem for me, but I'm out of my depth at this point. Unfortunately I couldn't seem to get rid of a

Re: [Clojurescript] .getElementById returns NULL

2016-01-03 Thread Ryan Fowler
On Sun, Jan 3, 2016 at 8:04 PM, Nathan Smutz wrote: > > (.log js/console (. js/document getElementById "test-content")) > > ​I suspect you need something more like this: ​ (.log js/console (.getElementById js/document "test-content"))​ -- You received this message because you are subscribe

Re: adding clojure.test/assert-expr methods

2012-10-09 Thread Ryan Fowler
Thanks! It all works. Now I'm killing myself trying to figure out what the heck I was doing wrong. Ryan On Tuesday, October 9, 2012 7:44:06 PM UTC-5, Stuart Sierra wrote: > > clojure.test is weird (my fault) but I don't think it's that weird. > > Your 'defmethod' is correct, but it shouldn't ne

adding clojure.test/assert-expr methods

2012-10-09 Thread Ryan Fowler
I'm trying to add some clojure.test/assert-expr methods to help with failure reporting and I can't find much information on the topic. I'm wondering if I'm on the right track. The only way I've been able to get it to work is if the defmethod happens with *ns* bound to 'clojure.test. The followi