I don't understand why the other languages are slower, but you can make the Nim 
version faster by using smaller types (same as your other languages) and using 
an explicit main function:
    
    
    proc fibonacci(n: int32): float32 =
      if n < 2:
        result = float32(n)
      else:
        result = fibonacci(n-1) + fibonacci(n-2)
    
    proc main =
      echo fibonacci(50)
    
    main()
    

Reply via email to