From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: =?utf-8?Q?=C3=93scar_Fuentes?= Newsgroups: gmane.emacs.devel Subject: Re: An idea, now that we have dynamic loading Date: Sun, 06 May 2018 04:25:17 +0200 Message-ID: <87efipmsfm.fsf@telefonica.net> References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1525573448 31463 195.159.176.226 (6 May 2018 02:24:08 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 6 May 2018 02:24:08 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun May 06 04:24:04 2018 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 1fF9LH-00081a-E7 for ged-emacs-devel@m.gmane.org; Sun, 06 May 2018 04:24:03 +0200 Original-Received: from localhost ([::1]:40651 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fF9NM-00062J-Tq for ged-emacs-devel@m.gmane.org; Sat, 05 May 2018 22:26:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48306) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fF9Mh-000622-8I for emacs-devel@gnu.org; Sat, 05 May 2018 22:25:32 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fF9Mc-0006Wc-Gy for emacs-devel@gnu.org; Sat, 05 May 2018 22:25:31 -0400 Original-Received: from [195.159.176.226] (port=38547 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fF9Mc-0006Tr-9R for emacs-devel@gnu.org; Sat, 05 May 2018 22:25:26 -0400 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1fF9KR-0007Ep-M8 for emacs-devel@gnu.org; Sun, 06 May 2018 04:23:11 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 21 Original-X-Complaints-To: usenet@blaine.gmane.org Cancel-Lock: sha1:bt5Y/HMjGi8feMC1YfUY5WxsUTE= 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:225085 Archived-At: "John Wiegley" writes: > It occurred to me today that we have tons of examples of how Lisp functions > can be written in a flavor C. This "compilation" is typically done by hand by > a few experts. > > However, what if we had a compiler from Emacs Lisp -> Lisp-flavored C, which > could turn .el files into .c files suitable for compiling into .so's that can > be loaded into Emacs? Mandatory mention: JIT Compilation for Emacs http://tromey.com/blog/?p=982 IMHO and based on my experience with other projects, this is the way Elisp should go for improving performance. It is dubious that the approach you mention would be any better on terms of raw performance, apart from decreasing load time. Anyways, if speed is really important, nothing beats a pure C implementation.