also a fun fact, while commercial aviation is very safe, private planes are much more dangerous, being almost as dangerous per mile as a regular car (and you get a lot more miles per hour of travel)
sus
that works for 2 word names eg is_open or is_file, but in this case is_dialog_file_open is structured like a question, while dialog_file_is_open is structured like a statement
as many iterations as it takes
void* x = &x;
char* ptr = (char*)&x;
while (1) {
printf("%d\n", (unsigned int)*ptr);
ptr--;
}
Nokia bought the parent company of bell labs in 2016. By that point bell labs had already been completely restructured to the point that it has basically nothing to do with the historical bell labs.
slow inverse square root:
float slowinvsqrt(float x)
{
const long accuracy = 100000000; // larger number = better accuracy
if (x <= 0.0f) {
return NAN;
}
if (x == 1.0f) {
return 1.0f;
}
if (x < 1.0f) {
return 1.0f / slowinvsqrt(1.0f/x);
}
int max_power = log(accuracy) / log(x);
long pow1 = pow(x, max_power - 1);
long pow2 = pow(x, max_power);
double current = 1.0;
double previous = 1.0;
for (long i = 0; i<10*accuracy; i++) {
current = sin(current);
if (i == pow1) {
previous = current;
}
if (i == pow2) {
return current / previous;
}
}
}
it soars because the profit was near zero before and is now returning to "normal" (their competitor SK hynix made a 5 billion operating loss in one quarter last year)
CRT TV with extra steps
if all 330 million 'mericans tried living in the woods, shit would go south really quickly
even if you write in assembly, you still may not actually understand what is going on in the machine since processors convert the instructions to "micro-ops", and let's not forget hardware bugs like those caused by speculative execution
Oopsie woopsie!
how did I miss that..