How to make a native chat app in Swift?

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

Was this solution helpful to you?

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:

Just Added Q & A:

Find solution

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.