Re: C++ compiler vs D compiler

2015-10-03 Thread deadalnix via Digitalmars-d
On Sunday, 4 October 2015 at 01:26:53 UTC, Walter Bright wrote: Memory safety means no memory corruption is possible. Therefore, there can be no undefined behavior in @safe code. Overflowing an int is undefined behavior, but it is not memory corruption. Overflowing an int is defined behavi

Re: C++ compiler vs D compiler

2015-10-03 Thread Walter Bright via Digitalmars-d
On 10/3/2015 12:49 PM, deadalnix wrote: On Saturday, 3 October 2015 at 19:43:13 UTC, Walter Bright wrote: On 10/3/2015 8:43 AM, Timon Gehr wrote: There are also some other, more minor issues. For example, when the language specification speaks about "memory safety", it is really unclear what th

Re: C++ compiler vs D compiler

2015-10-03 Thread deadalnix via Digitalmars-d
On Saturday, 3 October 2015 at 19:43:13 UTC, Walter Bright wrote: On 10/3/2015 8:43 AM, Timon Gehr wrote: There are also some other, more minor issues. For example, when the language specification speaks about "memory safety", it is really unclear what this means, as the language designers seem

Re: C++ compiler vs D compiler

2015-10-03 Thread Walter Bright via Digitalmars-d
On 10/3/2015 8:43 AM, Timon Gehr wrote: There are also some other, more minor issues. For example, when the language specification speaks about "memory safety", it is really unclear what this means, as the language designers seem to think it that it is fine to have undefined behaviour in a sectio

Re: C++ compiler vs D compiler

2015-10-03 Thread Timon Gehr via Digitalmars-d
On 10/03/2015 12:45 PM, Abdulhaq wrote: Perhaps the answer to this is obvious, but what's harder to write from scratch - a C++ compiler or a D compiler? :-) We know Walter wrote a C++ compiler single handedly, does anyone else recall the C++ Grandmaster qualification, the free course where parti

Re: C++ compiler vs D compiler

2015-10-03 Thread Cauterite via Digitalmars-d
On Saturday, 3 October 2015 at 10:45:29 UTC, Abdulhaq wrote: Perhaps the answer to this is obvious, but what's harder to write from scratch - a C++ compiler or a D compiler? :-) I suspect writing a C++ compiler would be more difficult, unless you takes some shortcuts. The language's grammar is

C++ compiler vs D compiler

2015-10-03 Thread Abdulhaq via Digitalmars-d
Perhaps the answer to this is obvious, but what's harder to write from scratch - a C++ compiler or a D compiler? :-) We know Walter wrote a C++ compiler single handedly, does anyone else recall the C++ Grandmaster qualification, the free course where participants get to write a complete C++ co