From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: good examples of Emacs modules? Date: Tue, 03 May 2016 18:16:12 -0400 Message-ID: References: <56FC5E99.7090804@cs.ucla.edu> <8737r67jbo.fsf@wanadoo.es> <83a8levbaf.fsf@gnu.org> <87y48y60fi.fsf@wanadoo.es> <834mbmv95h.fsf@gnu.org> <87twjm5rc3.fsf@wanadoo.es> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1462313819 8618 80.91.229.3 (3 May 2016 22:16:59 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 3 May 2016 22:16:59 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed May 04 00:16:53 2016 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1axicf-0001BU-6k for ged-emacs-devel@m.gmane.org; Wed, 04 May 2016 00:16:53 +0200 Original-Received: from localhost ([::1]:43596 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1axicb-0006AT-8P for ged-emacs-devel@m.gmane.org; Tue, 03 May 2016 18:16:49 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41103) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1axicS-0005y0-Dd for emacs-devel@gnu.org; Tue, 03 May 2016 18:16:46 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1axicG-0007Y8-OJ for emacs-devel@gnu.org; Tue, 03 May 2016 18:16:34 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:39276) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1axicG-0007WA-I3 for emacs-devel@gnu.org; Tue, 03 May 2016 18:16:28 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1axic7-0000rn-4f for emacs-devel@gnu.org; Wed, 04 May 2016 00:16:19 +0200 Original-Received: from 69-196-139-75.dsl.teksavvy.com ([69.196.139.75]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 04 May 2016 00:16:19 +0200 Original-Received: from monnier by 69-196-139-75.dsl.teksavvy.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 04 May 2016 00:16:19 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 15 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 69-196-139-75.dsl.teksavvy.com User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) Cancel-Lock: sha1:d7CpbwJ2lPU/VAb4HQv0cw7L0es= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 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:203557 Archived-At: > I think the API should be kept as small as possible. Every environment > member has to be designed, maintained, etc. If we add vector, list, and > hash table functions, why stop there? Why not add buffer and string > functions? Or process and network functions? I think new functions should > only be added if they either solve a problem that could not be solved > otherwise, or the replacement code would be very awkward, or there is a > proven significant efficiency gain. FWIW, I completely agree with keeping the API minimalist. I think we can accommodate the request "on the other side", e.g. with a library (or several of them) that the module can link with (probably statically) which will do the dance of interning the function name and such. Stefan