Automated source translation of C++ to D

ketmar via Digitalmars-d digitalmars-d at puremagic.com
Sat Sep 6 12:00:12 PDT 2014


On Sat, 6 Sep 2014 20:42:32 +0200
Andrej Mitrovic via Digitalmars-d <digitalmars-d at puremagic.com> wrote:

there is two kinds of "porting".

first is just generation of code that will be compiled by the target
compiler. this code can be messy, unreadable and unmaintainable, nobody
cares until it compiles.

second is "real porting", when code is still human-readable and easy to
support, just written in another language.

it's not that hard, for example, to wrtite C++ -> D translator that
produces working mess. let C++ compiler to instantiate all
necessary templates and so on, then use D as "high-level assembler".
resulting blob will be unmaintainable, but working. but this has no
sense, 'cause without original C++ code resulting D code cannot be
supported by any sane human person.

UE "porting" is of second kind.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20140906/0b45f18b/attachment.sig>


More information about the Digitalmars-d mailing list