Thread overview | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
November 11, 2018 DMD backend now in D | ||||
---|---|---|---|---|
| ||||
As: https://github.com/dlang/dmd/pull/8946 removes the header files for the old C++ code! |
November 11, 2018 Re: DMD backend now in D | ||||
---|---|---|---|---|
| ||||
Posted in reply to Walter Bright | 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!
|
November 11, 2018 Re: DMD backend now in D | ||||
---|---|---|---|---|
| ||||
Posted in reply to Walter Bright | 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 |
November 12, 2018 Re: DMD backend now in D | ||||
---|---|---|---|---|
| ||||
Posted in reply to Walter Bright | 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
|
November 11, 2018 Re: DMD backend now in D | ||||
---|---|---|---|---|
| ||||
Posted in reply to Mike Franklin | 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. |
November 12, 2018 Re: DMD backend now in D | ||||
---|---|---|---|---|
| ||||
Posted in reply to Walter Bright | 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.
|
November 12, 2018 Re: DMD backend now in D | ||||
---|---|---|---|---|
| ||||
Posted in reply to Walter Bright | 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 |
November 12, 2018 Re: DMD backend now in D | ||||
---|---|---|---|---|
| ||||
Posted in reply to Walter Bright | 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 |
November 13, 2018 Re: DMD backend now in D | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jacob Carlborg | 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/backend/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 |
November 13, 2018 Re: DMD backend now in D | ||||
---|---|---|---|---|
| ||||
Posted in reply to Walter Bright | 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.
|
Copyright © 1999-2021 by the D Language Foundation