On Sat, Mar 29, 2014 at 12:14 PM, Abilio Marques
<amarq...@smartappsla.com>wrote:

> I have not much of free time right now, as my startup consumes a lot of
> it, but let's say I get the time... which way should I go? using the old
> fashioned spawn a fossil executable with the command, or use libfossil
> instead? ... Is the plan to keep both developments in parallel, with
> libfossil following Fossil updates? Does it use a big part of the original
> Fossil code? Thoughts about how an IDE plugin should it be done are welcome.
>

The plan is for libfossil to offer a "compatible, alternative" API for
accessing fossil data. Though DRH is the license holder of libf, that's
just for the off-chance that libf and fossil do merge at some point in the
far future. Currently (and for the foreseeable future) they are separate
projects: in fossil i'm a minion and in libf i'm the benevolent dictator,
so to say. Where it makes sense to do so (which is most, but not all of the
time so far), features are ported over directly into library form. The vast
majority of libfossil's innards are direct descendants of fossil's code
(copy/pasted, then refactored for a library-style interface). All of the
notable algorithms have been either directly ported or reimplemented (due
to widely differing structures) after careful study of fossil's sources
(e.g. the way libf generates "artifact" data is much different, but the
inputs/outputs are the same).

As far as IDE integration goes: the lib API would be the clear choice, with
the caveat that some features are so far down the roadmap as to not yet be
visible (e.g. network sync). The next big missing (==still to port) piece
is update/merge. i don't anticipate any particular problems there, it's
just a lot of work to port the code. Interestingly, libf ports of fossil
algos are normally about 50-100% longer than fossil impls because of all
the error checking/handling/reporting. fossil, OTOH, simply exits for the
vast majority of errors (which greatly simplifies/shortens the app-level
code).

-- 
----- stephan beal
http://wanderinghorse.net/home/stephan/
http://gplus.to/sgbeal
"Freedom is sloppy. But since tyranny's the only guaranteed byproduct of
those who insist on a perfect world, freedom will have to do." -- Bigby Wolf
_______________________________________________
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to