Re:Why Discord is switching from Go to Rust
by spullara on Tuesday February 04, 2020 @02:24PM
(#22239850)
100%. In Java, you would often use OpenHFT's ChronicleMap for now and hopefully inline classes/records in Java 16 or so.
Re:Why Discord is switching from Go to Rust
by cgh on Tuesday February 04, 2020 @02:59PM
(#22240259)
Ehcache has an efficient off-heap store: https://github.com/Terracotta-OSS/offheap-store/
Doesn't Go have something like this available? It's an obvious thing for garbage-collected languages to have.
Often something like Redis is used as a shared cache that is invisible to the garbage collector, there is a natural key with a weak reference (by name) into a KV store. One could embed a KV store into an application that the GC can't scan into.