HackerTrans
TopNewTrendsCommentsPastAskShowJobs

andylei

no profile record

comments

andylei
·9 เดือนที่ผ่านมา·discuss
your furnace doesn't know what temperature your house is if the furnace isn't connected to a thermostat
andylei
·11 เดือนที่ผ่านมา·discuss
i'll answer your argument with the initial paragraph you quoted:

> A compiler for C/C++/Rust could turn that kind of expression into three operations: load the value of x, multiply it by two, and then store the result. In Python, however, there is a long list of operations that have to be performed, starting with finding the type of p, calling its __getattribute__() method, through unboxing p.x and 2, to finally boxing the result, which requires memory allocation. None of that is dependent on whether Python is interpreted or not, those steps are required based on the language semantics.
andylei
·11 เดือนที่ผ่านมา·discuss
The previous paragraph is

> Another "myth" is that Python is slow because it is interpreted; again, there is some truth to that, but interpretation is only a small part of what makes Python slow.

He concedes its slow, he's just saying it's not related to how interpreted it is.