Y
Hacker News
new
|
ask
|
show
|
jobs
by
falcolas
4417 days ago
Based off my own experience, dynamic typing has much less to do with slowness than the plethora of string copying which occurs in your typical python script.
2 comments
blt
4417 days ago
but for scientific computing with numbers - the author's target audience - dynamic typing is the main bottleneck.
link
freyrs3
4417 days ago
Boxing and memory locality are the the main bottlenecks in scientific computations with Python, dynamic typing is orthogonal.
link
andreasvc
4417 days ago
If a language is dynamically typed, it is very likely that it will use boxing, so they do not seem orthogonal to me.
link
dragonwriter
4417 days ago
There's ways to avoid that, where it matters, though its a pretty common thing in naive Python/Ruby, true.
link