News for hackers. Stuff that matters.
Re:Facebook C++ Conference Live Blogging by Jabbles on Saturday June 02, 2012 @06:24PM (#4059379)
There is something odd about seeing the world's greatest software engineers show off their new string_to_int function.

Why are so many conversions needed? "they have many protocols that store ints as strings" why?

Re:Facebook C++ Conference Live Blogging by ramisayar on Saturday June 02, 2012 @07:12PM (#4059483)
They use facebook ids everywhere which are integers represented as strings.
Re:Facebook C++ Conference Live Blogging by mappu on Saturday June 02, 2012 @07:13PM (#4059490)
I guess with HTTP, every get/post/cookie parameter is a string... they might have found it was less expensive to simply not convert them.
Re:Facebook C++ Conference Live Blogging by zem on Sunday June 03, 2012 @01:59AM (#4060199)
i found it pretty inspiring. not only was it a neat example of coding with instruction-level parallelism in mind, but a concrete demonstration that it did indeed provide significant speedups in a piece of code that people have been using for decades (and which had presumably already been optimised for the single-everything cpu case)
Re:Facebook C++ Conference Live Blogging by Negitivefrags on Saturday June 02, 2012 @07:13PM (#4059489)
Perhaps they are referring to HTTP? The GET and POST params come in as strings.
Re:Facebook C++ Conference Live Blogging by fjdsofjidos on Saturday June 02, 2012 @07:25PM (#4059513)
Re:Facebook C++ Conference Live Blogging by mappu on Saturday June 02, 2012 @07:12PM (#4059484)
The dynamic class is a cool idea, i'm glad it's faster for their use case, and it's nice to have canonical implementations of format and json_parse. Aside from that, seems pretty unnoteworthy - Does this fit into HipHop, or do Facebook have another large C++ project?
Re:Facebook C++ Conference Live Blogging by ramisayar on Saturday June 02, 2012 @07:19PM (#4059503)
This all fits into Folly: The Facebook Open Source Library. https://github.com/facebook/folly