We are independent & ad-supported. We may earn a commission for purchases made through our links.
Advertiser Disclosure
Our website is an independent, advertising-supported platform. We provide our content free of charge to our readers, and to keep it that way, we rely on revenue generated through advertisements and affiliate partnerships. This means that when you click on certain links on our site and make a purchase, we may earn a commission. Learn more.
How We Make Money
We sustain our operations through affiliate commissions and advertising. If you click on an affiliate link and make a purchase, we may receive a commission from the merchant at no additional cost to you. We also display advertisements on our website, which help generate revenue to support our work and keep our content free for readers. Our editorial team operates independently of our advertising and affiliate partnerships to ensure that our content remains unbiased and focused on providing you with the best information and recommendations based on thorough research and honest evaluations. To remain transparent, we’ve provided a list of our current affiliate partners here.
Technology

Our Promise to you

Founded in 2002, our company has been a trusted resource for readers seeking informative and engaging content. Our dedication to quality remains unwavering—and will never change. We follow a strict editorial policy, ensuring that our content is authored by highly qualified professionals and edited by subject matter experts. This guarantees that everything we publish is objective, accurate, and trustworthy.

Over the years, we've refined our approach to cover a wide range of topics, providing readers with reliable and practical advice to enhance their knowledge and skills. That's why millions of readers turn to us each year. Join us in celebrating the joy of learning, guided by standards you can trust.

What Is a Standard Library?

By Eugene P.
Updated: Feb 01, 2024
Views: 5,854
Share

In computer programming, a standard library is a series of functions, constants and other language definitions that are included as part of the core compiler package. The standard library provides a programmer with the basic ability to create simple programs and manipulate basic data. It also provides the ability to somehow interact with the host operating system so information processing does not become a trivial task. All implementations of a given language compiler include the standard library, and it is generally downwardly compatible with previous versions of the library so basic language functionality is preserved as it evolves over time.

A library, in a broad sense, is a collection of procedures, functions, classes or other elements of a computer program that are available to a programmer. These elements are usually grouped into categories that define their functionality, such as input, output and process handling. Some libraries rely on other libraries to work properly, a concept called dependence. Important variables, such as the maximum value of an integer data type or the numerical definition of a null character, can be stored in a library. They also are usually already compiled pieces of computer code, preventing harmful modifications and protecting proprietary programming code.

A standard library strives to include all basic and necessary features that a broad range of programs will require to run in one way or another. This has to be balanced against including too many libraries. A large standard library means that, in some languages, the distribution size of a completed program could be incredibly large and bloated with libraries that are never used. Including too many files in a standard library also can lead to problems with development of the language, because features that are infrequently used must be updated with each language or compiler change, increasing the amount of work required for a new release.

Conversely, a standard library that has too little functionality can lead to each programmer having to custom install external libraries and include them specifically in program releases. This can lead to a type of secondary, community-driven maintenance of a standard that is not controlled by the primary language development team. Some languages adapt to such situations by including commonly used libraries into the standard set when the community has made the need clear.

Different languages have different design philosophies about what should be in the standard library. Additionally, the mechanics behind how the compiler creates an executable program also can 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 few.

Share
WiseGeek is dedicated to providing accurate and trustworthy information. We carefully select reputable sources and employ a rigorous fact-checking process to maintain the highest standards. To learn more about our commitment to accuracy, read our editorial process.

Editors' Picks

Discussion Comments
Share
https://www.wise-geek.com/what-is-a-standard-library.htm
Copy this link
WiseGeek, in your inbox

Our latest articles, guides, and more, delivered daily.

WiseGeek, in your inbox

Our latest articles, guides, and more, delivered daily.