Jump to page: 1 2
Thread overview
[Issue 3155] New: LDC2 support for druntime
Feb 05, 2010
Hoenir
Feb 05, 2010
Sean Kelly
Feb 05, 2010
Trass3r
Feb 09, 2010
Sean Kelly
Feb 09, 2010
Brad Roberts
Feb 09, 2010
Trass3r
Feb 10, 2010
Sean Kelly
Feb 10, 2010
Sean Kelly
Jun 30, 2010
Jacob Carlborg
Jul 01, 2010
Sean Kelly
Jul 16, 2010
David Simcha
Dec 12, 2011
Robert Clipsham
July 08, 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3155

           Summary: LDC2 support for druntime
           Product: D
           Version: future
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: druntime
        AssignedTo: sean@invisibleduck.org
        ReportedBy: robert@octarineparrot.com


Created an attachment (id=417)
 --> (http://d.puremagic.com/issues/attachment.cgi?id=417)
LDC2 support for druntime

I have attached a patch which adds support for ldc2 to druntime. To build use ./build-ldc.sh in the src/ directory. I created a shell script for it as I find the current make system is far too complicated, feel free to port it to use make though. Note that ldc2 is still largely a work in progress. I have also moved gc/basic/*.d to gc/basic/gc/*.d, purely because ldc plays nicer this way. You will need to update the dmd make files to reflect this change.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
February 05, 2010
http://d.puremagic.com/issues/show_bug.cgi?id=3155


Hoenir <mrmocool@gmx.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mrmocool@gmx.de


--- Comment #1 from Hoenir <mrmocool@gmx.de> 2010-02-05 09:19:31 PST ---
What's the status of this issue, Sean?

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
February 05, 2010
http://d.puremagic.com/issues/show_bug.cgi?id=3155



--- Comment #2 from Sean Kelly <sean@invisibleduck.org> 2010-02-05 11:36:59 PST ---
The druntime source tree has changed to the point where it's no longer trivial to integrate an additional compiler runtime.  I'll have to think about how to add LDC2 support.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
February 05, 2010
http://d.puremagic.com/issues/show_bug.cgi?id=3155



--- Comment #3 from Trass3r <mrmocool@gmx.de> 2010-02-05 12:04:44 PST ---
Yeah, I think gdc is also gradually approaching 2.020 where druntime was
introduced and will face the same problem.
They are currently upgrading to 2.016.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
February 09, 2010
http://d.puremagic.com/issues/show_bug.cgi?id=3155



--- Comment #4 from Sean Kelly <sean@invisibleduck.org> 2010-02-09 09:46:41 PST ---
The correct approach may be to have a separate Druntime for each compiler. This is a bit less granular than the previous design where multiple compiler runtimes could be plugged into the same SVN tree, but that design was a pain to deal with from a maintenance perspective (though it's still functionally feasible).  I don't really like that it would mean code merges for the GC and core code however.  Suggestions welcome.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
February 09, 2010
http://d.puremagic.com/issues/show_bug.cgi?id=3155


Brad Roberts <braddr@puremagic.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |braddr@puremagic.com


--- Comment #5 from Brad Roberts <braddr@puremagic.com> 2010-02-09 11:04:04 PST ---
A separate runtime per compiler seems very wrong to me.

I can understand that the current code bases look fairly far apart due to the length of time they've been allowed to drift, but really, shouldn't they be very very similar for the vast majority of the code?

I recognize that ldc has introduced additional compiler emited function calls, but there's no reason that those can't be included in druntime.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
February 09, 2010
http://d.puremagic.com/issues/show_bug.cgi?id=3155



--- Comment #6 from Trass3r <mrmocool@gmx.de> 2010-02-09 12:54:20 PST ---
Couldn't those parts that are compiler-specific be held in their own subfolders or whatever to keep it clean?

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
February 10, 2010
http://d.puremagic.com/issues/show_bug.cgi?id=3155



--- Comment #7 from Sean Kelly <sean@invisibleduck.org> 2010-02-09 17:45:04 PST ---
They were in their own folder, in fact, there was a 'compiler' folder with subfolders for each compiler, but the structure was deemed unnecessarily complicated when the only compiler supported was DMD.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
February 10, 2010
http://d.puremagic.com/issues/show_bug.cgi?id=3155



--- Comment #8 from Sean Kelly <sean@invisibleduck.org> 2010-02-09 17:50:28 PST ---
For what it's worth, part of the problem is that the path to a module must correspond to the package name.  This makes the SVN structure a lot more complicated when there are two compiler runtimes that both have to live in "rt.*", for example.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
June 30, 2010
http://d.puremagic.com/issues/show_bug.cgi?id=3155


Jacob Carlborg <doob@me.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |doob@me.com


--- Comment #9 from Jacob Carlborg <doob@me.com> 2010-06-30 12:49:14 PDT ---
Why not just use the approach Tango uses?

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
« First   ‹ Prev
1 2