Page 3 of 4 FirstFirst 1234 LastLast
Results 31 to 45 of 54

Thread: A question to IT KBers, part III

  1. #31
    Join Date
    1st August 2004 - 16:19
    Bike
    nothing :(
    Location
    Auckland
    Posts
    2,128
    Quote Originally Posted by jrandom View Post

    Whatever works for you bro.

    You cant tell me you believe that your question is going to establish if someone can do the job or not?
    Second is the fastest loser

    "It is better to have ridden & crashed than never to have ridden at all" by Bruce Bennett

    DB is the new Porridge. Cause most of the mods must be sucking his cock ..... Or his giving them some oral help? How else can you explain it?

  2. #32
    Join Date
    3rd July 2003 - 12:00
    Bike
    Scorpio, XL1200N
    Location
    forests of azure
    Posts
    9,398
    Quote Originally Posted by enigma51 View Post
    You cant tell me you believe that your question is going to establish if someone can do the job or not?
    I can tell you that I'm not going to have this argument with you on the forum.

    kiwibiker is full of love, an disrespect.
    - mikey

  3. #33
    Join Date
    1st August 2004 - 16:19
    Bike
    nothing :(
    Location
    Auckland
    Posts
    2,128
    Quote Originally Posted by jrandom View Post
    I can tell you that I'm not going to have this argument with you on the forum.

    who's having a argument?
    Second is the fastest loser

    "It is better to have ridden & crashed than never to have ridden at all" by Bruce Bennett

    DB is the new Porridge. Cause most of the mods must be sucking his cock ..... Or his giving them some oral help? How else can you explain it?

  4. #34
    Join Date
    3rd July 2003 - 12:00
    Bike
    Scorpio, XL1200N
    Location
    forests of azure
    Posts
    9,398
    Quote Originally Posted by enigma51 View Post
    who's having a argument?
    If you say my question won't establish whether someone can do the job, and I say you're wrong about that, then we're having an argument.
    kiwibiker is full of love, an disrespect.
    - mikey

  5. #35
    Join Date
    25th April 2006 - 15:56
    Bike
    Gerbil DNA 180
    Location
    Auckland
    Posts
    277
    Ok, here is another one:
    I get more or less what the code does (although I am still amazed that this code would even compile) but what really gets to me is the second part of the question: "Why would someone want to do something like that?"
    (Taken from Stroustrup's exercises)

    Code:
    void send (int * to , int * from , int count )
    // Duff’s device. Helpful comment deliberately deleted.
    {
    	int n = (count +7 )/8 ;
    	switch (count %8 ) 
    	{
    		case 0 : 
    			do { *to++ = *from++;
    		case 7 : *to++ = *from++;
    		case 6 : *to++ = *from++;
    		case 5 : *to++ = *from++;
    		case 4 : *to++ = *from++;
    		case 3 : *to++ = *from++;
    		case 2 : *to++ = *from++;
    		case 1 : *to++ = *from++;
    				}while (--n>0) ;
    	}
    }
    "People are stupid ... almost anyone will believe almost anything. Because people are stupid, they will believe a lie because they want to believe it's true, or because they are afraid it might be true. People's heads are full of knowledge, facts, and beliefs, and most of it is false, yet they think it all true ... they can only rarely tell the difference between a lie and the truth, and yet they are confident they can, and so all are easier to fool." -- Wizard's First Rule

  6. #36
    Join Date
    17th February 2005 - 11:36
    Bike
    Bikes!
    Location
    Christchurch
    Posts
    9,649
    I can't remember if you were looking for work in Christchurch or not, but if so, pm and I will refer you to a recruiter that has worked for myself and others in the past.

  7. #37
    Join Date
    3rd July 2003 - 12:00
    Bike
    Scorpio, XL1200N
    Location
    forests of azure
    Posts
    9,398
    Quote Originally Posted by Street Gerbil View Post
    "Why would someone want to do something like that?"
    Loop unrolling to optimise memory-to-memory copies in embedded systems.

    Edit: I'd suspect that most modern compilers would be capable of achieving the same performance out of more conventionally-written code.
    kiwibiker is full of love, an disrespect.
    - mikey

  8. #38
    Join Date
    1st August 2004 - 16:19
    Bike
    nothing :(
    Location
    Auckland
    Posts
    2,128
    Quote Originally Posted by jrandom View Post
    Loop unrolling to optimise memory-to-memory copies in embedded systems.

    Edit: I'd suspect that most modern compilers would be capable of achieving the same performance out of more conventionally-written code.
    Dont you think that simply asking the question how you optimize memory to memory copies do the trick?

    1 It gives the person an idea of what he/she can expect from the role. IE clearly you are having memory issues
    2. You dont look like a prick trying to being smart
    Second is the fastest loser

    "It is better to have ridden & crashed than never to have ridden at all" by Bruce Bennett

    DB is the new Porridge. Cause most of the mods must be sucking his cock ..... Or his giving them some oral help? How else can you explain it?

  9. #39
    Join Date
    15th November 2005 - 12:27
    Bike
    1995 Suzuki Bandit 250
    Location
    North Shore
    Posts
    12
    Heres one that I was asked:

    You have a processor that only has one register and only supports one instruction - "DCX LABEL" - which means decrement the value in the register and jump to LABEL if new value in register is not 0. Write a loop that'll decrements any number in the register (positive or negative) to 0.

  10. #40
    Join Date
    3rd July 2003 - 12:00
    Bike
    Scorpio, XL1200N
    Location
    forests of azure
    Posts
    9,398
    Quote Originally Posted by enigma51 View Post
    Dont you think that simply asking the question how you optimize memory to memory copies do the trick?
    Of course. I personally would never dump Duff's Device in front of someone and say "what's that good for then".

    Edit:

    Quote Originally Posted by enigma51 View Post
    You dont look like a prick trying to being smart
    You have some emotional issues about 'smart' people, don't you? Give it a rest, man, just relax about the whole subject.
    kiwibiker is full of love, an disrespect.
    - mikey

  11. #41
    Join Date
    25th April 2006 - 15:56
    Bike
    Gerbil DNA 180
    Location
    Auckland
    Posts
    277
    Quote Originally Posted by hdus001 View Post
    Heres one that I was asked:

    You have a processor that only has one register and only supports one instruction - "DCX LABEL" - which means decrement the value in the register and jump to LABEL if new value in register is not 0. Write a loop that'll decrements any number in the register (positive or negative) to 0.
    Ok, here is the opinion that would have gotten me thrown out of your interview:
    you write the following line:
    Code:
    label1: dcx label1
    If register value is positive, it will iterate until it becomes zero.
    If it is zero it will exit right away.
    If it is negative, it will happily decrement until the underflow, at which stage the value in the register will become positive and will keep decrementing itself to zero.
    What's the right answer?
    "People are stupid ... almost anyone will believe almost anything. Because people are stupid, they will believe a lie because they want to believe it's true, or because they are afraid it might be true. People's heads are full of knowledge, facts, and beliefs, and most of it is false, yet they think it all true ... they can only rarely tell the difference between a lie and the truth, and yet they are confident they can, and so all are easier to fool." -- Wizard's First Rule

  12. #42
    Join Date
    1st August 2004 - 16:19
    Bike
    nothing :(
    Location
    Auckland
    Posts
    2,128
    Quote Originally Posted by jrandom View Post
    Of course. I personally would never dump Duff's Device in front of someone and say "what's that good for then".

    Edit:



    You have some emotional issues about 'smart' people, don't you? Give it a rest, man, just relax about the whole subject.
    If you refering to yourself as being smart you are sadly mistaken.
    I find you arrogant and a know it all.
    Second is the fastest loser

    "It is better to have ridden & crashed than never to have ridden at all" by Bruce Bennett

    DB is the new Porridge. Cause most of the mods must be sucking his cock ..... Or his giving them some oral help? How else can you explain it?

  13. #43
    Join Date
    3rd July 2003 - 12:00
    Bike
    Scorpio, XL1200N
    Location
    forests of azure
    Posts
    9,398
    Quote Originally Posted by enigma51 View Post
    I find you arrogant and a know it all.
    Gah. I just can't win, can I?

    Oh, well. The line to join the club starts over there ---------->
    kiwibiker is full of love, an disrespect.
    - mikey

  14. #44
    Join Date
    27th February 2005 - 08:47
    Bike
    a red heap
    Location
    towel wronger
    Posts
    6,522
    can somebody explain how to set the clock on my microwave?

  15. #45
    Join Date
    26th February 2005 - 15:10
    Bike
    Ubrfarter V Klunkn,ffwabbit,Petal,phoebe
    Location
    In the cave of Adullam
    Posts
    13,624
    That's hardware. This is a software discussion
    Quote Originally Posted by skidmark
    This world has lost it's drive, everybody just wants to fit in the be the norm as it were.
    Quote Originally Posted by Phil Vincent
    The manufacturers go to a lot of trouble to find out what the average rider prefers, because the maker who guesses closest to the average preference gets the largest sales. But the average rider is mainly interested in silly (as opposed to useful) “goodies” to try to kid the public that he is riding a racer

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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