5 ms·
For the kind of software I write there are two cases: (1) the hot path for which I will always have custom allocators and avoid allocations and (2) everything e
by HippoBaro 2y ago
For the kind of software I write there are two cases: (1) the hot path for which I will always have custom allocators and avoid allocations and (2) everything else.
For (1) GC or not it doesn’t make a difference, I’ll opt-out. For (2) GC is really convenient and correct.
- leapis 2y agoAgreed- I come from a Java/C++ shop where we tried to tackle this dichotomy with interop but it ended up causing more problems than it solved. A lot of the work that Java has done with modern garbage collectors is impressive, but even they admit (indirectly, via Valhalla) that no/low-alloc code has it's place.
- astrobe_ 2y ago> no/low-alloc code has it's place ... Which is pretty large in the embedded firwmare field. However that's not systems programming but system (singular) programming.
- deleted 2y ago[deleted]