Follow Slashdot stories on Twitter

 



Forgot your password?
typodupeerror
×

Comment Re:Is that unreasonable? (Score 1) 282

The analogy really sucks.

It's very hard to find a photo of Abe Lincoln where he isn't at least a head (including his beard) above everyone else. But today several countries have an average height within a 10 cm of him. The Dutch are 184 cm (about 6' 1"), but Abe was only 193 cm (just under 6' 4"). Partly that's due to nutrition, which has an incredibly complicated relationship to height (the Dutch, for example, are dragged down by the descendents of people born during a famine after WW2. Their grandchildren are unexpectedly short and nobody knows why.).

A Dutch person told me an odd tale about hormones they allowed or put in the food during the 70/80s that led to a single extra tall generation. They got rid of the hormones later and hushed the whole thing up, so now the next generation is back to normal height.

Not sure I believe it though, never found anything to back it up, so it could just be a dutch urban legend.

Comment Re:What is critical thinking? (Score 1, Informative) 553

IMO, the fact that the establishment is the establishment should be reason enough to subject them to constant questioning and criticism. Nobody in authority should be able to do so much as fart on the job being expected to justify their actions -- in front of a jury if necessary.

Yeah, that kind of logic is what anti-science thrives on.

Comment Nonsense (Score 4, Interesting) 370

The distortion is strong in that one. And now he must excuse his earlier brief glimses of reality.

Btw. Helvetica is a classic font that is more narrow and easier to read than Lucida especially on print, on a screen it is best with good hinting, which Apple's fontsystem doesn't do.

Comment Re:Our PC society will be our demise! (Score 1) 193

the news increasingly censors any opinion that would be against socialism or popular accepted opinions

I find it incredible that in the 21st century Internet-connected Scandinavia, there are no independent contrarian news outlets.

There are. Don't conflate Sweden with the rest of Scandinavia, and even if Sweden there are contrarian outlets, it is just that most Swedes pretend opions they don't like don't exits.

Comment Re:Yet "intelligence" genes have little effect (Score 1) 154

Yeah. And as I remember the twin tests from a decade ago, they did show genetics played a large role in how well the kids did in early school, but by the time they twins were 18, the environment was a much bigger factor. In other words the article here has it backwards. Genes doesn't predict intelligence in adults very well, upbringing does, but what genes do predict is how easy a time you will have in early school, which may help you if you have bad school. However, if you don't have an easy time early in school, know that, by the time you are out of school and university, the genes doesn't matter as much as how hard you worked (and how good schools/parents you got).

Comment Headline does not match subject (Score 2) 34

So you can register an account with an email from another domain? Still I know of no-bugzilla where security bugs are allowed to be seen by everybody from a certain domain. They are allowed to be seen by certain number of emails, and since they are already registered, you can't create a new account with one of those.

So, not really that much of an issue unless you have really wide permission to everybody from specific email domains.

Comment Re:Why do people still care about C++ for kernel d (Score 1) 365

The importance of this is underestimated. With a sanely written C++ program (merely sticking to the modern approaches) memory and resource leaks are a thing of the past, but you still get the completely predictable and deterministic resource management of C.

Unfortunately, you can't use any of that in the kernel [overloading create/destroy new/delete operators won't cut it]. Spinlocks, rwlocks, RCU, slab allocation, per cpu variables, explicit cache flush, memory fence operations, I/O device mappings, ISRs, tasklets, kmalloc vs vmalloc, deadlocks, livelocks, etc. are the issues a kernel programmer has to deal with. Nothing in C++ will help with these and some C++ constructs are actually a hindrance rather than a help.

For instance, copy constructors must be disabled. This was part of a proposal a few years back to make a C++ subset suitable for realtime/embedded. It isn't acceptable to have "x = y" invoke an unexpected amount of code simply because you inadvertantly invoked a copy constructor.

Kernels by their nature are messy. Anybody writing kernel code must be fully aware of the implications of doing something and must be aware of the state they're being called in. Abstraction just makes this job harder not easier.

For example, all kernel code must be compiled with -mno-red-zone because of the threat that any base code could receive an interrupt at any time [even between 2-3 machine instructions that comprise the red zone setup code].

Linux already does a pretty fair job of keeping things clean. If you don't believe that, actually go read the kernel source code. And, if something ends up being crufty, it gets cleaned up. Even if that means that some 100 or so modules need corresponding changes.

As someone who have tought kernel programming and C++ at the same time, I call bullshit on all of that.

Overloading allocation is exactly one of the useful features of C++, and copying is no different than on C. You can in fact even explicitly disable copying or explicitly enforce default copying in C++11. Things that is error-prone and boiler plate code in C is easy in C++. As for memory barriers and all that, C++ is again no different from C. Usually you use compiler extensions or assembler for kind of feature, but it is much easier in C++ where you can create templates and wrappers do use all of this correctly, convientenly and safely.

The abstractions of C++ makes handling most kernel issues easier, but it does require more skill as C++ is greater language, this is also why it was great to teach students C++ by letting them write a kernel, they had to learn what C++ features actually did and which to use and what not to use.

Unfortunately C programmers are a religous sect at this point. The believe C++ is witchcraft because they don't understand it, and refuse to learn.

Slashdot Top Deals

Real Programs don't use shared text. Otherwise, how can they use functions for scratch space after they are finished calling them?

Working...