3 ms·
The big reason why Rust is getting hype is that it's hitting the niche of C++ but doesn't suck to integrate. Ever wonder why so many C++ "libraries" are "heade
by bsder 5y ago
The big reason why Rust is getting hype is that it's hitting the niche of C++ but doesn't suck to integrate. Ever wonder why so many C++ "libraries" are "header-only"? Yeah.
Even if you declare your lib API 'extern "C"', when you call into C++ code you need a C++ runtime that is exactly what you compiled the C++ code with and it has to speak exceptions, templates, name-mangling, etc., exactly like the compiler you compiled that C++ library with. So, you always need the exact compiler to integrate C++.
With Rust, it's a library just like if you compiled it with a C compiler.
The fact that Rust fixes that long-standing C++ suckage, in my opinion, is THE killer feature that's making Rust "popular".
- sk1459 5y agoI think the hype has a lot more to do with paid content marketers. You may recognize a few from when Rails was the new shiny. If you look at surveys of actual usage, such as by Jetbrains or Stack Overflow, the number of actual Rust users is very small. Small enough that I’m skeptical of anyone who states that they have written anything other than side projects. Product names and businesses are usually omitted in testimonials here on HN. The activity on GitHub is also not growing with respect to other popular languages (and has not for years). C++ is actually growing modestly, if GitHut2.0 is to be believed. That makes sense to me given the impressive features that have come to C++17 and 20.