[darcs-users] Re: Darcs API?

Jamie Webb j at jmawebb.cjb.net
Sun Apr 17 16:43:26 UTC 2005


On Sun, Apr 17, 2005 at 05:28:33PM +0200, Nils Decker wrote:
> 
> Hello,
> 
> with the ongoing discussion about the license of the API i wonder if it
> is necessary to have a binary API.
> 
> Calling the darcs binary from another program for every action would be
> expensive and inconvenient for the need to deal with the human-usable
> interface to darcs. If darcs had a --slave mode that is designed to be
> used from another program, darcs could easily be used from any other
> language. The xml output of annotate is a first step in this direction.

Presumably you're suggesting using a bidirectional pipe for this? Is
that portable? I have a vague recollection of someone moaning that
Windows didn't handle them properly/at all/something...

Otherwise, makes sense. And makes the interface language-independent.

-- Jamie Webb




More information about the darcs-users mailing list