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: Tue, 14 May 2019 09:39:55 -0400 Message-ID: References: <20190502214006.4fdsinp7u5xuqvdv@Ergus> <20190503004416.xfuzzucflp6bxpuz@Ergus> <8736lm30lz.fsf@web.de> <864l61j04d.fsf@zoho.eu> <20190511073254.GB29829@tuxteam.de> <04187AB9-AD7D-492D-A890-BCB01848370C@icloud.com> <20190511075712.GD29829@tuxteam.de> <86a7fsfv1m.fsf@zoho.eu> <20190512075448.GA11650@tuxteam.de> <346107E9-590D-4A18-9152-ECFF36FC4EDC@icloud.com> <83r293bvok.fsf@gnu.org> <87ef53vihw.fsf@telefonica.net> <83mujrbsk7.fsf@gnu.org> <87a7frvfo1.fsf@telefonica.net> <83h89zbndc.fsf@gnu.org> <875zqfv7sb.fsf@telefonica.net> <871s13uxdh.fsf@telefonica.net> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="230611"; 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 Tue May 14 15:40:20 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 1hQXfH-000xpg-HT for geh-help-gnu-emacs@m.gmane.org; Tue, 14 May 2019 15:40:19 +0200 Original-Received: from localhost ([127.0.0.1]:48403 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hQXfG-0008Te-IN for geh-help-gnu-emacs@m.gmane.org; Tue, 14 May 2019 09:40:18 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:54555) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hQXf4-0008TZ-A7 for help-gnu-emacs@gnu.org; Tue, 14 May 2019 09:40:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hQXf2-0002Js-9S for help-gnu-emacs@gnu.org; Tue, 14 May 2019 09:40:06 -0400 Original-Received: from [195.159.176.226] (port=51728 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hQXf1-0002Gy-RP for help-gnu-emacs@gnu.org; Tue, 14 May 2019 09:40:04 -0400 Original-Received: from list by blaine.gmane.org with local (Exim 4.89) (envelope-from ) id 1hQXf0-000xYM-BU for help-gnu-emacs@gnu.org; Tue, 14 May 2019 15:40:02 +0200 X-Injected-Via-Gmane: http://gmane.org/ Cancel-Lock: sha1:w9oiSF1Syad/9oeeV+R/QkTvzwM= 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:120367 Archived-At: Óscar Fuentes writes: > I've been advocating this Elisp-ish C for a long time. Even on your > stint as maintainer I offered my implementation of my own C-with-sexps > language. Damn! That doesn't ring a bell :-( Óscar Fuentes writes: > I'm interested on islotating certain parts of Elisp, add some stuff to > help the optimizers and feed it to LLVM. Ideally, an Elisp hacker > working within those limits could implement some cpu-intensive code that > would perform similar to C with minimal retraining. At the same time, > the language must retain enough expressiveness to bring significant > advantages on development over C. defmacro is a must. Emanuel Berg writes: > Yes, I thought about this as well! That would > be so cool and, as you say, interesting! > Only one would keep the Lisp syntax, right? Of course, there's the question of how what this language should look like, but I think more importantly, there's the question of how its compiler is used: - can any random Emacs user download your elisp-ish-c code and run it with the same ease as if it were written in Elisp? - I.e. does it require re-starting Emacs? Does it require installing a C compiler or some such external tool? Does it work on all the architectures supported by Emacs? - can incorrect elisp-ish-c code cause your Emacs to seg-fault? Stefan