Abstract What's this 2-complement thing, anyway? With (signed) integers, \(a-b\) is the same as \(a+(-b)\), suggesting every subtraction can be replaced by an addition. But we were not taught to use that for practical calculations: it doesn't even seem to be possible to compute eg \(123+(-42)\) other than by subtracting 42 from 123. However, computers use binary arithmetic and actually perform subtraction by adding the "2-complement". How does this work?
Read More…
Latest Posts
On my main computer, I've been using the awesome window manager for quite a long time now (I sometimes use xfce4 on other computers, especially on my linux tablet). I'm mostly happy with it but there's a few (mildly) annoying things that would need to be fixed. One of them is that when I (dis)connect an external screen (or change the screen mode through xrandr), all windows move to tag 1.
Read More…