Slashdot Mirror


User: NiceRoundNumber

NiceRoundNumber's activity in the archive.

Stories
0
Comments
30
First seen
Last seen
Profile
(view on slashdot.org)

Comments · 30

  1. Re:C++0x on Design by Contract in C++? · · Score: 2, Interesting

    One of the proposed additions for C++0x includes Contract Programming functionality built into the core language/library

    In addition to assertions, there are a number of helpful ideas that can greatly improve the readability of the language and follow the intent of the programmer, as well as improve the generated code. For instance, a "pure" keyword that specifies that a function is deterministic and has no side-effects; e.g.,square root, or returning an inverted matrix. (So if the function is called twice on the same input, the compiler knows it only has to call the function once.)

    Similarly, a good system for handling pointer aliasing; specifying to the compiler which pointers may be aliased to which other ones, or which pointers are not aliased. These often lead to spaghetti code when hand-optimized, but if the concepts were embedded in the language, both the source code and output could become much cleaner.

  2. Re:*smug grin* on California Sues Automakers for Global Warming · · Score: 1, Funny

    The targeted automakers are Ford Motor Co., General Motors Corp., Toyota Motor Corp., Chrysler Motors Corp., Honda Motor Co. and Nissan Motor Co.

    So in other words, they're saying the Ford Focus (26/34mpg), GM Chevy Cobalt (25/34), Toyota Prius (60/51), Chrysler Sebring (22/30), Honda Insight (60/66), and Nissan Sentra (28/35) are bad for the environment?

    No, I suppose they're referring to the Ford Expedition (14/17mpg), GMC Yukon (13/17), Toyota Land Cruiser (13/17), Chrysler 300C/SRT-8 (14/20), Honda Ridgeline (16/21), and Nissan Titan (14/18).

    They may have a point.

  3. Silent Spring on Brave New Ballot · · Score: 0
    Brave New Ballot is to e-voting what Rachel Carson's Silent Spring is to the global environmental movement.
    Well, I hope not. Silent Spring was largely responsible for ending the use of DDC as a pesticide, which was arguably a misguided and harmful decision. Quoting from British politician Dick Taverne (lifted from Wikipedia):

    "Carson didn't seem to take into account the vital role (DDT) played in controlling the transmission of malaria by killing the mosquitoes that carry the parasite (...) It is the single most effective agent ever developed for saving human life (...) Rachel Carson is a warning to us all of the dangers of neglecting the evidence-based approach and the need to weight potential risk against benefit: it can be argued that the anti-DDT campaign she inspired was responsible for almost as many deaths as some of the worst dictators of the last century. "

    Discuss amongst yourselves.
  4. Re:Going the way of the FPU? on ATI's Stream Computing on the Way · · Score: 0

    You mean back into the main CPU core where they (GPUs) came from in the first place?

    This would be ideal. I'm picturing an instruction set that performs SIMD-like operations on entire cachlines (128-byte, say), based on a PPC/Altivec-style architecture with lots of registers. (Can you imagine, a set of 32 cacheline-sized registers, with instructions with single-cycle throughput?) Most code that's parallelized for 4-way SIMD can easily be adapted to much higher degrees of parallelism. And I'd love to see an end put to the monstrosity that is MMX/SSE/SSE2/SSE3/SSSE3(SSE4)... Yecch!!!

  5. That's Because... on Noise Over Mac OS Market Share "Slip" · · Score: 0, Troll

    You need to buy at least five or six PC's before you get one that works decently. The Mac always works the first time. :)

    On a more serious note, what's the Linux vs Windows market share these days?