🎉 Celebrating 25 Years of GameDev.net! 🎉
Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!
Scripting languages
Why are some languages called scripting languages (UnrealScript for example) while some are called programming languages (C++ for example)?
/. Muzzafarath
scripting languages are nothing more than text files
computer languages have to be compiled
computer languages have to be compiled
So all interpreted programming languages (BASIC, original Pascal) are scripting languages?
I think you''re wrong. UnrealScript compiles the code to bytecode (don''t know what it means, but it does compile the code), so why is it called a a scripting language and not a programming language?
/. Muzzafarath
I think you''re wrong. UnrealScript compiles the code to bytecode (don''t know what it means, but it does compile the code), so why is it called a a scripting language and not a programming language?
/. Muzzafarath
really what it is doing is editing the exe perhaps...maybe i am wrong i''ll admit that but i am pretty confident thats right
some scripting languages-
perl
C (for cgi, a little bit different)
vbscript
some scripting languages-
perl
C (for cgi, a little bit different)
vbscript
I''m not quite sure but I think that you need a virtual machine, in order to execute, your bytecode. While machine code is machine dependant and is executed directly in the CPU.
"Paranoia is the belief in a hidden order behind the visible." - Anonymous
"Paranoia is the belief in a hidden order behind the visible." - Anonymous
I think a more accurate definition would be this:
A script is a set of instructions that are executed by another program, not directly by the CPU. Typically, a scripting language is high level, and used to control the function of the interpreting program. Some scripting languages are compiled into bytecode. Bytecode is similar to CPU machine language, but again, it is interpreted and executed by another process, commonly known as a ''virtual machine''.
As far as I''m concerned, Java and BASIC and python _are_ scripting languages, just very powerful ones.
- genovov
A script is a set of instructions that are executed by another program, not directly by the CPU. Typically, a scripting language is high level, and used to control the function of the interpreting program. Some scripting languages are compiled into bytecode. Bytecode is similar to CPU machine language, but again, it is interpreted and executed by another process, commonly known as a ''virtual machine''.
As far as I''m concerned, Java and BASIC and python _are_ scripting languages, just very powerful ones.
- genovov
I''ve always drawn the line at the purpose of the language. If the language is designed to primarily augment an application, it''s a scripting language (UnrealScript : Unreal, java-script; VBScript : Web Browsers/Servers, VBA : Office programs). Programming languages are designed to create applications. I consider Perl to be a(n evil) programming language. You can compile it into fully-functional stand alone software. Java is also a programming language, because it is designed to create applications.
Of course the critereon for a real programming language vs. a toy language is if you can write a compiler for the language in that language.
Of course the critereon for a real programming language vs. a toy language is if you can write a compiler for the language in that language.
Genovov,
Actually, I think there are processors out there that can run Java bytecode without interpretation, meaning there are instances when Java would not be considered a scripting language according to your definition. The Virtual Machine does not have to be virtual.
...and, Transmeta''s processor translate x86 instructions to its internal instruction set before running them on its CPU. Would that make x86 code a scripting language? hehe tricky matter.
Henry
Actually, I think there are processors out there that can run Java bytecode without interpretation, meaning there are instances when Java would not be considered a scripting language according to your definition. The Virtual Machine does not have to be virtual.
...and, Transmeta''s processor translate x86 instructions to its internal instruction set before running them on its CPU. Would that make x86 code a scripting language? hehe tricky matter.
Henry
Well, if a virtual machine isn't virtual, then it's just a machine right?
/. Muzzafarath
Edited by - Muzzafarath on 4/10/00 4:30:47 AM
/. Muzzafarath
Edited by - Muzzafarath on 4/10/00 4:30:47 AM
Hmmm, you''re right, it is a tricky matter. Perhaps SiCrane is closer to the ''correct'' definition. However, the Python compiler is writen in almost 100% Python code, but the creators consider it a scripting language....
Ah well, close enough
- genovov
Ah well, close enough
- genovov
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement