www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - DMD git HEAD now self-hosting

reply "H. S. Teoh via Digitalmars-d" <digitalmars-d puremagic.com> writes:
I'm surprised nobody has mentioned this on the forum yet, but as of 23
Aug, dmd git HEAD has switched over to ddmd with the landmark commit
88ec9d8.  Since that time, the remaining C++ files have been slowly but
surely phased out one by one, replaced with their D equivalents.

This is awesome news!!!! I think a celebration is in order. ;-)

As of today, there are still about 28 or so C++ files left (84 source
files are now in D). PRs converting C++ sources to D continue to trickle
in.

Way to go, D!


T

-- 
No! I'm not in denial!
Aug 27 2015
next sibling parent "David Nadlinger" <code klickverbot.at> writes:
On Thursday, 27 August 2015 at 20:43:49 UTC, H. S. Teoh wrote:
 I'm surprised nobody has mentioned this on the forum yet […]
See http://forum.dlang.org/post/mrbl1d$qhs$1 digitalmars.com
 As of today, there are still about 28 or so C++ files left (84 
 source files are now in D). PRs converting C++ sources to D 
 continue to trickle in.
The DMC backend is still in C++, although Daniel is planning to convert it to D too. — David
Aug 27 2015
prev sibling next sibling parent reply "Brad Anderson" <eco gnuk.net> writes:
On Thursday, 27 August 2015 at 20:43:49 UTC, H. S. Teoh wrote:
 I'm surprised nobody has mentioned this on the forum yet, but 
 as of 23 Aug, dmd git HEAD has switched over to ddmd with the 
 landmark commit 88ec9d8.  Since that time, the remaining C++ 
 files have been slowly but surely phased out one by one, 
 replaced with their D equivalents.

 This is awesome news!!!! I think a celebration is in order. ;-)

 As of today, there are still about 28 or so C++ files left (84 
 source files are now in D). PRs converting C++ sources to D 
 continue to trickle in.

 Way to go, D!


 T
Haven't been reading Announce? :) http://forum.dlang.org/post/mrbl1d$qhs$1 digitalmars.com
Aug 27 2015
next sibling parent reply "H. S. Teoh via Digitalmars-d" <digitalmars-d puremagic.com> writes:
On Thu, Aug 27, 2015 at 08:46:57PM +0000, Brad Anderson via Digitalmars-d wrote:
 On Thursday, 27 August 2015 at 20:43:49 UTC, H. S. Teoh wrote:
I'm surprised nobody has mentioned this on the forum yet, but as of
23 Aug, dmd git HEAD has switched over to ddmd with the landmark
commit 88ec9d8.  Since that time, the remaining C++ files have been
slowly but surely phased out one by one, replaced with their D
equivalents.

This is awesome news!!!! I think a celebration is in order. ;-)

As of today, there are still about 28 or so C++ files left (84 source
files are now in D). PRs converting C++ sources to D continue to
trickle in.

Way to go, D!


T
Haven't been reading Announce? :) http://forum.dlang.org/post/mrbl1d$qhs$1 digitalmars.com
Ahh, just realized I'm not subscribed to the announce mailing list. *facepalm* T -- English has the lovely word "defenestrate", meaning "to execute by throwing someone out a window", or more recently "to remove Windows from a computer and replace it with something useful". :-) -- John Cowan
Aug 27 2015
parent Jacob Carlborg <doob me.com> writes:
On 2015-08-27 23:02, H. S. Teoh via Digitalmars-d wrote:

 Ahh, just realized I'm not subscribed to the announce mailing list.

 *facepalm*
When one facepalm doesn't cut it :) [1] [1] http://gamerindebt.co.uk/wp-content/uploads/2013/07/double-facepalm.jpg -- /Jacob Carlborg
Aug 27 2015
prev sibling parent reply "bitwise" <bitwise.pvt gmail.com> writes:
On Thursday, 27 August 2015 at 20:46:59 UTC, Brad Anderson wrote:
 On Thursday, 27 August 2015 at 20:43:49 UTC, H. S. Teoh wrote:
 I'm surprised nobody has mentioned this on the forum yet, but 
 as of 23 Aug, dmd git HEAD has switched over to ddmd with the 
 landmark commit 88ec9d8.  Since that time, the remaining C++ 
 files have been slowly but surely phased out one by one, 
 replaced with their D equivalents.

 This is awesome news!!!! I think a celebration is in order. ;-)

 As of today, there are still about 28 or so C++ files left (84 
 source files are now in D). PRs converting C++ sources to D 
 continue to trickle in.

 Way to go, D!


 T
Haven't been reading Announce? :) http://forum.dlang.org/post/mrbl1d$qhs$1 digitalmars.com
So.. looking through the source, I see lots of this: extern (C++) class { ... } Wasn't extern(C++) only supposed to work on interfaces? Are the docs outdated? Thanks, Bit
Aug 27 2015
parent "Daniel Murphy" <yebbliesnospam gmail.com> writes:
"bitwise"  wrote in message news:ydbofgjkddszxedpwogv forum.dlang.org...

 So.. looking through the source, I see lots of this:

 extern (C++) class { ... }

 Wasn't extern(C++) only supposed to work on interfaces?
 Are the docs outdated?
Yup. extern(C++) works with almost everything except special member functions.
Aug 27 2015
prev sibling parent reply "Daniel Murphy" <yebbliesnospam gmail.com> writes:
"H. S. Teoh via Digitalmars-d"  wrote in message 
news:mailman.579.1440708229.13986.digitalmars-d puremagic.com...

 I'm surprised nobody has mentioned this on the forum yet, but as of 23
 Aug, dmd git HEAD has switched over to ddmd with the landmark commit
 88ec9d8.  Since that time, the remaining C++ files have been slowly but
 surely phased out one by one, replaced with their D equivalents.

 This is awesome news!!!! I think a celebration is in order. ;-)
We've been celebrating without you on the announce list!
 As of today, there are still about 28 or so C++ files left (84 source
 files are now in D). PRs converting C++ sources to D continue to trickle
 in.

 Way to go, D!
Unfortunately it's going to slow down for a little while. The files I've done post-switch were only left in C++ because they used a small part of the backend headers and were easier to do by hand instead of converting automatically. The rest of the glue layer/backend (~90 c++ files) is going to need a conversion project of the same scale as the frontend one, preceded by a refactoring project 10 times the size of the frontend one. Walter's recent backend cleanup PRs are working on this, and I'm working on a backend test suite to make refactoring safer. We could see DMD be 100% D within six months, depending on how much free time I have and how picky Walter is about my refactoring PRs.
Aug 27 2015
parent reply "H. S. Teoh via Digitalmars-d" <digitalmars-d puremagic.com> writes:
On Fri, Aug 28, 2015 at 11:17:55AM +1000, Daniel Murphy via Digitalmars-d wrote:
 "H. S. Teoh via Digitalmars-d"  wrote in message
 news:mailman.579.1440708229.13986.digitalmars-d puremagic.com...
[...]
 We've been celebrating without you on the announce list!
Apparently. :-P
As of today, there are still about 28 or so C++ files left (84 source
files are now in D). PRs converting C++ sources to D continue to
trickle in.

Way to go, D!
Unfortunately it's going to slow down for a little while. The files I've done post-switch were only left in C++ because they used a small part of the backend headers and were easier to do by hand instead of converting automatically. The rest of the glue layer/backend (~90 c++ files) is going to need a conversion project of the same scale as the frontend one, preceded by a refactoring project 10 times the size of the frontend one. Walter's recent backend cleanup PRs are working on this, and I'm working on a backend test suite to make refactoring safer. We could see DMD be 100% D within six months, depending on how much free time I have and how picky Walter is about my refactoring PRs.
6 months isn't that long of a time. Excited to hear that 100% D DMD will soon arrive. Another thing I just realized, is that by moving DMD to D, we've given ourselves much greater motivation to improve DMD's codegen, which I think is a good (and necessary!) thing, being the reference compiler and all. Not every newbie will understand the current situation where the reference compiler doesn't produce the most performant code. T -- BREAKFAST.COM halted...Cereal Port Not Responding. -- YHL
Aug 28 2015
parent "wobbles" <grogan.colin gmail.com> writes:
On Friday, 28 August 2015 at 14:55:51 UTC, H. S. Teoh wrote:
 On Fri, Aug 28, 2015 at 11:17:55AM +1000, Daniel Murphy via 
 Digitalmars-d wrote:
 [...]
[...]
 [...]
Apparently. :-P
 [...]
6 months isn't that long of a time. Excited to hear that 100% D DMD will soon arrive. Another thing I just realized, is that by moving DMD to D, we've given ourselves much greater motivation to improve DMD's codegen, which I think is a good (and necessary!) thing, being the reference compiler and all. Not every newbie will understand the current situation where the reference compiler doesn't produce the most performant code. T
And the other advantage is that we'll get performant code with a performant compiler - GDC/LDC are much slower running than DMD.
Aug 28 2015