A standard library for a programming language is the library that is conventionally made available in every implementation of that language. A programming language is an Artificial language that can be used to write programs which control the behavior of a machine particularly a Computer. In Computer science, a library is a collection of Subroutines used to develop Software. In some cases, the library is described directly in the programming language specification; in other cases, the contents of the standard library are determined by more informal social practices in the programming community. A programming language specification is an artifact that defines a Programming language so that users and implementors can agree on what programs in that
Depending on the constructs made available by the host language, a standard library may include:
Most standard libraries include definitions for at least the following commonly used facilities:
Philosophies of standard library design vary widely. In Computer science, a subroutine ( function, method, procedure, or subprogram) is a portion of code within a larger A macro (from the Greek 'μάκρο' for long or far in Computer science is a rule or Pattern that specifies how a certain input sequence (often a sequence In Computer programming, a global variable is a variable that is accessible in every scope. In Object-oriented programming, a class is a Programming language construct that is used as a blueprint to create objects This blueprint includes attributes Templates are a feature of the C++ programming language that allow functions and classes to operate with generic types. In Mathematics, Computing, Linguistics and related subjects an algorithm is a sequence of finite instructions often used for Calculation In Computer science and Mathematics, a sorting algorithm is an Algorithm that puts elements of a list in a certain order. A data structure in Computer science is a way of storing Data in a computer so that it can be used efficiently In Computer science, a list is an ordered collection of entities / Items In the context of Object-oriented programming languages In Computer science, a tree is a widely-used Data structure that emulates a Tree structure with a set of linked nodes In Computer science, a hash table, or a hash map, is a Data structure that associates keys with values. 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. This is the philosophy that is used in the C and C++ standard libraries. tags please moot on the talk page first! --> In Computing, C is a general-purpose cross-platform block structured C++ (" C Plus Plus " ˌsiːˌplʌsˈplʌs is a general-purpose Programming language.
By contrast, Guido van Rossum, designer of Python, has embraced a much more inclusive vision of the standard library; 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. Don't change "Extensible" XML-RPC is a Remote procedure call protocol which uses XML to encode its calls and HTTP as a transport mechanism 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. "Scripting" redirects here For other uses see Script. Python is a general-purpose High-level programming language. Its design philosophy emphasizes programmer productivity and code readability Ruby is a dynamic, reflective, general purpose Object-oriented programming language that combines syntax inspired by Perl with Smalltalk In Computer science, a virtual machine (VM is a Software implementation of a machine (computer that executes programs like a real machine