Re:Ruby is too slow for programming competitions
by up_and_up on Sunday April 21, 2013 @11:26PM
(#5587602)
A really simple solution in that case is to run JRuby and then write computationally intensive code in a JVM compatible lang like Scala or Clojure. This route seems popular since you can easily give JRuby access to your Scala classes.
[ Parent
| on HN ]
Re:Ruby is too slow for programming competitions
by pkolaczk on Monday April 22, 2013 @11:44AM
(#5589840)
Right, but if already writing in Scala, why ever write some parts of code in Ruby? Scala gets you expressivity of Ruby with additional benefit of static typesafety.
Re:Ruby is too slow for programming competitions
by up_and_up on Tuesday April 23, 2013 @10:02AM
(#5595154)
Well a pretty typical scenario is you are writing a ruby app and run into an area that needs additional horsepower (say a gaming API or something). Being on JRuby would give you more options at that point.