C++ Weekly - Ep 401 - C++23's chunk view and stride view

  Рет қаралды 6,679

C++ Weekly With Jason Turner

C++ Weekly With Jason Turner

Күн бұрын

Пікірлер: 19
@SergeyIvanov1337
@SergeyIvanov1337 Жыл бұрын
I love these in rust and am glad to see them being incorporated into c++
@vanandgasparyan1430
@vanandgasparyan1430 Жыл бұрын
I think the difference between chunk_by and split is the latter filters out the delimiter.
@abhinavk0929
@abhinavk0929 Жыл бұрын
C++ should have langauge feature similar to iota (because it is far too long to type) but the reason I think it should be a language feature is to somehow cover the use cases of index_sequence and integer_sequence too (that'd also reduce the need for their 'make' counterparts). Just think about it, a simple terse syntax to get a range of integers whether you need it at runtime or compile-time. How does that sound?
@anon_y_mousse
@anon_y_mousse Жыл бұрын
Hrm. I'm still on g++ 11.2, so it's not going to work for me. I'm leery of manually updating the compiler because of past issues, so until my distro updates this will be yet another feature I can't make use of in conventional ways. It also illustrates a problem with languages taking so long to finally add features that should've existed since the beginning.
@ohwow2074
@ohwow2074 Жыл бұрын
Change your distro. It's as simple as that. Slow moving distros slow us down.
@anon_y_mousse
@anon_y_mousse Жыл бұрын
@@ohwow2074 Nah, I'll just not make use of a barely useful feature that should've always existed anyway, or I'll find a Boost equivalent.
@ohwow2074
@ohwow2074 Жыл бұрын
@@anon_y_mousse it's not just about ranges. You're missing out on a lot of new features.
@anon_y_mousse
@anon_y_mousse Жыл бұрын
@@ohwow2074 Have any examples of something I can't easily do myself?
@ohwow2074
@ohwow2074 Жыл бұрын
@@anon_y_mousse span? Coroutines and concepts? Deducing this? Spaceship operator?
@shadergz
@shadergz Жыл бұрын
Have you guys already take a loop at ranges-v3 library?
@Sebanisu
@Sebanisu Жыл бұрын
hmm the title says stride_view but I don't think you talked about it in the video.
@abhinavk0929
@abhinavk0929 Жыл бұрын
he did talk about it towards the end
@TheMR-777
@TheMR-777 Жыл бұрын
The std::views::chunk and std::views::stride are actually the objects of std::ranges::chunk_view and std::ranges::stride_view. So, effectively, they're the same. (you can give it a try mate)
@Sebanisu
@Sebanisu Жыл бұрын
​@@abhinavk0929I must have not noticed it. In my mind I heard him talk about chunk_by then the end of the video. After rewatching the end I see I was wrong heh.
@benjaminshinar9509
@benjaminshinar9509 Жыл бұрын
If i get this correctly then stride is 'chunk and take the first element'?
@TheMR-777
@TheMR-777 Жыл бұрын
@@benjaminshinar9509 Yeah you can say. But in my mind, stride(n) is something like: for (int i = 0; i < x; i += n) { /*you get the point*/ }
@jhbonarius
@jhbonarius Жыл бұрын
Short isn't a problem At least, that what's she said. Badaboom
C++ Weekly - Ep 402 - Reviewing My 25 Year Old C++ Code (IT'S BAD!)
21:45
C++ Weekly With Jason Turner
Рет қаралды 19 М.
C++ Weekly - Ep 400 - C++ is 40... Is C++ DYING?
20:51
C++ Weekly With Jason Turner
Рет қаралды 30 М.
Арыстанның айқасы, Тәуіржанның шайқасы!
25:51
QosLike / ҚосЛайк / Косылайық
Рет қаралды 700 М.
人是不能做到吗?#火影忍者 #家人  #佐助
00:20
火影忍者一家
Рет қаралды 20 МЛН
Chain Game Strong ⛓️
00:21
Anwar Jibawi
Рет қаралды 41 МЛН
C++ Weekly - Ep 342 - C++20's Ranges: A Quick Start
10:13
C++ Weekly With Jason Turner
Рет қаралды 19 М.
C++ Weekly - Ep 455 - Tool Spotlight: Mutation Testing with Mull
9:57
C++ Weekly With Jason Turner
Рет қаралды 6 М.
I made Tetris in C, this is what I learned
15:15
Austin Larsen
Рет қаралды 24 М.
C++ Weekly - Ep 411 - Intro to C++ Exceptions
9:06
C++ Weekly With Jason Turner
Рет қаралды 11 М.
C++ Weekly - Ep 425 - Using string_view, span, and Pointers Safely!
8:36
C++ Weekly With Jason Turner
Рет қаралды 14 М.
I made the same game in Assembly, C and C++
4:20
Nathan Baggs
Рет қаралды 836 М.
zig will change programming forever
9:34
Low Level
Рет қаралды 374 М.
C++ Weekly - Ep 460 - Why is GCC Better Than Clang?
17:31
C++ Weekly With Jason Turner
Рет қаралды 22 М.
C++ Weekly - Ep 405 - Dogbolt: The Decompiler Explorer
10:18
C++ Weekly With Jason Turner
Рет қаралды 13 М.
C++ Weekly - Ep 396 - emplace vs emplace_hint! What's the difference? #cplusplus #cpp
13:37
Арыстанның айқасы, Тәуіржанның шайқасы!
25:51
QosLike / ҚосЛайк / Косылайық
Рет қаралды 700 М.