4 ms·
It's slower then C for sure. But slower then C++? I doubt it.
by rowanG077 4y ago
It's slower then C for sure. But slower then C++? I doubt it.
- est31 4y agoRust is most comparable to C++ with heavy TMP, as it itself also makes use of templates.
- kibwen 4y agoTo be precise, Rust generics perform monomorphization, which C++ templates also perform. But I wouldn't go so far as to compare the language to "C++ with heavy TMP", as that's far too broad of a characterization; TMP implies a lot of things, e.g. poor error messages, that Rust doesn't necessarily exhibit.
- est31 4y ago> TMP implies a lot of things, e.g. poor error messages, that Rust doesn't necessarily exhibit. That's fair. My comment was mostly about performance.
- pjmlp 4y agoC++ is only slower in heavy template metaprogramming. Additionally thanks to heavy reliance on binary libraries, when starting a new project, we only need to compile our own code.