今天跟别人聊天,我问他,Python是不是应该比PHP快,他说:
"python/php is the same shit. it's still an interpreted language python or php work the same way: scan source, compile in bytecode, run bytecode. java works that way too, but can run some optimizations at compile time since compilation do not have to happen at each run. but python/perl/php are the same shit (ruby too) " MagicalTux (Google) @ 3:33
然后他又说:
"if you can run non-compiled files, it means it's slow. that's all. however this "slow" usually involves a few ms, while your own errors can cost way more. what's really important is not to choose a language because it is "fast" or not, but choose a language because you "master" it"
大家有什么看法
"python/php is the same shit. it's still an interpreted language python or php work the same way: scan source, compile in bytecode, run bytecode. java works that way too, but can run some optimizations at compile time since compilation do not have to happen at each run. but python/perl/php are the same shit (ruby too) " MagicalTux (Google) @ 3:33
然后他又说:
"if you can run non-compiled files, it means it's slow. that's all. however this "slow" usually involves a few ms, while your own errors can cost way more. what's really important is not to choose a language because it is "fast" or not, but choose a language because you "master" it"
大家有什么看法