CppCon 2015: Scott Schurr “constexpr: Introduction”

  Рет қаралды 51,843

CppCon

CppCon

Күн бұрын

Пікірлер: 44
@VlazeChanel
@VlazeChanel 9 жыл бұрын
Trick with chocolate works fine on children and experienced programmers. Crossplatform like C++ at all.
@bareya
@bareya 6 жыл бұрын
Chocolates, the most important part of constexpr education
@TrueWodzu
@TrueWodzu 6 жыл бұрын
That was a good talk, Scott seems to be very nice guy :) Chocolate stuff needs just a bit of optimization :)
@pizzabeerengineering2488
@pizzabeerengineering2488 5 жыл бұрын
Great talk. constexpr can reduce executable footprint but I used constexpr to compute a lookup table, greatly increasing code size in exchange for eliminating runtime calculation
@RobBCactive
@RobBCactive 3 жыл бұрын
I did similar in C by modifying the developed initialiser code to also write C for the table to stdout, which was put in an include file, allowing the original computation to be conditionally replaced, yet be regenerateable. Sometimes programs literally do write parts of themselves!
@bdafeesh
@bdafeesh 6 жыл бұрын
Great talk with a great speaker. But this talk should have had 1/5 of the interruptions. Even if I was there I would have been annoyed. Some questions are good, but this was way too many.
@valetprivet2232
@valetprivet2232 9 жыл бұрын
that chocklate experiment was a bad idea ...
@graphicsRat
@graphicsRat 8 жыл бұрын
This is one of my top two favourite talks at cppcon2015 for the reason that it explains the basis of a new C++11 concept, namely constexpr. Scott if you're reading this first of all thank you. Secondly consider more introductory talks on C++11 features, for example variadic templates (Alexandrescu's presentation is the only one that I am aware of).
@vertigo6982
@vertigo6982 6 жыл бұрын
This comment is now deprecated.
@krytharn
@krytharn 6 жыл бұрын
Anyone else noticed the typo? "constexpor: Introduction" in the column on the left.
@xpwnx1337
@xpwnx1337 Жыл бұрын
There was a student that asked if the constexpr was part of the data type of that function he showed and the proffessor said it isn't. But it is. The return value becomes a constexpr return value.
@prateekchs
@prateekchs 5 жыл бұрын
@17.06: Is that really true that we can't have non static member which is also constexpr??...i doubt because static in struct/class has different meaning than deducing something at compile time
@binarytv2904
@binarytv2904 2 жыл бұрын
this was eye opening! thank you so much.
@CppCon
@CppCon 2 жыл бұрын
Glad it was helpful!
@subhamdubeyinfo
@subhamdubeyinfo Ай бұрын
Great Talk! Very Informative
@MarekKnapek
@MarekKnapek 9 жыл бұрын
Is it possible to overload on `constexpr`? For example I have two algorithms for computing the same output and one is slow but can be made `constexpr` (slow compilation but zero time during run time) the other is faster (big O style faster) but cannot be made `constexpr`. More details: reddit.com/r/cpp/comments/3o52xh/cppcon_2015_scott_schurr_constexpr_introduction/cvu2zf0
@lincolnsand5127
@lincolnsand5127 4 жыл бұрын
I don't know, but you can overload on template enum class values
@bareya
@bareya 7 жыл бұрын
I just watched this video to see if he runs out of the chocolates...
@badasahog
@badasahog 3 жыл бұрын
is a constexpr function the same thing as a pure function?
@sufficientlyoldskool
@sufficientlyoldskool 7 жыл бұрын
This guy seems nice, I like him.
@LaurentLaborde
@LaurentLaborde 2 жыл бұрын
too many questions but super good stuff anyway ! thx !
@johan56
@johan56 6 жыл бұрын
I gave up halfway through. All the chocolate made the talk completely unwatchable. It's a pity - it could have been a good talk.
@merictunc
@merictunc 4 жыл бұрын
Great start to great talk
@JosefdeJoanelli
@JosefdeJoanelli 3 жыл бұрын
Love me some constexpooooor
@tissuepaper9962
@tissuepaper9962 2 жыл бұрын
I wish people in the comments would stop crying. Have they never been to a workshop-type talk?
@rocknroooollllll
@rocknroooollllll 8 жыл бұрын
I'm sure its a laudable idea this chocolate thing but please: for talks which probably have more of an online audience, please don't do that. Just try watching through your own presentation. It's really hard work: while encouraging questions is all fine & dandy, as an online viewer I found the number of interruptions difficult to deal with. It really, really badly disrupted the flow. I am *really* interested in the subject, but could easily switch off after 20 minutes because its just so damn annoying!
@anfield6321
@anfield6321 7 жыл бұрын
Think of it this way. You can pause, think and rewind if needed. If you close it after 20 mins you can come back and watch it later
@malharjajoo7393
@malharjajoo7393 7 жыл бұрын
Can you stop crying ?
@lindomar1838
@lindomar1838 6 жыл бұрын
you need psychological treatment. or pay for a c ++ programming course ... to have the right to cry.
@zackeemkhan1724
@zackeemkhan1724 6 жыл бұрын
I cannot endure this chocolate throwing. This is so annoying.
@Qwantopides
@Qwantopides Жыл бұрын
Agreed. Too many interruptions. Asking questions all the time without knowing what the rest of the presentation will be about is just a waste of time, as most questions will be answered right on the next slide.
@origamibulldoser1618
@origamibulldoser1618 9 жыл бұрын
Can you static_assert(false, ""); instead of throw in const_expr functions?
@whatsup9561
@whatsup9561 4 жыл бұрын
void foo() throw(X,Y) is deprecated.
@zackeemkhan1724
@zackeemkhan1724 6 жыл бұрын
FWIW please don’t do this chocolate thing again in the MIDDLE of the talk.
@anokhkishore
@anokhkishore 7 жыл бұрын
Chocolate chocolate chocolate constexpr chocolate .... heard chocolate more than constexpr .. too slow .... waste of time
@origamibulldoser1618
@origamibulldoser1618 9 жыл бұрын
I feel like C++ is become an artform for its own sake.. It's entertaining but is it really productive?
@paulfunigga
@paulfunigga 8 жыл бұрын
Yea, but you don't have to learn all of it, just the basics when you apply for a job. Unless you apply for a job as an expert of c++.
@IllumTheMessage
@IllumTheMessage 7 жыл бұрын
For the majority of people no, but for specialists like some library writers, yes.
@panjak323
@panjak323 Жыл бұрын
And yet we cant get even constexpr sqrt.
@bobweiram6321
@bobweiram6321 2 жыл бұрын
It says a lot about the complexity of a language when you need to bribe your audience with chocolate in exchange for their participation.
@steve122288
@steve122288 7 жыл бұрын
a 1 hr long introduction? cmon this is 2017 enough of the bullshit scam college crap
@xpwnx1337
@xpwnx1337 Жыл бұрын
That's why I learn it on my own lol.
@harehudi5117
@harehudi5117 7 жыл бұрын
Zuckerkranken !!!
@colin398
@colin398 Жыл бұрын
Too many questions
CppCon 2015: Scott Schurr “constexpr: Applications"
1:00:29
CppCon 2015: Andrei Alexandrescu “std::allocator...”
1:12:27
Lamborghini vs Smoke 😱
00:38
Topper Guild
Рет қаралды 53 МЛН
FOREVER BUNNY
00:14
Natan por Aí
Рет қаралды 36 МЛН
Long Nails 💅🏻 #shorts
00:50
Mr DegrEE
Рет қаралды 19 МЛН
Одну кружечку 😂❤️
00:12
Денис Кукояка
Рет қаралды 1,2 МЛН
C++ Weekly - Ep 312 - Stop Using `constexpr` (And Use This Instead!)
18:24
C++ Weekly With Jason Turner
Рет қаралды 52 М.
Антон Полухин (Yandex.Taxi) - Полезный constexpr
55:19
Институт программных систем I Йошкар-Ола
Рет қаралды 9 М.
🚀  TDD, Where Did It All Go Wrong (Ian Cooper)
1:03:55
DevTernity Conference
Рет қаралды 569 М.
Generic Programming in C++ - Bjarne Stroustrup
1:57:15
Using std::cpp
Рет қаралды 3 М.
Lamborghini vs Smoke 😱
00:38
Topper Guild
Рет қаралды 53 МЛН