Rosetta Code
![]() Front page of rosettacode.org | |
Available in | English |
---|---|
Owner | Mike Mol |
URL | rosettacode |
Launched | January 1, 2007 |
Current status | Online |
Content license | GFDL |
Written in | PHP, MediaWiki |
Rosetta Code is a wiki-based website that features ways to solve various programming problems in many different programming languages.[1]
Website
[change | change source]Rosetta Code was created in 2007 by Michael Mol.[2] The site's content is licensed under the GNU Free Documentation License 1.2, though some components may have two licenses under less strict terms.[3]
The examples of Rosetta Code shows how to get the result in various ways,[4][5] and how "the same" task can be done in different programming languages.[6]
As of 22 February 2024[update], Rosetta Code has:[7]
- 1,266 computer programming tasks (or problems)
- 404 additional draft programming tasks
- 933 computer programming languages that are used to solve tasks
Data and structure
[change | change source]The Rosetta Code site is organized as a browsable cross-section of programming problems and programming languages. A programming problem's page displays solutions contributed by visitors in various programming languages, allowing different solutions to be compared to the programming problem.
Each programming language has its own page, which contains a list of programming problems that have solutions in that programming language. For example, a task that has a solution in the C programming language will appear in the listing for the C programming language, and if the same task has a solution in the Ruby programming language, the task will also appear in the listing for the Ruby programming language.
Languages
[change | change source]Some programming languages that are listed on Rosetta Code are:[8]
A list of all programming languages that have solutions to problems on Rosetta Code is available.[9]
Tasks
[change | change source]Some tasks that are listed on Rosetta Code are:[10]
- "99 Bottles of Beer" (song)
- Abbreviations
- Combinations
- Cyclic redundancy check (CRC-32)
- Death Star (draw)
- Dot product
- Egyptian fractions
- Factorials
- Fibonacci sequence
- Galton box (bean box) animation
- Gamma function
- Gaussian elimination
- Greatest common divisor (GCD)
- Hello world program Hello world/Text
- Infinity
- Least common multiple (LCM)
- Levenshtein distance
- Mandelbrot set (draw)
- Mersenne primes
- Morse code
- Numerical integration
- Pascal's triangle (draw)
- Perfect numbers
- Permutations
- Prime numbers
- Quine
- Roman numerals (encode/decode)
- Sierpinski triangle (draw)
- Statistics
- Function definition
- Sudoku (solve)
- Tic-tac-toe (noughts and crosses)
- Trigonometric functions
References
[change | change source]- ↑ Ralf Lämmel. "Software chrestomathies". doi:10.1016/j.scico.2013.11.014. 2013.
- ↑ "Rosetta Code:About - Rosetta Code". www.rosettacode.org. 8 August 2010.
- ↑ "Rosetta Code:Copyrights". Retrieved 2010-12-19.
- ↑ Neil Walkinshaw. Chapter One: "Reverse-Engineering Software Behavior". "Advances in Computers". 2013. p. 14.
- ↑ Geoff Cox. "Speaking Code: Coding as Aesthetic and Political Expression". MIT Press, 2013. p. 6.
- ↑ Nick Montfort "No Code: Null Programs" Archived 2014-05-22 at the Wayback Machine. 2013. p. 10.
- ↑ "Welcome to Rosetta Code". Retrieved 2007-01-07.
- ↑ "Most linked-to categories". Retrieved 2024-02-22.
- ↑ "Rosetta Code/Languages/Full list". rosettacode.org. 4 March 2024.
- ↑ "Pages with the most categories". Retrieved 2018-10-11.