Except that the people who wrote the code would have found some way to lose security in the name of speed. Do you realize what it means to have people disregard C's security features?
I don't know Rust. If it had been available back then, why do you think the code authors would have used it? They clearly would have bridled at what they saw as inefficient code generation.
There have been Christian denominations that discriminate against blacks, and people of other religion. If you're going to do business in the US, there are rules you have to adhere to.
You're born black or (ethnically) Jewish. There is no evidence people are born gay (there is no gay gene).
You could read what Wikipedia has to say, as a start. The study with identical and fraternal twins clearly shows a genetic component. It's more complicated than that, of course.
Consider me. I never have been sexually attracted to other men. I am sexually attracted to women. This is convenient for me, given how society works. However, I never made a conscious decision. I started noticing girls in junior high; I just lacked the social skills to get beyond that. I never noticed boys in the same way. I didn't decide my sexuality, I learned it. It wasn't a decision for me. I haven't been told by anyone else that they made a decision, and if so I'd suspect that the person was actually bi. When did you decide you were gay, straight, or bi?
In contrast, I have changed my religion from what I was born into. That appears to be more changeable.
Unless you think it's all random chance, there's reasons why Trump won and Clinton lost. It's worthwhile trying to understand what the reasons are. You saying the Russians didn't hack the election is based on just as much reasoning as a bald claim that they did.
Define "accepted the decision of the voters". If some of us were unconvinced that Trump was the President, we'd ignore him. There's no point in trying to impeach someone who isn't in office.
Accepting the decision isn't the same thing as liking it. Acknowledging that Trump is President does not require a patriotic citizen to abandon their own principles and support Trump.
Not an army, an army group. The First United States Army Group (FUSAG), commanded by Patton, was poised to invade places north of Normandy. It actually consisted of a relatively small number of people, largely signals people, faking an army group. It presumably nominally included some of the fake divisions that had patches in a certain edition of a news magazine, an edition recalled after the US authorities thought it had had time to leak to the Germans.
However, the number of times the Germans were caught off-guard because they believed their best intelligence estimates about the Soviets make me think of this sort of thing as "maskirovka".
There's a lot of people in the rest of the world who don't care about anyone named Jesus or Christ, but who have adopted our calendar because it's in very widespread use (the network effect).
Besides, if Jesus existed, he was born a few (we don't know how many) years BC, which makes no sense. We know when the commonly used calendar started We just go with it.
They know what they did and what it means. Scientific papers (at least the ones I've seen) tend to be fairly explicit about what is and what is not known, often listing the latter under a heading like future research possibilities or some such.
Before models, managers would interview potential new hires, and would generally hire or not hire based on the impression they got of the candidate. That's not necessarily better than a faulty algorithm. The algorithm can be examined and changed.
I generally think of corruption as the state where people in positions of authority make decisions based on what they personally get from involved people rather than according to how their authority should be used. For example, if a police officer writes speeding tickets based on whether the driver hands over $100 or not is corrupt. By this criterion, I'm not sure your examples qualify.
Selling vaporware or stock typically involves unforced agreement on both sides. It's stupid to invest much in vaporware, and to get involved in some IPOs (I was amazed that Facebook stock sold at its IPO price), but bad judgment isn't corruption, and I'm not sure fraud should be either. I don't know about all the incentives involved in the banking crisis. Loan origination companies issued NINJA mortgages because they knew they could sell them for a profit. It all wound up in a horrifyingly expensive house of cards, but I don't know how much actual corruption was involved.
Aside from subject matter, few people have any emotional or economic investment in not believing astronomers (although there's some irrationality about dark matter).
We use government statistics. Trump was elected on economic theory more bogus than trickle-down, and so I don't accept elections as validators of economic theory. If he's re-elected in 2020, then either you're right or Trump's a better con man than I thought he was, and only one of those possibilities supports your position.
I did see a reference to Trump making an anti-LGBTQ promise, although it's pretty clear he's not personally against them.
How do you think his economic policies will work? He can't restore the jobs his followers want. If he implements enough protectionism, we'll get into a trade war and everyone will suffer. Why do you think employment will be higher in 2021 than it is now?
I don't approve in general, but political leanings are not legally protected classes anywhere I know. I'd have to consider individual examples and know why they don't serve Trump supporters and how they tell the difference.
Heartbleed was not a problem with C. The maintainers put runtime efficiency over everything else, which you can do with any language. They had their own memory allocation system going, which prevented using any debugging malloc/free libraries. They skipped basic security precautions.
Heartbleed worked by reading garbage left in memory. Ideally, when a piece of security software calls free() with a custom free(), it should zero memory. At the very least it should make sure newly malloced memory is blank (in C, you can use calloc() instead of malloc(), or call memset()). It would have been easy to avoid Heartbleed using standard C. Had the maintainers had the same priorities in other languages, I'm sure they would have found a way to screw it up.
I don't care about the next project over. Every C++ program in this shop is code reviewed by people who mostly agree on the standards. This means that certain common classes of errors in C programs are not going to happen.
As far as Rust goes, it sounds like you're talking about enforced safety, and most of the stuff you're talking about can be easily duplicated in C++. However, in systems software, you may run into situations where you need the raw performance. As Stroustrup pointed out, if you have a fast unchecked access it's easy to slap a check on it, but if you start with a not-as-fast checked access you can't make a checked access out of it.
std::string is not a particularly good design. It has the two advantages of being standard and being mostly good enough.
If you really need more speed than you get from std::string, you could try std::vector or std::array, depending on exactly what you're doing. Both are improvements on C-style arrays, and std::array in particular provides the performance of a stack-allocated C-style array.
Try them and see. I assume that, if you're worried about std::string overhead, you've got the code set up for profiling and timing. (If not, that's your first job. Making the code less clear to get greater performance should be done in conjunction with profiling, so you know you're working on the right piece of code and that you are indeed getting more performance.)
You're not representative in one way: you run Linux. Most of the potential market runs MS Windows, and most of the rest runs OSX. Currently, you don't need a computer to use an iPhone or iPad, but that wasn't the case at first.
Making the batteries user-replaceable is going to require volume inside the case. The battery has to be encased in something, because we don't want random people handling bare Li-ion batteries. There has to be an actual compartment in the phone, which means that we've added three additional layers of casing. (If we just have the battery as the back of the phone, there's only two, but that has other problems.) There has to be space for the connection. Moreover, this forces the battery into a fairly simple container, which means it loses volume.
It's easy to make batteries replaceable, but it comes at a cost. The phone will be structurally weaker and have less battery life to start with. It's a tradeoff.
The batteries last a long time. If you're looking for iPhone obsolescence, look at the software. By the time a battery looses its oomph, you almost certainly don't want to upgrade the phone to the latest iOS version.
Also, you're pulling prices out of your ass. It's a quick google to find that Apple charges $80, and other places charge a lot less. Whether the other places do as good a job is of course open to question, but if it's your phone you decide who replaces the battery if and when it needs it.
You seem to be missing the point that the batteries last a long time. Most people don't keep their phones that long anyway. Buying a battery and swapping it in would require that the batteries and case be designed for that, reducing battery capacity in the first place. If you want to carry spare energy for your iPhone, you can do that easily. It just attaches to the outside of the phone.
Not to mention that you seem entirely focused on your situation (there are several genius bars within a short distance of my house) and your desires. It may well be that an iPhone is not suitable for you, but that doesn't mean it's unsuitable for everybody.
The potential problem I see is that cutting down on sunlight is likely to have other effects. Solar power will become less efficient. Plants may not grow as well.
No, but mass extinctions like we're seeing now are pretty rare in the history of the world. The one that killed the dinosaurs involved a massive strike from space. This time, we're doing it ourselves.
My sister-in-law is using an iPhone 4 that is over six years old, with the original battery. If it needs to be replaced, Apple will do it for about $80, far less than the cost of a new iPhone, and they'll do it right or make it good. Apple isn't using the battery as a planned obsolescence method. Making the battery easily user-replaceable is not going to help anyone who hasn't got a defective battery. If you want to carry an additional battery to keep using the phone for longer between charges, you can easily get an external battery that will do what you want.
The answer is that the thickness of an iPhone is determined by what will sell the best, and the battery can be bigger if it isn't user-replaceable. Do you want a shorter battery life to be required, or do you want Apple to be required to make its phones less attractive?
Except that the people who wrote the code would have found some way to lose security in the name of speed. Do you realize what it means to have people disregard C's security features?
I don't know Rust. If it had been available back then, why do you think the code authors would have used it? They clearly would have bridled at what they saw as inefficient code generation.
There have been Christian denominations that discriminate against blacks, and people of other religion. If you're going to do business in the US, there are rules you have to adhere to.
You could read what Wikipedia has to say, as a start. The study with identical and fraternal twins clearly shows a genetic component. It's more complicated than that, of course.
Consider me. I never have been sexually attracted to other men. I am sexually attracted to women. This is convenient for me, given how society works. However, I never made a conscious decision. I started noticing girls in junior high; I just lacked the social skills to get beyond that. I never noticed boys in the same way. I didn't decide my sexuality, I learned it. It wasn't a decision for me. I haven't been told by anyone else that they made a decision, and if so I'd suspect that the person was actually bi. When did you decide you were gay, straight, or bi?
In contrast, I have changed my religion from what I was born into. That appears to be more changeable.
Let's see. Astronomy conforms to the scientific method. Climate science conforms to the scientific method. I'm not seeing the distinction.
If you're going to claim that the entire field is unscientific, please provide some evidence.
No, that's not accepting the decision of the voters, US-style. You're confusing us with a more collectivist country.
If accepting the election means letting the President get on with routine business, the Republican Senate sure didn't accept Obama's election.
Unless you think it's all random chance, there's reasons why Trump won and Clinton lost. It's worthwhile trying to understand what the reasons are. You saying the Russians didn't hack the election is based on just as much reasoning as a bald claim that they did.
Which districts would that be? Please provide evidence that it happened.
Define "accepted the decision of the voters". If some of us were unconvinced that Trump was the President, we'd ignore him. There's no point in trying to impeach someone who isn't in office.
Accepting the decision isn't the same thing as liking it. Acknowledging that Trump is President does not require a patriotic citizen to abandon their own principles and support Trump.
Not an army, an army group. The First United States Army Group (FUSAG), commanded by Patton, was poised to invade places north of Normandy. It actually consisted of a relatively small number of people, largely signals people, faking an army group. It presumably nominally included some of the fake divisions that had patches in a certain edition of a news magazine, an edition recalled after the US authorities thought it had had time to leak to the Germans.
However, the number of times the Germans were caught off-guard because they believed their best intelligence estimates about the Soviets make me think of this sort of thing as "maskirovka".
There's a lot of people in the rest of the world who don't care about anyone named Jesus or Christ, but who have adopted our calendar because it's in very widespread use (the network effect).
Besides, if Jesus existed, he was born a few (we don't know how many) years BC, which makes no sense. We know when the commonly used calendar started We just go with it.
They know what they did and what it means. Scientific papers (at least the ones I've seen) tend to be fairly explicit about what is and what is not known, often listing the latter under a heading like future research possibilities or some such.
Before models, managers would interview potential new hires, and would generally hire or not hire based on the impression they got of the candidate. That's not necessarily better than a faulty algorithm. The algorithm can be examined and changed.
I generally think of corruption as the state where people in positions of authority make decisions based on what they personally get from involved people rather than according to how their authority should be used. For example, if a police officer writes speeding tickets based on whether the driver hands over $100 or not is corrupt. By this criterion, I'm not sure your examples qualify.
Selling vaporware or stock typically involves unforced agreement on both sides. It's stupid to invest much in vaporware, and to get involved in some IPOs (I was amazed that Facebook stock sold at its IPO price), but bad judgment isn't corruption, and I'm not sure fraud should be either. I don't know about all the incentives involved in the banking crisis. Loan origination companies issued NINJA mortgages because they knew they could sell them for a profit. It all wound up in a horrifyingly expensive house of cards, but I don't know how much actual corruption was involved.
Aside from subject matter, few people have any emotional or economic investment in not believing astronomers (although there's some irrationality about dark matter).
We use government statistics. Trump was elected on economic theory more bogus than trickle-down, and so I don't accept elections as validators of economic theory. If he's re-elected in 2020, then either you're right or Trump's a better con man than I thought he was, and only one of those possibilities supports your position.
I did see a reference to Trump making an anti-LGBTQ promise, although it's pretty clear he's not personally against them.
How do you think his economic policies will work? He can't restore the jobs his followers want. If he implements enough protectionism, we'll get into a trade war and everyone will suffer. Why do you think employment will be higher in 2021 than it is now?
I don't approve in general, but political leanings are not legally protected classes anywhere I know. I'd have to consider individual examples and know why they don't serve Trump supporters and how they tell the difference.
Heartbleed was not a problem with C. The maintainers put runtime efficiency over everything else, which you can do with any language. They had their own memory allocation system going, which prevented using any debugging malloc/free libraries. They skipped basic security precautions.
Heartbleed worked by reading garbage left in memory. Ideally, when a piece of security software calls free() with a custom free(), it should zero memory. At the very least it should make sure newly malloced memory is blank (in C, you can use calloc() instead of malloc(), or call memset()). It would have been easy to avoid Heartbleed using standard C. Had the maintainers had the same priorities in other languages, I'm sure they would have found a way to screw it up.
I don't care about the next project over. Every C++ program in this shop is code reviewed by people who mostly agree on the standards. This means that certain common classes of errors in C programs are not going to happen.
As far as Rust goes, it sounds like you're talking about enforced safety, and most of the stuff you're talking about can be easily duplicated in C++. However, in systems software, you may run into situations where you need the raw performance. As Stroustrup pointed out, if you have a fast unchecked access it's easy to slap a check on it, but if you start with a not-as-fast checked access you can't make a checked access out of it.
Sounds to me like good C++ style.
std::string is not a particularly good design. It has the two advantages of being standard and being mostly good enough.
If you really need more speed than you get from std::string, you could try std::vector or std::array, depending on exactly what you're doing. Both are improvements on C-style arrays, and std::array in particular provides the performance of a stack-allocated C-style array.
Try them and see. I assume that, if you're worried about std::string overhead, you've got the code set up for profiling and timing. (If not, that's your first job. Making the code less clear to get greater performance should be done in conjunction with profiling, so you know you're working on the right piece of code and that you are indeed getting more performance.)
You're not representative in one way: you run Linux. Most of the potential market runs MS Windows, and most of the rest runs OSX. Currently, you don't need a computer to use an iPhone or iPad, but that wasn't the case at first.
Making the batteries user-replaceable is going to require volume inside the case. The battery has to be encased in something, because we don't want random people handling bare Li-ion batteries. There has to be an actual compartment in the phone, which means that we've added three additional layers of casing. (If we just have the battery as the back of the phone, there's only two, but that has other problems.) There has to be space for the connection. Moreover, this forces the battery into a fairly simple container, which means it loses volume.
It's easy to make batteries replaceable, but it comes at a cost. The phone will be structurally weaker and have less battery life to start with. It's a tradeoff.
The batteries last a long time. If you're looking for iPhone obsolescence, look at the software. By the time a battery looses its oomph, you almost certainly don't want to upgrade the phone to the latest iOS version.
Also, you're pulling prices out of your ass. It's a quick google to find that Apple charges $80, and other places charge a lot less. Whether the other places do as good a job is of course open to question, but if it's your phone you decide who replaces the battery if and when it needs it.
You seem to be missing the point that the batteries last a long time. Most people don't keep their phones that long anyway. Buying a battery and swapping it in would require that the batteries and case be designed for that, reducing battery capacity in the first place. If you want to carry spare energy for your iPhone, you can do that easily. It just attaches to the outside of the phone.
Not to mention that you seem entirely focused on your situation (there are several genius bars within a short distance of my house) and your desires. It may well be that an iPhone is not suitable for you, but that doesn't mean it's unsuitable for everybody.
The potential problem I see is that cutting down on sunlight is likely to have other effects. Solar power will become less efficient. Plants may not grow as well.
No, but mass extinctions like we're seeing now are pretty rare in the history of the world. The one that killed the dinosaurs involved a massive strike from space. This time, we're doing it ourselves.
What about Antarctic land ice? If land ice melts, that makes the seas around the Antarctic less salty and easier to freeze.
My sister-in-law is using an iPhone 4 that is over six years old, with the original battery. If it needs to be replaced, Apple will do it for about $80, far less than the cost of a new iPhone, and they'll do it right or make it good. Apple isn't using the battery as a planned obsolescence method. Making the battery easily user-replaceable is not going to help anyone who hasn't got a defective battery. If you want to carry an additional battery to keep using the phone for longer between charges, you can easily get an external battery that will do what you want.
The answer is that the thickness of an iPhone is determined by what will sell the best, and the battery can be bigger if it isn't user-replaceable. Do you want a shorter battery life to be required, or do you want Apple to be required to make its phones less attractive?