Are Function Calls Still Slow in Python? An Analysis of Recent Optimizations in CPython (blog.codingconfessions.com)
from abhi9u@lemmy.world to technology@lemmy.world on 10 Aug 2024 10:34
https://lemmy.world/post/18484978

#technology

threaded - newest

_sideffect@lemmy.world on 10 Aug 2024 14:02 next collapse

Just code in C

Plopp@lemmy.world on 10 Aug 2024 15:04 next collapse

How about no.

spacecadet@lemm.ee on 10 Aug 2024 15:05 next collapse

Just code in assembly

TunaCowboy@lemmy.world on 10 Aug 2024 15:55 next collapse

Yes.

jj4211@lemmy.world on 10 Aug 2024 15:55 next collapse

Just punch the cards

sugar_in_your_tea@sh.itjust.works on 11 Aug 2024 14:28 collapse

Just wire up your own gates. It’s not that hard.

ilega_dh@feddit.nl on 11 Aug 2024 09:41 next collapse

Don’t write code, why do you need a computer to do your math? Just do it on paper ffs.

Deceptichum@quokk.au on 12 Aug 2024 05:53 collapse

Paper‽ What too good for a clay tablet?

GBU_28@lemm.ee on 11 Aug 2024 11:30 collapse

Just ritualistically wave a magnet near the computer

TunaCowboy@lemmy.world on 10 Aug 2024 15:55 collapse

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.

_sideffect@lemmy.world on 10 Aug 2024 19:09 next collapse

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

celliern@lemmy.world on 11 Aug 2024 06:20 collapse

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.

tgm@lemmy.world on 10 Aug 2024 14:46 collapse

I thought function calls was one of the decently optimized things in Python