[OT] Unity's HPC#

arakan arkino marcosdonalonso at gmail.com
Sun Mar 31 05:45:57 UTC 2019


On Friday, 1 March 2019 at 07:18:17 UTC, Paulo Pinto wrote:
> On Thursday, 28 February 2019 at 12:05:54 UTC, Dukc wrote:
>> On Wednesday, 27 February 2019 at 19:13:11 UTC, Nick 
>> Sabalausky (Abscissa) wrote:
>>> So they have a rather interesting solution: They're switching 
>>> from C++ to a subset of C#, combined with some custom libs 
>>> and IL-based tooling. Sounds slightly odd, but they make a 
>>> very convincing case for it.
>>
>> This is exactly where D has the largest advantage over C#. I 
>> find that C# is generally good to code with, as long as you 
>> don't care about performance beyond avoiding big O crimes. But 
>> when you try to do stuff like using structs when you don't 
>> need polymorhism or trying to minimize allocation when working 
>> with an array, it gets inpractical. With D, of course you 
>> still need to put a bit more thought in, but it doesn't feel 
>> like the language is fighting your optimization efforts.
>
> Only if talking about C# up to version 6.
>
> Versions 7 and 8 incorporate many of the Midori lessons, some 
> of which even landend on C++.

This is exactly where D has the largest advantage over C#. I find 
that C# is generally good to code with, as long as you don't care 
about performance beyond avoiding big O crimes. But when you try 
to do stuff like using structs when you don't need polymorhism or 
trying to minimize allocation when working with an array, it gets 
inpractical. With D, of course you still need to put a bit more 
thought in, but it doesn't feel like the language is fighting 
your optimization efforts.


More information about the Digitalmars-d mailing list