**What is glue language? **
Glue language is a programming language (usually a scripting language) used to connect software components.
Examples of glue language:
Shell scripts Python Ruby Lua Tcl Perl PHP See also: Category:Scripting languages
Glue language (uses OS commands, interfaces, DLLs, shared libraries, services, objects, etc.)
Glue language: use input and output commands, interfaces, dynamic link libraries, static link libraries, services, objects, etc.
Among the internal mechanisms of Python are:
The standard version of python is compiled in C, also known as Cpython. In addition, there are some other python implementations.
Advantages of Jython:
(1) As long as there is a virtual machine, you can run Jython
(2) Have the ability to access java packages and class libraries
(3) Provide a script engine for the java development environment
(4) Encourage Python to Java development
3.. net implementation. Completed in C# language, named IronPython. Similar to jython.
significance:
On the terminal, I can freely combine him and other programs as an intermediate processing module.
Moreover, it can be so simple and convenient, some simple scripts only need to cat to immediately understand what they mean.
An expression is one line of code, the code block has a consistent standard indentation, a standard naming method, a concise language, and supports comments...
It is very simple to access or call other programs, just input the specified data here with one command, and then how to splice and splice;
It is fine to process it periodically, output to a file and wait for other programs to call.
**On the system script: **
It has a lot more mathematics and string processing capabilities than SHELL, a lot of useful iterative methods, and a lot of native data structures;
It's more horrible code readability than PERL.
Compared with ruby and nodejs, basically all of his machines are pre-installed, and it has passed the test of time. Although, there will indeed be the possibility of being replaced by these two goods in the future.
Compared with C/C++, he has one more terminal, and even an enhanced version of the artifact terminal like ipython, which can debug the code and write the correct code into the file. Moreover, the source code can be executed.
Knowledge point supplement:
Glue language
Let’s start with Hello world. All children's shoes learning python will start with this sentence:
print “Hello World!”。
Here comes the question: Why is Hello World the first thing all languages do?
In fact, he represents the unified text processing model and interface of UNIX. These gadgets are hard to reach and understand in the programming field of Windows.
Write an example below. For example, I did this:
# file: say.py
import sys
txt = sys.argv[1]
print "Hello %s!"%(txt)
Then I can directly type in the Linux or Mac terminal:
python say.py World
The output will be:
Hello World!
This ensures the intuitiveness and programmability of terminal calls.
In this way, I don't have to call python in other python languages, but can directly connect with other processing programs on the shell.
BTW, this is actually Hello world, ha ha.
So far, this article on why python is called glue language is introduced. For more related content on why python is called glue language, please search for ZaLou.Cn's previous articles or continue to browse related articles below. Hope you will support ZaLou more in the future. .Cn!
Recommended Posts