Please create an account to participate in the Slashdot moderation system

 



Forgot your password?
typodupeerror
×
Sci-Fi

The Singularity Is Sci-Fi's Faith-Based Initiative 339

malachiorion writes: "Is machine sentience not only possible, but inevitable? Of course not. But don't tell that to devotees of the Singularity, a theory that sounds like science, but is really just science fiction repackaged as secular prophecy. I'm not simply arguing that the Singularity is stupid — people much smarter than me have covered that territory. But as part of my series of stories for Popular Science about the major myths of robotics, I try to point out the Singularity's inescapable sci-fi roots. It was popularized by a SF writer, in a paper that cites SF stories as examples of its potential impact, and, ultimately, it only makes sense when you apply copious amounts of SF handwavery. The article explains why SF has trained us to believe that artificial general intelligence (and everything that follows) is our destiny, but we shouldn't confuse an end-times fantasy with anything resembling science."
Earth

Studies: Wildfires Worse Due To Global Warming 379

An anonymous reader writes "According to scientists we can look forward to more devastating wildfires like the ones scorching Southern California because of global warming. "The fires in California and here in Arizona are a clear example of what happens as the Earth warms, particularly as the West warms, and the warming caused by humans is making fire season longer and longer with each decade," said University of Arizona geoscientist Jonathan Overpeck. "It's certainly an example of what we'll see more of in the future.""

Comment Re:Something else? (Score 1) 172

Take a look at "The art and science of programming" by Donald Knuth, it's examples are in Pascal but if you inhale the wisdom in the book you will understand when I say that the language it uses is irrelevant.

Just in case this confuses the submitter, the actual title is "The Art of Computer Programming". And IIRC the code examples aren't in Pascal, but rather in "MIX" assembly, which is a hypothetical language for a hypothetical machine. Also, be forewarned that it has a steep learning curve...

Comment Re:Back in the day I did a lot of c++ (Score 1) 435

Not sure if I'm missing the joke here (if so, apologies), but just because the book title is "Exceptional C++" doesn't mean the whole thing is about exceptions.

Exceptions are covered for a few chapters in that book, but some of the recommendations aren't really relevant anymore; C++11 deprecated many of the problematic parts of exceptions (e.g. exception specifications), and much like valarrays, no one really used them anyways

Comment Re: 1M lines? Really? (Score 1) 435

My normal rules of thumb are: - No operator overloading, especially type casts. - Templates are mostly used for container classes, or in rare cases algorithms. - Spare use of method/function overloading. - Try to use template parameters that are themselves of as simple of a type as is practical.

Some operators shouldn't be overloaded (e.g. &, && and ||), but good luck writing any non-trivial container classes without overloading the assignment operator. You may think you're not overloading these, but the compiler is simply auto-generating them for you since you didn't provide one (namely, copy-assignment operator and move-assignment operators). As with any language feature it can be abused, but they can be quite useful when used judiciously. (i.e. if you're writing a Matrix library, you'll probably want to overload the arithmetic operators).

It's true that there are pitfalls to using templates, but I think you're grossly overstating their dangers (while ignoring all their benefits). You can do some pretty amazing things with templates; in the least they reduce code duplication, and at best they allow compile-time polymorphism, better error detection, and a whole different paradigm for using C++ (metaprogramming can pretty closely resemble functional programming).

Comment Re:Why use it? (Score 1) 435

In a word, C++ has the best binding support for GPGPU.

Both CUDA and OpenCL started off as C-based API -- CUDA has since moved to C++, and is moving towards more modern, idiomatic C++, both for its host-side API and device-side code (e.g. has support for kernel templates). OpenCL is a bit behind in this respect, although it also has both C and C++ bindings. You can also use fortran, but the majority of use-cases for GPGPU work is C++, and will be for the foreseeable future.

OpenCL and CUDA both do have other bindings (off the top of my head, .NET, java and python), but these are 2nd class support-wise.

Comment Re:still bad, getting worse with time (Score 1) 435

Features are added and behavior is changed for the sake of changing, with no benefits to any software quality whatsoever.

Spoken like someone who doesn't know what they're talking about.

No benefits to software quality? Point out any new feature in C++11 that was added that didn't have a reason. (I would be very interested in fact, as I can't think of any off-hand); the newly added features are done with specific problems in mind. They might not be the problems that YOU encounter, but someone else has.

Comment Re:Delayed. (Score 1) 435

The "complex" rules for templates are laid out in painstaking detail in the standard. There can be surprising interactions with other language features(e.g. explicit template function specialization), but (based on personal experience), after having encountered them once or twice, you learn about them and avoid them in the future. On the other hand, having what would otherwise be runtime errors reported at compile time saves time on debugging, and generates more robust code.
Earth

UN Report: Climate Changes Overwhelming 987

iONiUM (530420) writes "'The impacts of global warming are likely to be "severe, pervasive and irreversible", a major report by the UN has warned.' A document was released by the IPCC outlining the current affects on climate change, and they are not good. For specific effects on humans: 'Food security is highlighted as an area of significant concern. Crop yields for maize, rice and wheat are all hit in the period up to 2050, with around a tenth of projections showing losses over 25%.'"

Comment Already Over (Score 1) 405

Those with odd-numbered plates lucked out; apparently they've already discontinued the practice, after having issued roughly 4000 tickets.

One especially pertinent quote from the linked article: ""I know it's not great to say it but I'm willing to take my car and pay the fine to get my kids to school, because I don't have the choice," one woman told the TV network."

Slashdot Top Deals

It is better to never have tried anything than to have tried something and failed. - motto of jerks, weenies and losers everywhere

Working...