• Franz Kafka (unregistered) in reply to real_aardvark
    real_aardvark:
    Double-huh ... didn't it occur to you that the second half of your sentence is exactly what prompted my analogy?

    I'll expand. Let's assume a gun-nut says "Guns don't kill people. People kill people. This happens when they take a perfectly fine machine, point it in the wrong direction, don't think, and pull the trigger."

    (I'm not saying you believe that, by the way.)

    People generally, and I think legitimately, shorten this to "Guns don't kill people. People kill people."

    In like manner, your (perfectly fine) defence of threads can be viewed as a little optimistic. In the real world, threads pretty much always come with interdependencies and locks -- as you say. Consequently, careless and inappropriate use of threading kills performance: just as careless and inappropriate use of guns kills, um, people. The OP is a perfect example of this.

    Sorry if the analogy was offensive rather than jocular to you ...

    What the hell are you doing turning a bitchfest over threaded pacman into a GnCntr*l thread?

    anyway, the gun-nut is simply noting to the morons amongs us that fear without knowing that a gun is a tool and it's the guy holding the gun that kills people. Further, people kill people without guns just fine. Perfectly reasonable.

    The problem is that the guy with a gun is unhappy with being slandered for having a gun in an attempt to marginalize him. Imagine that...

  • (cs) in reply to Franz Kafka
    Franz Kafka:
    real_aardvark:
    <snip -- see above, if you can be bothered/> Sorry if the analogy was offensive rather than jocular to you ...

    What the hell are you doing turning a bitchfest over threaded pacman into a GnCntr*l thread?

    anyway, the gun-nut is simply noting to the morons amongs us that fear without knowing that a gun is a tool and it's the guy holding the gun that kills people. Further, people kill people without guns just fine. Perfectly reasonable.

    The problem is that the guy with a gun is unhappy with being slandered for having a gun in an attempt to marginalize him. Imagine that...

    What exactly does any of that mean?

    Suddenly I'm agreeing with all the numb-nuts who complain about the site's change of name. Not because I insist on the f*** bit. I just have this horrible suspicion that, bizarrely, all the posters with either a sense of humour or a sense of proportion have decamped, never to return.

    Look, all I was doing was apologising to a poster for (inadvertently) placing him in front of some imaginary Supreme Court as a Gun Nazi.

    I will now apologise to you for whatever it is I've done.

    Sorry if the analogy was offensive rather than jocular to you ...

    I wish I had enough control to turn anything into anything else, but I don't. For pity's sake, it was an analogy. It was a metaphor. It was using an external example to illustrate my, very questionable, view on the ubiquity of threading. It was, in fact ...

    Humorous? No, apparently not. As James Stewart said, "Nobody brings anything small into a bar round here."

    By the looks of it, the revamped Worse Than Failure is not quite ready for small things to be brought into the bar any more.

    But what the hooey. Fire away, Franz.

  • Yorinaga (unregistered) in reply to MindChild

    That same article mentions that you can use Native Threads.

  • Franz Kafka (unregistered) in reply to real_aardvark
    real_aardvark:
    Franz Kafka:
    real_aardvark:
    <snip -- see above, if you can be bothered/> Sorry if the analogy was offensive rather than jocular to you ...

    What the hell are you doing turning a bitchfest over threaded pacman into a GnCntr*l thread?

    anyway, the gun-nut is simply noting to the morons amongs us that fear without knowing that a gun is a tool and it's the guy holding the gun that kills people. Further, people kill people without guns just fine. Perfectly reasonable.

    The problem is that the guy with a gun is unhappy with being slandered for having a gun in an attempt to marginalize him. Imagine that...

    What exactly does any of that mean?

    Suddenly I'm agreeing with all the numb-nuts who complain about the site's change of name. Not because I insist on the f*** bit. I just have this horrible suspicion that, bizarrely, all the posters with either a sense of humour or a sense of proportion have decamped, never to return.

    Look, all I was doing was apologising to a poster for (inadvertently) placing him in front of some imaginary Supreme Court as a Gun Nazi.

    I will now apologise to you for whatever it is I've done.

    Sorry if the analogy was offensive rather than jocular to you ...

    I wish I had enough control to turn anything into anything else, but I don't. For pity's sake, it was an analogy. It was a metaphor. It was using an external example to illustrate my, very questionable, view on the ubiquity of threading. It was, in fact ...

    Humorous? No, apparently not. As James Stewart said, "Nobody brings anything small into a bar round here."

    By the looks of it, the revamped Worse Than Failure is not quite ready for small things to be brought into the bar any more.

    But what the hooey. Fire away, Franz.

    Fine. Your attempts at humor have failed utterly, just as your attempt to imply that I'm too young to walk into a bar.

    The only real relevance guns have to this thread is that:

    Guns and threads are both tools that can be misused. Guns would be handy for putting the thread out of its misery, if you could only shoot data.

    I will now apologise to you for whatever it is I've done.

    You don't know what you've done, so I should probably tell you. you've perpetuated the idea that anybody who owns a gun is a freak, an idea that is deeply offensive, as it is people of conscience with guns that are responsible for the USA not being a colony. Bleah.

  • woohoo (unregistered) in reply to NameNotFoundException
    NameNotFoundException:
    woohoo:
    iToad:
    This reminds me of Mickey Mouse as The Sorcerer's Apprentice in the old Disney classic Fantasia.

    (The one with the spawning broomsticks with buckets of water).

    which is based on "Der Zauberlehrling" by J.W.von Goethe (1797) who based his ballad on a story written by the ancient writer Lucian ;o)

    see http://en.wikipedia.org/wiki/Der_Zauberlehrling

    class LuciansPhilopseudes implements Runnable {
      public void run() {
        // do all the work
        // ...
      }
    }
    
    class GoethesZauberlehrling extends LuciansPhilopseudes {
      public Credit gainCredit() {
        return new Credit();
      }
    }
    
    /** Copyright Di**ey Corporation */
    class TheSorcerersApprentice extends GoethesZauberlehrling {
      public long makeMoney() {
        return Long.MAX_VALUE;
      }
      public void extendCopyright() {
        // extensive lobby work here
        // ...
      }
    }
    

    clear now?

    ;o) right on too many people out there who also think that Bambi, Snow White and all the others where invented by Disney...

    captcha: smile :o)

  • AdT (unregistered) in reply to NameNotFoundException
    NameNotFoundException:
    /** Copyright Di**ey Corporation */
    class TheSorcerersApprentice extends GoethesZauberlehrling {
      public long makeMoney() {
        return Long.MAX_VALUE;
      }
      public void extendCopyright() {
        // extensive lobby work here
        // ...
      }
    }
    

    clear now?

    You left out most of the copyright statement! In full, it reads:

    /**
      Copyright 1940 - Judgment Day by Walt Disney Corporation
    
      This work of commercial art is protected by the US DMCA,
      the Help Disney Obtain Neverending Income - Shitloads of Money
      (HEDONISM) Act of 2012 and by WIPO treaties in 192 signatory
      countries. All the non-signatory countries are on the Pentagon's
      list.
    
      ILLICIT USE, REPRODUCTION OR MEMORIZATION IS PUNISHABLE BY DEATH.
    */
    

    Captcha: riaa (I swear!)

  • Benjamin Smith (unregistered) in reply to nobody
    nobody:
    I wrote a Pac-Man clone (sort of) on an Apple ][ in FORTH. It ran too fast; I had to slow it down or all the "ghosts" would get you before you could hit a button.

    Oh yeah?

    Well I wrote a PacMan clone in APPLE LOGO. Refresh rate was the PITS, but it works, I tells ye!

    // CAPTCHA=smile

  • Mortvar (unregistered) in reply to MindChild
    MindChild:
    You all are talking about threads and cores and what not. But Java uses "Green Threads", meaning the threads are done by the JVM, not the OS kernel... Translation, your java app is doomed to run on one proc, regardless the thread count.

    See: http://www.jguru.com/faq/view.jsp?EID=143462

    Posting / talking about a seven year old article about Java thread handling on Linux is a WTF².

    Captcha: tacos - could use some now :-)

  • Brainslugs83 (unregistered)
    You call this out, in an article that repeatedly refers to "Pac Man" as "Machine Man"? I would have thought that it goes without saying
    They were doing a REMAKE of pacman -- theirs probably WAS called machine man... and yeah it IS bad dudes...

    http://en.wikipedia.org/wiki/Bad_Dudes

    captcha: digdug

  • Watcher (unregistered) in reply to Franz Kafka

    Touchy touchy.

    real_aardvark merely used a another fallacy to highlight the first one. The "Guns don't kill people..." argument is a red herring fallacy.

  • darwin (unregistered) in reply to SuperousOxide
    SuperousOxide:
    You probably don't want to be writing Doom in it, though.
    Doom, sure. Quake 1, sure. Q2 only on boxes with a 3D card, Q3 only on boxes with a 3D card. Q4 - wait a while, or write the engine in C, and the rest in Java.
  • (cs)

    Optimized for next-generation many-core architectures, I guess.

  • eric bloedow (unregistered)

    somehow this made me think of an article in an old gaming magazine: the arcade game "Robotron 2084" was the first to use "DMA" (direct memory access) hardware, allowing more moving sprites in the screen at one time than any game before...

Leave a comment on “Sprite Threading”

Log In or post as a guest

Replying to comment #:

« Return to Article