Self-hosting D compiler -- Coming Real Soon Now(tm)
ketmar via Digitalmars-d
digitalmars-d at puremagic.com
Wed Sep 10 13:12:33 PDT 2014
On Wed, 10 Sep 2014 12:20:04 -0700
"H. S. Teoh via Digitalmars-d" <digitalmars-d at puremagic.com> wrote:
write D -> C++ translator and add translated versions to repo too. no,
really! this C++ code need not to be maintenable, so we can use C++
subset as "assembler language". i.e. use D frontend to make all
analysis, instantiate templates and so on, then just emit ugly,
unreadable, but working subset of C++. why C++? to support exceptions,
which can be hard to do properly with C.
i'm really serious here. and besides solving bootstraping problems we
will have a nice codegen for new platforms: if platform has C++
compiler, we can run D code on in.
sure, there will be problems with GC (let's forget about it for the
first iteration, DMD doesn't do much free()s too) and other things, but
will solve all transition problems.
-------------- 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/20140910/e4c41e6a/attachment.sig>
More information about the Digitalmars-d
mailing list