Functional C++ - Gašper Ažman - C++Now 2024

  Рет қаралды 7,922

CppNow

CppNow

Күн бұрын

Пікірлер: 19
@AntonioBarba_TheKaneB
@AntonioBarba_TheKaneB 4 ай бұрын
I've been coding professionally in C++ since 2008... I understood MAYBE 10% of the talk... MAYBE! I really need to get up and study a bunch of the new things, C++ has really become 3 languages in one in the last decade or so :|
@Voy2378
@Voy2378 2 ай бұрын
function signatures are hard to read if you do not know how to read them , but I think he explains quite well in his get host example how optional and member function on it make it easier to read the code....
@Evan490BC
@Evan490BC Ай бұрын
I _think_ I understand a large chunk of C++, up to C++23, but not this part. Of course this is state-of-the-art code, but the complexity of the language is getting out of hand...
@Roibarkan
@Roibarkan 6 ай бұрын
46:54 [14.2] I think the bug that Hana refers to is that the slide has: ‘9’ = src[0]. As a side note cpp2 (a.k.a cppfront), like python, allows things like ‘0’
@pmcgee003
@pmcgee003 4 ай бұрын
Correct. In two places. Good reason to write it as ('0'
@Roibarkan
@Roibarkan 6 ай бұрын
12:28 Tony’s “Complecting made Easy”: kzbin.info/www/bejne/oISsfq2fp7F9gac
@zxxvcc
@zxxvcc 4 ай бұрын
"The talk runs through the basic elements of functional programming, why we want to do it, and some compositional patterns." IMO it would be good to not obfuscate the "basic introduction" with lots of jargon that only people who already understand the topic know about.
@Roibarkan
@Roibarkan 6 ай бұрын
27:41 [10.9] I don’t understand why line 14 needs the auto keyword (I think a c++23 feature that forces a temporary to be created).
@AlfredoCorrea
@AlfredoCorrea 4 ай бұрын
given the way value_or is defined, the program will create a copy one way or another. I think the only questionable advantage of using `auto(…)` is that the copy is explicit.
@denisfedotov6954
@denisfedotov6954 4 ай бұрын
I believe, auto(t) is just a more concise way to write std::remove_cvref_t{t}.
@N....
@N.... 4 ай бұрын
29:55 clever! I'll have to remember that trick
@jurgenreiss3264
@jurgenreiss3264 3 ай бұрын
Are the pack elements evaluated lazy? Lets say we have a pack (a & b) where a and b are monadic computations. If a is "nothing", will b calculated at all? Much in the spirit of an applicative?
@GasperAzman
@GasperAzman 3 ай бұрын
C++ doesn't give you that support in-syntax, so they aren't lazy. The library is planning support for something like (a & lazy([]{return b;}) that /would/ be understood to be lazily evaluable and eval `b` once the pack ctor gets to it.
@JhraumG
@JhraumG 4 ай бұрын
sum is actually a sum type, so the name sounds OK. otoa I feel that pack could be a tuple, would the qualitiy of life flattenings exposed here be transposed to tuple ?
@dreamiix3172
@dreamiix3172 2 ай бұрын
Functional pattern maybe able to make coding more convenient, but what is about performance affectness? Are these patterns well optimized by the compiler, what differences between generated code we have in any cases? General speaking, laziness is the opposite of performance, functional code harder to debug and often it does not give clear view of computational complexity.
@friedrichdergroe9664
@friedrichdergroe9664 4 ай бұрын
C++ is cool, but I think your use case would be better off in Haskell.
@Evan490BC
@Evan490BC Ай бұрын
Yeah, I was thinking the same, but he works in the financial sector, where C++ is one of the main languages used. I know that people have used Haskell to model financial contracts but some companies do not accept Haskell as an option because of the difficulty in hiring proficient people.
@toddfulton2280
@toddfulton2280 4 ай бұрын
"The type system is a proof system" Someone actually understands. 😊
UFC 310 : Рахмонов VS Мачадо Гэрри
05:00
Setanta Sports UFC
Рет қаралды 1,2 МЛН
Арыстанның айқасы, Тәуіржанның шайқасы!
25:51
QosLike / ҚосЛайк / Косылайық
Рет қаралды 700 М.
Beat Ronaldo, Win $1,000,000
22:45
MrBeast
Рет қаралды 158 МЛН
C++ Type Erasure Demystified - Fedor G Pikus - C++Now 2024
1:40:57
C++ Should Be C++ - David Sankel - C++Now 2024
1:28:49
CppNow
Рет қаралды 23 М.
7 Outside The Box Puzzles
12:16
MindYourDecisions
Рет қаралды 272 М.
Solving one of the logic puzzles of all time!
20:34
Sheafification of G
Рет қаралды 31 М.
Why is everyone LYING?
7:56
NeetCodeIO
Рет қаралды 377 М.
Better Java Streams with Gatherers - JEP Cafe #23
1:13:32
Dear Functional Bros
16:50
CodeAesthetic
Рет қаралды 569 М.
More Functional C++?
9:48
code_report
Рет қаралды 12 М.
UFC 310 : Рахмонов VS Мачадо Гэрри
05:00
Setanta Sports UFC
Рет қаралды 1,2 МЛН