Re: очень хочется squirrelsh
Hello!
Мне тут подсказали, что уже есть стабильная версия D, так что:
$ gdc-4.1 hello.d -o hello
$ time ./hello
i=100000000; x=5499999945475522.00
real 0m0.543s
user 0m0.524s
sys 0m0.000s
$ cat hello.d
int main(char[][] args){
int i;
double x;
for (i=0,x=0;i<100000000;i++)
x+=1.1*i;
printf("i=%d; x=%.2f\n",i,x);
return 0;
}
$ time ./hello
i=100000000; x=5499999945475522.00
real 0m0.532s
user 0m0.528s
sys 0m0.000s
Best regards, Alexey Pechnikov.
http://pechnikov.tel/
Reply to: