CppCon 2015: Stephan T. Lavavej “functional: What's New, And Proper Usage"
Video Statistics and Information
Channel: CppCon
Views: 32,877
Rating: undefined out of 5
Keywords: Stephan T. Lavavej, CppCon 2015, Computer Science (Field), Bash Films, Conference Video Recording, Event Video Recording, Video Conferencing, Video Services
Id: zt7ThwVfap0
Channel Id: undefined
Length: 60min 33sec (3633 seconds)
Published: Sun Oct 11 2015
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.
Great talk, as usual for Stephan. I always learn something from these.
Good stuff as usual, STL.
Regarding avoiding
std::bind
, I'm using it for packing callable types and their arguments into astd::packaged_task
, as shown below. This helper function quite useful for constructing and asynchronously dispatching a bunch of tasks on a queue.Is there a better way of doing this, without
std::bind
?Another great talk! Kudos to /u/STL! After watching, I have a couple of specific questions. I'm a language lawyery type of person, so I like the small details that casually get mentioned and thrown away in the talk. Thank you for mentioning them so I can ask.
10:00
Why can't you take the address of a standard library member function?
11:47
What exactly are the special cases for PMFs that involve base/derived?
At 51:52 STL mentions template code bloat. For anyone that's never seen an example, here's one.
Patches fixing template code bloat in lld:
Although in this case I think the bloat didn't impact the final binary size, the author describes the motivation as two fold: large object files with a lot of duplicate template instantiations was slowing down linking, and on Windows the excessive instantiations were breaking some limits on the regular (non-extended) COFF file format.
This isn't an argument against using templates. Templates are of course awesome. I just thought that anyone who hasn't seen template code bloat before (most people) might find a real world example educational.
So, is that "uniform call syntax" proposal out the window in favor of
std::invoke
?[deleted]