ANN: Robert Hooke

2010-06-10 Thread Phil Hagelberg
I just released this library for allowing functionality to be extended via plugins: (use 'robert.hooke) (defn examine [x] (println x)) (defn microscope "The keen powers of observation enabled by Robert Hooke allow for a closer look at any object!" [f x]

Re: Interface to integrate transactions with Clojure transactions

2010-06-10 Thread Antony Blakey
On 11/06/2010, at 7:28 AM, James Reeves wrote: > On 10 June 2010 22:40, Michael Jaaka wrote: >> Not good, since if database commit fail it is too late for dosync to >> rollback. >> In fact database commit should somehow cooparate with dosync commit >> which is just a case of distributed transact

Re: Interface to integrate transactions with Clojure transactions

2010-06-10 Thread James Reeves
On 10 June 2010 22:40, Michael Jaaka wrote: > Not good, since if database commit fail it is too late for dosync to > rollback. > In fact database commit should somehow cooparate with dosync commit > which is just a case of distributed transaction. You're right. In which case, I don't believe ther

About wrapping Java libraries.

2010-06-10 Thread Nicolas Buduroi
Hi, I've been working on some Java libraries wrappers lately and came up with patterns on how to clojurize them. I'm wondering if you guys got other such patterns? Here's what I came up with: (import 'java.lang.reflect.Modifier) (defn clojurize-name [name] (apply str (interpose "-" (

Re: Interface to integrate transactions with Clojure transactions

2010-06-10 Thread James Reeves
On 10 June 2010 11:26, Michael Jaaka wrote: > Is there any way to integrate database transaction with Clojure > transaction? > It would be nice if operations done in memory and on database would be > commited atomicly with the end of transaction scope in Clojure. > Such interface had to be also aw

Re: Interface to integrate transactions with Clojure transactions

2010-06-10 Thread Michael Jaaka
Not good, since if database commit fail it is too late for dosync to rollback. In fact database commit should somehow cooparate with dosync commit which is just a case of distributed transaction. On 10 Cze, 23:11, James Reeves wrote: > On 10 June 2010 11:26, Michael Jaaka wrote: > > > Is there

Re: After waiting for agents, something still hanging around?

2010-06-10 Thread Jim Menard
Alex, Great article. Thanks for posting the link. On Thu, Jun 10, 2010 at 11:09 AM, Alex Miller wrote: > You might be interested in a post I just put up related to agents and > the background thread pools and some possible improvements: > > http://tech.puredanger.com/2010/06/08/clojure-agent-thr

Re: New Clojure web application launched: DocuHarvest

2010-06-10 Thread Chas Emerick
On Jun 10, 2010, at 7:55 AM, Rick Moynihan wrote: On 10 June 2010 12:32, Chas Emerick wrote: Thanks very much, esp. for the 'nice looking' compliment. I've heard otherwise as well, so we'll have to see what happens when I get a "real" designer in to take a crack at things -- not a super-hi

Re: contrib command-line

2010-06-10 Thread Dave Pawson
On 10 June 2010 12:57, Steve Purcell wrote: > On 10 Jun 2010, at 12:22, Dave Pawson wrote: > >> http://richhickey.github.com/clojure-contrib/command-line-api.html >> >> Where might I find information on the 'cmdspec' mentioned please? > > > If you click on the "source" link there is a nice example

Re: After waiting for agents, something still hanging around?

2010-06-10 Thread Alex Miller
You might be interested in a post I just put up related to agents and the background thread pools and some possible improvements: http://tech.puredanger.com/2010/06/08/clojure-agent-thread-pools/ IMHO, using agents should not prevent your JVM from exiting or require the use of (shutdown-agents).

Re: Bug in prim branch?

2010-06-10 Thread David Nolen
Oh sorry this if you want swank-clojure to work with the prim branch. On Thu, Jun 10, 2010 at 10:56 AM, David Nolen wrote: > Here's the patch. > > > http://github.com/swannodette/swank-clojure/commit/8c6a037c9b62edc83c852673523e95a0b14acece > > On Thu, Jun 10, 2010 at 12:10 AM, David Nolen wrote:

Re: Bug in prim branch?

2010-06-10 Thread David Nolen
Here's the patch. http://github.com/swannodette/swank-clojure/commit/8c6a037c9b62edc83c852673523e95a0b14acece On Thu, Jun 10, 2010 at 12:10 AM, David Nolen wrote: > (defn foo [#^ARef wah]) -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to

Re: contrib command-line

2010-06-10 Thread Dave Pawson
On 10 June 2010 12:57, Steve Purcell wrote: > On 10 Jun 2010, at 12:22, Dave Pawson wrote: > >> http://richhickey.github.com/clojure-contrib/command-line-api.html >> >> Where might I find information on the 'cmdspec' mentioned please? > > > If you click on the "source" link there is a nice example

After waiting for agents, something still hanging around?

2010-06-10 Thread Jim Menard
I have a small test app that uses agents. After I wait for all agents to complete, the app does not exit but hangs. I'm not sure what it's waiting for. What is it waiting for, or what am I doing wrong? (ns agent-test) (defn do-something [a] (println "something!")) (defn run-example [] (p

Re: After waiting for agents, something still hanging around?

2010-06-10 Thread Jim Menard
On Thu, Jun 10, 2010 at 10:31 AM, Meikel Brandmeyer wrote: > Hi, > > see > http://richhickey.github.com/clojure/clojure.core-api.html#clojure.core/shutdown-agents Thank you. That works. Is calling shutdown-agents after using any agents required for all apps, or just those that await like my litt

Re: After waiting for agents, something still hanging around?

2010-06-10 Thread Meikel Brandmeyer
Hi, see http://richhickey.github.com/clojure/clojure.core-api.html#clojure.core/shutdown-agents Sincerely Meikel -- 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 from new

Re: use within a let

2010-06-10 Thread lance bradley
Thanks Laurent, that explains it. On Jun 9, 1:40 pm, Laurent PETIT wrote: > Hello, > > for seqable? to be recognized by the reader, the use call should have > been evaluated. > But being part of the same compilation block as seqable, use is read, > but not yet executed. > > HTH, > > -- > Laurent

Re: Complex type in clojure

2010-06-10 Thread Daniel
> I'd happily join a "Clojure maths interest group" to work on such problems! According to this survey math and data analysis occupies 39% of Clojure's Problem Domain. In other words a lot of other Clojure developers are interested in this too. http://muckandbrass.com/web/display/~cemerick/2010/

Re: contrib command-line

2010-06-10 Thread Steve Purcell
On 10 Jun 2010, at 12:22, Dave Pawson wrote: > http://richhickey.github.com/clojure-contrib/command-line-api.html > > Where might I find information on the 'cmdspec' mentioned please? If you click on the "source" link there is a nice example at the bottom. -Steve -- You received this message

Re: New Clojure web application launched: DocuHarvest

2010-06-10 Thread Rick Moynihan
On 10 June 2010 12:32, Chas Emerick wrote: > Thanks very much, esp. for the 'nice looking' compliment.  I've heard > otherwise as well, so we'll have to see what happens when I get a "real" > designer in to take a crack at things -- not a super-high priority at the > moment, since the site is usab

Re: New Clojure web application launched: DocuHarvest

2010-06-10 Thread Chas Emerick
Thanks very much, esp. for the 'nice looking' compliment. I've heard otherwise as well, so we'll have to see what happens when I get a "real" designer in to take a crack at things -- not a super-high priority at the moment, since the site is usable without wincing, at the very least :-)

contrib command-line

2010-06-10 Thread Dave Pawson
http://richhickey.github.com/clojure-contrib/command-line-api.html Where might I find information on the 'cmdspec' mentioned please? TIA -- Dave Pawson XSLT XSL-FO FAQ. Docbook FAQ. http://www.dpawson.co.uk -- You received this message because you are subscribed to the Google Groups "Clojure

Interface to integrate transactions with Clojure transactions

2010-06-10 Thread Michael Jaaka
Hi! Is there any way to integrate database transaction with Clojure transaction? It would be nice if operations done in memory and on database would be commited atomicly with the end of transaction scope in Clojure. Such interface had to be also aware of changes made by concurrent transactions, so

Re: PDF generation with Clojure?

2010-06-10 Thread soyrochus
I am using Clojure to prototype integration of JasperReports in Spring. That works very well. JasperReports is a quite capable report generator/library (Open Source with commercial support) which allows for the generation of pdf, MS Office ((MS Word, Excel, Powerpoint) and Open Office documents et

Re: Clojure Enhancement Proposals or "wish list"

2010-06-10 Thread Dave Pawson
On 9 June 2010 23:00, David Nolen wrote: > On Wed, Jun 9, 2010 at 4:25 PM, frantz wrote: >> >> I would like to know if there is "Clojure Enhacements Proposals" list >> ("wish list"). I would like to add something. >> >> Best wishes, Franis. > > user> (= mailing-list wish-list) > true > ;) Fast b