Brad Larson
174 posts

Brad Larson
@b_k_larson
Father, husband, software engineer
Overland Park, KS Katılım Ağustos 2017
22 Takip Edilen50 Takipçiler

@lefticus Drop the cruft! No more typedef, redo initializer lists, etc.
English

@Booms_JustBooms 1. Yes they do, just not as clean. But I'm mostly wanting this for the appendAll() type API
2. I considered span<t>, wasn't sure about possible performance hits with non-vector backends? But span<> does have a size, so yeah I think it'd be fine.
English

@b_k_larson For the first case, do push_back or emplace_back not have the desired behavior?
For both, would an "append(T)" and "append(span<t>)" be appropriate? Seems like the operator+= would boil down to those calls in the naive case.
English
Brad Larson retweetledi

I'm planning the first ever "C++ Best Practices Game Jam"!
It will begin April 1st, 2022!
github.com/cpp-best-pract…
And I need your help to make sure it goes smoothly!
(plz retweet for exposure)
👇👇👇
English

@lefticus @mattgodbolt Good point, that makes sense. I'm surprised the assembly is the same in arm - I didn't think about how the execution must be in x64. Using llabs in arm does produce different assembly
English

@b_k_larson @mattgodbolt You are comparing arm to arm, but executing on x64
In x64 the assembly is different: godbolt.org/z/3z7ndhaav
English

@mattgodbolt @lefticus same assembly but different output? What am I missing here? Feel like I'm going crazy: godbolt.org/z/h3rsq3hdh
English

@lefticus @craigw1701 They need to deprecate and remove much faster :)
English

@craigw1701 Every C++ standard release deprecates and removes something, that's already a given anyhow
English

@skippytx @SwiftOnSecurity In the exact same boat, about to give up on the 3400g
English

@SwiftOnSecurity I can’t even find lower end kit in stock. Was going to build 3400g PCs for my kids. Gave up and ordered i3-10100 instead.
English

LinusTechTips gives up recommending high-end PC builds this holiday because there are no parts to buy period
youtu.be/hW6_nX0g3to

YouTube
English

@mrmoneymustache reddit.com/r/IAmA/comment… might be worth a blog post?
English
Brad Larson retweetledi

@BramStolk @grujicbr @MrMadbrain ( Respectfully :) ) This sounds terrible. I want to include bar.h, so I need to go look up its dependencies to include foo.h first. But foo.h also has dependencies, so let me go look them up as well...
I much prefer stand-alone headers.
English

@grujicbr @MrMadbrain No it does not.
You can embed foo in bar as composition, not pointer.
In main.c you just need to include foo.h first, then bar.h
Being explicit in deps for every .c you write is a good thing. Dependencies should be front and centre, not hidden.
Explicit dep > Implicit dep.
English

@chandlerc1024 Does this include language-breaking changes? E.g. removing std::auto_ptr?
English

So I wrote up (with a *huge* amount of help from colleagues both at G and elsewhere) what I think the goals and priorities for C++ should be:
wg21.link/p2137
Finally published. I'm not sure the committee agrees, but it is definitely what I and my users need.
Highlights:
English


@dascandy42 @normed_space I had a tablesaw accident back in November. I'm still finding blood splatters around my shop. I've since refused to use my tablesaw until I upgrade it to a sawstop.
English





