Casey Chesshir

105 posts

Casey Chesshir

Casey Chesshir

@ChesshirCasey

شامل ہوئے Temmuz 2025
7 فالونگ2 فالوورز
Robert Clausecker
Robert Clausecker@FUZxxl·
@ChesshirCasey @Mallchad @maxliani It is not what you said. They did it because it was faster, not because C also has no bounds checking. Different reason, same outcome. They were open to having different semantics than C, if it wasn't for speed. In fact, bounds checking [] is allowed in STL, but not common.
English
1
0
0
18
Max Liani
Max Liani@maxliani·
Actually, no. You can totally dereference a std::vector out of bound, write outside of the memory boundary, corrupt memory. You can remove from a container in a way that corrupts iterators. You can easily enter a bad state from exceptions. No, the std library doesn’t give safety
Dave W Plummer@davepl1968

If you use the STL, you can write safe code in C++ Everything is object, allocator, and algorithm-based, and that's it. You NEVER call malloc or free or use strxxx() functions. You never see, access, or operate on memory directly. It's different than regular C++, but less different than Rust.

English
18
4
202
23K
Robert Clausecker
@ChesshirCasey @Mallchad @maxliani Not true. I read an article a while ago that claimed that they chose not to bounds check [] solely so that STL would not be slower than C code in the default path, i.e. purely for marketing reasons. These days bounds checks eliminate easily, so this is pretty stupid.
English
1
0
0
14
Casey Chesshir
Casey Chesshir@ChesshirCasey·
@Mallchad @FUZxxl @maxliani What they decided was that you should always be able to choose between safety and performance. If you can guarantee the safety elsewhere then why wouldn’t you choose the performant option within a hot loop?
English
1
0
0
11
Mallchad 🏴󠁧󠁢󠁥󠁮󠁧󠁿
@ChesshirCasey @FUZxxl @maxliani This is not the reason at all. vector::operator[] is infact an overridable function, it can take on as good safety measures as at() or better. Better yet you could NOT provide operator[] in th efirst place. The simple reason they decided performance > safety.
English
0
0
0
27
Casey Chesshir
Casey Chesshir@ChesshirCasey·
@stacycay @lolnochilly It starts at capitalism now. Capitalism was still a progressive force when much of the world still lived under feudal society. The French Revolution was a bourgeois revolution asserting their class interests over the king.
English
0
0
0
30
Stacy Cay
Stacy Cay@stacycay·
@lolnochilly Well yeah they’re adapting terms but it didn’t “start at anticapitalism” like op said. I think a rough framework that left tends to favor equality while the right favors elite rule would be a lot more useful
English
3
0
47
1.1K
Stacy Cay
Stacy Cay@stacycay·
Actually “left” and “right” in politics was invented in the French Revolution of 1789. It was to describe which side of the National Assembly you sat on. The left wanted democracy, the right wanted monarchy. Capitalism hadn’t been invented yet. Karl Marx wasn’t born either.
Johanna ☭ RCP/RCI@dialecticaldiva

For everyone that’s confused, the left of politics STARTS at anti-capitalism. Liberals are not leftists, the democrats are not leftists. Socialists and communists are leftists.

English
123
157
2.4K
64.7K
Casey Chesshir
Casey Chesshir@ChesshirCasey·
@FUZxxl @maxliani No. The .at() function gives you the option to catch the exception if that’s how you want to handle it.
English
1
0
0
40
Robert Clausecker
@maxliani They don't and it's kind of a tragedy that at(), not [] was chosen to be the bounds-checking one. Never seen any style guide mandating at() over [] either.
English
2
0
0
147
Veikko Immonen
Veikko Immonen@veimmone·
@ndr3www3 @paramitanoia As if you have to use any of the bullshit parts. You can use C++ as ”C with classes” all day long, the committee won’t hunt you down.
English
1
0
8
296
Brandon
Brandon@Brandon_Fuego·
@KozicaJ @joni_askola How exactly is Russia self-sufficient? Are you presuming if completely shut off they could function?
English
2
0
0
57
Joni Askola
Joni Askola@joni_askola·
People overcomplicate how to defeat Russia. The solution is incredibly simple: We just need to fund enough cruise missiles for Ukraine to systematically destroy every Russian oil refinery within reach. Cut off the fuel, and you end the war
Joni Askola tweet media
English
804
2.7K
15.6K
207.7K
Bidhan
Bidhan@bidhanxcode·
Google uses Go. Meta uses Go. Microsoft uses Go. Amazon uses Go. Uber uses Go. Dropbox uses Go. Cloudflare uses Go. Twitch uses Go. Docker uses Go. Kubernetes uses Go. PayPal uses Go. Shopify uses Go. What’s stopping you from learning Go?
English
1.1K
132
4.3K
635K
Casey Chesshir
Casey Chesshir@ChesshirCasey·
@ChShersh It’s a Dancing Bear. It’s cute that it exists but the novelty wears off pretty quickly.
English
0
0
0
191
Casey Chesshir
Casey Chesshir@ChesshirCasey·
@Uqimerioni @cmuratori It’s because of this graph that went viral recently. To call that “adoption” is of course absurd.
Casey Chesshir tweet media
English
0
0
0
35
Nodari 🇬🇪 🇺🇦
Nodari 🇬🇪 🇺🇦@Uqimerioni·
@cmuratori Yea, or maybe also npm downloads, these are just my guesses for his explanation of "adoption", I don’t know how exactly he measures that. Anyway it’s a very strange statement.
English
1
0
0
585
Mediazona
Mediazona@mediazona_en·
It’s the fourth anniversary of the Russian full-scale invasion of Ukraine. Our list of verified deaths has reached a grim milestone: 200,000 names. Read about it, as well as a new map of Russian losses we are introducing, here: en.zona.media/article/2026/0…
Mediazona tweet mediaMediazona tweet mediaMediazona tweet mediaMediazona tweet media
English
15
127
640
168.5K
ozzyreachdog
ozzyreachdog@ozzyreachdog·
@InterestingSTEM holy fuck thats disturbing. Hunt you own animals and eat them. These pigs are being fed slop all their lives then merked like this and you eat this shit. Get a hunting licence go hunt wild animals kill them in a natural way and feed yourself how nature intended
English
31
1
200
69.3K
Interesting STEM
Interesting STEM@InterestingSTEM·
This is how electrical stunning is performed in slaughterhouses. A controlled electric current is applied for a few seconds to cause immediate loss of consciousness before slaughter. The goal is that the animal does not perceive pain during the process.
English
1K
1.1K
11.1K
6.1M
Low Level
Low Level@LowLevelTweets·
“Twitter nerd drama situation is crazy”
English
10
2
225
14K
Booker Ngesa Omole ☭
Booker Ngesa Omole ☭@BookerBiro·
When encircled, a revolutionary state buys time, builds strength, prepares the blow. Joseph Stalin did not trust Adolf Hitler, he outmanoeuvred him. Strategy is not betrayal. It is survival. Only children confuse tactics with capitulation.
James Clayton@JamesClay1917

@wogillo @BookerBiro @northwoods_memo @CatManMarx Read some history! Stalin made a pact with Adolph Hitler. Don't you know this? Do they keep all of your cadre so ignorant? wsws.org/en/articles/20…

English
43
114
854
17.6K
Casey Chesshir
Casey Chesshir@ChesshirCasey·
@theo I had the Mac desktop app unresponsive and sucking every cycle out of my cpu for like five minutes before I force quit it. It was trying to do a git push.
English
0
0
0
134
Theo - t3.gg
Theo - t3.gg@theo·
Claude Code has regressed an absurd amount in the last few days. Timestamps no longer update unless you un-focus/re-focus the tab. "thinking" doesn't show at all. I had a query run for 6 minutes with 0 output. This is genuinely unpleasant to use.
English
281
40
1.9K
523.5K
Casey Chesshir
Casey Chesshir@ChesshirCasey·
@squatsons Doesn’t matter how big their fist was if they only had 6 demining vehicles.
English
0
0
0
31