Ary Borenszweig Posted in reply to Meta



Permalink Reply

On 6/4/14, 1:27 PM, Meta wrote: > On Wednesday, 4 June 2014 at 06:19:05 UTC, Andrei Alexandrescu wrote: >> http:// www.reddit. com/r/ programming/ comments/ 27911b/ conversation_ with_andrei_ alexandrescu_ all_things/ >> >> >> Andrei Andrei > > When that person made the statement about expressing his mental model in > a simpler way that is still somewhat fast, and then optimizing/adding > annotations/etc. after he gets it working, I kept expecting you to > mention RDMD and D's ability to be used for scripting, and > purity/nothrow/@safe/@nogc inference. This is an advantage D has over > Rust and C++. With Rust especially, there is no way to avoid dealing > with its pointer semantics, as they permeate the language. With D, you > can write in a C or even Python-like way (while not having to worry > about ownership, memory, etc. as the GC handles it for you), but you can > then optimize and add annotations to your code to get a lot more > performance and safety once your initial implementation is working. On Wednesday, 4 June 2014 at 06:19:05 UTC, Andrei Alexandrescu wrote:When that person made the statement about expressing his mental model ina simpler way that is still somewhat fast, and then optimizing/addingannotations/etc. after he gets it working, I kept expecting you tomention RDMD and D's ability to be used for scripting, andpurity/nothrow/@safe/@nogc inference. This is an advantage D has overRust and C++. With Rust especially, there is no way to avoid dealingwith its pointer semantics, as they permeate the language. With D, youcan write in a C or even Python-like way (while not having to worryabout ownership, memory, etc. as the GC handles it for you), but you canthen optimize and add annotations to your code to get a lot moreperformance and safety once your initial implementation is working.