Rosetta Code is a
wiki
A wiki ( ) is a form of hypertext publication on the internet which is collaboratively edited and managed by its audience directly through a web browser. A typical wiki contains multiple pages that can either be edited by the public or l ...
-based programming
chrestomathy website with implementations of common
algorithms
In mathematics and computer science, an algorithm () is a finite sequence of mathematically rigorous instructions, typically used to solve a class of specific problems or to perform a computation. Algorithms are used as specifications for per ...
and solutions to various
programming problems in many different
programming languages
A programming language is a system of notation for writing computer programs.
Programming languages are described in terms of their syntax (form) and semantics (meaning), usually defined by a formal language. Languages usually provide features ...
.
It is named for the
Rosetta Stone
The Rosetta Stone is a stele of granodiorite inscribed with three versions of a Rosetta Stone decree, decree issued in 196 BC during the Ptolemaic dynasty of ancient Egypt, Egypt, on behalf of King Ptolemy V Epiphanes. The top and middle texts ...
, which has the same text inscribed on it in three languages, and thus allowed
Egyptian hieroglyphs
Ancient Egyptian hieroglyphs ( ) were the formal writing system used in Ancient Egypt for writing the Egyptian language. Hieroglyphs combined Ideogram, ideographic, logographic, syllabic and alphabetic elements, with more than 1,000 distinct char ...
to be deciphered for the first time.
Website
Rosetta Code was created in 2007 by Michael Mol.
The site's content is licensed under the
GNU Free Documentation License 1.2, though some components may be dual-licensed under more permissive terms.
The Rosetta Code web repository illustrates how desired functionality is implemented very differently in various
programming paradigms
A programming paradigm is a relatively high-level way to conceptualize and structure the implementation of a computer program. A programming language can be classified as supporting one or more paradigms.
Paradigms are separated along and descri ...
, and how "the same" task is accomplished in different programming languages.
, Rosetta Code has:
* 1,266 computer programming tasks (or problems)
* 404 additional draft programming tasks
* 933 computer programming languages that are used to solve tasks
In August 2022, Rosetta Code migrated from independent hosting to
Miraheze.
Presently, Rosetta Code is hosted by WikiTide.
Data and structure
The Rosetta Code site is organized as a browsable cross-section of tasks (specific programming problems or considerations) and computer programming languages.
A task's page displays visitor-contributed solutions in various computer languages, allowing a viewer to compare each language's approach to the task's stated problem.
Task pages are included in per-language listings based on the languages of provided solutions; a task with a solution in the
C programming language will appear in the listing for C. If the same task has a solution in
Ruby
Ruby is a pinkish-red-to-blood-red-colored gemstone, a variety of the mineral corundum ( aluminium oxide). Ruby is one of the most popular traditional jewelry gems and is very durable. Other varieties of gem-quality corundum are called sapph ...
, the task will appear in the listing for Ruby as well.
Languages
Some of the computer programming languages found on Rosetta Code (which have Wikipedia descriptions) include:
A complete list of the computer programming languages that have examples (entries/solutions to the Rosetta Code tasks) is available.
Tasks
Some of the tasks found on Rosetta Code include:
See also
*
Example-centric programming
References
External links
* {{Official website
Programming languages
Programming language comparisons
Wikis about programming