Remix.run Logo
nikisweeting 9 hours ago

genuinely curious, doesn't JS's proxy objects and prototype-based MRO have a similar performance impact in theory?

cpburns2009 8 hours ago | parent [-]

Yeah, I don't see how Python is fundamentally different from JavaScript as far as dynamicism goes. Sure Python has operator overloading, but JavaScript would implement those as regular methods. Pyrhon's init & new aren't any more convoluted than JavaScript's constructors. Python may support multiple inheritance but method and attribute resolution just uses the MRO which is no different than JavaScript's prototype chain.

pjmlp 3 hours ago | parent [-]

Urban myths.

Most people that parrot repeat Python dynamism as root cause never used Smalltalk, Self or Common Lisp, or even PyPy for that matter.