From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.help Subject: Re: Is Elisp really that slow? Date: Thu, 16 May 2019 10:45:50 -0400 Message-ID: References: <83mujrbsk7.fsf@gnu.org> <87a7frvfo1.fsf@telefonica.net> <83h89zbndc.fsf@gnu.org> <875zqfv7sb.fsf@telefonica.net> <86tvdywhjr.fsf@zoho.eu> <20190514082443.GA11039@tuxteam.de> <86o945uq6l.fsf@zoho.eu> <20190514144406.GA24295@tuxteam.de> <861s10ufh6.fsf@zoho.eu> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="55409"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu May 16 16:49:39 2019 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hRHhS-000EHK-5h for geh-help-gnu-emacs@m.gmane.org; Thu, 16 May 2019 16:49:38 +0200 Original-Received: from localhost ([127.0.0.1]:59433 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hRHhR-0003g7-4I for geh-help-gnu-emacs@m.gmane.org; Thu, 16 May 2019 10:49:37 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:58572) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hRHdv-0001dQ-8w for help-gnu-emacs@gnu.org; Thu, 16 May 2019 10:46:00 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hRHdu-000655-Ea for help-gnu-emacs@gnu.org; Thu, 16 May 2019 10:45:59 -0400 Original-Received: from [195.159.176.226] (port=51576 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hRHdu-00063X-7r for help-gnu-emacs@gnu.org; Thu, 16 May 2019 10:45:58 -0400 Original-Received: from list by blaine.gmane.org with local (Exim 4.89) (envelope-from ) id 1hRHds-000AFD-Jw for help-gnu-emacs@gnu.org; Thu, 16 May 2019 16:45:56 +0200 X-Injected-Via-Gmane: http://gmane.org/ Cancel-Lock: sha1:8J8vKI1lUZ1vqpM1XEdyNwFSTmE= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 195.159.176.226 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:120443 Archived-At: > So from a personal POV, I would be > interesting/fun to write some of my Elisp into > C, and if I get good enough at it, maybe > I could even do it for the project. FWIW, compiling existing Elisp to C code is not really interesting in the sense that if it exists as Elisp code it's usually because it's not very speed-sensitive. What is more interesting is to take existing C code and see if it can be rewritten into a kind of Elisp (or other language that has similar dynamic properties, most importantly the ability to replace code at run-time) that can be compiled back to efficient code. After all, the main problem with the part of Emacs that's written in C is that you can't change it from your ~/.emacs, contrary to all the Elisp code. Stefan