Revisiting Loop Recognition in C++ in Rust
Published on: 2025-06-08 18:18:22
Back in 2011, Google published a report for Scala Days 2011 comparing the idiomatic implementation of an algorithm in C++, Java, Go, and Scala.
Over ten years later, the landscape has changed significantly.
The 2011 Stack Overflow Survey (the second ever!) only asked users what languages they were proficient in. Let's pretend for a moment that proficency roughly correlates to popularity. Java leads the four with nearly 32% of respondents claiming some proficiency. C++ is in eighth with just over 26%. Scala gets a measly 0.5%, which puts it all the way into nineteenth place. And Go, having been introduced to the public only two years before, only has a single vote. Rust appears to have zero responses, which makes sense considering that it was a pet project until 2009 and wasn't stable until 2015.
The 2024 Stack Overflow Survey asks some more interesting questions. Proficiency is replaced with popularity (languages users have worked with in the past year), and we also get to see which
... Read full article.