3 ms·
Because it's difficult to write large amounts of reliable code with c++. Yes, it's easier with modern c++, but it's still significantly harder than with, say,
by Agingcoder 5y ago
Because it's difficult to write large amounts of reliable code with c++.
Yes, it's easier with modern c++, but it's still significantly harder than with, say, rust or ada (or java for that matter, which is not slow, contrary to popular belief).
Furthermore, in the Facebook case, it's about cost : you save money by being faster, but you don't want to lose money because you're tracking overflow bugs in c++. If you can have both execution speed and development/maintenance speed , it's much better.
- disgruntledphd2 5y agoAnd to be fair, it's not like FB use Java for (much) performance critical code (AFAIK, obviously). I'd be willing to bet that lots of the core ranking/ads stuff at most of the major tech companies is written in C++.