News for hackers. Stuff that matters.
Re:Wt, C++ Web Toolkit by blinkingled on Friday July 05, 2013 @10:28PM (#5997676)
>There is nothing wrong with admitting you do not understand something and asking for clarification

To be frank, that's not something I don't understand. It's just a resource constrained environment use case that anyone can understand. What I don't understand is how common those use cases are today given my home router runs with 32Mb RAM and can use PHP instead of C++, never mind the fact that it doesn't need a full fledged C++ Web Framework to begin with!

Re:Wt, C++ Web Toolkit by bandushrew on Friday July 05, 2013 @11:30PM (#5997831)
its not just resource constrained environments, but use cases where the advantages of a c++ web app outweigh the disadvantages. C++ web apps are fast. They are low memory usage (especially compared to solutions like java/RoR or PHP). They tend to use little cpu. Ultimately, once a little ground work is done, you are still designing the interface in html, javascript and css, and have all the advantages and speed of development of that delivery method.

For some definition of the word, I believe that Facebook is effectively deploying a c++ web app as part of its solution at this point.

There are many use cases for which RoR or PHP is the better solution, but it turns out it is imply true that there are others for which a c++ web app is the better solution.

Go figure :)

Re:Wt, C++ Web Toolkit by Skinney on Saturday July 06, 2013 @06:17AM (#5998491)
Since any web-framework should be mostly IO-driven, the actual speed of the code matters very little as it will in most cases always be nothing compared to the actual IO-operation itself :/ In case you need certain code to run very fast, most people will write that in C/C++ and patch it into their solution, that's what we did in the Django-workshop I used to work in.

I thought Facebook mostly used C++ for their PHP VM? Facebook itself is alot of PHP, they also use Cassandra (Java DB) for inbox messages I believe.

Re:Wt, C++ Web Toolkit by pork on Saturday July 06, 2013 @11:57AM (#5999152)
No -- Facebook's PHP code is translated to C++ by HipHop and compiled into a monolithic binary, and Cassandra has largely been deprecated in favor of HBase.
Re:Wt, C++ Web Toolkit by Skinney on Sunday July 07, 2013 @10:00AM (#6002025)
Facebook is using HipHopVM, which is a JIT for PHP. HipHop is no longer a PHP -> C++ compiler.

Didn't know they switched to HBase, it's still Java though.

Re:Wt, C++ Web Toolkit by bandushrew on Sunday July 07, 2013 @04:47PM (#6003406)
https://www.facebook.com/note.php?note_id=10150415177928920

"Facebook uses hphpi (and now hhvm) for day-to-day software development, but uses the HipHop compiler (hphpc) to create optimized binaries that serve the Facebook website. hphpc is in essence a traditional static compiler that converts PHP→AST→C++→x64."

Re:Wt, C++ Web Toolkit by Skinney on Sunday July 07, 2013 @05:48PM (#6003676)
That note is from 2011.

According to wikipedia: http://en.wikipedia.org/wiki/HipHop_for_PHP

"in Q1 2013, the production version of facebook.com started running on HHVM, replacing HPHPc."

Re:Wt, C++ Web Toolkit by bandushrew on Sunday July 07, 2013 @08:09PM (#6004234)
ohh, nice.

I wonder how well silverstripe runs on it....