Want to read Slashdot from your mobile device? Point it at m.slashdot.org and keep reading!


Forgot your password?

Comment Re:Register for the draft? (Score 1) 734

The real question is what happens if they do register for the draft in both belgium and the US, and they are drafted in both places?
How does that even work? (I don't know if belgium has mandatory draft registration, but the netherlands does, at least when I turned 18 they still did).

Comment Re:Yay Canada! (Score 2) 231

Maybe you can do it like they do in Switzerland (at least I think it was there).
Someone asks you three times if you are sure you want to off yourself (after you have signed the paperwork and everything), and they hand you a cup of poison.
You have to drink it yourself.
If you are too senile or weak to drink it yourself, tough luck.

Comment Re:I don't know enough about this stuff (Score 2) 63

What you say is pretty much correct.
The reason out of order execution is faster, is because in most cases the compiler doesn't know the full pipeline delay of each instruction.
This helps with making binaries compatible with different processors implementing the same instruction set.
For instance, the compiler might assume that +, -, *, and / all take the same amount of cycles to calculate, when in reality of course some of those will be faster than others.

A calculation like A = B*C; B = A+D; C= C+1 could then be reordered to A=B*C C=C+1 B=A+D. (assuming that multiplication takes longer than addition.)
In this case the B=A+D calculation waits for the A=B*C calculation, but the C=C+1 calculation doesn't have to wait.
If the compiler was fully aware of pipeline delays of each instruction, then it could have scheduled the instructions like that in the first place.
But then you code would only run optimally on processors with those exact pipeline delays. It also makes scheduling more complicated.

"The urge to destroy is also a creative urge." -- Bakunin [ed. note - I would say: The urge to destroy may sometimes be a creative urge.]