Hacker News new | past | comments | ask | show | jobs | submit login

>in Python it's quite difficult even to reason about what's going to be in L1

The interpreter's stack?




I haven't looked at it in a while, so I could be wrong, but I think with small enough programs you can still squeeze some payload into L1 in long tight loops where you're not jumping up and down the Python stack a lot.

But your overall point stands: if you're writing non-trivial Python programs your L1 is usually spent on language/runtime overhead.


When such things matter you drop to Cython and avoid interacting with PyObjects. Then you get native performance for tight loops.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: