What is the standard library?

In computer programming, a standard library is a number of functions, constants and other language definitions that are included as part of the base compiler package. The standard library provides the programmer with the basic ability to create simple programs and manipulate basic data. It also provides the ability to interact with the host operating system, so the processing of information will not become a trivial task. All implementations of the language compiler include a standard library and are generally downward compatible with previous versions of the library, so the basic language function is preserved as it develops over time. These elements are usually grouped into categories that define their functionality such as inputs, output and process processing. Some libraries rely on other libraries to work properly, a concept called addiction. Important variables such as the maximum value of the integer data type or the numeric definition of zero character can be stored in KNihovně. Usually they are also assembled pieces of computer code, prevent harmful modifications and protect the proprietary programming code.

Standard library seeks to include all the basic and necessary features that will require a wide range of programs to run in one way or another. This must be balanced with too many libraries. The large standard library means that in some languages ​​the size of the completed program could be incredibly large and inflated with libraries that are never used. Including too many files in the standard library can also lead to language development problems, because the features that are sometimes used must be updated with every language or change compiler, increasing the amount of work needed for new editions.

On the contrary, a standard library that has too few functions can lead to each programmer must have at their own instanceAlaci external libraries and included them specifically in the program. This can lead to the secondary type, community maintenance of the standard, which is not controlled by the primary language development team. Some languages ​​adapt to these situations by the inclusion of commonly used libraries in a standard set when the community clarifies the need.

different languages ​​have different design philosophies about what should be in the standard library. In addition, the mechanics behind the compiler create a executable program can also determine the parameters for the library. Interpreted languages ​​tend to have a larger collection of libraries in their standard set, while low -level languages ​​often have very little.

IN OTHER LANGUAGES

Was this article helpful? Thanks for the feedback Thanks for the feedback

How can we help? How can we help?