encyclopegia.org

Standard library

In computer programming, a standard library is the library made available across implementations of a programming language.[src] Often, a standard library is specified by its associated programming language specification, however, some are set in part or whole by more informal practices of a language community.[src] Some languages define a core part of the standard library that must be made available in all implementations while allowing other parts to be implemented optionally.[src] In many languages, the standard library often has its own namespace.[src] For example, C++, D, and Rust use std::* as the standard library namespace.[src] C# uses System.* , while Java uses java.* , javax.* and jdk.* .[src] However, in some like Python and Go, there is no "standard library namespace" or common prefix for modules belonging to the standard library.[src] As defined with the core language aspects, the line between the core language and its standard library is relatively subtle.[src] A programmer may confuse the two aspects even though the language designers intentionally separate the two.[src] The line between the core language and its standard library is further blurred in some languages by defining core language constructs in terms of its standard library.[src] For example, Java defines a string literal as an instance of the java.lang.String class.…[src]

In computer programming, a standard library is the library made available across implementations of a programming language.[src] Often, a standard library is specified by its associated programming language specification, however, some are set in part or whole by more informal practices of a language community.[src] Some languages define a core part of the standard library that must be made available in all implementations while allowing other parts to be implemented optionally.[src] In many languages, the standard library often has its own namespace.[src] For example, C++, D, and Rust use std::* as the standard library namespace.[src] C# uses System.* , while Java uses java.* , javax.* and jdk.* .[src] However, in some like Python and Go, there is no "standard library namespace" or common prefix for modules belonging to the standard library.[src] As defined with the core language aspects, the line between the core language and its standard library is relatively subtle.[src] A programmer may confuse the two aspects even though the language designers intentionally separate the two.[src] The line between the core language and its standard library is further blurred in some languages by defining core language constructs in terms of its standard library.[src] For example, Java defines a string literal as an instance of the java.lang.String class.[src] Smalltalk defines an anonymous function expression (a "block") as an instance of its library's BlockContext class.[src] Scheme does not specify which portions must be implemented as core language vs.[src] standard library.[src] ==Contents== Depending on the constructs available in the core language, a standard library may include: Subroutines Macro definitions Global variables Class definitions Templates Commonly provided functionality includes: Algorithms, such as sorting algorithms Data structures, such as the list, tree, and hash table Interaction with external systems (input/output) Interaction with the host operating system ==Philosophies== Philosophies of standard library design vary widely.[src] For example, Bjarne Stroustrup, designer of C++, writes: This suggests a relatively small standard library, containing only the constructs that "every programmer" might reasonably require when building a large collection of software.[src] This is the philosophy that is used in the C and C++ standard libraries.[src] As a result, the C standard library and C++ Standard Library are significantly smaller in size and scope compared to, for instance, the Java standard library and C# standard library, which feature more extensive abilities.[src] By contrast, Guido van Rossum, designer of Python, has embraced a much more inclusive vision of the standard library.[src] Python attempts to offer an easy-to-code, object-oriented, high-level language.[src] In the Python tutorial, he writes: Van Rossum goes on to list libraries for processing XML, XML-RPC, email messages, and localization, facilities that the C++ Standard Library omits.[src] This other philosophy is often found in scripting languages (as in Python or Ruby) or languages that use a virtual machine, such as Java or the .NET Framework languages.[src] In C++, such facilities are not part of the standard library, but instead are included in other libraries, such as Boost or POCO.[src] In Java, the formerly standard libraries Java Platform, Enterprise Edition (now Jakarta EE) and JavaFX were moved to separate independent libraries.[src] ==Examples== C standard library C++ Standard Library .NET Framework Class Library (FCL) Java Class Library (JCL) Rust standard library Factor standard library Ruby standard library Python standard library Common Language Infrastructure (CLI) standard libraries ==References==[src]

36 sentences · 36 cited inline · 0 references stored

References

No reference rows published for this article.

Cite this article

MLA

"Standard library." encyclopegia.org, 2026, https://encyclopegia.org/wiki/standard-library. Accessed 30 November 2026.

Chicago

"Standard library." encyclopegia.org. Accessed November 30, 2026. https://encyclopegia.org/wiki/standard-library.

APA

encyclopegia.org. (2026). Standard library. Retrieved November 30, 2026, from https://encyclopegia.org/wiki/standard-library

Accessed November 30, 2026 · CC BY-SA 4.0 · citation page · JSON

Related articles

German National Library

stub · references available

International Standard Book Number

stub · references available

Raczyński Library

stub · references available

Poznań University Library

stub · references available

Classen Library

stub · references available

International Standard Serial Number

stub · references available

periodical library

stub · references available

Załuski Library

stub · references available
CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1358700006 · 0.5 · snapshot enwiki-001358700006

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools
  • Careers — open roles: frontier engineers and sales partners
  • Index — every corpus, paper and record
  • Estate guide — what a public data estate is
  • Founder — Lois-Kleinner Alpasan
  • Records — DOIs and external deposits
  • Documents — one-pagers, PDFs and QR codes
  • Brand kit — logos and share images
  • Papers — plain-language briefs with citations
  • Browser — search engine, PWA and bookmarklet
  • Anticloud — the operator and its projects

As seen in Business Insider · 336 outlets · evidence DOIs · plain-language papers

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.