Re: ANN: Jark 0.3 (using the nrepl protocol)

2011-05-07 Thread isaac praveen
Chas, Thanks for nREPL. It is a very useful tool. -- isaac http://icylisper.in -- 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 members are moderated - please be

Re: ANN: Jark 0.3 (using the nrepl protocol)

2011-05-07 Thread Laurent PETIT
Yeah, nrepl support for CCW, which Chas personnally did, has been an incredibly valuable addition. I'm glad to see more tools adopting it for backend support ! 2011/5/7 isaac praveen : > Chas, > > Thanks for nREPL. It is a very useful tool. > > -- > isaac > http://icylisper.in > > -- > You receiv

Re: ANN: Jark 0.3 (using the nrepl protocol)

2011-05-07 Thread isaac praveen
On Sat, May 7, 2011 at 5:50 PM, Laurent PETIT wrote: > Yeah, nrepl support for CCW, which Chas personnally did, has been an > incredibly valuable addition. > > I'm glad to see more tools adopting it for backend support ! > I agree. Also, the nrepl-server itself should be bundled with some basic

Re: ANN: Jark 0.3 (using the nrepl protocol)

2011-05-07 Thread isaac praveen
> b) a set of extensible utilities to manage classpaths, namespaces, JVM  both > on Oops. I meant : A set of extensible utilities to manage classpaths, namespaces, JVM etc , remotely. -- isaac -- You received this message because you are subscribed to the Google Groups "Clojure" group. To pos

Re: ANN: Jark 0.3 (using the nrepl protocol)

2011-05-07 Thread Chas Emerick
On May 7, 2011, at 10:01 AM, isaac praveen wrote: > On Sat, May 7, 2011 at 5:50 PM, Laurent PETIT wrote: >> Yeah, nrepl support for CCW, which Chas personnally did, has been an >> incredibly valuable addition. >> >> I'm glad to see more tools adopting it for backend support ! >> > > I agree.

What is the purpose of the Identity function?

2011-05-07 Thread Base
At the risk of sounding completely dense, I am having a hard time understanding the purpose of the Identity function. As far as I can tell all it does is return what is passed to it. Review code I see it used all the time, and cannot understand why it is needed. Any insight? Thanks Base -- Y

Re: What is the purpose of the Identity function?

2011-05-07 Thread Alfredo
My two cents: You can use it with the operator ->, in order to pass something to another function, or for propagating an input of some sort. It sounds sensed? Bye, Alfredo -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send em

Re: What is the purpose of the Identity function?

2011-05-07 Thread Ulises
I usually use identity as a predicate for functions such as filter, drop-while, take-while, etc. Consider this silly example: imagine you had an operation that fetches stuff from a resource (DB, network, etc.) and that upon failing it returns nil. Additionally, imagine that you're interested in ru

Re: What is the purpose of the Identity function?

2011-05-07 Thread Ambrose Bonnaire-Sergeant
I just grepped the clojure source code and an interesting use is in walk.clj https://github.com/clojure/clojure/blob/master/src/clj/clojure/walk.clj#L62 `walk` has flexibility with higher order functions, but identity helps with the simple case of just returning the forms elegantly. I thought it

Re: ANN: Jark 0.3 (using the nrepl protocol)

2011-05-07 Thread Meikel Brandmeyer
Hi, Am 07.05.2011 um 16:48 schrieb Chas Emerick: >> We haven't started on a VimClojure nREPL fork yet. >> >> We should probably ask Meikel if he's already tackled it, there is a "nrepl" >> tag on >> bitbucket but it's about 6 months old. >> https://bitbucket.org/kotarak/vimclojure/overview >

Re: What is the purpose of the Identity function?

2011-05-07 Thread Meikel Brandmeyer
Hi, you can also use it to do funny stuff with juxt. (map (juxt identity f) some-seq) 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 members ar

Re: ANN: Jark 0.3 (using the nrepl protocol)

2011-05-07 Thread Ambrose Bonnaire-Sergeant
Thanks for letting us know Meikel. These are similar issues that we have encountered with the jark client. We are planning to rewrite it in Haskell (currently Python), I'm sure there will be similarities between a potential VimClojure client. I have tried to tinker with VimClojure but sadly never

Re: ANN: Jark 0.3 (using the nrepl protocol)

2011-05-07 Thread isaac praveen
Chas, > nREPL + jark + some baseline set of introspection utilities and such (started > to be described here: > http://dev.clojure.org/display/design/IDE+tooling+backend) is looking like a > proper foundation for Clojure tooling, regardless of platform/editor/etc. Awesome. > FWIW, I'd like to

Re: ANN: Jark 0.3 (using the nrepl protocol)

2011-05-07 Thread Laurent PETIT
2011/5/7 isaac praveen : > On Sat, May 7, 2011 at 5:50 PM, Laurent PETIT wrote: >> Yeah, nrepl support for CCW, which Chas personnally did, has been an >> incredibly valuable addition. >> >> I'm glad to see more tools adopting it for backend support ! >> > > I agree. > > Also, the nrepl-server its

Re: ANN: Jark 0.3 (using the nrepl protocol)

2011-05-07 Thread Laurent PETIT
Maybe a silly question, but anyway ... for CCW, there is this idea of having it maintain, for each open project (probably depending on a flag, but that's out of topic), in the background (totally transparently for the user), a running JVM environment where CCW would maintain the project classes an

Re: ANN: Jark 0.3 (using the nrepl protocol)

2011-05-07 Thread David Nolen
On Sat, May 7, 2011 at 12:50 PM, isaac praveen wrote: > Sure. We need very powerful clojure development and deployment tools. > My request for subscription to clojure-dev got declined :( > Send in a CA! :) David > -- You received this message because you are subscribed to the Google Groups "

Re: What is the purpose of the Identity function?

2011-05-07 Thread Sean Corfield
On Sat, May 7, 2011 at 8:51 AM, Base wrote: > At the risk of sounding completely dense, I am having a hard time > understanding the purpose of the Identity function.  As far as I can > tell all it does is return what is passed to it. It's most useful when you have functions that take functions as

Re: What is the purpose of the Identity function?

2011-05-07 Thread Base
Ahhh - Thanks all. Most educational! This does make sense - I will try and deconstruct some of the examples where this is used to get a sense of when / why it is used. But this helps *tremendously*!! Thanks!!! On May 7, 2:09 pm, Sean Corfield wrote: > On Sat, May 7, 2011 at 8:51 AM, Base w

Re: What is the purpose of the Identity function?

2011-05-07 Thread Mike Meyer
On Sat, 7 May 2011 12:09:45 -0700 Sean Corfield wrote: > Identity on its own isn't really useful - but in combination with > higher-order functions, it can be very indispensible! Bingo. An HOF accepts a function that filters/mogrifies data before processing it in some way. Sometimes, you *don't*

How Clojure protocols are implemented internally?

2011-05-07 Thread Dmitry Kakurin
Is there a document describing internal implementation of Clojure protocols? I.e. what is happening "under the hood"? To be specific suppose I have extended ICountable protocol with a single "count" method to String class. What happens when I call (count "some string")? At what point dynamic dispat

Re: Enhancement for contrib.command-line

2011-05-07 Thread knuthie
Thanks, this library looks promising... On 29 Apr., 21:56, gaz jones wrote: > i wrote a command line arg library after wanting a bit more than the > one in contrib gave me: > > https://github.com/gar3thjon3s/clargon > > i think you could do what you want using it... > > -- You received this me

Re: How Clojure protocols are implemented internally?

2011-05-07 Thread Jonathan Fischer Friberg
See: http://clojure.org/protocols "defprotocol will automatically generate a corresponding interface" Although it is not true that a protocol is equivalent to an interface. For deep "under the hood" you can check out the source: https://github.com/clojure/clojure/blob/master/src/clj/clojure/core_d

Re: How Clojure protocols are implemented internally?

2011-05-07 Thread Dmitry Kakurin
Let me rephrase my question to avoid unfortunate confusion with standard "count" function: Suppose I have extended my own IMyCountable protocol with a single "mycount" method to String class. What happens when I call (mycount "some string")? - Dmitry On May 7, 1:42 pm, Jonathan Fischer Friberg w

Request for feedback: Tradui

2011-05-07 Thread Andreas Kostler
Hi all, I've started development on tradui, a translator for the Creole markup language. It is not finished or in any deployable shape or form yet, however it's progressed enough to gather some feedback on the approach taken. Please feel free to clone https://github.com/AndreasKostler/tradui.git

Testing functions that access a database

2011-05-07 Thread Tim McIver
I'm looking for some input as to the best way to test functions that interact with a database. I've just started writing some tests for functions that read/write to a mysql database (using clojure.contrib.sql) but my problem is that I'd like the tests to begin with either an empty database or one

Re: Testing functions that access a database

2011-05-07 Thread Ken Wesson
On Sat, May 7, 2011 at 11:37 PM, Tim McIver wrote: > I'm looking for some input as to the best way to test functions that > interact with a database.  I've just started writing some tests for > functions that read/write to a mysql database (using > clojure.contrib.sql) but my problem is that I'd l

Where's incanter chrono?

2011-05-07 Thread Andreas Kostler
Hello all, Has incanter.chrono disappeared? (use '(incanter core chrono)) results in Could not locate incanter/chrono__init.class or incanter/chrono.clj on classpath: [Thrown class java.io.FileNotFoundException] For both incanter 1.2.3 and incanter 1.2.2 Cheers Andreas -- You received this me

Re: ANN: Java dependency injection in Clojure

2011-05-07 Thread Luc Prefontaine
Hi Alessio, My plan is to use this to wrap other Java frameworks to simplify their APIs. Internally, we started to use it to wrap Java libs as sets of resources accessible from Clojure and it simplifies things a lot. I have some ideas about wrapping Swing that I will experiment this summer. If y

Re: How Clojure protocols are implemented internally?

2011-05-07 Thread Krukow
On May 7, 11:28 pm, Dmitry Kakurin wrote: > Let me rephrase my question to avoid unfortunate confusion with > standard "count" function: > Suppose I have extended my own IMyCountable protocol with a > single "mycount" method to String class. What happens when I call > (mycount > "some string")?