3 ms·
I only use hardcoded arrays in C, that way it's hard to leak anything and you avoid cache misses, but I feel fortunate I use Java on the server because I would
by bullen 5y ago
I only use hardcoded arrays in C, that way it's hard to leak anything and you avoid cache misses, but I feel fortunate I use Java on the server because I would not be able to sleep with C crashing on there!
I think the real technical reason, like you allude to, is closer to this quote:
"Many lock-free structures offer atomic-free read paths, notably concurrent containers in garbage collected languages, such as ConcurrentHashMap in Java. Languages without garbage collection have fewer straightforward options, mostly because safe memory reclamation is a hard problem..." - Travis Downs https://travisdowns.github.io/blog/2020/07/06/concurrency-costs.html https://travisdowns.github.io/blog/2020/07/06/concurrency-co...
But I have yet to meet someone (4 years into this realization) that can clearly explain why in a way that anyone could understand and more importantly accept!