I've heard that some types of runtime compilation aren't a performance hit. The official Python documentation asserts that running a .pyc file is no faster than .py. (I can't find the link right now.) How is this possible? Doesn't it take time to generate bytecode from the .py?
What about languages like PHP? Isn't it necessary to compile them on every execution? Why would you want this? It seems like a waste of time if the same script will be run many times.