3 ms·
In Python, you _need_ to understand the GC and its class system - even if you ignore it, the standard library doesn't. In C++ the situation is similar unless yo
by LaGrange 9y ago
In Python, you _need_ to understand the GC and its class system - even if you ignore it, the standard library doesn't. In C++ the situation is similar unless you're actually writing C and compiling it with a C++ compiler. Go is fairly small for a modern language, but it does have a GC and a fancy type system.
OTOH preprocessor directives grow the base C a bit. It's still very tiny, though.
- kevinmgranger 9y agoIn what way do you need to understand the GC before using it? The only thing I can think of is avoiding circular references.
- Retric 9y agoGC can cause a lot of issues if you care about how exactly long something takes. Like all abstractions there are corner cases that force you to deal with the underlying complexity.
- LaGrange 9y agoGo ahead and allocate and deallocate lots of tiny objects in a short period of time. Depending on GC, you'll either run out of memory, or grind down to a halt.