www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.announce - DMD backend now in D

reply Walter Bright <newshound2 digitalmars.com> writes:
As:

https://github.com/dlang/dmd/pull/8946

removes the header files for the old C++ code!
Nov 11 2018
next sibling parent Andrej Mitrovic <andrej.mitrovich gmail.com> writes:
On Sunday, 11 November 2018 at 23:40:16 UTC, Walter Bright wrote:
 As:

 https://github.com/dlang/dmd/pull/8946

 removes the header files for the old C++ code!
Congrats to everyone!
Nov 11 2018
prev sibling next sibling parent reply Mike Franklin <slavo5150 yahoo.com> writes:
On Sunday, 11 November 2018 at 23:40:16 UTC, Walter Bright wrote:
 As:

 https://github.com/dlang/dmd/pull/8946

 removes the header files for the old C++ code!
This is a significant milestone. Congratulations, Walter! There are still a few .c files in https://github.com/dlang/dmd/tree/master/src/dmd/backend, so what's the significance of those? Will there ever be a day when we no longer need a C/C++ compiler to build DMD? Has that day arrived? Mike
Nov 11 2018
parent reply Walter Bright <newshound2 digitalmars.com> writes:
On 11/11/2018 3:58 PM, Mike Franklin wrote:
 This is a significant milestone.  Congratulations, Walter!
Many people helped out with this, too.
 There are still a few .c files in 
 https://github.com/dlang/dmd/tree/master/src/dmd/backend, so what's the 
 significance of those?
tk.c fp.c os.c strtold.c tk/mem.c These could be converted too, but are independent from everything else and hardly seem worth the bother. Sebastian has a PR for os.cd.
 Will there ever be a day when we no longer need a C/C++ compiler to build DMD?
Sure.
 Has that day arrived?
Pragmatically, yes. Technically, no.
Nov 11 2018
next sibling parent reply Jacob Carlborg <doob me.com> writes:
On 2018-11-12 03:37, Walter Bright wrote:
 On 11/11/2018 3:58 PM, Mike Franklin wrote:
 This is a significant milestone.  Congratulations, Walter!
Many people helped out with this, too.
 There are still a few .c files in
 https://github.com/dlang/dmd/tree/master/src/dmd/backend, so what's
 the significance of those?
tk.c fp.c os.c strtold.c tk/mem.c These could be converted too, but are independent from everything else and hardly seem worth the bother. Sebastian has a PR for os.cd.
dmd/root/ctfloat.d depends on the "strtold_dm" function defined in strtold.c [2] when compiling using Visual Studio. That means that the Dub package cannot be compile using Visual Studio without this file. [1] https://github.com/dlang/dmd/blob/4df5d6a6e8775754148939beb6de827fe4b0b9ab/src/dmd/root/ctfloat.d#L167-L170 [2] https://github.com/dlang/dmd/blob/4df5d6a6e8775754148939beb6de827fe4b0b9ab/src/dmd/backend/strtold.c#L138 -- /Jacob Carlborg
Nov 12 2018
parent rikki cattermole <rikki cattermole.co.nz> writes:
On 13/11/2018 12:12 AM, Jacob Carlborg wrote:
 On 2018-11-12 03:37, Walter Bright wrote:
 On 11/11/2018 3:58 PM, Mike Franklin wrote:
 This is a significant milestone.  Congratulations, Walter!
Many people helped out with this, too.
 There are still a few .c files in
 https://github.com/dlang/dmd/tree/master/src/dmd/backend, so what's
 the significance of those?
tk.c fp.c os.c strtold.c tk/mem.c These could be converted too, but are independent from everything else and hardly seem worth the bother. Sebastian has a PR for os.cd.
dmd/root/ctfloat.d depends on the "strtold_dm" function defined in strtold.c [2] when compiling using Visual Studio. That means that the Dub package cannot be compile using Visual Studio without this file. [1] https://github.com/dlang/dmd/blob/4df5d6a6e8775754148939beb6de827fe4b0b9ab/src/dmd/root ctfloat.d#L167-L170 [2] https://github.com/dlang/dmd/blob/4df5d6a6e8775754148939beb6de827fe4b0b9ab/src/dmd/ba kend/strtold.c#L138
That module needs a right rethink for dmd-fe as a library purposes. https://issues.dlang.org/show_bug.cgi?id=18810
Nov 12 2018
prev sibling parent reply Temtaime <temtaime gmail.com> writes:
On Monday, 12 November 2018 at 02:37:54 UTC, Walter Bright wrote:
 On 11/11/2018 3:58 PM, Mike Franklin wrote:
 This is a significant milestone.  Congratulations, Walter!
Many people helped out with this, too.
 There are still a few .c files in 
 https://github.com/dlang/dmd/tree/master/src/dmd/backend, so 
 what's the significance of those?
tk.c fp.c os.c strtold.c tk/mem.c These could be converted too, but are independent from everything else and hardly seem worth the bother. Sebastian has a PR for os.cd.
 Will there ever be a day when we no longer need a C/C++ 
 compiler to build DMD?
Sure.
No, as phobos is dependent on C libraries such as a zlib for example. Also D is dependent on libc.
Nov 13 2018
parent Joakim <dlang joakim.fea.st> writes:
On Tuesday, 13 November 2018 at 20:42:00 UTC, Temtaime wrote:
 On Monday, 12 November 2018 at 02:37:54 UTC, Walter Bright 
 wrote:
 On 11/11/2018 3:58 PM, Mike Franklin wrote:
 This is a significant milestone.  Congratulations, Walter!
Many people helped out with this, too.
 There are still a few .c files in 
 https://github.com/dlang/dmd/tree/master/src/dmd/backend, so 
 what's the significance of those?
tk.c fp.c os.c strtold.c tk/mem.c These could be converted too, but are independent from everything else and hardly seem worth the bother. Sebastian has a PR for os.cd.
 Will there ever be a day when we no longer need a C/C++ 
 compiler to build DMD?
Sure.
No, as phobos is dependent on C libraries such as a zlib for example.
DMD doesn't use Phobos.
 Also D is dependent on libc.
It's possible to reimplement the subset of libc functions that DMD depends on in D.
Nov 13 2018
prev sibling next sibling parent Codifies <a b.com> writes:
On Sunday, 11 November 2018 at 23:40:16 UTC, Walter Bright wrote:
 As:

 https://github.com/dlang/dmd/pull/8946

 removes the header files for the old C++ code!
by this, does it mean that D is entirely self hosted ?, ie given some slightly out of date version of dmd is that all thats needed to build dmd in its entirety ? If so congrats on version one ! :p
Nov 11 2018
prev sibling next sibling parent bauss <jj_1337 live.dk> writes:
On Sunday, 11 November 2018 at 23:40:16 UTC, Walter Bright wrote:
 As:

 https://github.com/dlang/dmd/pull/8946

 removes the header files for the old C++ code!
This makes me happy.
Nov 12 2018
prev sibling parent Jacob Carlborg <doob me.com> writes:
On 2018-11-12 00:40, Walter Bright wrote:
 As:

 https://github.com/dlang/dmd/pull/8946

 removes the header files for the old C++ code!
BTW, this is great news :) -- /Jacob Carlborg
Nov 12 2018