• cobysev
    link
    fedilink
    English
    1721 month ago

    For anyone who doesn’t want to do the conversion, that’s 17 days.

      • @[email protected]
        link
        fedilink
        English
        51 month ago

        Mmm yes. 5 bit two’s complement.

        I shouldn’t make fun of it we’ve definitly made some ISA that weird.

      • @[email protected]
        link
        fedilink
        English
        21 month ago

        what’s the general rule for translating negatives from binary? did you just do like 17 - 2 • (-1) or something?

        • Yardy Sardley
          link
          fedilink
          English
          51 month ago

          I used what known as 2’s compliment. Take the complement (flip all the bits - here that would give you 01110 which is 14) then add 1.

          • @[email protected]
            link
            fedilink
            English
            11 month ago

            thanks for the explanation! could you express it as a NOT operation plus one? like is that how it would be processed at a low level?

            • @[email protected]
              link
              fedilink
              English
              2
              edit-2
              1 month ago

              My low level is a tad rusty from when I learned the C side in school, but if I recall the not operator resolves as a single Boolean (0 or 1 in true C), whereas compliment comes back as however many bits you put in - a not operation per bit.

              In C, the not operator is ! and the compliment operator is ~

      • @[email protected]
        link
        fedilink
        English
        161 month ago

        Among many other duties I manage the safety and claims database for an outsourced industrial cleaning company and let me tell you, some of the plants my company works struggle to make it a week without an accident, meanwhile some will go years without an accident. We also have one plant which had its last accident during the Bush Administration. Its absolutely wild how much safety can vary from one industrial facility to another

    • Phoenixz
      link
      fedilink
      English
      401 month ago

      Unless it’s a signed integer, then it’s -1 and they’re expecting something…

  • Hjalmar
    link
    fedilink
    English
    1061 month ago

    It’s even worse considering that they only have five boards. They expect at least one accident every month

    • Gormadt
      link
      fedilink
      English
      22
      edit-2
      1 month ago

      I work in the LTL freight industry, if we go 30 days without an accident or an injury we get a free BBQ day with unlimited food for everyone. We’re talking burgers, hotdogs, chilli, chowder, chips, drinks, etc. Sometimes they even do catering. Our last one they did Hawaiian Food for 2 days (they got too much) which definitely made everyone happy.

      I’ve been there for almost 10 years, we average about 2 per year.

      Edit to clarify: 2 BBQs per year. We’re really good as getting hurt.

      • @[email protected]
        link
        fedilink
        English
        71 month ago

        I wonder if that’s still cheaper, because it makes people value safety of others but also because it raises the burden to report smaller accidents and workmans comp fraud because of peer pressure.

        • @[email protected]
          link
          fedilink
          English
          31 month ago

          The cost is in the lost productivity from having someone off work with injuries. A barbecue every 6 months seems like a bargain.

          • Gormadt
            link
            fedilink
            English
            31 month ago

            It really is, the average time loss injury in our company is usually upwards of 30k down the drain. And just an accident can be catastrophic in terms of cost as well.

            A BBQ compared to that is nothing.

        • Gormadt
          link
          fedilink
          English
          51 month ago

          Less than Truck Load

          Basically if a company want to ship pallets of crap but they don’t have enough to justify using their own truck

          Think TForce, YRC, Oak Harbor, FedEx Freight, etc.

  • @[email protected]
    link
    fedilink
    English
    301 month ago

    It bothers me it’s not in 4 bit “bytes” even though I know it’s just a convention for computers

    • @[email protected]
      link
      fedilink
      English
      91 month ago

      The four bit sections of eight bit bytes are called nibbles, you know because nibbles are small bites

      • @[email protected]
        link
        fedilink
        English
        71 month ago

        That’s a matter of convention, not technical definition. A byte can be any number of bits, depending on hardware. For a while 6 bit bytes were common. RFC 791 refers to an 8 bit byte as an octet

        • @[email protected]
          link
          fedilink
          English
          2
          edit-2
          1 month ago

          RFC 791 refers to an 8 bit byte as an octet

          French-speaking people do too it seems. On second hand websites in Switzerland you always see that some disks are listed for e.g. 250 Go and others for 250 GB, depending on the first language of the seller.

    • @[email protected]
      link
      fedilink
      English
      21 month ago

      You can do all of math in binary, it isn’t just for computers. In fact, the proof for “Russian Peasant Multiplication” was written in binary.

      • @[email protected]
        link
        fedilink
        English
        1
        edit-2
        1 month ago

        So you can do all mathematical operations in binary, but you can’t represent all numbers in binary like 0.3, which is a repeating number, and had the same issues as a number like 1/3 in decimal where you can’t avoid rounding errors

        It’s worth noting that 1/3 is also a repeating number in binary. 0.01010101…

        While 0.3 is in binary 0.0100110011001100…

        • @[email protected]
          link
          fedilink
          English
          3
          edit-2
          1 month ago

          I’m not sure what sort of point you think you’re making but 0.0100110011 in binary is only 0.065% off from 0.3, but how often would you organically encounter 0.3?

          Many fractions in decimal are also repeating numbers or very long trailing numbers, I especially encounter a lot when working with time which is base 60.

  • TragicNotCute
    link
    fedilink
    English
    251 month ago

    I love the leak in the other room. Get ready to reset the counter folks!

    • @Sparhawk87
      link
      English
      41 month ago

      And the fumes being vented inside that room.

  • madjo
    link
    fedilink
    English
    171 month ago

    -1 days? (or 17, without the overflow)

    • @[email protected]
      link
      fedilink
      English
      13
      edit-2
      1 month ago

      Twos complement (invert the bits then add one), so its -15 days.

      Otherwise 00000 and 10000 would paradoxically both equal 0 and make bitwise equality checks very difficult.

  • Seraph
    link
    fedilink
    141 month ago

    They’ve never gone more than a month without an accident? Find a new work place immediately!

    • Gormadt
      link
      fedilink
      English
      61 month ago

      With a large enough workplace in the wrong industries it’s really easy to have something that could count against it.

      I work in the LTL freight industry, we get quite a few.