Warning: Some posts on this platform may contain adult material intended for mature audiences only. Viewer discretion is advised. By clicking ‘Continue’, you confirm that you are 18 years or older and consent to viewing explicit content.
How costly it is to call functions and builtins in your python code? Does inlining help? How have the recent CPython releases improved performance in these areas?
The downvotes are hilarious. Being able to drop down to C is one of python’s selling points, and the title of the post includes the name of the python ref implementation __C__Python.
There is a difference being able to drop down in C and using exclusively C.
One of the main advantage of python is being to quickly write code, and using C-based library / part of code written in C (or fortran, or rust for what it matters) when needed.
Just code in C
Just code in assembly
Just punch the cards
Just wire up your own gates. It’s not that hard.
Just ritualistically wave a magnet near the computer
Yes.
Don’t write code, why do you need a computer to do your math? Just do it on paper ffs.
Paper‽ What too good for a clay tablet?
The downvotes are hilarious. Being able to drop down to C is one of python’s selling points, and the title of the post includes the name of the python ref implementation __C__Python.
There is a difference being able to drop down in C and using exclusively C.
One of the main advantage of python is being to quickly write code, and using C-based library / part of code written in C (or fortran, or rust for what it matters) when needed.
“just write C” may lack a bit of nuance.
Exactly.
I don’t really care, people will downvote for any number of reasons, and I know I was right, so it doesn’t bug me
How about no.