Re:How Many Lines of C It Takes to Execute a and B in Python?
by 082349872349872 on Monday December 11, 2023 @07:02AM
(#38599849)
to be concrete:
is 3 lines of python; how many lines of C code would it take to execute?
[ Parent
| on HN ]
Re:How Many Lines of C It Takes to Execute a and B in Python?
by tgv on Monday December 11, 2023 @07:10AM
(#38599899)
One: return 1.7112245243e98
Joking aside: these are not catch-all comparisons. Nor is the article. But Python is mucher slower and much safer than C. It's easier to start in Python than in C.
Re:How Many Lines of C It Takes to Execute a and B in Python?
by 082349872349872 on Monday December 11, 2023 @07:49AM
(#38600179)
;-P Just to be pedantic, if you're going to all the trouble to give (modulo lack of a repl) a wrong answer fast, might as well do it really quickly:
return 0;
in the hopes that compiles down to something like: xor rax, rax
ret