Web Development
9 replies
by chrandrob
A programming language like Java, C++, VB, etc., is compiled into an executable file. A program written in a programming language is faster and more powerful and can be completely self contained, meaning that the end user doesn't need anything special to run the executable.
A script language like Javascript, VBScript, PerlScript, etc., is interpreted by an interpreting program. It is sort of compiled on the fly each time it is executed. This process is slower, but only noticebly so as the script gets large. Unlike an executable, scripts require that the executing system (the server for server-side and the user for client-side) have special software installed to interpret the script.
by vickydicky
by tink
IMO, a script is a source file that is written in a specific language. A language is a tool that one can create applications, applets, interfaces, transactions, etc.
Your question is kind of like asking what's the difference between SPEAKING (such as French) and a LANGUAGE (such as English)?
JavaScript is a programming language from Netscape which is incorporated in their browsers. JavaScript is superficially similar to Java, but it is not based on Java. Java is an objected-oriented programming language developed by Sun. Java shares many superficial similrities with C and C++.
by vickydicky
Scripts tend to be a list of sequential instructions to the computer. A Language could be utilised to write a simple script but more often will be used to respond to user direction.
Languages can be used to make the computer do things. A script may call a number of these programs sequentially. For example a script may call java program 1 then java program 2 and so on.
Other answers have implied that Javascript is a language used by Netscape - This I am afraid is not accurate. Java asa language was written in the first instance by Sun Microsystems. However there is a tie in with browsers in that to execute a Java program the browser will need some form of JVM ( Java Virtual Machine).
Whilst it is true to say that a script is interpretted ( ie each line of the script is read and then converted to a series of 0's and 1's that the processor understands) then executed. IWth the Java language it is similar although not identical. The Java compiler creates a file that theJVM recognises and knows how to handle. It is neither interpretted in the traditional sense nor raw executable code but rather something that makes the virtual machine work.
I hope that this helps.
by vickydicky
by spadakanti
Hi,
I feel the following points will make it clear
Script Language is based on interpreting and a normal language is compiler based ie it needs compiler before it can be executed.
Script language has its boundries set for example it should be used with in the head tag where as there are no boundries for a language
script language can not access any thing outside the program where it is running where as we can acces any thing on the system with a normal language
Script languages are so called since they have got a predefined task associated with them like client side validations
Like this you have some more points
by vickydicky
by vickydicky
This discussion is closed to new replies.
Trending Web Development posts
Sort by Trending