Slashdot Mirror


Goto Leads to Faster Code

pdoubleya writes "There's an article over at the NY Times (registration required) about Kazushige Goto, the author of the Goto Basic Linear Algebra Subroutines (BLAS, see the wiki); his BLAS implementation is used by 4 of the current 11 fastest computers in the world. Goto is known for painstaking effort in hand-optimizing his routines; in one case, "when computer scientists at the University at Buffalo added Goto BLAS to their Pentium-based supercomputer, the calculating power of the system jumped from 1.5 trillion to 2 trillion mathematical operations per second out of a theoretical limit of 3 trillion." To quote Jack Dongarra, from the University of Tennessee, "I tell them that if they want the fastest they should still turn to Mr. Goto."" Ever get the feeling someone wrote an article merely for the pun?

32 of 462 comments (clear)

  1. So my professors were lying? by R2.0 · · Score: 1, Funny

    They told me never to use GoTo statements in my Fortran class at Lehigh. Lying bastards!

    --
    "As God is my witness, I thought turkeys could fly." A. Carlson
    1. Re:So my professors were lying? by joyfulchicken · · Score: 1, Funny

      Did the lying bastards also tell you to never read the whole article summary? ;-)

      --
      http://chickenmafia.com/ Chickens of the world, unite!
    2. Re:So my professors were lying? by /ASCII · · Score: 4, Funny

      You might want to read up on this page for some human interaction hints.

      --
      Try out fish, the friendly interactive shell.
  2. This certainly is news to me. by trudyscousin · · Score: 4, Funny

    I'd always been told that use of Goto led to a case of the BLAS in my code!

    --
    Those who can, do. Those who can't, write technology blogs.
    1. Re:This certainly is news to me. by BrokenHalo · · Score: 2, Funny

      Yes, but of course Real Programmers aren't afraid to use GOTOs. :-)

  3. Throwing bricks in glasshouses, anyone? by trezor · · Score: 4, Funny

    Ever get the feeling someone wrote an article merely for the pun?

    Good thing the headline didn't contribute to that at all.

    --
    Not Buzzword 2.0 compliant. Please speak english.
  4. His code is more stable than Mr. Bluescreen's by virtigex · · Score: 5, Funny

    Although he also writes fast code, Mr. Bluescreen was criticised for the poor stability of his code.

    1. Re:His code is more stable than Mr. Bluescreen's by vmxeo · · Score: 2, Funny

      Personally I think Mr. Gosub writes better code. Sure, it's not as fast, but's it's much more readable than Mr. Goto's spagetti code.



      (Wow. I'm suddenly getting flashbacks from my BASIC days...)

    2. Re:His code is more stable than Mr. Bluescreen's by Anonymous Coward · · Score: 1, Funny

      What poor stability? Have you ever seen a blue screen crash?

  5. I failed a coding test because of this guy by alta · · Score: 5, Funny

    It was CIS 150, C++ was the language of the day (pascal before, java after.) I was taking an exam that was all coding. I remember extensive use of GOTO from my commodore days, so I used one in a test (the objective was to code something with as few lines as possible)

    I had the shortest working code in the class but the arse hole teacher failed me for it. Said something like "we don't teach goto for a reason. Yeah, it's in the book, but don't ever use it!"

    Jerk. I should post his phone number on slashdot ;)

    --
    Do not meddle in the affairs of sysadmins, for they are subtle, and quick to anger.
  6. This was a test, aimed at slashdot readers... by Derang() · · Score: 5, Funny

    ...To see who actually reads the article.

    Judging from the replies...not many people ;)

    1. Re:This was a test, aimed at slashdot readers... by TrappedByMyself · · Score: 4, Funny

      Anyone who read more than a few words into it

      The calls for the obligatory "You must be new here".

      --

      Help me take back Slashdot. When did 'News for Nerds' become 'FUD and Conspiracy Theories for Extremist Nutjobs'?
    2. Re:This was a test, aimed at slashdot readers... by veg_all · · Score: 4, Funny

      Anyone who read more than a few words into it would've realized they're talking about a person

      Wow. Slashdot article as Turing Test.

      --
      grammar-lesson free since 1999. (rescinded - 2005)
  7. GOTO considered harmful by FooAtWFU · · Score: 2, Funny
    GOTO Statement considered harmful.

    Seriously, though, how does a guy end up with a name like this in computer programming? It sounds made-up! Then again, I've heard some very, very odd names...

    --
    The World Wide Web is dying. Soon, we shall have only the Internet.
  8. That would mean... by LoyalOpposition · · Score: 5, Funny

    Goto Considered Helpful?

    -Loyal

    --
    I aim to misbehave.
  9. Clearly Harmful by tverbeek · · Score: 2, Funny

    This guy is clearly considered harmful.

    --
    http://alternatives.rzero.com/
  10. Thank you very much by Prince+Vegeta+SSJ4 · · Score: 3, Funny

    10 Print "oh Mr. K. GOTO" 20 I=I+1 30 If I 5 Print "Domo" Else 50 40 GOTO 20 50 Print "I'm Kilroy! Kilroy! Kilroy! Kilroy!"

  11. Re:goto is obsolete by fdrake76 · · Score: 5, Funny
    Weren't FUNCTIONS invented for the purpose of finally getting rid of goto and labels?

    I believe you are referring to Kazushige's cousin, Mr. Gosub.

  12. Mr. Goto is the one you need! by Bananatree3 · · Score: 2, Funny

    He is your goto-guy :)

  13. For added fun. by sammy+baby · · Score: 2, Funny

    Hey kids! Your uncle Sammy here, with a fun rainy-day Slashdot activity for you!

    First: take an article which revolves around a pun, just like this one, to deliver a message which has a different meaning than the headline would suggest.

    Next: Pick a comment-karma threshold. Two or three ought to do it!

    Last: Count how many of the people at that level have completely missed the point of the article: specifically, that the "Goto" in the writeup is not a GOTO statement, but rather the name of a programmer named Kazushige Goto; that this particular distinction is supposed to be considered a bit of ironic humor; and, that this is, in fact, the reason that Hemos posted it "from the we're-punny-this-morning dept."

    Hours of fun for everyone!

  14. Ok... by toupsie · · Score: 2, Funny

    0 END

    --
    Strange women lying in ponds distributing swords is no basis for a system of government.
  15. Slashdot 2000 by DarthVain · · Score: 2, Funny

    10 Goto FirstPost
    ^C^C^C^C^C^C^C^C

  16. Another punny name by Riktov · · Score: 5, Funny

    From the article:
    "Robert A. van de Geijin, a computer scientist who works with Mr. Goto at the Texas Center,..."

    All right, a Japanese programmer named Goto, working with a non-Japanese guy name Geijin. That's too much.

  17. Re:No you idiots - it's not about GOTO statements by limabone · · Score: 5, Funny

    Oh, Goat-toe hell you spoilsport!

  18. Story redundant? by jejones · · Score: 2, Funny

    After all, it was Donald Knuth himself who, in "Structured Programming with goto Statements" (Computing Surveys, sometime in 1974), wrote "At the [year] IFIPS Conference, I was introduced to Dr. Eiichi Goto, who cheerfully complained that he was always being eliminated."

    (Apologies for errors, as my issues of CS are in storage and I'm doing this from memory.)

  19. Re:If true... by SatanicPuppy · · Score: 5, Funny

    My favorite ever comment was, "If I ever saw this in the real world, I'd fire you" attached to an "A" test paper with a programming question on it I'd managed to reduce to one line of nearly incomprehensible recursion.

    --
    ad logicam Claiming a proposition is false because it was presented as the conclusion of a fallacious argument.
  20. Re:If true... by scheming+daemons · · Score: 5, Funny
    Of course GOTO is logical in real life. I experience this all the time:

    If wife has headache, GOTO sleep

    If boss is on vacation, GOTO strip bar for long lunch

    If in-laws are coming over, GOTO work and pretend there is a critical problem that requires your presence all night

    If technical conference is in Vegas, GOTO it

    loads of examples.

    If work is boring, GOTO slashdot to kill an hour or two

    --
    "I have as much authority as the pope, I just
    don't have as many people who believe it" - George Carlin

  21. Re:No you idiots - it's not about GOTO statements by R2.0 · · Score: 2, Funny

    "the correct pronunciation of my name is more like "goat-toe.""

    Is that anything like camel toe?

    --
    "As God is my witness, I thought turkeys could fly." A. Carlson
  22. Re:If true... by KarmaMB84 · · Score: 2, Funny

    In CS courses below 300, we were told that goto was evil and should NEVER be used. They didn't even teach its use. In 300+ courses, we were given examples of why goto is sometimes the best approach producing easier to understand code that was also faster. In fact, a lot of time was spent by professors that did real work deprogramming brainwashed students who were taught that global variables should never EVER be used, goto is Satan, dynamic memory is for terrorists and all kinds of god awful ideas.

    That is one of the problems with academia. There are too many Java hugging professors teaching the C/C++ courses and trying to push their own agenda. A Java loving professor completely deprived his students of an entire semester of C++ file/data structure instruction because of his Java pimping agenda. When the term project of "File and Data Structures in C and C++" is a Java project, you know there's a problem...

  23. Re:goto is not obsolete by Threni · · Score: 2, Funny

    > What kind of dumbass, shitbox, stupid programmer are you?

    Oh dear. That's the worst code I've seen for ages.

    Why free bar in the case that its attempt to allocate memory fails? Shouldn't you instead be freeing foo?

    Likewise for the attempt to malloc baz, where you attempt to free baz instead of both bar and foo.

    > Excuse my extremely sloppy writing, I'm rushing, and don't have time to proof
    > read & restructure.

    Not only that, your code is terrible, and your quoted justification for using goto "in every 10 lines of code" shows that you shouldn't be let anywhere near a compiler.

    And after all that, you manage to find it within yourself to abuse someone who clearly knows more about the subject than yourself! Do you perhaps have a very small penis?

  24. Now, wait for the next (worst) pun by DrYak · · Score: 3, Funny

    Wait until you read in an interview about Mr. Kazushige Goto's favorite food.
    Italian.
    Pasta.
    Specially Spaghetti.

    [/me ducks and runs away....]

    --
    "Sufficiently advanced satire is indistinguishable from reality." - [Tips: 1DrYakQDKCQ6y52z6QbnkxHXAocMZJE61o ]
  25. Re:The Fastest Code of All by pe1chl · · Score: 2, Funny

    This always reminds of how "Label not found" was translated as "Volumenaam niet gevonden" in the Dutch version of MS-DOS.

    The translator apparently had seen the DIR output "Volume in drive A: has no label" and believed that the "label" is referring to a "volume label" and translated it as "volumenaam" ("volume name").

    But when a .BAT file uses GOTO and specifies a nonexistent label, the translation to "volume name" is completely incorrect.
    When I first got this errormessage running a .BAT file, it took me quite some time before I understood what was happening.