From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chad Brown Newsgroups: gmane.emacs.devel Subject: Re: Linking Emacs with libxml2 Date: Mon, 6 Sep 2010 11:26:15 -0700 Message-ID: <876539FE-FAEC-486A-BE73-CABF1C0D8EB3@mit.edu> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1081) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1283797596 32214 80.91.229.12 (6 Sep 2010 18:26:36 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 6 Sep 2010 18:26:36 +0000 (UTC) Cc: emacs-devel@gnu.org To: Lars Magne Ingebrigtsen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Sep 06 20:26:35 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OsgOl-0004EE-7Q for ged-emacs-devel@m.gmane.org; Mon, 06 Sep 2010 20:26:31 +0200 Original-Received: from localhost ([127.0.0.1]:45925 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OsgOk-0003G7-Ew for ged-emacs-devel@m.gmane.org; Mon, 06 Sep 2010 14:26:30 -0400 Original-Received: from [140.186.70.92] (port=43598 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OsgOb-0003Dg-FP for emacs-devel@gnu.org; Mon, 06 Sep 2010 14:26:22 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OsgOZ-00040g-W9 for emacs-devel@gnu.org; Mon, 06 Sep 2010 14:26:21 -0400 Original-Received: from dmz-mailsec-scanner-5.mit.edu ([18.7.68.34]:63584) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OsgOZ-00040V-TX for emacs-devel@gnu.org; Mon, 06 Sep 2010 14:26:19 -0400 X-AuditID: 12074422-b7bbfae000005e9b-f9-4c85323f6faf Original-Received: from mailhub-auth-3.mit.edu ( [18.9.21.43]) by dmz-mailsec-scanner-5.mit.edu (Symantec Brightmail Gateway) with SMTP id 9B.47.24219.F32358C4; Mon, 6 Sep 2010 14:26:07 -0400 (EDT) Original-Received: from outgoing.mit.edu (OUTGOING-AUTH.MIT.EDU [18.7.22.103]) by mailhub-auth-3.mit.edu (8.13.8/8.9.2) with ESMTP id o86IQI9f014689; Mon, 6 Sep 2010 14:26:18 -0400 Original-Received: from [10.0.1.194] (c-71-231-113-235.hsd1.wa.comcast.net [71.231.113.235]) (authenticated bits=0) (User authenticated as yandros@ATHENA.MIT.EDU) by outgoing.mit.edu (8.13.6/8.12.4) with ESMTP id o86IQFaL017205 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NOT); Mon, 6 Sep 2010 14:26:18 -0400 (EDT) In-Reply-To: X-Mailer: Apple Mail (2.1081) X-Brightmail-Tracker: AAAAAhXbpxsV27Mo X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:129714 Archived-At: On Sep 6, 2010, at 8:21 AM, Lars Magne Ingebrigtsen wrote: > (Parsing HTML from Emacs Lisp is rather slow.) Do you have a feel for how much slower the elisp-based parsing is? Is = it causing noticeable delays in Gnus, for example? > Has this been discussed before and rejected? It seems like an obvious > idea, and would enable both easier extraction of data from HTML files, > as well as writing a (simple) HTML renderer in Emacs Lisp. The various legal hurdles/barriers impeding dynamic library use in emacs = are (mostly?) overcome, and this seems like a fine potential candidate. = I suspect that ideally we'd have lisp calls that would call a library = parser if available and an elisp parser if not. What do you think we'd = want (in terms of speed/convenience tradeoff) in addition to parse-html? = I'd guess that we'd like to be able to parse both a named file and a = buffer (but perhaps working on buffers would lose us the speed of the = library?). I can't totally commit to building anything, but I'm interested in the = dynamic library interface to emacs (interested but not yet = knowledgable), and I might be able to put some time into helping out. *Chad=