C++Now 2018: Ben Deane “Easy to Use, Hard to Misuse: Declarative Style in C++”

แชร์
ฝัง
  • เผยแพร่เมื่อ 22 ม.ค. 2025

ความคิดเห็น • 25

  • @stephenjames2951
    @stephenjames2951 2 ปีที่แล้ว +1

    Ben's talks are always informative.

  • @LesleyLai
    @LesleyLai 6 ปีที่แล้ว +4

    The class at 47:49 allows some neat code. However, I want to know about the compile time impact.

  • @oscarcampbell1242
    @oscarcampbell1242 6 ปีที่แล้ว +5

    I've been coding C++ since '98, and coded a lot of toy languages (like Onyx) for hobby, and it's always killed me that not all flow control constructs are expressions.

  • @MichaelCaisse_ciere
    @MichaelCaisse_ciere 3 ปีที่แล้ว +2

    1:30:54 Question: How do you identify monoids in your code? Answer: Ben's 2019 excellent talk: th-cam.com/video/INnattuluiM/w-d-xo.html

    • @gowtham236
      @gowtham236 2 ปีที่แล้ว

      Nice talk indeed!

  • @iuiui-iuiui
    @iuiui-iuiui 6 ปีที่แล้ว +1

    I am looking for slides in the provided links, but the page says that no slides are available... how misleading.

    • @xBiggs
      @xBiggs 4 ปีที่แล้ว

      github.com/boostcon/cppnow_presentations_2018/blob/master/05-10-2018_thursday/easy_to_use_hard_to_misuse__declarative_style_in_cpp__ben_deane__cppnow_05102018.pdf

  • @0xe934
    @0xe934 6 ปีที่แล้ว

    does any1 know what color scheme he uses?

  • @waleedosama1630
    @waleedosama1630 3 ปีที่แล้ว +1

    very nice talk, thank you

    • @BoostCon
      @BoostCon  3 ปีที่แล้ว

      Glad you liked it!

  • @erichopper4979
    @erichopper4979 6 ปีที่แล้ว +5

    1:12:30 They do not have the same captures. The second lambda captures the first as well as steps. If they both said [&steps] instead of [&] then they'd have the same captures.

    • @orbital1337
      @orbital1337 6 ปีที่แล้ว +11

      No, [&] means that all *used* variables will be captured by reference. The second lambda doesn't use the first one so it doesn't capture it.

    • @erichopper4979
      @erichopper4979 6 ปีที่แล้ว +1

      orbital1337 - oh. Interesting, I didn't realize that. I don't like that. You need to understand too much context then to know what [&] means.

    • @rexviperfan
      @rexviperfan 6 ปีที่แล้ว +2

      @@erichopper4979 ; What? Why would you expect it to capture reference for things that aren't even used? You would have to make a reference for a LOT of things.

    • @erichopper4979
      @erichopper4979 6 ปีที่แล้ว

      @AODQ - That is how a simple '&' capture is defined.

    • @erikprantare696
      @erikprantare696 4 ปีที่แล้ว +1

      @@erichopper4979 2 years later, but. What would be the point of capturing variables not used? You gain nothing from it.

  • @Peregringlk
    @Peregringlk ปีที่แล้ว

    11:17 World's last bug

  • @DarwinsChihuahua
    @DarwinsChihuahua 6 ปีที่แล้ว +6

    There really needs to be some rules about when a person can interrupt a talk with questions. This is ridiculous. I can't even watch this. Great talk though! Wish people would STFU.

    • @michaelchadwick1820
      @michaelchadwick1820 4 ปีที่แล้ว +5

      Part of the point of CppNow is the collegial nature of the talks. I have heard speakers (really smart ones) say that they give talks at CppNow so that they can learn from the audience (many of whom are also speakers at the conference).

    • @rocknroooollllll
      @rocknroooollllll หลายเดือนก่อน

      @@michaelchadwick1820 It makes it shitty to watch on YT thou

  • @erichopper4979
    @erichopper4979 6 ปีที่แล้ว

    1:18:14 - I've written the beginnings of something that does this. I haven't really finished it to the point that you can write expressions like that, but that's mostly because it seemed like it would turn out to be really slow, Though I didn't thoroughly test it. It's the Sparkles library bitbucket.org/Omnifarious/Sparkles - I do *not* want this fancy stuff he wants involving operators. No! Make a new language if you want that.

  • @jschroedl
    @jschroedl 6 ปีที่แล้ว +4

    A warning for future viewers: there's an attendee who seems to be about to cough up a lung. It's quite distracting. I hope they got some relief and didn't infect the rest of the folks.

    • @hvrjstn
      @hvrjstn 6 ปีที่แล้ว +3

      I was sitting in front of the poor fellow. There was a good portion of the room having issues with allergies and congestion. The mountain air was kinder to some more than others.