I'm putting this in DevOps for archiving, but it's for the main board also... many of you have comp sci backgrounds, though I have taken a lot of comp sci courses (my degrees are in CIS) I don't know the answer to this question: how do interpreted languages like Python and PERL handle the step after compilation where the object code needs to be linked with and libraries and subprograms needed? It would seem that this would make interpreted vs compiled languages unfeasibly slow... too slow for ... moreI'm putting this in DevOps for archiving, but it's for the main board also... many of you have comp sci backgrounds, though I have taken a lot of comp sci courses (my degrees are in CIS) I don't know the answer to this question: how do interpreted languages like Python and PERL handle the step after compilation where the object code needs to be linked with and libraries and subprograms needed? It would seem that this would make interpreted vs compiled languages unfeasibly slow... too slow for something like Firefox to be written in Python. I know interpreters have gotten a lot faster, but fast enough to ostensibly skip the link-edit step?
DeLander CollinsThis is what I could find on the topic.
Python source code (.py files) is converted into byte code (.pyc file) for use by the python virtual environment (PVM) as it’s being written. The .pyc is used the the next time the file is run for quicker start up. I do not believe python uses static or dynamic linking in the traditional sense for modules. The import of modules would be searched in the sys.path before being changed into byte code. I found these links on the subject. Hope that helps and is... moreThis is what I could find on the topic.
Python source code (.py files) is converted into byte code (.pyc file) for use by the python virtual environment (PVM) as it’s being written. The .pyc is used the the next time the file is run for quicker start up. I do not believe python uses static or dynamic linking in the traditional sense for modules. The import of modules would be searched in the sys.path before being changed into byte code. I found these links on the subject. Hope that helps and is a starting point.