TGViewer
C++ - Reddit C++ - Reddit @r_cpp · 229 subscribers
Post #24698 19
factors at play:

We approached the problem anew, and fresh eyes quickly saw several areas for improvement that had nothing to do with the implementation language per se.
Other improvements came about because we were using a different language with its own idioms, strengths, and weaknesses that forced some new thinking.

We rewrote the C++ version to incorporate those improvements and to backport some of the new ideas from using Rust.

Writing solutions to the same problem in multiple languages has significant benefits, but of course, it is expensive and hard to justify in commercial settings. Perhaps we should repeat this gf2 exercise in a third language someday!

For the most part, the two versions are feature equivalent (a few things are not possible in Rust). They also have very similar performance characteristics, with neither being significantly faster than the other in most scenarios.

https://redd.it/1qjbxwl
@r_cpp
Reddit From the cpp community on Reddit: Implementing a Numerical Library in both C++ and Rust Explore this post and more from the cpp community
More from @r_cpp
  1. Oct 8, 2026Removed by Reddit Removed by Reddit on account of violating the [content policy. ] https:/…
  2. Oct 8, 2026Is there a way to search across all P and N papers throughout standardization history? It…
  3. Oct 8, 2026CppCast Episode 412 : Safety and Interoperability with Rust and C++ https://cppcast.com/sa…
  4. Oct 8, 2026VeloCache: A high-performance, Redis-compatible in-memory key-value store built from scrat…
  5. Oct 8, 2026Which C++ Hashmap Should You Actually Use? https://martin.ankerl.com/which-hash-map/ https…
  6. Oct 8, 2026Lazy Evaluation - Operators https://breese.github.io/2026/09/04/lazy-operator.html https:/…
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →