63 points · by sajal83 · 11y ago · 17 comments
If you have a time target of 350us, then a 3 millisecond pause means you are dead. So you either write Go in such a fashion as to not create junk or use c++. Systems and time sensitive languages cannot have GC.
This is not true, as not all GCs are stop-the-world, and all GC systems have some sort of pool system allowing you to manage/batch your allocations and sweeps. Root all your allocations for the inner loop, and unroot them/trigger a release when ready.
Not for all allocations. You can manually do it for a subset of them, but pooling all allocations is generally extremely impractical.
How do you, for example, pool the allocations that closures or defer perform?
Related: http://www.evanmiller.org/why-i-program-in-erlang.html
Hard realtime linux systems do that as a basic given, and all real-time code I've ever seen was C, C++ or SmallTalk, and effectively bypasses the kernel entirely.
I may have to give GO another shot with 1.5.