Why didn't Facebook choose Node.js or Go over C++ when moving away from Erlang for its chat app? Is there any way to make C/C++ concurrent?
-
-
Answer:
has a good answer here: He says that Facebook had more experience and more internal libraries in C++ and thus C++ was a logical choice. But read his whole answer for some good context. As for making C++ concurrent, I'm not sure what you mean. There are no language primitives for concurrency, but it's pretty easy to write concurrent classes by using the appropriate threading and locking mechanisms provided by the OS. There are also tons of libraries for writing concurrent code in C++.
George Moromisato at Quora Visit the source
Other answers
Ditto , there are lots of ways to do concurrency in C/C++ (see: https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=2&cad=rja&uact=8&ved=0CCoQFjAB&url=http%3A%2F%2Fwww.tutorialspoint.com%2Fcplusplus%2Fcpp_multithreading.htm&ei=eYqPVKqeDc21oQSbx4LIDQ&usg=AFQjCNFZ2JWMY-hZS2kG_vIy3XUqK4aQ6Q&sig2=z-fNgEb2XxCo21vSbOXMTw&bvm=bv.82001339%2Cd.cGU). It's just trickier to do so than in Erlang, where more is built in to the language and there aren't troublesome side-effects. Available ecosystem and programming talent trumps abstract advantages many days of the week.
David Brower
Related Q & A:
- Why won't my computer keep me logged into sites even when I click stay logged in?Best solution by Yahoo! Answers
- Why don't dislocations go away?Best solution by Yahoo! Answers
- Why Can't I Choose 'Best Answer' Anymore?Best solution by Yahoo! Answers
- Why isn't Facebook showing my new status on profile?Best solution by Yahoo! Answers
- Why didn't CR7 play in the world cup qualifiers against Malta?Best solution by Yahoo! Answers
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.