nmh-workers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Nmh-workers] GCC 8 pre-releases have escaped...


From: Ralph Corderoy
Subject: Re: [Nmh-workers] GCC 8 pre-releases have escaped...
Date: Wed, 07 Feb 2018 20:40:06 +0000

Hi Bakul,

> trunccpy() is strndup().

Yes, allowing for passing sizeof-1 instead.  And the extra malloc and
free, or piece of work for the GC.

> Go-1.0 used a conservative GC and it was fast enough.

Yes, but AIUI Go's GC was built into the language's runtime and could
use knowledge produced by the compiler to ease its work, e.g. here's a
mask for a struct's layout saying where there are addresses.  It wasn't
a bolt-on GC that looked at a word's bits and cogitated if it was a
pointer that kept something alive.

> Also note Go strings are variable sized.

And immutable.  :-)

-- 
Cheers, Ralph.
https://plus.google.com/+RalphCorderoy



reply via email to

[Prev in Thread] Current Thread [Next in Thread]