Jonathan Tanner (@aDifferentJT) profile picture

There’s a lot of people called JT, so odds are, I’m a different one @aDifferentJT@mastodonapp.uk

Oxford, England
Joined July 2017
Photo by Jonathan Tanner (@aDifferentJT)Photo by Jonathan Tanner (@aDifferentJT)Photo by Jonathan Tanner (@aDifferentJT)Photo by Jonathan Tanner (@aDifferentJT)Photo by Jonathan Tanner (@aDifferentJT)Photo by Jonathan Tanner (@aDifferentJT)Photo by Jonathan Tanner (@aDifferentJT)
Clang (C++20) and GCC both compile it, only clang in c++23 mode fails.
1
1
233
Did I just see @ChrisG_SpX on the SpaceX stream?
1
604
Alternative Date: Possible Road Closure for October 23, 2023 from 8:00 a.m. to 8:00 p.m. Note: This is a non-flight closure.
6
46
3,455
Jonathan Tanner retweeted
The problem is that unsigned integers make negative integers unrepresentable without making them impossible. When subtracting unsigned integers negative results are possible but unrepresentable, which means that those values are represented by a different value, which is very bad
1
3
8
584
Replying to @standupmaths
@standupmaths I just had a thought regarding your use of the 10 billion human second century to discount all the statistical corrections and declare the dream result too improbable. 🧵
1
1
184
But if I did 1000 streams and in each one I flipped a single coin (watch out Twitch) there would be 100 heads in there and someone could select those streams, observe that the odds are way more extreme than the 10 billion human second century and declare it foul play.
1
157
100 consecutive heads is unlikely, 100 heads is not.
117
This is the core of DRY (don’t repeat yourself), you shouldn’t make future maintainers have to make the same changes twice, but sometimes code is coincidentally the same, and someone who changes one instance won’t necessarily want to change the other.
Replying to @JustJake @mscccc
The important question is whether the string is intentionally or coincidentally duplicated. In other words, what is the probability that someone who wants to change one string will also want to make the same change to the other string.
212
Jonathan Tanner retweeted
Why Apple’s announcements today are a big deal, a thread. 1/
58
638
91
3,307
Ah yes, Gordon Ramsay, famous for always treating people well.
. @LinusTech I do wonder whether for Intel On Demand the price question is slightly more complicated given that the main expense for these hardware accelerators seems to be R&D and validation, which are fixed costs. It is possible they’re doing this to compete with AMD on price.
1
I’m also now wondering if they don’t have to pay royalties for codecs if those accelerators are inactive, that could be a genuine saving.
Wow, @Twitter just showed a big banner suggesting that I turn on this setting. It’s right at the bottom of the accessibility settings but everyone should please turn it on
1
@Twitter any chance you can make this opt out rather than opt in? Though the big banner you showed prompting me to turn it on is a great start.
On the contrary, variables shouldn’t be marked volatile because marking variables volatile increases the probability that cosmic rays will cause bugs in your program
Item 16: "Mark all of your variables `volatile`, this makes them thread safe and reminds the reader that it can change at any time, which is the main point of variables.” (Thanks @olafurw) #cplusplus #cpp #affectivecpp
Jonathan Tanner retweeted
If you are preaching anywhere today, don't underestimate what could happen - @sajidjavid confirms it was Les Isaac's sermon at National Prayer Breakfast that nudged him to resign & instigated this week's seismic events... https://nitter.gq/t.co/VxBR0FnBHZ
26
244
52
943