Migrating dmd to D?

js.mdnq js_adddot+mdng at gmail.com
Sat Mar 2 22:23:16 PST 2013


On Sunday, 3 March 2013 at 05:48:30 UTC, Walter Bright wrote:
> On 3/2/2013 8:36 PM, js.mdnq wrote:
>> On Saturday, 2 March 2013 at 23:09:57 UTC, Walter Bright wrote:
>>> On 3/2/2013 3:00 PM, Andrej Mitrovic wrote:
>>>> On 3/2/13, Dicebot <m.strashun at gmail.com> wrote:
>>>>> Wow, I have never known something like that exists! Is there
>>>>> description of what it actually does or source code is only
>>>>> possible reference. Depending on actual limitations, it may 
>>>>> be a
>>>>> game changer.
>>>>
>>>> I had alook, all it does is avoids generating moduleinfo. 
>>>> I'm not sure
>>>> how that helps, the GC still works with this switch.
>>>>
>>>
>>> By not generating moduleinfo, which needs phobos to work, it 
>>> can link with C
>>> only.
>>
>> But isn't there a few language constructs the specifically 
>> rely on the GC?
>
> Yes, and those will fail to link.

I think original we started with dmd being GC dependent and that 
this causes problems for some platforms. To move dmd to d source 
and be more platform independent one would need the core spec to 
be GC independent. IIRC arrays depend on the GC for cleanup and 
therefore this would need to be changed to allow arrays in the 
core. Really what is needed is gc arrays and ngc arrays as well 
as other essential features. e.g., gc arrays would not be part of 
the core spec while ngc arrays would.


More information about the Digitalmars-d mailing list