Justin du Coeur (jducoeur) wrote,
Justin du Coeur


I'll get to a small pile of Pennsic posts shortly, but while I'm catching up on my email and technical blogs, let's have the Language of the Week: Mirah.

This one's pretty neat, another example that the usual religious wars in the programming community are increasingly pointless. Mirah is basically a dialect of Ruby, but specifically designed to run *fast* on the JVM or some other environment. As such, it is statically typed.

Now this is basically heresy: after all, ground zero in the language wars is static vs. dynamic typing. But Mirah (which is admittedly new and experimental, but cool) illustrates how silly this is. Mirah code *looks* damned near identical to Ruby code: it just adds *occasional* type annotations and a powerful type inferencing engine so that the static typing is mostly hidden. The result sort of looks to Ruby as Scala is to Java: statically typed enough to save you from lots of easy bugs, but well enough hidden to stay out of your way.

I suspect the language will have its flaws: in particular, I'd bet that the switch to static typing will make the lack of generics glaringly obvious. (In a dynamic language like Ruby, you don't *need* generics, but static languages always eventually wind up wanting them.) But Mirah looks like a good option for mid-sized programs, large enough that the static typing is useful, but small enough that the lack of generics isn't a big deal. It'll be interesting to see if it catches on.

(Thanks to Tim Bray for pointing the language out, in the course of talking about possible languages for Android development.)
Tags: programming

  • Adtech

    Here's an interesting article about "adtech" -- those automated algorithms that companies like Google and Facebook use to spy on you and serve up…

  • Chrome instability?

    For the past week or two, Chrome has become surprisingly unstable -- it's been crashing on me about once a day. Weirdly, it is usually when I'm not…

  • Crossing the Uncanny Valley

    [Trying out posting from DreamWidth. Let's see if everything is configured right.] Just saw Rogue One. Capsule Summary: not an epic for the ages,…

  • Post a new comment


    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded