From: brabuhr@... Date: 2010-06-08T04:53:33+09:00 Subject: Re: A better way to write this function? On Mon, Jun 7, 2010 at 3:44 PM, Jason Lillywhite wrote: > unknown wrote: >> Duby code: >> ...snip > > I'm sorry, can you tell me what Duby is? I tried looking it up and found > nothing. I'm familiar with JRuby but not Duby. > > Thank you. Duby is a Ruby-like static-typed language with local type inference and not many bells and whistles. The primary motivation was to have a Ruby-like language to implement parts of JRuby. Duby looks and feels mostly like Ruby but compiles to tight JVM bytecode on par with what you'd get from compiled Java. def fib(a => :fixnum) if a < 2 a else fib(a - 1) + fib(a - 2) end end puts fib(45) http://blog.headius.com/2008/03/duby-type-inferred-ruby-like-jvm.html http://blog.headius.com/2008/08/duby-update.html http://www.infoq.com/presentations/nutter-jruby-duby-juby http://blog.headius.com/2009/08/introducing-surinx.html