Slashdot Mirror


User: apankrat

apankrat's activity in the archive.

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

Comments · 409

  1. Re:Computed goto on Goto Leads to Faster Code · · Score: 1

    Well, that was just an example for illustrative purposes. Computed
    gotos are typically used for switch-case optimizations, where
    individual cases contain small blocks of inlined code rather than
    function calls. Wrapping each case into a function and manipulating
    function pointers IS an option, but the overhead of a function call
    will eat up all savings of not using the switch-case.

    I just thought of a good example outside of high-perf drivers. All
    Brainf*ck interpreters include a loop iterating over
    a command sequence and executing very simple commands in a
    switch-case style. Using computing goto's instead of a switch-case
    gives about 10-15% performance boost. And that's quite a lot for
    a non-algorithmic optimization.

  2. Computed goto on Goto Leads to Faster Code · · Score: 4, Interesting
    Not as helpful as computed goto

    Seriously. Computed goto is very useful for low-level
    optimizations in things like high-throughput ethernet
    drivers and such. It basically eliminates conditional
    checks in cases where the condition stays the same
    for a particular set of data. So instead of
    if (context->condition)
          foo(context);
    else
          bar(context);
    one would have
    /* one-time initialization */
    if (context->condition)
          context->jmp = &_foo;
    else
          context->jmp = &_bar;
     
    ..
     
    goto *context->jmp;
     
    for (;;)
    {
    _foo: foo(context); break;
    _bar: bar(context); break;
    }
    If the second part is executed in a loop, the savings of
    not making an IF comparison accumulate fairly quickly.
  3. Just submit your own entry on GIMP's 10th Anniversary Splash Contest · · Score: 1

    Just submit your own entry and make it fully transparent :)

  4. Unfortunately on Darknets Coming Soon? · · Score: 1

    Unfortunately noone can be told what the darknet is :)

  5. And one RISC on Write Portable Code · · Score: 1
    Best combination is one big-endian, one little-endian, and a 64-bit machine.

    And a RISC box for catching SIGBUS issues.

    Stuff like this -
    char * p = malloc(128);
    *(long *)(p+2) = 0;
  6. Re:Singularity... on The Microsoft Singularity · · Score: 1

    "Because when we blue screen, all of your data goes down into a black hole."

    Shouldn't they use black screen instead ?

  7. Totally on FreeBSD Logo Contest Winner Announced · · Score: 1

    Personally I hate "shaded" or three-dimensional logos.

    Agree, they are so 00s :-)

  8. Do I look like a cat ? on Your Favorite Math/Logic Riddles? · · Score: 1

    Duh

  9. Seems only appropriate to mention Doom on Peter Jackson to Executive Produce Halo Movie · · Score: 4, Funny

    http://www.doommovie.com/

    Went to see Serenity this weekend and they showed Doom trailer that
    featured nice shots of something being poked at with a chainsaw :)

    The story line seemed to be unintrusively good too - "Mars. Horrible
    disaster. If it breathes, shoot it."

    Opens in late October 2005.

  10. Instead .. on SpecOps Labs offers $10,000 to Emulator Developers · · Score: 1

    Why are developers always expected to work twice as much as everybody else, and still consider it a "decent schedule"? I'm seriously considering a change in profession.

    You should seriously consider changing an employer instead :)

  11. Remember, people on Ultimate Software Developer Setup? · · Score: 1

    vi is all you need

  12. That's not the point on GMC to Begin Remotely Scanning Cars for Trouble · · Score: 1

    The point is that this big brother have an option of watching you even if you are NOT paying.

  13. PAQ and UCL on New Winzip in the Works · · Score: 2, Informative


    You should've given PAQ a try too. From what I understand PAQ compression uses adaptive switching between multiple compression algorithms on the fly based on which produces the best result for a current block. Be warned that it is pretty slow and memory intensive.

    Another one to try is UCL . This is a compression engine behind UPX, executable file compressor. It has a remarkable property of having super-fast decompression.

  14. /me takes a chair and popcorn on Five Reasons Not to Use Linux · · Score: 1

    /me takes a chair and popcorn and watches Just Some Guy's mom doing an OS switch instead of an upgrade.

    With all this porting of gigabytes of accumulated personal data, proprietory-formatted binary files and registry settings .. better grab a beer keg to go along with the popcorn as it's not only a painful show, but a darn long one too.

  15. 4 out 5 on Google, Skype and the Future of IM · · Score: 1

    In its canonical implementation it works in roughly 80% of cases where it can be applied.

    It may sound like a lot, but it's not - it's 1 out 5 failure rate.

    And while it is possible to get it to nearly 100%, hole-punching is still far from being mainstream technology.

  16. Oh common on Ask Questions of the World of Warcraft Team · · Score: 4, Funny


    Dear Mr. Greenspan,

    Based on the experiments we conducted in WoW universe, we are pleased to offer you the following advice regarding interest rate management ...

    Sincerely,
    A bunch of nerds from virtual reality.

    --

    It's OK to ask if they ran into any interesting problems with their economics model, but that stuff about 'benefit to the rest of the world' - this is really something :)

  17. Re:news.com trying to seem like a victim on ZDNet UK Begs for Google's Forgiveness · · Score: 1

    This is always worth losing my mod points for: THAT DIDN'T FUCKING HAPPEN.

    Google didn't issue a fucking press release, they just wouldn't give them any more interviews. OK?


    THIS DOESN'T FUCKING MATTER.
    They're setting a precedent.

  18. It's a miracle .. on Quantum Information Can be Negative · · Score: 1, Flamebait

    .. what C++ operator overloading can lead to.

  19. Quoting his own article - on Hiring Good Programmers Matters · · Score: 1

    Five Antonio Salieris won't produce Mozart's Requiem. Ever. Not if they work for 100 years.

    Replace Saliery with Joel and Mozart with Paul Graham and the statement will still be very much true.

  20. Safer on Discovery's Dangling Gapfiller Removed by Hand · · Score: 1


    I remember seeing a recording of a failed Soyuz T-10-1 launch. The rocket exploded on a launch pad, but the crewed was catapulted into the air mere sub-second before that ... Does anyone have a copy of this video ?

  21. There are few problems on A $100 Million Trip to the Moon · · Score: 1

    I know I would.
    Imagine your *grandma* would .. and imagine she wins.

  22. Yep on What is Mainframe Culture? · · Score: 1

    Well done :)

  23. Reboot away on What is Mainframe Culture? · · Score: 2, Funny

    Simulation result will still be 42

  24. I'll let you in on a little secret on Update on the Optimus Keyboard · · Score: 2, Insightful

    Then there are the phones that cost upwards of $250~$300

    These are NOT what is considered a 'good mobile
    phone' in Russia. Try from $500 and up. Way up.

  25. Re:Danger Will Robinson, Danger! on Open-source Licensing: BSD or GPL? · · Score: 1

    The BSD license is legalese for dropping the soap on purpose in prison.

    Then GPL is exactly the same, but the viral propagation of a purposeful bending over behaviour.