[bt-devel] BibleTime's Goals (was Re: New passage selector proposal)
Greg Hellings
greg.hellings at gmail.com
Fri Apr 20 08:23:10 MST 2012
On Fri, Apr 20, 2012 at 12:18 AM, Troy A. Griffitts
<scribe at crosswire.org> wrote:
> So, in summary, you don't consider yourselves part of the CrossWire
> developer community? None of the things you've mentioned has been realized
> in 20 years, SWORD is practically a direct dependency, and if you would like
> access to Perseus, wouldn't it be better to put in the effort to make
> Perseus (and SWORD data) available through a well thoughtout Bible research
> framework instead of your patchwork backend you've lived with for 20 years
> because of 'in principle' arguments?
> SWORD is designed as a backend for Bible research software, with a modular
> architecture (as seen by your many reimplementations; just because you _can_
> do something doesn't necessarily mean you _should_) allowing plugins to
> access different data sources and in different markups. If you think you can
> design a better class heirarchy, you may be right, but why? Is SWORD really
> so different than what you would design yourselves as a backend? Is it
> always 'do it ourselves', and 'differentiate from the other CrossWire
> projects' or are you willing to share your improvements with the community
> as you have used our work for the entire life of your project?
>
Troy,
If you want to see BibleTime as not part of the CrossWire community,
that is entirely your prerogative. But you are most
definitely putting words in my mouth when you ask me to agree with
you. I prefer to think of BibleTime and SWORD as
being two separate and complementary objectives. SWORD providing
low-level functionality like storing texts, fetching
them over the network, providing rapid access to them, parsing user
input, and all the other things that SWORD is good
at. BibleTime concentrates on pulling SWORD's text into Qt-compatible
formats (QString) and displaying them with a GUI.
These are different and complementary objectives. Yes, SWORD is still
a direct dependency because until 5 years ago
no one even conceived of pulling data from elsewhere and none of us
have stepped up to do the work required to decouple
BibleTime's SWORD-access code from its GUI code (something which
supports our likewise new goal of permitting multiple
GUIs to spring out of one Qt wrapper for SWORD. If I'm the one to get
to the work first I intend a three-layered
separation between a SWORD Qt binding in the engine, a
display-template layer all Qt-based GUIs could use, and then
the current BibleTime desktop GUI).
I haven't heard anyone say they think that SWORD's design and
architecture are poor or in need of replacement. Where the
BibleTime developers differ from SWORD is in their opinion of
implementation. SWORD has a nearly single-minded goal of
never relying on external libraries other than the standard C library.
To that end SWORD implements its own search
functionality if Lucene is missing, includes an FTP library for when
cURL is absent, and simply throws up its hands when ICU
is not available. Additionally you implement your own XML parsing in
the importers, the older filters, and the newer
faux-SAX utility based filters. In some ways this is good - SWORD can
go where ICU, cURL, Lucene, and <your favorite
XML library here> cannot go. In practice I don't know what benefit
that gains SWORD as I have yet to work with a
platform those did not support, but that is SWORD's philosophy.
BibleTime currently only goes places where Qt and SWORD are available.
We have also agreed that we are not going to
eschew library dependencies the way SWORD does. So we require Qt for
its added functionality, we require Lucene and our
implementation of the search because we can't guarantee that SWORD
will have it. You are welcome to pull anything that
BibleTime has done back into SWORD but those of us working on
BibleTime are not interested or willing (at least not up
to this point) to reimplement our filters using C-style strings and
SWBuf and ICU because Qt provides us what we need
without the necessity of reimplementing. This is not an unwillingness
to participate in SWORD and CrossWire but rather
an unwillingness to reimplement what other libraries already provide
us for free.
To the specific examples you cite - I've already iterated why
BibleTime has its extensions technically in my previous
response and philosophically here. Our code is open, if our filters
are better than SWORD's or fix its problems then
you are welcome to adapt our QString to your SWBuf/char* functions and
enjoy that. I, for one, won't do such because
the mantra of "no dependencies" means the work would be much more
difficult than it needs to be in some cases.
And for a few examples of my own:
*) SWORD's CMake scripts are only put together because I pushed back
that functionality from BibleTime to the engine
after hearing from Linux packagers and Matthew Talbert that they would use that.
*) PERL bindings were only fixed up when I completed the CMake work
because I was able to easily identify the one
missing piece of functionality
*) SWORD's CLucene 2 support that I helped push was only made possible
by work I was already doing to track down the
issues in BibleTime's CLucene support.
*) I asked for better CSS support on the engine side so that users and
module creators could define their own style-
sheets. I was told no way. But BibleTime was willing to go at least
half that way, so I implemented user-editable
sheets there. It could use some better exposure, but that's something
SWORD wasn't willing to do.
*) BibleTime developers have lamented several times that SWORD does
not use an XML library for its XML
processing, but every time such an issue has been raised with SWORD
the answer comes back: "No external dependencies.
We'd rather have our buggy implementation than possibly introduce a
dependency." This goes contrary to how most of us
here at BibleTime are willing to behave - so we left things like lack
of XML comment support alone because we
saw no reason to need to reimplement XML parsing just to satisfy this mantra.
Now when we talk about other sources of text we at BibleTime feel the
same way as with CLucene and XML. We would be
happy to have access to Perseus or e-Book reading or the like. But
we're not willing to implement that functionality
from scratch and if such was in SWORD it would likely be optional, so
BibleTime would probably reimplement it
anyway so that we can guarantee access to it for our users as we do
with Lucene search and ICU. We don't want to have
a user on Fedora access it and on Ubuntu be unable to do so because
they come to us and say, "Your application is
broken", and then we have to do as Karl does often when Xiphos search
breaks - say "Well we just expose what SWORD has
and if it doesn't have Lucene then oh well". We'd rather give our
users a consistent experience across all platforms.
How is what we do different from Xiphos who maintains a patch
introducing GLib dependency to SWORD in order to fix a
Windows Unicode bug? How is what we do different from PocketSword who
forces users to download Lucene indexes for
search on iOS - a functionality none of the rest of us have? How is
what we do different from JSword who maintains a
complete reimplementation of the SWORD library lacking in
functionality? By your metric none of those are members of
the CrossWire community either because they haven't pushed those
implementations back to the engine.
So you see, the issue is not a lack of community involvement or a lack
of community sense. The difference is one of
philosophy and objective. BibleTime wants to present what
functionality and features we can access to our users. SWORD
wants to be a low-level library that can go anywhere and have no
dependencies. Our objectives are complementary but
our methods are at odds. So if you don't get many direct patch
contributions from the BibleTime team, this does not
indicate we see ourselves at odds with CrossWire or in competition
with it. We are simply composed of people with a
different itch to scratch and a different set of fingernails to get
the scratching done.
--Greg
More information about the bt-devel
mailing list