Minimal druntime?

Paulo Pinto pjmlp at progtools.org
Sun Jul 28 12:00:19 UTC 2019


On Sunday, 28 July 2019 at 11:07:51 UTC, Ethan wrote:
> On Sunday, 28 July 2019 at 07:32:37 UTC, Paulo Pinto wrote:
>> For the same reason that C++ needs a C like subset when you 
>> want to extract the ultimate performance out of it.
>
> ...are you talking about extern "C" there? Because that's not 
> at all how extern "C" works in a C++ compiler.
>
> I mean, your point in relation to High Performance C# is valid, 
> it's literally "C#, but everything that touches the garbage 
> collector has been removed". And their rationale for doing HPC# 
> was more to do with making sure engine logic and user-facing 
> logic was written in the same language.
>
> But it's also not really valid in relation to -betterC, which - 
> as has been mentioned a few times in this thread - is more of a 
> stand-in for "pay what you use of the D runtime" in lieu of DMD 
> actually being able to do that. You don't need -betterC to 
> @nogc and do completely manual memory management for example.

I am referring to the ISO C89 subset of the ISO C++98 programming 
language. which is now updated to the ISO C89 + ISO C11 libraries 
as of ISO C++17, and will be updated to some C90 language 
constructs like aggregate initializers in ISO C++20.


More information about the Digitalmars-d mailing list