[Very OT] Tiny vNode

This is a discussion on [Very OT] Tiny vNode within the General Discussions forums, part of the Community Boards category; Okay, I'm only sharing this little thing because I thought it was funny in cute and kind of sad way. ...

  1. #1
    Master Apprentice phantomotap's Avatar
    Join Date
    Jan 2008
    Posts
    4,243

    [Very OT] Tiny vNode

    Okay, I'm only sharing this little thing because I thought it was funny in cute and kind of sad way. Feel free to move on...



    I gave one of the guys I'm working with a sort of "cheat sheet" examining the exported data an imaginary API expects about a week ago. (Yes, it is loosely based on the POSIX "inode" expectations.)

    This was basically the information he got:

    Code:
    type (six different types)
    format (short format references or long format references)
    packed (true or false)
    owner id
    group id
    size in bytes
    time the vnode was last accessed
    time the referenced material was last modified
    time the vnode itself was last changed
    [References]
    Today he busted on me while I was eating breakfast looking quite mad and proclaimed "IT CAN'T BE DONE!" at the top of his lungs before stealing a slice of bacon.

    The poor guy has spent the last week trying to pack all of the above (for a 16 bit system), a 32 bit offset, and the necessary references (dependent on the type) into a 128 bit structure. Yea, he thought I said bits instead of bytes.

    Soma

  2. #2
    (?<!re)tired Mario F.'s Avatar
    Join Date
    May 2006
    Location
    Portugal
    Posts
    7,453
    Arguably, 16 bits would be all he needed.

    Code:
    struct data {
      foo* bar;
    };
    Against impossible odds, cheat.
    The programmer’s wife tells him: “Run to the store and pick up a loaf of bread. If they have eggs, get a dozen.”
    The programmer comes home with 12 loaves of bread.


    Originally Posted by brewbuck:
    Reimplementing a large system in another language to get a 25% performance boost is nonsense. It would be cheaper to just get a computer which is 25% faster.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. not able to understand this tiny tiny method
    By noobcpp in forum C++ Programming
    Replies: 5
    Last Post: 10-20-2008, 10:42 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21