Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

Mirah, an Expressive JVM Language

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
6,167
Loading...
Alert icon
Sign in or sign up now!
Alert icon
There is no Interactive Transcript.

Uploaded by on Nov 16, 2010

Google Tech Talk
July 28, 2010

Presented by Charles Oliver Nutter and John Woodell.

ABSTRACT

Much has been made of having more expressive languages for the JVM. The recent explosion of interest in alternative JVM languages has shown there's a need for something better. But have Scala, Groovy, Fantom achieved this goal?

We'll look at Mirah, which attempts to implement Ruby's apparent features directly atop JVM types and code. In each case there have been gains and losses.

Ruby often provides beautiful abstractions, but sometimes requires odd things of the JVM that influence performance. The dynamic capabilities are incredibly expressive, but we often need more static structure to enforce typing guarantees or integrate with the platform. On top of all this, much of Ruby's dynamism makes it very difficult to optimize on the JVM. Can we get those features in another way?

Mirah may be one answer. It takes as a starting point the "apparent features" of Ruby, and as an end point the basic structures of the JVM, and attempts to tie them directly together. With a fairly simple compiler, Mirah can almost mimic the most common Ruby abstractions, but with static typing guarantees and no runtime library requirements. It provides a Ruby-like way to write Java, the ultimate goal of so many JVM languages.

Charles Oliver Nutter has been programming most of his life, as a Java developer for the past decade and as a JRuby developer for over four years. He co-leads the JRuby project, an effort to bring the beauty of Ruby and the power of the JVM together. Charles believes in open source and open standards and hopes his efforts on JRuby and other languages will ensure the JVM remains the preferred open-source managed runtime for many years to come.

Category:

Science & Technology

Tags:

License:

Standard YouTube License

  • likes, 2 dislikes

Link to this comment:

Share to:

Top Comments

  • @llothar68 new instances with warm JVMs are made available to start serving apps, so there is no penalty for using the JVM. We're not trying to catch up with Ruby. The performance and efficiency of a Mirah app is phenomenal. You would need to write your app in C/C++ to achieve the same performance, but the Mirah/Dubious code is almost identical to a Rails app.

  • Whoah, Mirah is brilliant!

see all

All Comments (15)

Sign In or Sign Up now to post a comment!
  • Cool

  • @MandoWoodie

    Java on App Engine is a stupid idea.

    Either get a dedicated/VPS Server and let it run for months or choose Python/CRuby/PHP/Perl for services that need to start/shutdown frequently.

    This is just optimizing the wrong tool for the job.

  • @peppeddu people are building real App Engine sites with Mirah today, I expect we'll see real Android apps written in Mirah very soon.

  • @peppeddu

    Yes i really don't see the need of a new Ruby like language when JRuby works so well. And i really don't get the argument about the runtime. It's java and this is just one more of the 50 jar files a typical project needs today.

  • If there is not marketing behind, GUI tools, a strategy to mass adoption of some kind, Mirah is only a developer's exercise to satisfy the creators own ego.

  • He got 35!

  • Pure Genius, Ruby-like Java Syntax, Yes...

    The only thing I really like is the no dependencies.

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more