Re:Why Python Is Slow: Looking Under the Hood
by adamtj on Tuesday November 18, 2014 @05:19PM
(#8626753)
How is python substantially different from javascript in this case? Google has a crazy fast javascript JIT compiler, even though javascript has something equivalent to python's setattr().
[ Parent
| on HN ]
Re:Why Python Is Slow: Looking Under the Hood
by masklinn on Tuesday November 18, 2014 @05:44PM
(#8626874)
> even though javascript has something equivalent to python's setattr().
Python provides significantly more hooks into the behaviour of arbitrary objects, and arguably provides more flexibility than JS.
Here are a few notes from Mike Pall (LuaJIT) on Python features making a straight interpreter slower, and the language harder to optimise (JIT tightly): http://lua-users.org/lists/lua-l/2004-11/msg00083.html
Animats is full of shit, the ability to add arbitrary "static" attributes to existing objects is really not the main problem.