5 ms·
I'm not a "smart alec" for pointing out that Python is, was and will be bad at heavily numerical, number crunching code. It's not what Python is built for. I m
by orf 9y ago
I'm not a "smart alec" for pointing out that Python is, was and will be bad at heavily numerical, number crunching code. It's not what Python is built for.
I mean... it takes 28 bytes to store a single integer in Python.
> > sys.getsizeof(1)
> 28
- ndc33 9y agothis is silly, python is used by some of the biggest number crunchers on earth ... as glue code. If you dont like the dual language paradigm and want fast code go learn fortran.
- orf 9y agoGlue code being the important word in that comment.
- mattip 9y agoOn PyPy, it can be many different sizes, including being completely optmized out. That is why PyPy has no sys.getsizeof