This is all pretty great stuff. Make sure you read through the docs; I'm unlikely to use Fb's C++ code, but I'm sure as hell going to look at making my C vector code do some of what FBVector does: https://github.com/facebook/folly/blob/master/folly/docs/FBV...
Out of curiosity, are you unlikely to use the code because it's C++ or because it comes from Facebook?
Folly - The Faceboook open source library
11–20 of 44 posts
Re: Folly - The Faceboook open source library
#12Re: Folly - The Faceboook open source library
#13Re: Folly - The Faceboook open source library
#14This is all pretty great stuff. Make sure you read through the docs; I'm unlikely to use Fb's C++ code, but I'm sure as hell going to look at making my C vector code do some of what FBVector does: https://github.com/facebook/folly/blob/master/folly/docs/FBV...
Hmm, I recently created a private memory allocator so the discussion on the page is somewhat interesting... Only a tiny minority of objects are genuinely non-relocatable: Hmm, I'm not exactly what is meant here. Moving a block of memory from here to there in the most general case will leave your pointers dangling and crash you in no short order. Things that pointed to the data you moved just don't any more. If you ar…
Re: Folly - The Faceboook open source library
#15I'm going to be taking a serious look at this for my own projects. I like Format: https://github.com/facebook/folly/blob/master/folly/docs/For... Histogram is going to come in handy. :) fbstring seems to be exactly what the doctor ordered. I like the emphasis on cooperating with the memory allocator in fbstring and fbvector. If the entire library does that, that's going to a big win for long-running programs: memory…
Re: Folly - The Faceboook open source library
#16Re: Folly - The Faceboook open source library
#17This is all pretty great stuff. Make sure you read through the docs; I'm unlikely to use Fb's C++ code, but I'm sure as hell going to look at making my C vector code do some of what FBVector does: https://github.com/facebook/folly/blob/master/folly/docs/FBV...
In addition, it does not support concurrent growth.
Re: Folly - The Faceboook open source library
#18I'm going to be taking a serious look at this for my own projects. I like Format: https://github.com/facebook/folly/blob/master/folly/docs/For... Histogram is going to come in handy. :) fbstring seems to be exactly what the doctor ordered. I like the emphasis on cooperating with the memory allocator in fbstring and fbvector. If the entire library does that, that's going to a big win for long-running programs: memory…
Aren't most of these already within boost or recent C++ standard ? I just took a look at the format and dynamic cases.
For example Boost.Spirit.Karma is an order of magnitude faster than sprintf (I don't know compared to fbformat), with the drawback of a very long compile time (see here: http://tinodidriksen.com/2010/02/07/cpp-convert-int-to-strin...).
Arena, SmallLocks and AtomicHashMap will have to challenge Intel TBB. I submit TBB will be better, but I haven't done the benchmarks.
As for the rest, some of the stuff is simply outdated.
There's better stuff than Synchronized in the C++11 standard. Foreach doesn't make sense with lambdas.
Some of the headers are just trivial and useless functions (MapUtil.h, IntrusiveList.h, Random.h...), etc.
I'm a bit disappointed.
Re: Folly - The Faceboook open source library
#19Earlier quoted context omitted.
Out of curiosity, are you unlikely to use the code because it's C++ or because it comes from Facebook?
C++.
I could understand why you would object to both, but why only the lower level language.
Re: Folly - The Faceboook open source library
#20Earlier quoted context omitted.
C++.
I realise this is a dangerous subject, but I am genuinly curious: given the business you run and the work you do for the Freebsd team, why would you object to using c++, but not c? I could understand why you would object to both, but why only the lower level language.