Fibonacci

The fibonacci sequence starts at 0, then 1. The next number is the sum of the previous two numbers.

The first ten numbers: 0, 1, 1, 2, 3, 5, 8, 13, 21, 34.

One way to compare speeds of languages is to implement the exact same algorithm in each and measure the time to calculate the result.

Fib.java

fib.lua

fib.pl

fib.py

fib.rb

fib.scm