[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Emacs rewrite in a maintainable language
From: |
David Kastrup |
Subject: |
Re: Emacs rewrite in a maintainable language |
Date: |
Mon, 12 Oct 2015 17:04:41 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) |
Oleh Krehel <address@hidden> writes:
> Óscar Fuentes <address@hidden> writes:
>
>> Oleh Krehel <address@hidden> 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.
--
David Kastrup
- Re: Emacs rewrite in a maintainable language, (continued)
- Re: Emacs rewrite in a maintainable language, Ken Raeburn, 2015/10/13
- Re: Emacs rewrite in a maintainable language, John Wiegley, 2015/10/13
- Re: Emacs rewrite in a maintainable language, David Kastrup, 2015/10/15
- Re: Emacs rewrite in a maintainable language, Daniel Colascione, 2015/10/13
- Re: Emacs rewrite in a maintainable language, Stephen J. Turnbull, 2015/10/15
- Re: Emacs rewrite in a maintainable language, Oleh Krehel, 2015/10/15
- Re: Emacs rewrite in a maintainable language,
David Kastrup <=
- Re: Emacs rewrite in a maintainable language, Paul Eggert, 2015/10/15
- Re: Emacs rewrite in a maintainable language, Oleh Krehel, 2015/10/15
- Re: Emacs rewrite in a maintainable language, Eli Zaretskii, 2015/10/12
- Re: Emacs rewrite in a maintainable language, David Kastrup, 2015/10/15
- Re: Emacs rewrite in a maintainable language, Stephen J. Turnbull, 2015/10/15
- Re: Emacs rewrite in a maintainable language, Marcus Harnisch, 2015/10/13
- Re: Emacs rewrite in a maintainable language, Richard Stallman, 2015/10/13
- Re: Emacs rewrite in a maintainable language, Daniel Colascione, 2015/10/13
- Re: Emacs rewrite in a maintainable language, Marcus Harnisch, 2015/10/14
Re: Emacs rewrite in a maintainable language, Przemysław Wojnowski, 2015/10/15