Rosetta Code facts for kids
Front page of rosettacode.org
|
|
Available in | English |
---|---|
Owner | Mike Mol |
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.
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 have two licenses under less strict terms.
Rosetta Code's collection of code examples shows how the functionality the user desires is achieved differently in various ways, and how "the same" task can be done in different programming languages.
As of 25 September 2019[update], Rosetta Code has:
-
-
- 971 programming problems
- 225 additional draft programming tasks
- 723 programming languages
- 66,679 programming language examples
-
Data and structure
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 someone who views the solution to compare the solution 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
Some programming languages that are listed on Rosetta Code are:
- Ada
- ALGOL 60
- ALGOL 68
- ALGOL W
- APL
- AWK
- AutoHotKey
- BASIC (40 different versions)
- C
- C Sharp (C#)
- C++
- Clojure
- COBOL
- Common Lisp
- D
- Erlang
- F Sharp (F#)
- Factor
- Forth
- Fortran
- Elixir
- Go
- Groovy (Apache Groovy)
- Haskell
- Icon
- J
- Java
- JavaScript
- Julia
- Kotlin
- Maple
- Mathematica
- MATLAB
- Nim
- OCaml
- Octave
- PARI/GP
- Pascal
- Perl
- PHP
- Picolisp
- PL/I
- PowerShell
- PureBasic
- Python
- R
- Racket
- Raku
- REXX
- Ruby
- Rust
- Scala
- Scheme
- Seed7
- SequenceL
- Swift
- Tcl
- Unicon
- XPL0
A list of all programming languages that have solutions to programming problems on Rosetta Code is available.
Tasks
Some tasks that are listed on Rosetta Code are:
- "99 Bottles of Beer" (song)
- Abbreviations
- Ackermann function
- Amicable numbers
- Anagrams
- Bernoulli numbers
- Bitwise operations
- Cholesky decomposition
- Combinations
- Comments
- Continued fractions
- Cyclic redundancy check (CRC-32)
- de Bruijn sequence
- Death Star (draw)
- Dot product
- Dragon curve
- Egyptian fractions
- Eight queens puzzle
- Factorials
- Fibonacci sequence
- FizzBuzz
- Galton box (bean box) animation
- Gamma function
- Gaussian elimination
- Greatest common divisor (GCD)
- Hello world program Hello world/Text
- Hofstadter Q sequence
- Infinity
- Least common multiple (LCM)
- Leonardo numbers
- Levenshtein distance
- Look-and-say sequence
- Lucas numbers
- Lucas-Lehmer primality test
- Mandelbrot set (draw)
- Mersenne primes
- Miller-Rabin primality test
- Morse code
- Numerical integration
- Pascal's triangle (draw)
- Perfect numbers
- Permutations
- Prime numbers
- Primorial numbers
- Quaternions
- Quine
- Random numbers
- Rock-paper-scissors (play)
- Roman numerals (encode/decode)
- Roots of unity
- roots of a function
- Rot13—a simple letter substitution cipher
- Runge–Kutta method
- SEDOLs
- Semiprimes
- Sierpinski triangle (draw)
- Sorting algorithms
- Square-free integers
- Statistics
- Stem-and-leaf display
- Function definition
- Sudoku (solve)
- Taxicab numbers
- Thue-Morse sequence
- Tic-tac-toe (noughts and crosses)
- Tower of Hanoi (solve)
- Trigonometric functions
- Ulam spiral (draw)
- Vampire numbers
- Xiaolin Wu's line algorithm (draw)
- Zebra Puzzle or Einstein riddle
- Zeckendorf representation
Related pages
- Example-centric programming
See also
In Spanish: Rosetta Code para niños