@ericniebler.bsky.social

7K posts

@ericniebler.bsky.social banner
@ericniebler.bsky.social

@ericniebler.bsky.social

@ericniebler

C++ core compute libraries tech lead at @nvidia, husband, father, @isocpp member, former nomad, and sometimes artist wannabe. Views are mine, not my employer's

Seattle, WA Katılım Eylül 2010
137 Takip Edilen12K Takipçiler
@ericniebler.bsky.social
@ericniebler.bsky.social@ericniebler·
@ashvardanian @lewissbaker @andreas_buhr Sorry for the lag, I'm on the butterfly site now. Making coroutines go fast is all about structuring the code so that the compiler can elide the dynamic allocation of the coroutine frame. It depends on your compiler. Play around in godbolt and look at the assembly.
English
1
0
10
653
Ash Vardanian
Ash Vardanian@ashvardanian·
I'm struggling with C++20 coroutines and must be doing something wrong. Is there some smart (maybe Assembly-level) optimization that can help close the gap between ranges and coroutines? cc @lewissbaker @ericniebler @andreas_buhr #L1562-L1993" target="_blank" rel="nofollow noopener">github.com/ashvardanian/l…
Ash Vardanian tweet media
English
1
1
9
987
@ericniebler.bsky.social
@ericniebler.bsky.social@ericniebler·
She overheard one student telling another over lunch: "This is the first time in my life that I feel safe." This place is saving lives. That's not an exaggeration.
English
0
0
8
1.2K
@ericniebler.bsky.social
@ericniebler.bsky.social@ericniebler·
Did grade school suck for you because you were a "problem child" (read: neurodivergent)? Yes? My partner @MERottsolk has created the school that we didn't have when we were kids, a place where different is normal. And they're fund raising. Click here: zeffy.com/en-US/fundrais…
English
3
1
13
1.8K
@ericniebler.bsky.social
@ericniebler.bsky.social@ericniebler·
Let's play Does It Compileses, Precious? 𝚝𝚎𝚖𝚙𝚕𝚊𝚝𝚎 <𝚌𝚕𝚊𝚜𝚜 𝚃> 𝚜𝚝𝚛𝚞𝚌𝚝 𝚘𝚒𝚗𝚔 { 𝚜𝚝𝚊𝚝𝚒𝚌_𝚊𝚜𝚜𝚎𝚛𝚝(!𝚜𝚝𝚍::𝚒𝚜_𝚟𝚘𝚒𝚍<𝚃>); 𝚜𝚝𝚛𝚞𝚌𝚝 𝚋𝚘𝚒𝚗𝚔 { 𝚜𝚝𝚊𝚝𝚒𝚌_𝚊𝚜𝚜𝚎𝚛𝚝(𝚜𝚝𝚍::𝚒𝚜_𝚟𝚘𝚒𝚍<𝚃>); }; }; 𝚘𝚒𝚗𝚔<𝚒𝚗𝚝> 𝚖𝚎𝚘𝚠;
English
9
1
22
5K
@ericniebler.bsky.social
@ericniebler.bsky.social@ericniebler·
I found an implementation of `std::declval` that compiles 2x faster than the "standard" one[*]. Rather than overload resolution and SFINAE, this one uses a variable template and a partial specialization: [*]: tested w/ clang-17
@ericniebler.bsky.social tweet media@ericniebler.bsky.social tweet media
English
7
6
71
5.5K
Björkus 'No time_t to Die' Dorkus
@ericniebler We keep doing this experiments and keep coming up with these gains but have we considered just... making this stuff be part of the language? Like it's fun to be able to flex our muscles like this but the language can't be too pure to literally add something like this in it right?
English
3
0
31
863
pere
pere@Peregringlk·
@ericniebler Why do you need the auxiliary alias identity_t?
English
1
0
3
324