News for hackers. Stuff that matters.
Re:Beyond Ruby: Mirah, Reia, Rite by gareth_at_work on Tuesday December 14, 2010 @06:36PM (#2006228)
I think Mirah could be a serious competitor to Scala.
Re:Beyond Ruby: Mirah, Reia, Rite by technomancy on Tuesday December 14, 2010 @07:21PM (#2006413)
I'm skeptical. Mirah can't really do much to support functional programming without adding a runtime, since the JDK's built-in classes don't provide data structures amenable to FP. But the point of Mirah is to be lightweight without its own standard library.

You could use Mirah with Clojure or Scala to get access to the necessary libs, but then you lose the lightweight advantage and could fragment the community.

Re:Beyond Ruby: Mirah, Reia, Rite by jshen on Tuesday December 14, 2010 @11:47PM (#2007095)
Are you talking about higher order functions or something else.
Re:Beyond Ruby: Mirah, Reia, Rite by technomancy on Wednesday December 15, 2010 @12:46AM (#2007204)
Of course, it all depends on definitions; in this case things are fuzzy. Functional programming means a lot of things to a lot of people. "Supports higher-order functions" is necessary for pretty much any definition of FP, but it sets a very low bar.

My definition would have to include "supports pure functions idiomatically", which means it must be practical to write the bulk of your programs without side-effects. This is really only possible if you have persistent data structures that can efficiently share structure internally; otherwise avoiding side-effects involves lots of wasteful copying. (See http://technomancy.us/132 for an explanation of persistent data structures.)

Of course, if you asked a Haskell programmer, they would be mortified that you would leave monadic computation out of your definition, so no single definition is going to please everyone.

Re:Beyond Ruby: Mirah, Reia, Rite by gareth_at_work on Wednesday December 15, 2010 @01:53PM (#2009280)
Scala had some of the same design goals as Ruby, especially the goal of being a pleasant language to live in on a daily basis. Mirah essentially removes the (theoretically, at least) performance advantage that Scala had over JRuby. Of course there is the issue of not being able to use MRI Ruby code with Mirah; overcoming that in a clean way would bring a lot of MRI folks over to Mirah.