Results 1 to 6 of 6

Thread: A Day in the Life of Andy Thomason

  1. #1

    A Day in the Life of Andy Thomason

    Gamasutra has another interesting article up (again, those of you who don't know Gamasutra : Go and find out, you're missing something) which describes a typical day in the life of Andy Thomason, who works for SN (now owned by Sone), a company that creates tools for console developement. It's an interesting read and also shows that coding for consoles is a whole different thing than coding for PCs.

  2. #2

    A Day in the Life of Andy Thomason

    Don't I know it. PCs have no restrictions relative to consoles.

    One thing I like about C is the code example he gave.

    if (x == y) pPtr++;

    compared to

    pPtr += (x == y);

    Same effect but executes faster due to cost of stalls due to branch mis-predictions in the first example. That is something that is just not possible in Pascal.

  3. #3

    A Day in the Life of Andy Thomason

    Quote Originally Posted by Sly
    That is something that is just not possible in Pascal.
    Have you tried this:
    [pascal]
    Inc(Integer(pPtr), Integer(x = y));
    [/pascal]

    (edit) Which translates into (see CPU window):
    Code:
    xor eax, eax
    cmp ecx, edx
    setz dl
    and edx, $7f
    add eax, edx

  4. #4

    A simple and elegant language

    I still have a fondness for Pascal as a programming language.

    We worked on some big pascal projects back in the 80's and I had the pleasure of meeting Jensen in London.

  5. #5

    A Day in the Life of Andy Thomason

    Quote Originally Posted by Lifepower
    Quote Originally Posted by Sly
    That is something that is just not possible in Pascal.
    Have you tried this:
    [pascal]
    Inc(Integer(pPtr), Integer(x = y));
    [/pascal]

    (edit) Which translates into (see CPU window):
    Code:
    xor eax, eax
    cmp ecx, edx
    setz dl
    and edx, $7f
    add eax, edx
    Well dang! I never thought of that. Messier than the C version, but it should still work.

  6. #6

    A Day in the Life of Andy Thomason

    This performs EXACTLY the same as C code:
    [pascal]Inc(pPtr, Ord(x = y));[/pascal]
    It's not a Delphi problem that C doesn't have boolean type - it's a C problem
    There are only 10 types of people in this world; those who understand binary and those who don't.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •