Slashdot Mirror


User: aberglas

aberglas's activity in the archive.

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

Comments · 979

  1. Re:C was technically obsolete by the 1970s on ESR Sees Three Viable Alternatives To C (ibiblio.org) · · Score: 1

    Traditional basic counted from 1, just like Fortran. Later ones let you define both the upper and lower bounds. It was fairly late, post C, that the default lower bound moved to 0. Strings always count from 0, so instr can return 0 if not found.

    And the 0 lower bound in visual basic is an absolute pain. Excel, for example, counts from 1. So when you copy some cells into an array, where do they end up?

    This is C pollution.

  2. Re:C was technically obsolete by the 1970s on ESR Sees Three Viable Alternatives To C (ibiblio.org) · · Score: 1

    You do not get weird memory corruption bugs in .Net/Java. The sort that produce strange effects long after the bad code runs. Buffer overflows, accessing freed memory etc.

    You do still get threading errors, which is another issue. But one nasty class of bugs is gone. Every time you read about a buffer overflow security violation think that that would never happen if they had not used C.

  3. Re:C was technically obsolete by the 1970s on ESR Sees Three Viable Alternatives To C (ibiblio.org) · · Score: 1

    Have you ever measured it?

    I have.

  4. Zero count on ESR Sees Three Viable Alternatives To C (ibiblio.org) · · Score: 1

    When the C++ complains that parameter 1 of a method has an inconsistent type, which one is it talking about? The 1st or the 2nd? Example of confusion.

  5. C was technically obsolete by the 1970s on ESR Sees Three Viable Alternatives To C (ibiblio.org) · · Score: -1, Flamebait

    People do not use C/++ because they have done a careful language analysis. They use it because everyone else does and they are too lazy to learn anything else.

    By the 1970s there was a general movement to type safe languages. But some of them were fascist, others just not available on all platforms. Details that force unfortunate decisions.

    But the big technology developed in the 1970s generally misunderstood by slash dotters is efficient generational garbage collection algorithms developed by the Lisp community. That makes such a difference in how one goes about using memory.

    For writing a micro-controller application then C will do. But for serious code, I want something that manages memory for me. Plus I want static type safety, and very efficient compilation. And today that means Java or C#/.Net. A bit bloated, no good for micro controllers, but so much more productive for larger systems.

    Well written C# and Java is actually more efficient than C/++. Partially because it can do whole of program optimization. Partially because it can optimize for a particular processor rather than a generic one at a separate compile time. Partly because garbage collections minimizes the need to copy data structures (particularly in C++), and smart pointers are grossly inefficient compared to generational garbage collection. Partially because it allows focus on algorithms rather than fixing nasty bugs. There are two caveats 1. They both use stupid UTF-16 for strings and 2. They both enable much more code to be written for a given amount of effort, so people write a lot more code in them.

    BTW. Probably the most evil thing that C has inflicted upon the world is counting from 0. All pre C languages count from 1, as do children. And then it all changed. And we will live with off by one errors for the rest of time.

  6. Trump finally has a friend on China Says Foreign Firms Won't Be Forced To Turn Over Technology (vice.com) · · Score: 0, Flamebait

    It is cold in Washington. The left hate him. The mainstream republicans despise his buffonery. The Tea party hates him for not killing Obama-everything and bringing back slavery.

    He dare not show his face in Britain, let alone Western Europe. He is in trouble over Russia and cannot go there.

    But those wonderful Chinese finally treat him with the respect he most certainly deserves. They understand just how important a man Trump is. They put on a fine banquet, even applaud his grand daughter. And because they respect him, they have given him the oh so important concession that only a man of Trump's standing could achieve.

    As to North Korea, Chinese human rights, Document nine, the South China Sea, .... technical details.

  7. Only in America on This Time, Facebook Is Sharing Its Employees' Data (fastcompany.com) · · Score: 1

    I do not think any other western country permits this type of thing.

  8. No need for 2FA on Google Says Hackers Steal Almost 250,000 Logins Each Week (cnn.com) · · Score: 1

    Just do not send passwords in the clear to the server. Kill phishing, which is the main issue. Use a nonce base hashing scheme instead.

    TLS is almost worthless because it relies on the user to validate the URLs. Might as well not use it at all.

    And the Secure Remote Password (SRP) algorithm has been around for a long, long time. It avoids offline John-the-ripper attacks.

    The idea is that users only type in passwords in an area of the browser like the URL line which JavaScript cannot access.

    Problem solved. Once and for all.

    Unfortunately, neither I nor anyone else can see how to make money out of plugging this hole, while there is plenty of money to be made by working around it. So I at least will not invest any time into it. Will you?

  9. It is easy to get rid of Phishing on Google Says Hackers Steal Almost 250,000 Logins Each Week (cnn.com) · · Score: 1

    Just do not send the plain text password to the server. Use a nonce base hashing scheme instead.

    TLS is almost worthless because it relies on the user to validate the URLs. Might as well not use it at all.

    And the Secure Remote Password (SRP) algorithm has been around for a long, long time. It avoids offline John-the-ripper attacks.

    The idea is that users only type in passwords in an area of the browser like the URL line which JavaScript cannot access.

    Problem solved. Once and for all.

    Unfortunately, neither I nor anyone else can see how to make money out of plugging this hole, while there is plenty of money to be made by working around it. So I at least will not invest any time into it. Will you?

  10. Re:Wikipedia is driving away editors on Nearly All of Wikipedia Is Written By Just 1 Percent of Its Editors (vice.com) · · Score: 1

    This type of government editing is a real danger to Wikipedia, and recognized.

    It is worth your while to fight. I had a similar issue over a page on Terrorism. It took a lot of persistence, but got through.

    Play the game. Get other editors involved. Make complaints to the adudicators etc.

  11. Original Research on Nearly All of Wikipedia Is Written By Just 1 Percent of Its Editors (vice.com) · · Score: 1

    Yes and no, in practice.

    If you dream up a new theory about Evolution (which is controversial), then yes, you had better get it published elsewhere properly. But people are less concerned about non-controversial details like a particular cave. And most of the maths articles are largely referenced.

    So there is an element of common sense here. No Original Research is a way to get rid of wacky theories without getting into arguments into the details.

    There certainly are Wikipedia Nazis that love to revert everything. But by and large it works pretty sensibly. Amazingly so given that it is so completely open.

    Bureaucratically minded people hate the idea of Wikipedia, and cannot believe that a fairly naive system based largely on good will could ever work. Particularly with vested commercial interests hacking away. But the proof is in the pudding. Most articles are surprisingly good. Generally much better than the fluff produced by Journalists.

    Wikipedia is a good news story on human nature.

  12. Every USB Drive can emulate a keyboard on Linux Has a USB Driver Security Problem (bleepingcomputer.com) · · Score: 1

    So when you plug in a flash drive, you are giving control of your entire computer to it. Every time. Like when your kids give you a USB with something to print from their virus riddled school.

    At least Windows is no longer supposed to automatically execute code it finds on the drive (or CD, if that is what the USB is emulating). But it is *long* over due that I should be able to plug in a USB drive and still be safe. May need special ports. Or a rule that Keyboards are only detected on startup. Etc.

  13. Merlins engines powered the Spitfires on SpaceX Rocket Engine Explodes During Test (space.com) · · Score: 1, Informative

    Most famous British engine in the war. Bit rude of SpaceX to reuse the name.

  14. Re: Mosquitos are anoying, but.... on EPA Approves Release of Bacteria-Carrying Mosquitoes To 20 States (nature.com) · · Score: 1

    The piece of code I just wrote is a creation of the Lord. Including the bugs which are all part of His plan.

  15. Re:I'm actually amazed that this works on EPA Approves Release of Bacteria-Carrying Mosquitoes To 20 States (nature.com) · · Score: 1

    So, if there are 100 billion wild males, how many sterile ones do you need? A metric shit load?

  16. Re:Everyone is getting an MBA on The Disappearing American Grad Student (nytimes.com) · · Score: 1

    An MBA means you know the cost of everything and the value of nothing.

  17. Re:Lots of people fall of rooves on Can Japan Burn Flammable Ice For Energy? (cnn.com) · · Score: 1

    So, you cannot find a single source of statistics either. Just safety waffle.

    Like I said,
          Nobody keeps statistics for the number of deaths due to solar installation,

  18. Re: A bloody great Wheel for steering on The Fourth US Navy Collision of the Year Was Ultimately Caused By UI Confusion (arstechnica.com) · · Score: 1

    The time you need visibility is foul weather. Drones, although fashionable, are not going to do it.

    But if you have a bureaucracy inside the bridge, it does not matter how many systems can identify target if people do not communicate in complex ways to effect an action. In this case, they knew the other ship was there. They just ran straight into it anyway.

  19. Re:NBN on The Mobile Internet Is the Internet (qz.com) · · Score: 1

    The NBN is for very large HD television.

    You do not need it for small mobile. Nor for general web surfing etc.

  20. A bloody great Wheel for steering on The Fourth US Navy Collision of the Year Was Ultimately Caused By UI Confusion (arstechnica.com) · · Score: 1

    Makes a pretty good UI.

    This sort of thing has crashed airplanes. When they went from yokes to joysticks. There was the air France one where an idiot pilot held the joystick back and the other pilot had no way of knowing.

    Crude and simple works.

    That said, on traditional naval boats, the helmsman working the wheel had no idea of where the ship is going. Often cannot ever see out the front. Look outs tell the officer, the officer tells the helmsman a course, and the helmsman is just like an auto pilot. This has cause other accidents.

    That bit about having trouble controlling throttles and steering at the same time is dubious. Traditionally that would be done by many different people, each trained to do one tiny task -- naval ships have huge crews. But how hard can it be to handle them together? Presumably the helmsman has had some training and practice before taking primary responsibility.

  21. Lots of people fall of rooves on Can Japan Burn Flammable Ice For Energy? (cnn.com) · · Score: 1

    One of the biggest work place accidents is falling. Nobody keeps statistics for the number of deaths due to solar installation, but it must be in the thousands world wide. Not because solar is particularly dangerous, but working on individual rooves is moderately dangerous, and there are lots and lots of them.

    Contrast with nuclear where, excluding the Soviet Union, every death is a "Disaster" and there have been very, very few.

  22. Re:Why shut down nuclear? on Can Japan Burn Flammable Ice For Energy? (cnn.com) · · Score: 1

    Citation please. Wikipedia says Zero.

  23. Why shut down nuclear? on Can Japan Burn Flammable Ice For Energy? (cnn.com) · · Score: 5, Insightful

    The 2011 Thoku tsunami killed some 16,000 people. Dead now.

    The Fukushima Daiichi nuclear "disaster" killed Zero people directly. Maybe a dozen will die eventually. Maybe.

    So you would think that the focus would be on tsunami protection. Better walls, better alerts etc.

    But instead, it is on the nuclear "disaster". Which only happened as a result of a freak event. And lessons learned meant that the same would not happen again.

    But they close down 50 nuclear plants. At huge cost.

    Knee jerk reaction based on political perceptions and column inches of news print rather than any rational analysis.

  24. Never thought I would agree with Trump on anything on Government Won't Pursue Talking Car Mandate (apnews.com) · · Score: 1

    But because he proposed it, the left will scream that he is wrong.

  25. Not TCAS on Government Won't Pursue Talking Car Mandate (apnews.com) · · Score: 2

    TCAS technology is different, radar based. Larger planes have radar and look for other objects. Planes do not broadcast their position.

    Most planes (even gliders these days) have transponders that respond with a ping to being hit with radar. But they do not broadcast a position.

    Many pilots consider TCAS to be a nuisance because they are obliged to follow its instructions even though they can see the other plane and know that it is safe. This can actually lead to more dangerous behaviour. For example when taking off a pilot may avoid a steep (safer) climb if he sees another aircraft above because the TCAS will extrapolate his position and issue a directive, so they make a shallower climb that keeps them nearer to the ground.