Chandler Carruth
@chandlerc.blog
Software, performance, optimization, programming languages, security, open source, #CarbonLang lead, #LLVM, #Clang, C++. 🏳️🌈 http://pronoun.is/he or http://pronoun.is/they
Also, this poll does a disservice by misleadingly framing the question IMO.
Basically no one uses terminating assertions literally "always". That's actually more absurd than having no assertions at all.
By framing the first choice as that, rather than as "by default", the poll skews its results.
Basically no one uses terminating assertions literally "always". That's actually more absurd than having no assertions at all.
By framing the first choice as that, rather than as "by default", the poll skews its results.
Poll: Does your project use terminating assertions in production?
herbsutter.com/2025/10/13/p...
#cpp
#cplusplus
herbsutter.com/2025/10/13/p...
#cpp
#cplusplus
Poll: Does your project use terminating assertions in production?
I’m running this poll to gather data, both for myself and for other interested C++ committee members. I’m curious to see what you all report! Please let us know what your current project is d…
herbsutter.com
October 14, 2025 at 8:41 AM
Also, this poll does a disservice by misleadingly framing the question IMO.
Basically no one uses terminating assertions literally "always". That's actually more absurd than having no assertions at all.
By framing the first choice as that, rather than as "by default", the poll skews its results.
Basically no one uses terminating assertions literally "always". That's actually more absurd than having no assertions at all.
By framing the first choice as that, rather than as "by default", the poll skews its results.
I feel like folks find this to be a controversial or "bold" stance -- sharing it specifically to lower that perception
Assertions should be terminating by default. It should be an exception to make them debug-build only.
And this is in *no way* in conflict with being obsessed with performance.
Assertions should be terminating by default. It should be an exception to make them debug-build only.
And this is in *no way* in conflict with being obsessed with performance.
Just to be clear, because it won't be from this poll:
All of Google's server C++ code uses terminating assertions by default.
There are debug-build-only terminating assertions, and non-terminating assertion tools available of course, but they are not the default.
All of Google's server C++ code uses terminating assertions by default.
There are debug-build-only terminating assertions, and non-terminating assertion tools available of course, but they are not the default.
October 14, 2025 at 8:38 AM
I feel like folks find this to be a controversial or "bold" stance -- sharing it specifically to lower that perception
Assertions should be terminating by default. It should be an exception to make them debug-build only.
And this is in *no way* in conflict with being obsessed with performance.
Assertions should be terminating by default. It should be an exception to make them debug-build only.
And this is in *no way* in conflict with being obsessed with performance.
Reposted by Chandler Carruth
We further *define* (b) to include any and all memory safety violations and undefined behavior.
October 14, 2025 at 8:16 AM
We further *define* (b) to include any and all memory safety violations and undefined behavior.
Reposted by Chandler Carruth
The default is, throughout all of our C++ server code:
a) It isn't an *invariant*, it is just an error, and it is propagated explicitly to the caller
or
b) It is an *invariant* and the state is corrupt if not valid. These, when checked, are terminating by default.
a) It isn't an *invariant*, it is just an error, and it is propagated explicitly to the caller
or
b) It is an *invariant* and the state is corrupt if not valid. These, when checked, are terminating by default.
October 14, 2025 at 8:16 AM
The default is, throughout all of our C++ server code:
a) It isn't an *invariant*, it is just an error, and it is propagated explicitly to the caller
or
b) It is an *invariant* and the state is corrupt if not valid. These, when checked, are terminating by default.
a) It isn't an *invariant*, it is just an error, and it is propagated explicitly to the caller
or
b) It is an *invariant* and the state is corrupt if not valid. These, when checked, are terminating by default.
Reposted by Chandler Carruth
Just to be clear, because it won't be from this poll:
All of Google's server C++ code uses terminating assertions by default.
There are debug-build-only terminating assertions, and non-terminating assertion tools available of course, but they are not the default.
All of Google's server C++ code uses terminating assertions by default.
There are debug-build-only terminating assertions, and non-terminating assertion tools available of course, but they are not the default.
October 14, 2025 at 8:16 AM
Just to be clear, because it won't be from this poll:
All of Google's server C++ code uses terminating assertions by default.
There are debug-build-only terminating assertions, and non-terminating assertion tools available of course, but they are not the default.
All of Google's server C++ code uses terminating assertions by default.
There are debug-build-only terminating assertions, and non-terminating assertion tools available of course, but they are not the default.
RIP Rainer Grimm. He will be missed.
The effort with Cippi to allow him to remain connected to the C++ community through these last years has been phenomenally touching.
The effort with Cippi to allow him to remain connected to the C++ community through these last years has been phenomenally touching.
CppNorth remembers and honors our dear friend Rainer Grimm, a cherished speaker and pillar of the C++ community.
This year, we were honored to have his advocate Cippi carry his spirit forward.
Revisit his impactful 2022 talk:
youtu.be/3Km19_JgQcc
He is deeply missed. ❤️ #cpp #Community
This year, we were honored to have his advocate Cippi carry his spirit forward.
Revisit his impactful 2022 talk:
youtu.be/3Km19_JgQcc
He is deeply missed. ❤️ #cpp #Community
#cippi #als #cpp #modernescpp #moderncpp #designdenken | CppNorth, The Canadian C++ Conference
Cippi has finished the CppNorth, The Canadian C++ Conference in Toronto after helping deliver four keynotes, countless regular sessions (only some shown) and a large batch of Lightning Talks. She wil...
lnkd.in
October 10, 2025 at 5:56 AM
RIP Rainer Grimm. He will be missed.
The effort with Cippi to allow him to remain connected to the C++ community through these last years has been phenomenally touching.
The effort with Cippi to allow him to remain connected to the C++ community through these last years has been phenomenally touching.
This is a beautiful post capturing so much (maybe all?) of my feelings around AI and especially as it intersects with art. I have no notes.
October 8, 2025 at 2:41 AM
This is a beautiful post capturing so much (maybe all?) of my feelings around AI and especially as it intersects with art. I have no notes.
Reposted by Chandler Carruth
A cartoonist's review of AI art - The Oatmeal
This is a comic about AI art.
theoatmeal.com
October 7, 2025 at 4:51 PM
Also, if you're going to use the infra, and especially if non-Black, donate: opencollective.com/blacksky
October 6, 2025 at 1:35 AM
Also, if you're going to use the infra, and especially if non-Black, donate: opencollective.com/blacksky
Reposted by Chandler Carruth
Migrate to BlackSky instructions:
1. tektite.cc, disable 2FA
2. Login w/ real pw NOT app pw
3. Click migrate to blacksky button
4. Add handle, new pw, use dropdown if non-Black user
5. Click Migrate
6. When done transferring, enter code sent to your email
7. Complete!
blacksky.community is site
1. tektite.cc, disable 2FA
2. Login w/ real pw NOT app pw
3. Click migrate to blacksky button
4. Add handle, new pw, use dropdown if non-Black user
5. Click Migrate
6. When done transferring, enter code sent to your email
7. Complete!
blacksky.community is site
September 11, 2025 at 11:05 PM
Migrate to BlackSky instructions:
1. tektite.cc, disable 2FA
2. Login w/ real pw NOT app pw
3. Click migrate to blacksky button
4. Add handle, new pw, use dropdown if non-Black user
5. Click Migrate
6. When done transferring, enter code sent to your email
7. Complete!
blacksky.community is site
1. tektite.cc, disable 2FA
2. Login w/ real pw NOT app pw
3. Click migrate to blacksky button
4. Add handle, new pw, use dropdown if non-Black user
5. Click Migrate
6. When done transferring, enter code sent to your email
7. Complete!
blacksky.community is site
Reposted by Chandler Carruth
We'd rather have racist billionaires, and coal mines, and cut foreign aid to Africa, and start wars with South America, and not sell soybeans to Asia, and let the 50 dudes that make up our entire our capital allocator class, pretend that monkey jpegs are money now.🤡
So here, take your monkey jpeg.
So here, take your monkey jpeg.
October 4, 2025 at 7:06 AM
We'd rather have racist billionaires, and coal mines, and cut foreign aid to Africa, and start wars with South America, and not sell soybeans to Asia, and let the 50 dudes that make up our entire our capital allocator class, pretend that monkey jpegs are money now.🤡
So here, take your monkey jpeg.
So here, take your monkey jpeg.
Reposted by Chandler Carruth
The biggest barrier to the widespread adoption of renewables, is the fact that the richest, least intelligent, most self-important, fashiest 50 dudes in the US, wasted the low interest rates of the 2010s investing in monkey jpegs instead of solar cells and battery production.🤡
Now they fear China.
Now they fear China.
"Solar energy is anticipated to be the world’s main source of energy by 2050" hell yeah
October 4, 2025 at 6:37 AM
The biggest barrier to the widespread adoption of renewables, is the fact that the richest, least intelligent, most self-important, fashiest 50 dudes in the US, wasted the low interest rates of the 2010s investing in monkey jpegs instead of solar cells and battery production.🤡
Now they fear China.
Now they fear China.
Reposted by Chandler Carruth
I say this knowing full well I have approximately zero chance of reaching most people that need to hear it, but
1. Read this: arstechnica.com/tech-policy/...
2. If you use TikTok or Shorts, you should look into Loops instead.
Loops is federated. No central control. No MAGA takeover.
1. Read this: arstechnica.com/tech-policy/...
2. If you use TikTok or Shorts, you should look into Loops instead.
Loops is federated. No central control. No MAGA takeover.
Trump says TikTok should be tweaked to become “100% MAGA”
Uncertainty reigns as Trump claims China approved TikTok deal.
arstechnica.com
September 26, 2025 at 7:07 PM
I say this knowing full well I have approximately zero chance of reaching most people that need to hear it, but
1. Read this: arstechnica.com/tech-policy/...
2. If you use TikTok or Shorts, you should look into Loops instead.
Loops is federated. No central control. No MAGA takeover.
1. Read this: arstechnica.com/tech-policy/...
2. If you use TikTok or Shorts, you should look into Loops instead.
Loops is federated. No central control. No MAGA takeover.
I have complex and mixed thoughts about LLMs and generative AI in general these days, but want to ask some narrow, focused questions around AI coding tools _only_.
How do folks feel about open source software tooling providing deeply-integrated by strictly opt-in integration with AI coding tools?
🧵
How do folks feel about open source software tooling providing deeply-integrated by strictly opt-in integration with AI coding tools?
🧵
September 22, 2025 at 7:41 PM
I have complex and mixed thoughts about LLMs and generative AI in general these days, but want to ask some narrow, focused questions around AI coding tools _only_.
How do folks feel about open source software tooling providing deeply-integrated by strictly opt-in integration with AI coding tools?
🧵
How do folks feel about open source software tooling providing deeply-integrated by strictly opt-in integration with AI coding tools?
🧵
Reposted by Chandler Carruth
The most effective way to reduce homelessness is to give people homes. I'm not sure why we pretend that this is so complicated.
You end pantslessness by giving people pants.👖
You can't end pantslessness by throwing away someone's shirt too. That doesn't make sense.
You end pantslessness by giving people pants.👖
You can't end pantslessness by throwing away someone's shirt too. That doesn't make sense.
August 29, 2025 at 7:50 PM
The most effective way to reduce homelessness is to give people homes. I'm not sure why we pretend that this is so complicated.
You end pantslessness by giving people pants.👖
You can't end pantslessness by throwing away someone's shirt too. That doesn't make sense.
You end pantslessness by giving people pants.👖
You can't end pantslessness by throwing away someone's shirt too. That doesn't make sense.
Reposted by Chandler Carruth
I'm the biggest hater of seeing homeless people on earth. I promise you that I hate seeing tent cities and encampments and trash and human feces on the street more than Gavin Newsom does.
But being extra cruel to unhoused people doesn't reduce the encampments or clean up streets in a durable way.
But being extra cruel to unhoused people doesn't reduce the encampments or clean up streets in a durable way.
August 29, 2025 at 7:44 PM
I'm the biggest hater of seeing homeless people on earth. I promise you that I hate seeing tent cities and encampments and trash and human feces on the street more than Gavin Newsom does.
But being extra cruel to unhoused people doesn't reduce the encampments or clean up streets in a durable way.
But being extra cruel to unhoused people doesn't reduce the encampments or clean up streets in a durable way.
Reposted by Chandler Carruth
Just a heads up. I was able to schedule my COVID vaccine appointment. Online it will ask “do you have a condition that puts you at high risk for severe outcomes from COVID-19 virus.”
Click yes and it will allow you to schedule an appointment.
No questions asked.
No proof required.
Pass it on.
Click yes and it will allow you to schedule an appointment.
No questions asked.
No proof required.
Pass it on.
August 28, 2025 at 2:12 PM
Just a heads up. I was able to schedule my COVID vaccine appointment. Online it will ask “do you have a condition that puts you at high risk for severe outcomes from COVID-19 virus.”
Click yes and it will allow you to schedule an appointment.
No questions asked.
No proof required.
Pass it on.
Click yes and it will allow you to schedule an appointment.
No questions asked.
No proof required.
Pass it on.
Reposted by Chandler Carruth
Oh, and deadnaming, cisgender, LGBTQIA+?
If you're willing to feed trans people to fascists just to keep yourself safe? Then you yourself don't deserve to be safe either. Earn the right to be safe, by keeping others safe.
I'm a straight, cisgender, man.
If you don't like the vocab I use, too bad.
If you're willing to feed trans people to fascists just to keep yourself safe? Then you yourself don't deserve to be safe either. Earn the right to be safe, by keeping others safe.
I'm a straight, cisgender, man.
If you don't like the vocab I use, too bad.
August 22, 2025 at 6:00 PM
Oh, and deadnaming, cisgender, LGBTQIA+?
If you're willing to feed trans people to fascists just to keep yourself safe? Then you yourself don't deserve to be safe either. Earn the right to be safe, by keeping others safe.
I'm a straight, cisgender, man.
If you don't like the vocab I use, too bad.
If you're willing to feed trans people to fascists just to keep yourself safe? Then you yourself don't deserve to be safe either. Earn the right to be safe, by keeping others safe.
I'm a straight, cisgender, man.
If you don't like the vocab I use, too bad.
Reposted by Chandler Carruth
The USA has never had a fair presidential election in its entire history, because there has never been one presidential election where it was as easy to vote for a Black American as it is for a White American.🤷🏿♂️
Not one.
Every election has been tainted by racist voter suppression.
Not one.
Every election has been tainted by racist voter suppression.
August 18, 2025 at 4:06 AM
The USA has never had a fair presidential election in its entire history, because there has never been one presidential election where it was as easy to vote for a Black American as it is for a White American.🤷🏿♂️
Not one.
Every election has been tainted by racist voter suppression.
Not one.
Every election has been tainted by racist voter suppression.
Reposted by Chandler Carruth
Chandler Carruth is the creator of Carbon, and he leads the C++, C Lang, and LLVM teams at Google. In this episode, he joins @kball.llc to talk about Carbon and the future of the language.
@chandlerc.blog
softwareengineeringdaily.com/2025/08/14/c...
@chandlerc.blog
softwareengineeringdaily.com/2025/08/14/c...
Carbon and Modernizing C++ with Chandler Carruth - Software Engineering Daily
Carbon is a programming language developed by Google as a successor to C++, and it aims to provide modern safety features while maintaining high performance. It’s designed to offer seamless interopera...
softwareengineeringdaily.com
August 14, 2025 at 11:31 AM
Chandler Carruth is the creator of Carbon, and he leads the C++, C Lang, and LLVM teams at Google. In this episode, he joins @kball.llc to talk about Carbon and the future of the language.
@chandlerc.blog
softwareengineeringdaily.com/2025/08/14/c...
@chandlerc.blog
softwareengineeringdaily.com/2025/08/14/c...
Reposted by Chandler Carruth
I wrote about the WNBA and dildogate for Andscape: “By using the sex toy to make their point, the stunt becomes more than just an annoyance or a danger during play — it becomes a sexualized threat to the women on the court, an allusion to violence that can keep them in their place.”
Throwing sex toys on court at WNBA games is about power, not humor
This latest 'trend' is not funny. It's harassment
andscape.com
August 9, 2025 at 1:15 PM
I wrote about the WNBA and dildogate for Andscape: “By using the sex toy to make their point, the stunt becomes more than just an annoyance or a danger during play — it becomes a sexualized threat to the women on the court, an allusion to violence that can keep them in their place.”
Currently going back through all the hilarious terrible dino movies, because why not. (Ok, the first one was actually a great film, but the rest... yeah.)
Current take: Blue is the John Wick of dinos. And I am a **fan**.
Current take: Blue is the John Wick of dinos. And I am a **fan**.
August 8, 2025 at 5:52 AM
Currently going back through all the hilarious terrible dino movies, because why not. (Ok, the first one was actually a great film, but the rest... yeah.)
Current take: Blue is the John Wick of dinos. And I am a **fan**.
Current take: Blue is the John Wick of dinos. And I am a **fan**.
Reposted by Chandler Carruth
if you cannot win an election over 3 years away against the most loathsome people in the US while they are doing things like *kidnapping the fucking ice cream man off the street in broad daylight* without a ritual sacrifice of at-risk people, you are not the future of humanity. dream bigger, better.
I am so fucking sick of this vile argument that fighting anti-trans hate is making perfect the enemy of good.
Forcing trans people out of society isn’t “good”!! It’s fucking evil!
“Once that is done” means “let a bunch of people that I deem less important die in the meantime”. No! Fuck you!
Forcing trans people out of society isn’t “good”!! It’s fucking evil!
“Once that is done” means “let a bunch of people that I deem less important die in the meantime”. No! Fuck you!
August 8, 2025 at 2:25 AM
if you cannot win an election over 3 years away against the most loathsome people in the US while they are doing things like *kidnapping the fucking ice cream man off the street in broad daylight* without a ritual sacrifice of at-risk people, you are not the future of humanity. dream bigger, better.
Reposted by Chandler Carruth
I've been hearing about a lot of behaviors that people think "melt their brain" or "make people stupid."
So what do people think "makes people smarter" and "repairs your brain"?
So what do people think "makes people smarter" and "repairs your brain"?
August 2, 2025 at 1:50 AM
I've been hearing about a lot of behaviors that people think "melt their brain" or "make people stupid."
So what do people think "makes people smarter" and "repairs your brain"?
So what do people think "makes people smarter" and "repairs your brain"?