<p><br>
On Mar 2, 2013 5:31 PM, "js.mdnq" <<a href="mailto:js_adddot%2Bmdng@gmail.com">js_adddot+mdng@gmail.com</a>> wrote:<br>
><br>
> On Saturday, 2 March 2013 at 15:12:40 UTC, Iain Buclaw wrote:<br>
>><br>
>> On Mar 2, 2013 3:01 PM, "SomeDude" <<a href="mailto:lovelydear@mailmetrash.com">lovelydear@mailmetrash.com</a>> wrote:<br>
>>><br>
>>><br>
>>> On Saturday, 2 March 2013 at 14:47:55 UTC, David Nadlinger wrote:<br>
>>>><br>
>>>><br>
>>>> On Saturday, 2 March 2013 at 07:16:04 UTC, SomeDude wrote:<br>
>>>>><br>
>>>>><br>
>>>>> On Saturday, 2 March 2013 at 06:50:32 UTC, SomeDude wrote:<br>
>>>>>><br>
>>>>>><br>
>>>>>><br>
>>>>>> Exactly. This fixed subset would be very limited in comparison to the<br>
>><br>
>> full language (I can imagine something looking a bit like a smaller Go,<br>
>> there would probably be no templates at all, no CTFE, maybe even no<br>
>> exceptions, for instance), but would be orthogonal, completely stable in<br>
>> terms of spec, and known to work. It could be defined for other real world<br>
>> usages as well, like embedding in small appliances.<br>
>>>>><br>
>>>>><br>
>>>>><br>
>>>>> It would also make it easy to bootstrap the compiler on new platforms.<br>
>>>><br>
>>>><br>
>>>><br>
>>>> I don't see how this would help with proting to different platofrms at<br>
>><br>
>> all if you have a cross-compiler.<br>
>>>><br>
>>>><br>
>>>> Yes, the DMD frontend currently isn't really built with<br>
>><br>
>> cross-compilation in mind (e.g. using the host's floating point arithmetic<br>
>> for constant folding/CTFE), but once this has been changed, I don't see how<br>
>> the language used would make any difference in re-targetting at all.<br>
>>>><br>
>>>><br>
>>>> You simply use another host system (e.g. Windows/Linux x86) until the<br>
>><br>
>> new backend/runtime is stable enough for the compiler to self-host.<br>
>>>><br>
>>>><br>
>>>> David<br>
>>><br>
>>><br>
>>><br>
>>> And what if you *don't* have a cross compiler ? You compile the D subset<br>
>><br>
>> (bootstrapper) in C and off you go (provided you have a reasonable C<br>
>> compiler on that platform).<br>
>><br>
>> I don't see how using only a subset of the language would have an effect on<br>
>> cross compiling or porting of a compiler self hosted in D.  Your argument<br>
>> is lost on me some dude...<br>
>><br>
>> Regards<br>
><br>
><br>
><br>
><br>
> For the same reason that most embedded languages use C and not C++.</p>
<p>These aren't self hosting if they are written in another language.<br></p>
<p>Regards<br>
-- <br>
Iain Buclaw</p>
<p>*(p < e ? p++ : p) = (c & 0x0f) + '0';<br>
</p>