Re: How to import classes from a runtime-defined ClassLoader?

2013-04-23 Thread tbatchelli
This worked for me: (with-bindings {clojure.lang.Compiler/LOADER dcl} ...) (from: http://stackoverflow.com/questions/10941330/class-forname-in-clojure-not-respecting-contextclassloader ) On Wednesday, February 27, 2013 9:45:32 AM UTC-8, dgrnbrg wrote: > > I am trying to include some Groovy co

Re: Implementing a protocol with using a base implementation?

2010-08-21 Thread tbatchelli
That was it. I didn't think that calling the method directly on the record would use reflection. (dotimes [_ 10] (time (dotimes [_ 1] (m1 my-simple-P "hello" "Elapsed time: 14.765 msecs" "Elapsed time: 5.347 msecs" "Elapsed time: 21.427 msecs" "Elapsed time: 7.267 msecs" "Elapsed time: 2.

Implementing a protocol with using a base implementation?

2010-07-16 Thread tbatchelli
Hi all, I am writing a network protocol handler based on events (to wrap netty, if you're curious). I created a protocol that defines the functions needed to handle every possible (channel) event: (defprotocol channel-handler-strategy (message-received [this ctx evt]) (exception-caught [this

Re: Databases for a Concurrent World

2010-07-09 Thread tbatchelli
Hi David, Out of curiosity, how are these tests connecting to the database, especially in the cases of MongoDB and CouchDB? In the case of CouchDB you're clearly using HTTP in a way that it creates one connection per request, I believe. In the case of MongoDB, the driver provides a connection pool

Re: Funding Clojure 2010

2009-12-14 Thread tbatchelli
Thanks for bringing back the joy of programming to my life. I contributed and I hope to be able to give more as a business endeavor in the near future (crossing fingers) Good luck with the drive! It *must* pan out. Toni http://disclojure.org On Dec 14, 6:33 am, Rich Hickey wrote: > Funding Cloj