Zig vs D generics

Paulo Pinto pjmlp at progtools.org
Wed Oct 12 12:24:05 UTC 2022


On Wednesday, 12 October 2022 at 11:27:26 UTC, Ola Fosheim 
Grøstad wrote:
> On Tuesday, 11 October 2022 at 16:14:39 UTC, IGotD- wrote:
>> ...
>
>> There is currently very little reason to choose C++ over any 
>> other modern alternative today for a new project.
>
> Objectively speaking, there are plenty of reasons to write 
> performance parts of a new application in C++, if you already 
> know it, as it provides more options than any other competitor. 
>  And while C has better interop and portability, C++ still has 
> a wider array of interop and portability options than any other 
> single alternative.
>
> This will remain true until we see a clear sign that other 
> languages are cutting into C++ at scale. Right now they are 
> just nibbling around the edges.
>
>

C++ was created for writing distributed systems at AT&T, nowadays 
other languages rule in across all projects that are part of 
Cloud Native Computing Foundation, they aren't just a tiny bunch,

https://landscape.cncf.io/

C++ ruled the GUI frameworks tooling during the 1990's, with C++ 
frameworks being shipped with every compiler, nowadays with 
exception of Microsoft, there isn't an OS vendor left shipping a 
C++ GUI framework with the platform SDK. Qt seems to be the last 
man standing, and even them, had to turn into enterprise 
customers to keep their developers going.

C++ still has many key domains, when the head of ISO C++ does a 
public plea for developers to improve C++ instead of going 
elsewhere, while presenting his own flavour of C++-vnext, one 
needs to wonder if it will ever be anything past ISO C++26.

Penny and penny laid up will be many.



More information about the Digitalmars-d mailing list