this post was submitted on 17 Oct 2024
707 points (99.0% liked)

Science Memes

10815 readers
3330 users here now

Welcome to c/science_memes @ Mander.xyz!

A place for majestic STEMLORD peacocking, as well as memes about the realities of working in a lab.



Rules

  1. Don't throw mud. Behave like an intellectual and remember the human.
  2. Keep it rooted (on topic).
  3. No spam.
  4. Infographics welcome, get schooled.


Research Committee

Other Mander Communities

Science and Research

Biology and Life Sciences

Physical Sciences

Humanities and Social Sciences

Practical and Applied Sciences

Memes

Miscellaneous

founded 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 173 points 1 week ago (5 children)

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

[–] [email protected] 90 points 1 week ago (3 children)
[–] [email protected] 44 points 1 week ago
[–] [email protected] 5 points 1 week 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] 2 points 1 week ago (1 children)

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

[–] [email protected] 4 points 1 week ago (1 children)

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] 1 points 1 week ago (1 children)

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] 2 points 1 week ago* (last edited 1 week 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] 57 points 1 week ago (2 children)

It also has a max of 31 days possible. Which has... implications.

[–] [email protected] 16 points 1 week 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

[–] [email protected] 3 points 1 week ago (1 children)

🤔 .... What implications? ಠ⁠_⁠ಠ

[–] [email protected] 8 points 1 week ago* (last edited 1 week ago) (1 children)

They must sacrifice an undergrad on the 32nd day

[–] [email protected] 3 points 1 week ago (1 children)

This is actually how chromatography works. The mobile phase is 0.1% formic acid and 0.3% blood of the innocent.

[–] [email protected] 2 points 1 week ago

blood of the innocent

Well, We work with what we have.

[–] [email protected] 40 points 1 week ago (2 children)

Unless it's a signed integer, then it's -1 and they're expecting something...

[–] [email protected] 9 points 1 week ago (1 children)

A 5 bit long signed integer? What kind of weird system you using ? :p

[–] [email protected] 8 points 1 week ago

Two's complement

[–] [email protected] 3 points 1 week ago

Only if you're using a sign bit rather than two's compliment (a sign bit allows for two representations of 0)

[–] [email protected] 4 points 1 week ago (1 children)
[–] [email protected] 1 points 1 week ago (1 children)
[–] [email protected] 6 points 1 week ago

As in, 0x11 is 17 in decimal.

[–] [email protected] 1 points 1 week ago

I did and I regret it