News for hackers. Stuff that matters.
Re:Xapiand: A fast, simple, modern search and storage engine by michelpp on Monday January 14, 2019 @10:34PM (#18908673)
Xapian has a long history starting in the early 80s:

https://xapian.org/history

I've used Xapian extensively, but not this new Xapiand tool, so I can only speak to the actual library. Xapian is a C++ library that accesses index data files directly on disk. There are bindings for various languages, say Python, let's you do 'import xapian' and get FFI bindings to the library, then you basically open your on disk index files and issue queries.

Xapian supports many concurrent readers, but only one writer. It's not a server, there are no protocols. Maybe that's what this Xapiand tool adds. In general the overhead is very, very light, just enough ram to hold the library code, the OS takes care of all the filesystem level caching.

Many of the very same concepts that are in Lucene, Documents, Terms, weights, flavors of BM25 relevance ranking, query parsing trees, relevancy operators, etc, all apply to Xapian as well.

Re:Xapiand: A fast, simple, modern search and storage engine by _wmd on Monday January 14, 2019 @10:42PM (#18908700)
I love Xapian, the quality of its recall is excellent and indexing performance very hard to find fault with. There's just a tiny problem - it's stuck with the GPL, despite a long effort to relicence the code going back years.
Re:Xapiand: A fast, simple, modern search and storage engine by vkazanov on Tuesday January 15, 2019 @04:46AM (#18909951)
Remind me what's wrong with GPL, here? You can't repackage and resell it?
Re:Xapiand: A fast, simple, modern search and storage engine by ddorian43 on Tuesday January 15, 2019 @05:00AM (#18910015)
You can't include it in your code and sell your software without distributing the source.
Re:Xapiand: A fast, simple, modern search and storage engine by dsr_ on Tuesday January 15, 2019 @07:01AM (#18910559)
Other libraries might require you to pay them money. GPL software requires you to pay your debt in source code, instead.
Re:Xapiand: A fast, simple, modern search and storage engine by ddorian43 on Tuesday January 15, 2019 @07:10AM (#18910598)
I was explaining, not complaining.
Re:Xapiand: A fast, simple, modern search and storage engine by pedrocr on Tuesday January 15, 2019 @06:21AM (#18910352)
Is there actually precedent for a GPL library, clearly setup to be consumed with an API, to require GPL of the whole binary? On the one hand that's clearly not the case in the Linux API, on the other hand the LGPL exists. But was curious if this is actually settled or just too murky to live with.
Re:Xapiand: A fast, simple, modern search and storage engine by detaro on Tuesday January 15, 2019 @06:51AM (#18910500)
The Linux kernel has explicit rules for the cases where it allows it:

An explicit license exception for the syscall interface, stating that calling it from userspace is freely allowed: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/lin...

And modules, e.g. drivers, have various statements from Linus on how they're not necessarily considered derived works of the kernel/linked to the kernel, e.g. http://linuxmafia.com/faq/Kernel/proprietary-kernel-modules.... or http://lkml.iu.edu/hypermail/linux/kernel/0312.0/0670.html

Re:Xapiand: A fast, simple, modern search and storage engine by pedrocr on Tuesday January 15, 2019 @07:36AM (#18910706)
I know the situation of the Linux kernel. The discussion hinges on what is a "derived work". Kernel modules are very interlinked with the kernel, particularly since there are no stable APIs inside the kernel. It seems strange that just linking to a GPL library that defined an API makes you a derived work. But that is the FSF position:

https://en.wikipedia.org/wiki/GNU_Readline#Choice_of_the_GPL...

This is why I always do libs as LGPL but it seems strange to me that it's even needed. If I've defined a proper opaque API, to be consumed by external code I know nothing about, it's strange to then argue that library callers are derived works and LGPL is explicitly needed.

Re:Xapiand: A fast, simple, modern search and storage engine by ddorian43 on Tuesday January 15, 2019 @06:28AM (#18910386)
There are many gpl/lgpl dbs with bsd drivers (ex: scylladb). Dont know about library though (you should be able to use the library externally I think just like you do with the db)
Re:Xapiand: A fast, simple, modern search and storage engine by vkazanov on Tuesday January 15, 2019 @05:10AM (#18910062)
Yeah, a pity
Re:Xapiand: A fast, simple, modern search and storage engine by Kronuz on Monday January 14, 2019 @11:06PM (#18908793)
Maybe xapian library just needs a little push from a larger community to make relicensing faster, Xapiand could help towards that end by helping brining in more people which can help. Xapiand source code is itself licensed as MIT (before compiling), and xapian community is already taking big steps towards relicensing.