Small @nogc experience report
Peter Alexander
peter.alexander.au at gmail.com
Sat Sep 8 09:55:17 UTC 2018
On Saturday, 8 September 2018 at 08:32:58 UTC, Guillaume Piolat
wrote:
> On Saturday, 8 September 2018 at 08:07:07 UTC, Peter Alexander
> wrote:
>> I'd love to know if anyone is making good use of @nogc in a
>> larger code base and is happy with it. Weka.io?
>
> Not Weka but we are happy with @nogc and without @nogc our job
> would be impossible.
>
> You don't like it fine. But I can guarantee it has its uses.
>
> There is no other choice when the runtime is disabled but to
> have @nogc.
> It's a fantastic peace of mind for high-performance to be able
> to _enforce_ something will not allocate. If anything, that's
> superior to C++ when copying a std::vector will trigger an
> allocation etc.
Thanks for chiming in. That's good to know.
More information about the Digitalmars-d
mailing list