From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eric Abrahamsen Newsgroups: gmane.emacs.devel Subject: Re: [ELPA] Package proposal: EBDB Date: Sun, 06 Aug 2017 17:44:03 -0700 Message-ID: <87fud4yzos.fsf@ericabrahamsen.net> References: <37988.94742.967971.22919@gargle.gargle.HOWL> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1502066707 11755 195.159.176.226 (7 Aug 2017 00:45:07 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 7 Aug 2017 00:45:07 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Aug 07 02:45:01 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1deWAG-0002XI-S6 for ged-emacs-devel@m.gmane.org; Mon, 07 Aug 2017 02:45:00 +0200 Original-Received: from localhost ([::1]:34806 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1deWAJ-0007vM-OU for ged-emacs-devel@m.gmane.org; Sun, 06 Aug 2017 20:45:03 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:32826) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1deW9h-0007us-E7 for emacs-devel@gnu.org; Sun, 06 Aug 2017 20:44:26 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1deW9d-0005QU-CM for emacs-devel@gnu.org; Sun, 06 Aug 2017 20:44:25 -0400 Original-Received: from [195.159.176.226] (port=48347 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1deW9d-0005Q6-5n for emacs-devel@gnu.org; Sun, 06 Aug 2017 20:44:21 -0400 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1deW9S-0008VW-Cu for emacs-devel@gnu.org; Mon, 07 Aug 2017 02:44:10 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 84 Original-X-Complaints-To: usenet@blaine.gmane.org Cancel-Lock: sha1:S63wlPM3Ny4tPdPbtSmtDWTziis= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 195.159.176.226 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:217347 Archived-At: "Roland Winkler" writes: >> The ability to make BBDB extensible in future without requiring >> core changes is definitely a positive thing. > > I agree, using, e.g., country-specific libraries can be a great way > of extending EBDB. But this can also cause problems: All of these are very valid points. A couple of responses below. > - Writing country-specific libraries for EBDB can be a fair bit of > work. Someone may develop a library for country XYZ up to the > point "it works for me". With the complexity of EBDB the > developer may not notice / not care that some "irrelevant" > features do not work. When other users want to use the library, > they can be stuck. > > - Yet worse: "plain" users may have some records from country XYZ in > their database, using the EBDB library for XYZ. At some point, > the very core of the EBDB code base may get updated in a way that > also requires an update of the country-specific EBDB libraries. > But the maintainer of the XYZ library may have disappeared from > the stage for whatever reason. What can the users do? The EBDB > database of a user might become unusable if its XYZ part cannot be > read anymore. > > The opposite is also possible: It may turn out that it would be > nice to update the EBDB code base in a way that also requires an > update of the EBDB country-specific "add-on libraries" (or any > other add-on libraries handling certain new fields for EBDB). If > there are many such country-specific add-on libraries out in the > wild, it may become difficult to update the EBDB code base without > breaking EBDB for many users. > > (Having developed BBDB for some time, I find it hard to predict > when the code base of BBDB may have reached a level of maturity > that allowed me to exclude the possibility of any further > upgrades, say, in the format of the BBDB database files. Then I > am glad that such updates of BBDB can include the code to migrate > the BBDB database files of the users.) > > (BBDB allows the user to customize the handling of addresses in a > country-specific way; but this does not affect what is being > stored in the database file using a universal, country-independent > format.) EBDB's internationalization framework doesn't alter data structures in any way -- that was a basic principle. It only affects methods that read, parse and display field data. In the (likely) event that a country library gets out of step with the main codebase, errors may occur, but all a user would have to do is unload the problematic library. > - In the worst case, also legal problems may arise: it may not be > possible that someone else updates the code for the XYZ library. > (But I am not a lawyer who could predict the details of such > scenarios.) My idea was to ask that internationalization libraries live in ELPA (I've been talking to Feng Shu, who contributed to the China library, about this issue). The recent copyright discussions on this list have touched on Emacs maintainers' ability to push to ELPA packages when necessary, and I think this is a perfect example. If a country library is suddenly abandoned, someone with ELPA access could do some emergency surgery to at least stop errors. Of course, you can't stop people pushing packages to Melpa, but control is only possible up to a point. The stability of the data structures and API is another question, one I was planning to think about once the number of EBDB users hit the double digits :) > I guess that to some extent these are generic aspects of an > object-oriented programming model, which is something I am less > familiar with in such a context. Maybe others can comment. I've become very, very aware of the pitfalls of [e]lisp's OO model while working on this package. Generic methods are essentially cond branches that don't have to live within the cond statement. That's awesome because cond branches can be defined anywhere. It's a nightmare because... cond branches can be defined anywhere. It's magic, with both the positive and negative implications of "magic". Eric