August 15, 2013 Re: Migrating dmd to D? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Brad Anderson | On Thu, Aug 15, 2013 at 08:19:06PM +0200, Brad Anderson wrote: > On Thursday, 15 August 2013 at 14:11:02 UTC, Daniel Murphy wrote: [...] > >I am currently able to convert the C++ source to D, then build that into a compiler capable of building itself, druntime, phobos (with unittests), and passing the test suite on win32. > > > > So what's left is basically cleaning it all up and fine tuning it so it's good enough for the actual transition? Whoa. This is good news! So you're saying we already have a working D compiler written in D (albeit autoconverted from C++), and all that remains is for some cleanup + performance tuning? T -- Windows 95 was a joke, and Windows 98 was the punchline. |
August 16, 2013 Re: Migrating dmd to D? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Brad Anderson | Isn't the resulting D code is still one 70k-line file? |
August 16, 2013 Re: Migrating dmd to D? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Brad Anderson | "Brad Anderson" <eco@gnuk.net> wrote in message news:vdiwuykbulxauiabwams@forum.dlang.org... > On Thursday, 15 August 2013 at 14:11:02 UTC, Daniel Murphy wrote: >> "Suliman" <bubnenkoff@gmail.com> wrote in message news:htihsekthjkyhqazuvpc@forum.dlang.org... >>> Does anybody work on port D to D? >> >> I've done quite a lot of work on it since dconf. >> >> The progress of making the C++ source 'conversion compatible' is shown >> here: >> https://github.com/D-Programming-Language/dmd/pull/1980 >> > > So all of those changes were just done by hand, right? Have the other DDMD labeled pull requests just been you cherry-picking from that branch? > Yes. >> The porting program is here: https://github.com/yebblies/magicport2 >> >> I am currently able to convert the C++ source to D, then build that into >> a >> compiler capable of building itself, druntime, phobos (with unittests), >> and >> passing the test suite on win32. >> > > So what's left is basically cleaning it all up and fine tuning it so it's good enough for the actual transition? Mostly, yes. |
August 16, 2013 Re: Migrating dmd to D? | ||||
---|---|---|---|---|
| ||||
Posted in reply to H. S. Teoh | "H. S. Teoh" <hsteoh@quickfur.ath.cx> wrote in message news:mailman.91.1376592874.1719.digitalmars-d@puremagic.com... > On Thu, Aug 15, 2013 at 08:19:06PM +0200, Brad Anderson wrote: >> On Thursday, 15 August 2013 at 14:11:02 UTC, Daniel Murphy wrote: > [...] >> >I am currently able to convert the C++ source to D, then build that into a compiler capable of building itself, druntime, phobos (with unittests), and passing the test suite on win32. >> > >> >> So what's left is basically cleaning it all up and fine tuning it so it's good enough for the actual transition? > > Whoa. This is good news! So you're saying we already have a working D compiler written in D (albeit autoconverted from C++), and all that remains is for some cleanup + performance tuning? > Yep, all the fun parts are done and the rest should be fairly tedious. |
August 16, 2013 Re: Migrating dmd to D? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Andrei Alexandrescu | "Andrei Alexandrescu" <SeeWebsiteForEmail@erdani.org> wrote in message news:kuj10l$194l$1@digitalmars.com... > On 8/15/13 7:10 AM, Daniel Murphy wrote: >> "Suliman" <bubnenkoff@gmail.com> wrote in message news:htihsekthjkyhqazuvpc@forum.dlang.org... >>> Does anybody work on port D to D? >> >> I've done quite a lot of work on it since dconf. >> >> The progress of making the C++ source 'conversion compatible' is shown >> here: >> https://github.com/D-Programming-Language/dmd/pull/1980 >> >> The porting program is here: https://github.com/yebblies/magicport2 >> >> I am currently able to convert the C++ source to D, then build that into >> a >> compiler capable of building itself, druntime, phobos (with unittests), >> and >> passing the test suite on win32. > > Did you have a chance to measure the speed of the Double-D compiler? > > Andrei > Last time I measured there was a ~20% performance hit. The D version throws away all the recent work done on tuning the internal allocator, and uses the GC for all allocations (with collections turned off). I suspect a large chunk of the extra time comes from that. |
August 16, 2013 Re: Migrating dmd to D? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Daniel Murphy | On Friday, August 16, 2013 18:54:41 Daniel Murphy wrote:
> Yep, all the fun parts are done and the rest should be fairly tedious.
LOL. I guess that that's kind of where I am with splitting std.datetime. It's basically done code-wise, but now I have to fix all of the documentation, which is no fun at all. :)
- Jonathan M Davis
|
August 16, 2013 Re: Migrating dmd to D? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Kagamin | "Kagamin" <spam@here.lot> wrote in message news:iceiqyqtdsippewgetmp@forum.dlang.org... > Isn't the resulting D code is still one 70k-line file? ~92k Putting the code into multiple files is trivial, but until we've done some major refactoring it won't start to resemble the original source organisation. ( see https://github.com/D-Programming-Language/dmd/pull/2356 for some discussion ) |
August 16, 2013 Re: Migrating dmd to D? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Daniel Murphy | On Friday, 16 August 2013 at 09:28:13 UTC, Daniel Murphy wrote:
> "Kagamin" <spam@here.lot> wrote in message
> news:iceiqyqtdsippewgetmp@forum.dlang.org...
>> Isn't the resulting D code is still one 70k-line file?
>
> ~92k
>
> Putting the code into multiple files is trivial, but until we've done some
> major refactoring it won't start to resemble the original source
> organisation. ( see https://github.com/D-Programming-Language/dmd/pull/2356
> for some discussion )
Looking forward DMD!D
The D compiler that compiles itself at compile time :-)
|
August 16, 2013 Re: Migrating dmd to D? | ||||
---|---|---|---|---|
| ||||
Posted in reply to BS Attachments:
| On Aug 16, 2013 10:55 AM, "BS" <slackovsky@gmail.com> wrote: > > On Friday, 16 August 2013 at 09:28:13 UTC, Daniel Murphy wrote: >> >> "Kagamin" <spam@here.lot> wrote in message news:iceiqyqtdsippewgetmp@forum.dlang.org... >>> >>> Isn't the resulting D code is still one 70k-line file? >> >> >> ~92k >> >> Putting the code into multiple files is trivial, but until we've done some >> major refactoring it won't start to resemble the original source organisation. ( see https://github.com/D-Programming-Language/dmd/pull/2356 >> for some discussion ) > > > Looking forward DMD!D > > The D compiler that compiles itself at compile time :-) > I suspect we won't be able to do that efficiently until Don starts speeding up CTFE. ;-) Regards -- Iain Buclaw *(p < e ? p++ : p) = (c & 0x0f) + '0'; |
August 16, 2013 Re: Migrating dmd to D? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Iain Buclaw | "Iain Buclaw" <ibuclaw@ubuntu.com> wrote in message news:mailman.100.1376649733.1719.digitalmars-d@puremagic.com... > On Aug 16, 2013 10:55 AM, "BS" <slackovsky@gmail.com> wrote: >> >> On Friday, 16 August 2013 at 09:28:13 UTC, Daniel Murphy wrote: >>> >>> "Kagamin" <spam@here.lot> wrote in message news:iceiqyqtdsippewgetmp@forum.dlang.org... >>>> >>>> Isn't the resulting D code is still one 70k-line file? >>> >>> >>> ~92k >>> >>> Putting the code into multiple files is trivial, but until we've done > some >>> major refactoring it won't start to resemble the original source organisation. ( see > https://github.com/D-Programming-Language/dmd/pull/2356 >>> for some discussion ) >> >> >> Looking forward DMD!D >> >> The D compiler that compiles itself at compile time :-) >> > > I suspect we won't be able to do that efficiently until Don starts > speeding > up CTFE. ;-) > Well, the compiler could always invoke the compiler (while compiling the compiler) to compile the compiler, thus vastly improving the speed of ctfe. |
Copyright © 1999-2021 by the D Language Foundation