Follow Slashdot blog updates by subscribing to our blog RSS feed


Forgot your password?
Check out the new SourceForge HTML5 internet speed test! No Flash necessary and runs on all devices. ×

Comment Re:Just remove it then (Score 1) 294

Ie, no non-constant function pointers, that's a very common and very useful programming method.

It's something that is bound to blow up in your face on certain architectures, e.g. 8051.

Also, non-constant function pointers are convenient, but do not offer any functionality that cannot be achieved with more transparent constructs like switch/case statements, jump tables or arrays (constant) function pointers.

Restrictions on gotos have nothing whatsoever to do with safety.

MISRA is not just about making the code safer, but also about making it easier to review and test. goto, continue, functions with multiple return statements and the like create additional possible code paths and tend to increase complexity. (That doesn't mean I completely agree with every MISRA rule. Some can be translated to "Code shall not contain (certain type of) bugs", for example.)

Comment It's not a philosophy, but a practical thing. (Score 1) 294

It sounds like basically, he's of the philosophy that "the code must go on".

It's not a philosophy, but a practical thing. He explained it in various postings. If BUG_ON() is used where it basically crashes the machine, it does not help, but hinder, debugging. Basically, once the machine crashes, there's no way of finding out wtf actually happened. And if this happens to users, they'll just hit the reset button and think that the OS is an unreliably, crashy piece of garbage.

If the state of the machine is not fatally corrupt, there are better ways of dealing with a possible bug than intentionally crashing the machine. Logs, error messages, basically anything that's more useful than the machine suddenly freezing.

Comment Re:BCH psch = T4 program (Score 5, Insightful) 295

What could possibly motivate a hospital staff to open themselves up to negligence lawsuits just so that they could ... what? Torture a patient for jollies? Or something?

Power, for example. Or someone makes a decision and everyone else just supports it without chechking themselves, since, you know, the person that originally made the decision is a highly qualified professional.

A single person can do batshit crazy stuff, yes. But a group of professionals working in a hospital? Nope. Not going to happen.

It's called esprit de corps. You don't doubt your other fellow professionals, you doubt the stupid patient, since the latter didn't go to university with you and/or isn't in your fraternity.

Comment Local sync, please? (Score 1) 177

I bought a Lumia 550 a while ago. Nice device, especially for its price. The only reason I'm still using my old dinosaur E6 is the lack of local synchronization options - in fact the only place that W10M will transfer contacts to is the cloud.

I know there are tricks - setting up a CardDAV server and using the iCloud account option to sync with it - but a W10M phone should be able to locally sync with a W10 PC out of the box.

Comment Re:What we might learn ... (Score 1) 146

How about physics?

Any alien civilization with significantly more advanced knowledge of physics will probably not bother talking to us, unless they're really bored or see it as the duty to enlighten less advanced civilizations.

And if their knowledge of civilization is only slightly more advanced than ours, we can probably catch up to their level in the time (>100 years) it takes for our message to get there and their response to get back here.

Or biology

True - that might be another interesting topic. We may know all the moleculues that make up alien biology, but not how they interact. I would add it to the list of "how" questions. "How does your society work?", "How does your biology work?", "How does your communication work?" (of course, we'll need to figure out the basics ourselves, at least up to the point where we can ask the question and understand the answer).

Some answers might also be more intriguing than others. Is the alien biology similar to ours (DNA-based), or is it wildly different?

Comment Re:What we might learn ... (Score 1) 146

A few hundred years? You give humanity incredible credit, or perhaps assume that "all possible things that can be done" is and incredibly small set.

I'm just working under the assumption that any aliens we actually get to talk to will have roughly our level of science and technology. Any civilization significantly more advanced will probably not bother talking to a bunch of unwashed barbarians.

Think of everything we don't know about the universe,

Well ... ok. Maybe they could tell us more about the star systems in their vicinity than we can find out ourselves.

art, philosophy

Mmh, ok. Point taken.


Or politics. Yes, the questions "How does your society work?" might be an extremely interesting one, even if the answer doesn't have any application (if "they" are photosynthesizing plants, then food production won't be high on their priority list. If they have genetically evolved to live in hive structures, that might work for them, but we can't copy it due to being somewhat civilized apes).

Comment What we might learn ... (Score 1) 146

there's no telling what we might learn from them.

And what could that possibly be?

There are intelligent aliens. Okay, that would be a pretty groundbreaking discovery all by itself.

We'll probably not learn much in the ways of science or technology from them, or at least no much that we couldn't discover ourselves within a reasonable (few hundred years) timespan.

That basically leaves philosophy and possibly religion as topics. And poetry.

Comment Re:What is Justice (Score 1) 287

Because if you let it go in this case then you have to let it go in all cases, and if you let it go in all cases then the police are free to break into your home,

If the police officers involved in obtaining evidence illegally get charged with the approriate crime and sentenced, then the "let it go" part does not happen. Few police officers want criminals behind bars so much that they will sacrifice their own freedom.

Also, in case such a screw-up happens, does the government compensate the victim? He or she may have had claims (in addition to seeing the offender punished) that the government just ruined through incompetence.

Slashdot Top Deals

What the world *really* needs is a good Automatic Bicycle Sharpener.