Better Algorithm Intuition - Conor Hoekstra

Поділитися
Вставка
  • Опубліковано 22 гру 2019
  • Better Algorithm Intuition - Conor Hoekstra ‪@code_report‬ - Meeting C++ 2019
    Slides: meetingcpp.com/mcpp/slides
  • Наука та технологія

КОМЕНТАРІ • 14

  • @R_BNK
    @R_BNK 4 роки тому +12

    This is the “Talk of the year” 2019 for me 👍👍

  • @essenceidentity
    @essenceidentity 4 роки тому +5

    Algorithm Intuition now this is the term of the year for me 👏

  • @stephenjames2951
    @stephenjames2951 4 роки тому +7

    Fantastic talk. going to keep std::transform in my brains level 1 cache from now on.

  • @livequality4578
    @livequality4578 4 роки тому

    Really outstanding lesson, bravo.

  • @code_report
    @code_report 4 роки тому +1

    Link to the "prequel" to this talk if interested: ua-cam.com/video/48gV1SNm3WA/v-deo.html

  • @aniliitb10
    @aniliitb10 4 роки тому +1

    again! as impressive as the first one!

  • @simonfarre4907
    @simonfarre4907 3 роки тому

    I don't get that people keep showing that tolowercase example like they do. When I use it, the compiler *always* warns and even errors, since I use pretty strict error flags. tolower both uses and returns an int.

  • @chri8686
    @chri8686 4 роки тому

    Wouldn't the std::equal implementation in terms of std::zip_reduce/std::transform_reduce (with std::logical_and and std::equal_to) be worse than MSVC's raw loop or the std::mismatch implementation, since it will not break out of the loop early if possible?
    Awesome talk!

  • @KobiCohenArazi
    @KobiCohenArazi 4 роки тому

    Slide 111 - this is explaining how partition impl works: stackoverflow.com/questions/19778256/standard-library-partition-algorithm and explains why the impl on slide 111 also works.

  • @Enoxyz
    @Enoxyz 4 роки тому

    I think std::string::makeLower() (so: mytext.makeLower(); ) would be much more logical and readible to have, than to use an algorithm... supply begin and end of string etc... . Still wonder, why does std::string not contain such a basic function? Same counts for more classes. Like nice to have std::vector::reverse(). Find it even strange to call a makeLower-function an algorithm.

    • @MeetingCPP
      @MeetingCPP  4 роки тому +1

      I think the design of the STL is to provide such functionality as a freestanding function operating on an iterator pair instead of a member function as in classic OO. And the std library of C++ is build on this idea, rather then providing an OO interface to users.

    • @frobeniusfg
      @frobeniusfg 4 роки тому

      I think that's what Sedgwick calls fat/slick interfaces

  • @FastNotSave
    @FastNotSave 4 роки тому

    42:53 std::transform doesn't guarantee in-order execution. This is not a standard conform solution.

    • @AM-qx3bq
      @AM-qx3bq 4 роки тому

      I believe It does since C++17.