3 ms·
This article confuses the language, C, with C implementations. C is a high-level language. It's just that its abstractions are sparse and the guarantees so sli
by wahern 8y ago
This article confuses the language, C, with C implementations.
C is a high-level language. It's just that its abstractions are sparse and the guarantees so slim that there doesn't need to be significant runtime machinery that divorces logical control flow from machine code control flow. But a C implementation is also perfectly free to implement machinery such as fat pointers and mark & sweep garbage collection[1] for compliant C code. And even though few implementations bother with such machinery the C committee still expends significant effort in an attempt to preserve the high-level character. To this day, for example, there's still debate about whether and to what extent you can legally export pointer values outside the runtime and subsequently reimport them, and in particular what that means for implementations (largely hypothetical) which carefully track objects and object lifetimes.
[1] I mean precise GC, not conservative GC.