💾 Archived View for thebackupbox.net › ~epoch › blog › moores-cracking.c captured on 2024-12-17 at 10:13:39. Gemini links have been rewritten to link to archived content
⬅️ Previous capture (2024-07-09)
-=-=-=-=-=-=-
int main() {
int year=0;
float years_left=100;
int u=2;//every 1.5 years (18 months) rerun program with this altered between optimistic and pessimistic to get better estimates.
float f=2;//double the speed of our computers
printf("year %d : %f left\n",year,years_left);
years_left--;
for(year=1 ; years_left > 0 ; year++ , years_left--) {
if(year % u == 0) {
printf("upgrading hardware by *%d\n",f);
years_left /= 2;
}
printf("year %d : %f left\n",year,years_left);
}
printf("years taken: %d\n",year);
return 0;
}