Small @nogc experience report
Guillaume Piolat
spam at spam.org
Sat Sep 8 08:32:58 UTC 2018
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.
More information about the Digitalmars-d
mailing list