Re:How is GNU `yes` so fast?
by mikeash on Tuesday June 13, 2017 @10:09AM
(#14544787)
Most of what makes the C program bigger comes from the fact that the C program does more. Your python example doesn't call pledge(). Remove that from the C program and it drops to one include, one conditional, and two loops. Further, counting the two loops against C doesn't make any sense: it's entirely up to the programmer whether to have a conditional containing two loops, or a loop containing a conditional. Both languages could naturally do it either way.
[ Parent
| on HN ]
There are no comments on this comment yet.