From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Fangrui Song Newsgroups: gmane.emacs.devel Subject: Re: Replacing all C code???? Date: Sun, 5 Jan 2020 08:58:24 -0800 Message-ID: <20200105165824.zlfkuj6no4bxvgft@google.com> References: <83blrkj1o1.fsf@gnu.org> <41b3e9a0-2866-4692-a35c-6d9541bc3aaa@Spark> <83lfqnha8a.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="200809"; mail-complaints-to="usenet@blaine.gmane.org" Cc: VanL , Richard Stallman , emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jan 05 18:05:17 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1io9L1-000q3s-9F for ged-emacs-devel@m.gmane.org; Sun, 05 Jan 2020 18:05:15 +0100 Original-Received: from localhost ([::1]:43752 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1io9L0-0003aO-2o for ged-emacs-devel@m.gmane.org; Sun, 05 Jan 2020 12:05:14 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60904) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1io9EZ-0007JT-Iu for emacs-devel@gnu.org; Sun, 05 Jan 2020 11:58:36 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1io9EY-0001rt-F3 for emacs-devel@gnu.org; Sun, 05 Jan 2020 11:58:35 -0500 Original-Received: from mail-pl1-f173.google.com ([209.85.214.173]:39498) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1io9ES-0001oc-6I; Sun, 05 Jan 2020 11:58:28 -0500 Original-Received: by mail-pl1-f173.google.com with SMTP id g6so17976480plp.6; Sun, 05 Jan 2020 08:58:27 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=l8EQYUg+gZIsCBui1L26BLDCMGzq/2SSag4ATO93ouA=; b=pw2JRlFdxVBBmNpIuxUZkIqmvKAvLYa4bqjBrQYFCvIO4eVeFvpWhOgtNjy1OF26Z8 FyPZpPQehO/cMoP30ZIeZZk32/77mVEGy4ibod2QNOYP2rdZhzu8+xSysGDbrWJ4Kbf1 6AFRXguG4uHdnkdKjloJBUusp5WMwn/puXi2HKWdsXvlX1S1WYC0PMy0K9PR5p+NS1Bo 92S6W8zIjadpbgtPPKcJylFQziGy/4bWgjuQndJVJokA2qahyfDGX7ttfyZTEFmZnf9S TZatLe4u09GCdRaHSlAKQaCaWYGC6ExZsSdhiHYh2uYA2K1BAapIQQEvGtB6dquTR5Nm XNWA== X-Gm-Message-State: APjAAAUzBnxd3w47qTP3e+q2xoQ7WdP0BMCUgH5Mw3Fnn+DFBDFlpID7 rxW7uyMu3Ny+50Z8Z2GVfuyridlQScA= X-Google-Smtp-Source: APXvYqzR4ky3+KNWC1bQBLSPREC4WPojVfqASRshTRBEgAOYcmzFF0lZDksXMp+Y6kzaEkFD+YWJvg== X-Received: by 2002:a17:90a:b106:: with SMTP id z6mr38973496pjq.91.1578243506155; Sun, 05 Jan 2020 08:58:26 -0800 (PST) Original-Received: from localhost (c-71-204-169-238.hsd1.ca.comcast.net. [71.204.169.238]) by smtp.gmail.com with ESMTPSA id a22sm79999628pfk.108.2020.01.05.08.58.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 05 Jan 2020 08:58:25 -0800 (PST) Content-Disposition: inline In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 209.85.214.173 X-Mailman-Approved-At: Sun, 05 Jan 2020 12:01:13 -0500 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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:243982 Archived-At: On 2020-01-05, Stefan Monnier wrote: >> Rewriting all the C code of Emacs in some other language would be a >> tremendous job. > >But one that can be "embarassingly parallel" and that doesn't require >necessarily much design work, so it's not terribly hard, many people are >able to participate. >It might not make Emacs better, so it might be harder to motivate people, >but the REmacs experience seems to suggest that it could work. > >> If execution of the other language is slower, the slowdown could make >> Emacs unusable on old machines. Old machines such as the T200 and >> T400 are very important for our freedom since we can run them with >> Libreboot. We must not downgrade support for them. > >My main machines run on Core 2 Duos, so I definitely care about those >"old" machines, I want to contribute data points from other GNU projects that Emacs may learn from. GCC moved to C++ [1][2]. gdb moved from C90 to C++ [3]. The filenames are still *.c, but binutils-gdb/gdb/.dir-locals.el contains: (c-mode . ((c-file-style . "GNU") (mode . c++) These processes also motivated people to find obsoleted code (probably while doing "embarassingly parallel" work). [1]: https://lwn.net/Articles/542457/ [2]: https://gcc.gnu.org/wiki/gcc-in-cxx [3]: https://sourceware.org/gdb/wiki/cxx-conversion