Self-hosting D compiler -- Coming Real Soon Now(tm)

Daniel Murphy via Digitalmars-d digitalmars-d at puremagic.com
Wed Sep 10 23:43:32 PDT 2014


"ketmar via Digitalmars-d"  wrote in message 
news:mailman.702.1410379964.5783.digitalmars-d at puremagic.com...

> 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.

The DDMD project is nearly complete, and this is not going to happen as a 
part of it. 



More information about the Digitalmars-d mailing list