Slashdot Mirror


User: Ihlosi

Ihlosi's activity in the archive.

Stories
0
Comments
4,892
First seen
Last seen
Profile
(view on slashdot.org)

Comments · 4,892

  1. Re:goto is perfectly fine here. on Linus Rants About C Programming Semantics (iu.edu) · · Score: 1
    In 20 years of c/c++ programming, I've never once used goto.

    Neither have I, but I haven't needed lots of error-handling code or breaking out of deeply-nested loops/conditionals. I can see the usefulness and simplicity of a goto there, though.

    Also, in C++ you'd probably use try/catch blocks for a similar purpose.

  2. goto is perfectly fine here. on Linus Rants About C Programming Semantics (iu.edu) · · Score: 1
    ... while ignoring that ugly "goto".

    It's not ugly if it's used in this context (usually involving breaking out of several levels of loops/conditionals, and/or go to one specific error handling code snippet from several points in the function).

  3. Wow, that does look terrible. on Linus Rants About C Programming Semantics (iu.edu) · · Score: 1
    Cramming a simple conditional into a weird, side-effect-producing function is just horrible.

    And next thing, someone who doesn't know about short circuit evaluation in C will swap the two conditionals.

  4. Didn't Agilent split up, too? on HP Is Now Two Companies. How Did It Get Here? (cio.com) · · Score: 1

    Keysight Technologies?

  5. Playing devil's advocate: on The NYPD's X-Ray Vans (theatlantic.com) · · Score: 1
    However, an x-ray scan is hardly plain view because it's an active scan, relying on backscatter in the case of these vans.

    Physically, it's not more active than using a flashlight to illuminate a dark area. If the cops use a flashlight to find evidence, should that automatically preclude the evidence from being in plain view? A flashlight is just a source of photons, just like an x-ray source.

    Is this safe?

    "Ha ha. Prove that you got your nasty cancer from our vans, and not from radon, nuclear tests, radiology or whatever."

    Because these vans are being paid for with tax dollars, don't people have a right to know how they're being used?

    Um no.

    At what point is it no longer acceptable to justify any and every form of surveillance under the excuse of terrorism?

    When the War on Terrorism has ended with a resounding victory! Or when pigs fly. Or when hell freezes over.

  6. Re:Cultural? on Volkswagen Boss Blames Software Engineers For Scandal (bbc.co.uk) · · Score: 1
    "how the fuck I am supposed to meet that deadline on the lame arse 100Mhz 16 bit CPU the electrical engineers gave me when the brake guys are telling me I need to react to wheel slip within 100us otherwise I could kill somebody?"

    100us, in the world of small embedded stuff, is a small eternity. 5ms is a large eternity. In 5ms, your 100 MHz 16-bit counter will have rolled over seven times!

  7. Re:More like Large Bogus on Volkswagen Boss Blames Software Engineers For Scandal (bbc.co.uk) · · Score: 1
    Now I know this is fanfic because no-where in any real company have I, as a software engineer, been promised a bonus for doing ANYTHING.

    The bonus is that you keep your job.

  8. It's based on Apollo 13, very loosely. on A Remarkable Number of People Think 'The Martian' Is Based On a True Story (buzzfeed.com) · · Score: 1

    An accident during a space mission, and only science, quick thinking and creative ad-hoc engineering saves the crew.

  9. Re:What is the point of this?? on NASA's New Horizons Shows Pluto's Moon Charon Is a Strange, New World · · Score: 1
    s/life/oil/

    Right. If you're looking for hydrocarbons, Pluto may not be the best spot. Titan has oceans of liquid natural gas, though.

  10. Re:Oh God on Talking Science and God With the Pope's New Chief Astronomer · · Score: 1
    An omniscient God precludes the possibility of human free will.

    Well, an omnipotent God definitely allows the possibility of human free will. And omnipotence trumps omniscience hands down - someone who cannot decide what he wants to know, and what he doesn't want to know, or only wants to know later, definitely isn't omnipotent. It's kind of like root being able to read your email, but he can decide not to.

    Also, things get a bit fuzzy when you consider the timelessness that is implied by omnipotence. You might be able to distinguish between "now" and "not now", but you can't really put things in a sequence of past, present and future.

  11. The algorithm isn't clever, but scales well. on Tracing the Limits of Computation · · Score: 3, Insightful
    The algorithm may not be very clever, but it scales almost perfectly with the number of cores (as long as you don't have more cores than characters in the string).

    Comparing strings is a case for specialized hardware, not for more sophisticated algorithms.

  12. Re:What's wrong with titanium dioxide? on New Nanoparticle Sunblock Is Stronger and Safer, Scientists Say · · Score: 1
    If you really don't want the sun on your skin, why not just wear some, you know, clothes?

    I take it you've never suffered a sunburn bad enough to make your skin peel off, through clothes and while trying to stay in the shade most of the time?

  13. What's wrong with titanium dioxide? on New Nanoparticle Sunblock Is Stronger and Safer, Scientists Say · · Score: 4, Insightful

    What's wrong with titanium dioxide again?

  14. Re:How long will the company stay up? on Volkswagen Diesel Scandal Spreads To Porsche and Audi · · Score: 1
    Are you suggesting that you simply take them away from me for... reasons?

    Because the shareholders obviously didn't hire the right people to run the company for them.

    However, you can sue the people that did in fact run the company for the losses you incurred due to their illegal acts.

  15. Re:The real guilty party on Volkswagen Diesel Scandal Spreads To Porsche and Audi · · Score: 1
    2 + 2 = 5, for very large values of 2.

    Even worse, 2+2 != 4 (depending on the quirks of your floating-point implementation).

  16. Re:Nail everyone? on How Did Volkswagen Cheat Emissions Tests, and Who Authorized It? · · Score: 1
    (unless you actually want to work for dodgy companies)

    Can you name a few completely non-dodgy companies that also pay well? Thanks.

  17. Re: Aw... on How Did Volkswagen Cheat Emissions Tests, and Who Authorized It? · · Score: 1
    Why would they turn off the program that lowers emissions if thy bothered to implement it in the first place?

    Because turning them off increases engine performance over the range of operating conditions and increases gas mileage.

    Just to be assholes?

    No, because they want to sell cars. And engine performance and gas mileage sell cars.

  18. Pick three: on How Did Volkswagen Cheat Emissions Tests, and Who Authorized It? · · Score: 1
    [ ] Engine complies with emissions standards in normal driving conditions.
    [ ] Customer never needs to refill DEF/AdBlue/whatever outside regular maintenance.
    [ ] Customer gets really good fuel mileage, instead of just average.
    [ ] Customer gets lots of engine power in a wide operating range, instead of getting lots of engine power at one operating point and not so much power at all other points.

    Oh, and guess which of these points actually sell cars.

  19. But the engine DOES pas NOx tests on How Did Volkswagen Cheat Emissions Tests, and Who Authorized It? · · Score: 1
    Engineer: We can't make this engine pass NOx tests.

    But the engine did pass NOx tests. It just runs better when it doesn't. Maybe it gets 140hp@4000 rpm, but with the emissions system working it only gets 90hp@2000rpm instead of, say, 120hp@2000rpm. (Numbers are completely made up).

  20. Taking pointers from the Underhanded C contest. on How Did Volkswagen Cheat Emissions Tests, and Who Authorized It? · · Score: 2
    They should have studied the entries to the underhanded C contest ... to make things a little less obvious.

    Then again, something similar might make a nice contest topic.

  21. Re:Shocking! on Misusing Ethernet To Kill Computer Infrastructure Dead · · Score: 1
    Yes, but it becomes a bit more interesting when you can do that from another location connected by a wire

    Stupid article that basically says "Metal wires conduct electricity."

  22. Re:Fiber on Misusing Ethernet To Kill Computer Infrastructure Dead · · Score: 1
    Fiber optic cable to all devices would nullify this sort of attack.

    Depends on how many kW of laser power you're piping into the cable.

  23. Re:Wait a minute... on "Happy Birthday To You" Now Public Domain · · Score: 4, Funny
    Has someone contacted the devil yet?

    We tried, but sudden blizzards seem to have interrupted all forms of communication.

  24. Re:Worse than the space station? No. on Let's Not Go To Mars · · Score: 1
    Just look at how well Germany is doing rolling out solar panel across their nation,

    Then again, Germans don't start rioting or similar when the price for electricity hits $0.30/kWh.

  25. Re:And VW admitted this? on Volkswagen Could Face $18 Billion Fine Over Emission-Cheating Software · · Score: 1
    It won't hurt either, contrary to preposterous denial.

    You need to pick a tactically advantageous moment for the admission for that to work. though.