On Monday, 18 October 2021 at 14:39:35 UTC, russhy wrote:>
and then you freeze all threads and must scan all allocated pointers whenever your "gc'd malloc"'s buffer needs to grow
An unsolvable problem, clearly, as it is inconceivable that the user could set a heap size.
Don't believe anyone that would tell you this could boils down to a simple call to a function, such as GC.setHeapSize(XXXX), they are clearly manipulating you.>
you can't compete with highlevel languages and their sub 1ms incremental GC
Let me tell you a secret. most modern languages use an hybrid approach as the one I described, and even old one have been repurposed to use that when possible (for instance python).>
ASP.net team is working hard on reducing the impact of the GC in their library!!!! even thought they have a competitive GC, they are making sure they don't do useless GC allocations and are using Span/stackalloc/ValueTysk everywhere!!
Ho, damn, a hybrid approach that allocates on the stack or the GC and frees instead of leaking. Who could have though of that?>
The smart and pragmatic approach is to give tools for people to write efficient software
Allocators is one of them
How the strawman screaming in between you hear doing?>
Have we lost our mind focusing on the GC? i think yes
With all due respect, you clearly are not able to address the points made in the discussions you are participating in. It's harsh, but it's true. You shouldn't be making statements about others losing their mind.