Why Not Script All Computer Programs?
There are two good reasons for having compiled languages. Compiled programs are generally faster than scripted programs. This is partly because programmers, in order to write comprehensible source code will use names that are meaningful and therefore may be long. Variable and object names like $path_to_server and @weekly_salary_sums are commonly found in programs. When a program is compiled there is no need to maintain these lengthy names because the computer doesn’t care about such things. ‘A1’, ‘A2’ are just as meaningful to a machine. Also, a compiled program may be optimized which is a process where the computer applies efficiency techniques to the code before making it executable. Finally, scripted programs must be run by the interpretor which is in and of itself a program consuming machine resources, while compiled programs may be standalone entities which run by themselves. Another reason for compilation, an important one in the software industry is that scripted programs are ru