Slashdot Mirror


User: sjames

sjames's activity in the archive.

Stories
0
Comments
34,276
First seen
Last seen
Profile
(view on slashdot.org)

Comments · 34,276

  1. Re:Write-only code. on Was Linus Torvalds Right About C++ Being So Wrong? · · Score: 1

    *I* don't, but some of those people Linus was talking about probably do.

    My point isn't that C or C++ have bad type safety (or good type safety for that matter) just that if type safety is a real concern for you, C++ isn't really going to leave you better off than C. In either one, the compiler won't save you if you make a type related error. Note that dynamic_cast adds a RUNtime test, the compiler still doesn't save you.

  2. Re:Write-only code. on Was Linus Torvalds Right About C++ Being So Wrong? · · Score: 1

    I've done that. It's not that out there.

    Others use per-type link/unlink functions declared inline.

  3. Re:Write-only code. on Was Linus Torvalds Right About C++ Being So Wrong? · · Score: 1

    Yes, you SHOULD use that for casting, but you don't HAVE to.

    In C, you CAN define a base struct that includes an enum specifying the correct type but you certainly don't have to.

    That is, C++ offers a convenient way to do it right but doesn't require it, so it remains easy to cast incorrectly and do a crash and burn.

  4. Re:Write-only code. on Was Linus Torvalds Right About C++ Being So Wrong? · · Score: 1

    That's not necessarily true in C. If you use defines for the pushing and popping (queue/dequeue, link/unlink, etc) and build the chain pointers into the object, it will happily enforce the type based on the type of the head object. Once the pre-processor is done, the compiler will complain if you try to assign struct foo_t *next the address of a struct bar_t

  5. Re:Casting on Was Linus Torvalds Right About C++ Being So Wrong? · · Score: 1

    Exactly, so why the claims that C++ is so much safer?

  6. Re:Write-only code. on Was Linus Torvalds Right About C++ Being So Wrong? · · Score: 1

    So how does that differ at all from C? Shouldn't != can't

  7. Re:or maybe... on On the Dangers and Potential Abuses of DNA Familial Searching · · Score: 1

    There is, in fact, evidence that your concerns are well founded. I wish I had a reference for it but the research demonstrated an uncomfortable likelihood that a search against a large pool of DNA profiles would nearly inevitably return several false matches.

    And that was before considering that few DNA samples are perfect in the first place.

    A lot of people would have a lot less confidence in DNA matches if they knew that really only a tiny sampling of the DNA's characteristics are spot checked for a match. They definitely do not match them up codon by codon like many people imagine.

  8. Re:depends upon what you're making on Was Linus Torvalds Right About C++ Being So Wrong? · · Score: 1, Insightful

    I wouldn't use it for most firmware either. Firmware often has size constraints that C++ is less than friendly about. It also often runs in a limited environment that may not be friendly to C++.

  9. Re:Write-only code. on Was Linus Torvalds Right About C++ Being So Wrong? · · Score: 3, Insightful

    Actually, the kernel code is quite clear and understandable to any decent C programmer. I find it hard to consider it losing BADLY to anything.

    Note that C++ isn't necessarily type safe either. It's not at all difficult to cast an object pointer to the wrong type and crash. It's no harder than it is in C.

  10. Re:The Big News on CIA Tried To Crack Security of Apple Devices · · Score: 1

    I won't claim the IRS is angelic. In fact, I think we need to review what information they collect to be on the safe side.

    But the NSA has clearly stepped over the line. It is no longer a possibility to worry about, it is a fact. They aren't just a potential enemy to be watched, they are an actual current enemy to be eliminated.

  11. Re:System worked, then? on On the Dangers and Potential Abuses of DNA Familial Searching · · Score: 1

    He worried because innocence doesn't necessarily result in a good outcome in criminal proceedings. If it actually goes to trial, bankruptcy is often the reward for the innocent. Other times, they end up convicted anyway and lose years of their lives (or simply lose their life in the case of capital murder).

    So he was more like "OMG they think I brutally murdered someone, I'm going to prison and I didn't even do it!"

  12. Re:System worked, then? on On the Dangers and Potential Abuses of DNA Familial Searching · · Score: 1

    From TFA:

    “I had lots of days sitting at the house with the dog,” he recalled in an interview, “wondering if these guys were going to use a battering ram to bust open the door and shoot my dog after he started barking at them.”

    Sadly, we cannot claim his fear was unjustified. It certainly isn't without precedent.

  13. Re: or maybe... on On the Dangers and Potential Abuses of DNA Familial Searching · · Score: 1

    I'm reminded of the 'serial killer' who raged across Europe for many years. It turned out that the DNA of the 'serial killer' was actually from the woman who packaged the cotton swabs.

    It also turned out that they bought sterile swabs meant for medical use, but not swabs clear of DNA meant for forensic investigation.

  14. Re:or maybe... on On the Dangers and Potential Abuses of DNA Familial Searching · · Score: 1

    The statistics are tricky there. The odds against a perfect false match to a particular bit of evidence are quite high. The odds of a false familial match against a degraded sample from ANY crime scene are quite different. I can't imagine why anyone would want to effectively sign up to be a go-to suspect.

  15. Re:or maybe... on On the Dangers and Potential Abuses of DNA Familial Searching · · Score: 1

    Given news footage I have seen of someone's house after a search (which turned out to be based on an anonymous tip), I'd say TV has it right. They ripped sheet rock from the walls, destroyed furniture, and spread the insides of their mattresses over the floor. They didn't even apologize when it was over.

  16. Re:or maybe... on On the Dangers and Potential Abuses of DNA Familial Searching · · Score: 1

    People would be more willing to cooperate if doing so wasn't so frequently punished even when you're innocent.

    Law enforcement and our 'justice system' need to drill it into their skulls that unless they are very careful, the process of investigating and ultimately finding a person not guilty is itself an ordeal that amounts to punishment of the innocent.

    It's no wonder people prefer to be left out of it rather than cooperate.

  17. Re:Non Story on On the Dangers and Potential Abuses of DNA Familial Searching · · Score: 1

    I'll bet that 'suspect' would have preferred not to be molested by the police over what was akin to a fishing expedition. They had no actual evidence that he committed the crime. It seems doubtful that it was actually probable cause.

    They certainly owed him the courtesy of QUICKLY letting him know he had no need to worry about further suspicion hanging over him. Like doing their test IMMEDIATELY and letting him know within a couple days of taking the sample.

  18. Re:The Big News on CIA Tried To Crack Security of Apple Devices · · Score: 1

    Sorry, no. As despised as the IRS is, it performs according to it's charter and the constitution (for the most part).

    The NSA is an actual domestic enemy of the people. It's activities are illegal and it is actively damaging everyone's rights and security.

    Nationalized health care would NOT give any government agent the ability to know exactly where I am most all of the time like the NSA illegally hacking my phone would. It would not let anyone know who I talk to, when that happens, or what was said like the illegal NSA hacking does.

  19. Re:Crayons and safety scissors for everyone! on Mental Health Experts Seek To Block the Paths To Suicide · · Score: 1

    Put a net under the bridge and they'll just run out in front of a bus or pull a knife on a cop instead. It simply isn't possible to eliminate even the most impulsive forms of death.

    For it to have even a hint of effectiveness, they would actually have to nerf the world. If they're not going to do that, then they will have no effect at all.

  20. Re:Crayons and safety scissors for everyone! on Mental Health Experts Seek To Block the Paths To Suicide · · Score: 1

    From TFA:

    Instead of treating individual risk, means restriction entails modifying the environment by removing the means by which people usually die by suicide

    So they really are talking about nerfing the world rather than making sure counselling is readily available.

  21. Re:Crayons and safety scissors for everyone! on Mental Health Experts Seek To Block the Paths To Suicide · · Score: 1

    In Japan, the hand can be used like a knife. But this doesn't work on a tomato.

  22. Crayons and safety scissors for everyone! on Mental Health Experts Seek To Block the Paths To Suicide · · Score: 3, Insightful

    I understand the motivation, but there are simply far too many ways to die if you want to. Even if we nerf the whole world and baby proof everything, we won't stop an adult or teen that wants to die from doing so. But we will make the world a worse place to live.

    There is a significant chance that we will just force people to choose a horrific way to die or (perhaps worse) a way that is as likely to leave them in a horrific but not dead state as it is to kill them.

    Besides, how will we cook without knives?

  23. Re:Models compared to reality on California's Hot, Dry Winters Tied To Climate Change · · Score: 1

    Except it suggests that we are filling a reservoir and that once full we may expect the rate of warming to increase. It still suggests that we had best cut our emissions before we get into serious problems. It could also be serious trouble if the reservoir is carbonic acid formation in the ocean.

    I can say that the model would necessarily have a parameter for CO2 level and a function to determine it's level as the model evolved. If the real world doesn't match the evolution of the CO2 in the model, all bets are off and we can't really say what (if anything) the model is telling us.

  24. Re:Models compared to reality on California's Hot, Dry Winters Tied To Climate Change · · Score: 1

    Did you read the part about how the necessary conditions the model was based on weren't met so it can only be a thermal or CO2 sink? Or the part about how the temperature rise after 2000 is and remains non-zero?

    I wake up one morning feeling dizzy. I know that disorientation training for the space program causes dizziness. Conclusion, I joined the space program in my sleep. The data fits perfectly!

    Or perhaps since I am still in bed I should consider a different explanation. Perhaps I should take my temperature and consider seeing a doctor.

  25. Re:Models compared to reality on California's Hot, Dry Winters Tied To Climate Change · · Score: 1

    It is worth looking at why model C seems to track. It isn't being takes seriously as-is because we know the conditions it assumed did not happen. CFCs were sharply cut and some effort has been put towards methane and NOx, but there hasn't been a net reduction in CO2.

    It is most probable that there is a CO2 or thermal sink that hasn't been accounted for. It could be huge or it could be just about full.

    Part of the problem is that the deniers give the impression (to the scientists) that they will sit on their ass till the sea rises enough to float their chair unless the prediction is unmitigated disaster. So there is a tendency to report the worst case scenario.

    In fact, I suspect that as long as there's money to be made by the deniers, Jesus could appear before them personally and explain it and they wouldn't believe him either.

    In between are a bunch of people not sure who to believe.