2 ms·
Nice work! Any reason why Go was used and not C or Rust? I was under the impression Go would be slower and you are aiming for high performance.
by knowitnone 2y ago
Nice work! Any reason why Go was used and not C or Rust? I was under the impression Go would be slower and you are aiming for high performance.
- alexpadula 2y agoThank you! I love Go. I've implemented various storage engines and data structures in C and C++. For this specific storage engine, I chose Go because I had previously developed a similar engine called TidesDB in C++. While K4 has a similar feature set, it outperforms TidesDB. Although Go can be slower than languages like C, Rust, and C++, it avoids the complexity of manual memory management and intricate optimizations that can introduce performance overhead. Go allows for a more approachable development experience, enabling you to focus on higher-level constructs without getting bogged down in low-level details, ultimately making it easier to optimize and write less buggy code.