From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Philipp Stephani Newsgroups: gmane.emacs.devel Subject: Re: good examples of Emacs modules? Date: Tue, 03 May 2016 20:48:49 +0000 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: multipart/alternative; boundary=001a11c2432a084e2d0531f63db8 X-Trace: ger.gmane.org 1462308595 23936 80.91.229.3 (3 May 2016 20:49:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 3 May 2016 20:49:55 +0000 (UTC) To: Syohei Yoshida , Emacs development discussions Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue May 03 22:49:54 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 1axhGS-0002ik-Pf for ged-emacs-devel@m.gmane.org; Tue, 03 May 2016 22:49:52 +0200 Original-Received: from localhost ([::1]:43343 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1axhGO-0007sT-SI for ged-emacs-devel@m.gmane.org; Tue, 03 May 2016 16:49:48 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50074) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1axhG6-0007gw-Qp for emacs-devel@gnu.org; Tue, 03 May 2016 16:49:37 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1axhFv-00088B-3p for emacs-devel@gnu.org; Tue, 03 May 2016 16:49:25 -0400 Original-Received: from mail-lf0-x233.google.com ([2a00:1450:4010:c07::233]:35621) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1axhFt-00080x-PP for emacs-devel@gnu.org; Tue, 03 May 2016 16:49:19 -0400 Original-Received: by mail-lf0-x233.google.com with SMTP id j8so36640169lfd.2 for ; Tue, 03 May 2016 13:49:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=pT267R7UpT+a3WQ8dGDzs93a0oPiqEU7IaVSexiJkRs=; b=XssbbEnlZMg1GpAFBURUOabxWIfPHaQ03f3QP/iEbQxVJvlNgsqGGj6tXQPpXMP1d4 e9zfkiBwBQhBUOe3Xc2cZzXmh9zLrX/8Rp88gMbLxMZwCJvQUQ4esTdr+K2gTFWs7eyl DhaAm5Aoh/KTap3wQdZsh2zpJpq1eD1o65dwO6fN3mNtJRjWUl6zbh80Qd7pYF41Zfm8 +U8+lUjoCARU9Q8pztRjwW8ymQEcamNT6dFgvsBXcKYcUfYZQA1LL+CWGQpsfNkn+5U6 VsSXoMQFamL/pJeXD8SYL6OUi34JZzefPnbTZkBkZv1yjFlgLr+cY5TGwzJz8MDgG9zX Gw6w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=pT267R7UpT+a3WQ8dGDzs93a0oPiqEU7IaVSexiJkRs=; b=CXlC7L/UWOkcPTMsbhu66mI7q9XPr+lAXeAX0DhE6nksoNUN5TZEKdEE3tePQsvz4g nsO9LxRAqkEWK8J6o7gKCnkguXoVpqKR0jl2/ZZ8IMwmrKw/LkZqSzee0CbfXRMPG6YT fzYo0ndno5mNEULUkRiKVLA2ANBBA4UhyuWLh5H75f2v1BJwSnIdq9z9X3/D6qJ2E3AX jeCKnoRGlBc6VSj/ZH6vOS6BO3otoYPDC27zmxFzN5Zfixb2b7ynKT+w4eDh1EkR5BQO PYYpJGsbagUt2un7fOger+yzJ9Jp6HtE2psvIo6Pc+jNj9yCaUemUOUDfefd4Iqor146 /eLQ== X-Gm-Message-State: AOPr4FVzlfqndEMdM8EfsRR2m39KwLb71mLFhEaCDDrGDMCn1PeP0bC2vZ+pzFHnyeAzoB7CUAOHyH0wEjtsCA== X-Received: by 10.112.167.228 with SMTP id zr4mr2213943lbb.74.1462308539221; Tue, 03 May 2016 13:48:59 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a00:1450:4010:c07::233 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:203555 Archived-At: --001a11c2432a084e2d0531f63db8 Content-Type: text/plain; charset=UTF-8 Syohei Yoshida schrieb am Sa., 2. Apr. 2016 um 04:10 Uhr: > Hi, > > > > > Syohei, I really like what you did and I would be interested in your > > feedback on what could be improved, what should we add&optimize in the > > module API, etc. > > > > I want vector(or list) and hash table API(there are some vector API in > emacs_env). > I know that we can use them via env->funcall, however we need a lot of > code for > using them(intern function name, set arguments to emacs_value array, > env->funcall). > I think it is useful if we can handle vector, list, hash table easily. > 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. --001a11c2432a084e2d0531f63db8 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable


Syohei= Yoshida <syohex@gmail.com> s= chrieb am Sa., 2. Apr. 2016 um 04:10=C2=A0Uhr:
Hi,

>
> Syohei, I really like what you did and I would be interested in your > feedback on what could be improved, what should we add&optimize in= the
> module API, etc.
>

I want vector(or list) and hash table API(there are some vector API in
emacs_env).
I know that we can use them via env->funcall, however we need a lot of c= ode for
using them(intern function name, set arguments to emacs_value array,
env->funcall).
I think it is useful if we can handle vector, list, hash table easily.

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 n= ot be solved otherwise, or the replacement code would be very awkward, or t= here is a proven significant efficiency gain.
--001a11c2432a084e2d0531f63db8--