from the world's big
Why I Created C++
Bjarne Stroustrup is a computer programmer most famous for having designed and implemented the computer programming language C++, one of the most widely used programming languages in the world. His book "The C++ Programming Language" is the most widely read book of its kind and has been translated into at least 19 languages. In addition to his five books, Stroustrup has published hundreds of academic and popular papers. He currently holds the College of Engineering Chair in Computer Science at Texas A&M University.
Question: What inspired you to create C++?
Bjarne Stroustrup: In the really old days, people had to write their code directly to work on the hardware. They wrote load and store instructions to get stuff in and out of memory and they played about with bits and bytes and stuff. You could do pretty good work with that, but it was very specialized. Then they figured out that you could build languages fit for humans for specific areas. Like they built FORTRAN for engineers and scientists and they built COBALT for businessmen.
And then in the mid-'60s, a bunch of Norwegians, mostly Ole-Johan Dahl and Kristen Nygaard thought why can’t you get a language that sort of is fit for humans for all domains, not just linear algebra and business. And they built something called SIMULA. And that’s where they introduced the class as the thing you have in the program to represent a concept in your application world. So if you are a mathematician, a matrix will become a class, if you are a businessman, a personnel record might become a class, in telecommunications a dial buffer might become a class—you can represent just about anything as a class. And they went a little bit further and represented relationships between classes; any hierarchical relationship could be done as a bunch of classes. So you could say that a fire engine is a kind of a truck which is a kind of a car which is a kind of a vehicle and organize things like that. This became know as object-oriented programming or also in some variance of it as data abstraction.
And my idea was very simple: to take the ideas from SIMULA for general abstraction for the benefit of sort of humans representing things... so humans could get it with low level stuff, which at that time was the best language for that was C, which was done at Bell Labs by Dennis Ritchie. And take those two ideas and bring them together so that you could do high-level abstraction, but efficiently enough and close enough to the hardware for really demanding computing tasks. And that is where I came in. And so C++ has classes like SIMULA but they run as fast as C code, so the combination becomes very useful.
Question: What makes C++ such a widely used language?
Bjarne Stroustrup: If I have to characterize C++’s strength, it comes from the ability to have abstractions and have them so efficient that you can afford it in infrastructure. And you can access hardware directly as you often have to do with operating systems with real time control, little things like cell phones, and so the combination is something that is good for infrastructure in general.
Another aspect that’s necessary for infrastructure is stability. When you build an infrastructure it could be sort of the lowest level of IBM mainframes talking to the hardware for the higher level of software, which is a place they use C++. Or a fuel injector for a large marine diesel engine or a browser, it has to be stable for a decade or so because you can’t afford to fiddle with the stuff all the time. You can’t afford to rewrite it, I mean taking one of those ships into harbor costs a lot of money. And so you need a language that’s not just good at what it’s doing, you have to be able to rely on it being available for decades on a variety of different hardware and to be used by programmers over a decade or two at least. C++ is not about three decades old. And if that’s not the case, you have to rewrite your code all the time. And that happens primarily with experimental languages and with proprietary commercial languages that change to finish – to meet fads.
C++’s problem is the complexity part because we haven’t been able to clean it up. There’s still code written in the 80’s that are running and people don’t like their running codes to break. It could cost them millions or more.
Recorded August 12, 2010
Interviewed by Max Miller
In the late 1970s, Stroustrup applied the idea of "classes" to the C programming language to create a new language that allows for high level abstraction—but is efficient and close to the hardware.
Join The Daily Show comedian Jordan Klepper and elite improviser Bob Kulhan live at 1 pm ET on Tuesday, July 14!
Gender and sexual minority populations are experiencing rising anxiety and depression rates during the pandemic.
- Anxiety and depression rates are spiking in the LGBTQ+ community, and especially in individuals who hadn't struggled with those issues in the past.
- Overall, depression increased by an average PHQ-9 score of 1.21 and anxiety increased by an average GAD-7 score of 3.11.
- The researchers recommended that health care providers check in with LGBTQ+ patients about stress and screen for mood and anxiety disorders—even among those with no prior history of anxiety or depression.
Study findings<p>For the study, <a href="https://link.springer.com/article/10.1007/s11606-020-05970-4" target="_blank">published in the Journal of General Internal Medicine</a><em>, </em>Flentje and her team evaluated survey responses from nearly 2,300 individuals who identified as being in the lesbian, gay, bisexual, transgender, and queer (LGBTQ+) community. Most of the participants were white, while nearly 19 percent identified as a racial or ethnic minority. Multiple genders were represented with cisgender women (27.2 percent) and men (24.6 percent) making up a majority of the participants. Sixty-three percent had been assigned female at birth. For the most part, participants identified their sexual orientations as queer (40.3 percent), gay (36.5 percent), and bisexual (30.3 percent).</p><p>The JGIM study participants were recruited from the 18,000-participant <a href="https://pridestudy.org/" target="_blank">PRIDE Study</a> (Population Research in Identity and Disparities for Equality), which is the first large-scale, long-term national study focusing on American adults who identify as LGBTQ+. It conducts annual questionnaires to understand factors related to health and disease in this population. </p><p>Participants filled out an annual questionnaire (starting in June 2019) and a COVID-19 impact survey this past spring. Flentje noted that on an individual level, some people may not have experienced a big change in anxiety or depression levels, but for others there was. Overall, depression increased by a <a href="https://patient.info/doctor/patient-health-questionnaire-phq-9" target="_blank">PHQ-9 score</a> of 1.21, putting it at 8.31 on average. Anxiety went up by a <a href="https://www.mdcalc.com/gad-7-general-anxiety-disorder-7" target="_blank">GAD-7</a> score of 3.11 to an average of 8.89. Interestingly, the average PHQ-9 scores for those who screened positive for depression at the first 2019 survey decreased by 1.08. Those who screened negative for depression saw their PHQ-9 scores increase by 2.17 on average. As for anxiety, researchers detected no GAD-7 change among the study participants who screened positive for anxiety in the first survey, but did see an overall increase of 3.93 among those who had initially been evaluated as negative for the disorder. </p>
Risks among gender and sexual minorities<span style="display:block;position:relative;padding-top:56.25%;" class="rm-shortcode" data-rm-shortcode-id="fc3fd1ae68b77bbbf58a6995638d6d65"><iframe type="lazy-iframe" data-runner-src="https://www.youtube.com/embed/EnUqDjCqg0A?rel=0" width="100%" height="auto" frameborder="0" scrolling="no" style="position:absolute;top:0;left:0;width:100%;height:100%;"></iframe></span><p>The LGBTQ+ community is a vulnerable population to mental health concerns because of their fear of stigmatization and previous discriminatory experiences.</p> <p>Previous research by the Human Rights Campaign has found "that LGBTQ Americans are more likely than the <a href="https://medicalxpress.com/tags/general+population/" target="_blank">general population</a> to live in poverty and lack access to adequate medical care, paid <a href="https://medicalxpress.com/tags/medical+leave/" target="_blank">medical leave</a>, and basic necessities during the pandemic," said researcher Tari Hanneman, director of the health and aging program at the campaign.</p> <p>"Therefore, it is not surprising to see this increase in anxiety and depression among this population," Hanneman said in the release. "This study highlights the need for <a href="https://medicalxpress.com/tags/health+care+professionals/" target="_blank">health care professionals</a> to support, affirm and provide <a href="https://medicalxpress.com/tags/critical+care/" target="_blank">critical care</a> for the LGBTQ community to manage and maintain their mental health, as well as their physical health, during this pandemic."</p>
What should health care providers do?<p>The authors of the study recommend that health care providers check in with LGBTQ+ patients about stress and screen for mood and anxiety disorders in members of that community—even among those with no prior history of anxiety or depression.</p><p>As cases of COVID-19 continue to mount, the sustained social distancing, potential isolation, economic precariousness, and personal illness, grief, and loss are bound to have increased and varied impacts on mental health. Effective treatments may include individual therapy and medications as well as more large-scale coronavirus support programs like peer-led groups and mindfulness practices. </p><p>"It will be important to find out what happens over time and to identify who is most at risk, so we can be sure to roll out public health interventions to support the mental health of our communities in the best and most effective ways," said Flentje.</p>
What we know about black holes is both fascinating and scary.
- When it comes to black holes, science simultaneously knows so much and so little, which is why they are so fascinating. Focusing on what we do know, this group of astronomers, educators, and physicists share some of the most incredible facts about the powerful and mysterious objects.
- A black hole is so massive that light (and anything else it swallows) can't escape, says Bill Nye. You can't see a black hole, theoretical physicists Michio Kaku and Christophe Galfard explain, because it is too dark. What you can see, however, is the distortion of light around it caused by its extreme gravity.
- Explaining one unsettling concept from astrophysics called spaghettification, astronomer Michelle Thaller says that "If you got close to a black hole there would be tides over your body that small that would rip you apart into basically a strand of spaghetti that would fall down the black hole."
The team caught a glimpse of a process that takes 18,000,000,000,000,000,000,000 years.
- In Italy, a team of scientists is using a highly sophisticated detector to hunt for dark matter.
- The team observed an ultra-rare particle interaction that reveals the half-life of a xenon-124 atom to be 18 sextillion years.
- The half-life of a process is how long it takes for half of the radioactive nuclei present in a sample to decay.
A new study looks at what would happen to human language on a long journey to other star systems.
- A new study proposes that language could change dramatically on long space voyages.
- Spacefaring people might lose the ability to understand the people of Earth.
- This scenario is of particular concern for potential "generation ships".