From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel Subject: Re: Emacs rewrite in a maintainable language Date: Mon, 12 Oct 2015 17:04:41 +0200 Message-ID: <874mhwb01i.fsf@fencepost.gnu.org> References: <561A19AB.5060001@cumego.com> <87io6dl0h0.fsf@wanadoo.es> <87lhb82qxc.fsf@gmail.com> <87oag4jk74.fsf@wanadoo.es> <87vbacyxt9.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1444662359 10291 80.91.229.3 (12 Oct 2015 15:05:59 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 12 Oct 2015 15:05:59 +0000 (UTC) Cc: =?iso-8859-1?Q?=D3scar?= Fuentes , emacs-devel@gnu.org To: Oleh Krehel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Oct 12 17:05:47 2015 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Zlefa-0007Ra-4X for ged-emacs-devel@m.gmane.org; Mon, 12 Oct 2015 17:05:46 +0200 Original-Received: from localhost ([::1]:55955 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZlefZ-00086j-8D for ged-emacs-devel@m.gmane.org; Mon, 12 Oct 2015 11:05:45 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47674) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zleeh-0007cM-8I for emacs-devel@gnu.org; Mon, 12 Oct 2015 11:04:56 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zleeg-0000XD-GQ for emacs-devel@gnu.org; Mon, 12 Oct 2015 11:04:51 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:40907) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zleea-0000Tq-AL; Mon, 12 Oct 2015 11:04:44 -0400 Original-Received: from localhost ([127.0.0.1]:54725 helo=lola) by fencepost.gnu.org with esmtp (Exim 4.82) (envelope-from ) id 1ZleeX-0005L6-Ot; Mon, 12 Oct 2015 11:04:42 -0400 Original-Received: by lola (Postfix, from userid 1000) id 32229E0F01; Mon, 12 Oct 2015 17:04:41 +0200 (CEST) In-Reply-To: <87vbacyxt9.fsf@gmail.com> (Oleh Krehel's message of "Mon, 12 Oct 2015 16:18:58 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::e X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:191347 Archived-At: Oleh Krehel writes: > =D3scar Fuentes writes: > >> Oleh Krehel writes: >> >>> I think slowly moving the Emacs C core to C++ is a good idea. The two >>> languages are supposed to be largely compile-compatible, i.e. g++ can >>> understand what was meant for gcc. >> >> Many times, while looking at the Emacs C sources, I thought "this would >> be much simpler to understand and modify with C++." Furthermore, I would >> volunteer to work on it. >> >> However, there are two factors against it: >> >> * If the rewrite happens, using a better language than C++ is >> desirable. C++ is better than C, but it sucks too. Developing our own >> subset of Elisp that can be compiled to native code and can >> inter-operate with C looks more attractive. > > C++ doesn't suck. If C is good, than a subset of C++ that is C with > constants, templates and classes, but without polymorphism or operator > overloading is a better C - also good. No, because such a subset is neither documented independently nor enforced by the toolchain. You'll not find any tutorials written for it nor standard documents describing it. It's ad hoc. The set of C macros used for Elisp interfacing is ad-hoc as well, but the C language features used for implementing them are a small, well-known set, and knowing that, the Emacs sources tell the rest of the story if you cannot get them from anywhere else. --=20 David Kastrup