Justin du Coeur (jducoeur) wrote,
Justin du Coeur

IL for Browsers?

So the latest Big Thing in Web technology seems to be Javascript compilers. By that, they don't mean systems that compile Javascript into machine code to make them fast; rather, both Google and Microsoft are pursuing compilers that translate from Java or C# into Javascript.

That seems like a slightly silly thing to do until you consider the way things are going. Fancy web pages are suddenly all about Ajax, and while that's conceptually straightforward, it's a pain in the ass to code and more of a pain to integrate into the server side of one's site. So the hot idea is that you write your entire site in Java or C#, both the server and client, and then use these "compilers" to turn the client side into Ajax-based web pages.

Which works, but it's still kind of silly. Javascript may run on the browsers, but it's not exactly assembly language: it's relatively bulky and slow for what you're trying to accomplish, being an interpreted language. And the benefits of being an interpreted language are largely lost in this environment, since it's really just an intermediate language anyway.

So the question is, how long will it be before a true pseudo-machine intermediate language shows up for browsers? History indicates that, when you find yourself compiling into a high-level language, that's almost always an evolutionary step on the way to developing a more appropriate low-level language for the situation. I don't think that's certain in this case (heaven knows the Net has shown a remarkably cavalier disregard for efficiency in its standards), but it seems plausible. A standard pseudo-machine would be rather useful in a number of respects -- it would be more compact, run faster, be easier to compile into and would give folks an opportunity to get the semantics a little more precise this time around.

It'll be interesting to see if it happens. The only reason I can see this *not* happening is that it would require the IE and Firefox camps to agree on a new standard, and that alone could tie things up for years. But it seems like an idea whose time is coming...
Tags: programming

  • Art of Conversation on "Google+: Circles vs. Identity"

    For those who are interested: the advent of Google+ has inspired me to fire up The Art of Conversation again. I encourage y'all to come and chat...

  • Art of Conv: Wave Postmortem

    Lots of people gave me the heads-up about Google Wave while I was at Pennsic, but I wasn't going to deal with it then. But now that I'm beginning to…

  • More going on over at artofconv

    For those who are interested in what I have to say: I've recently been ramping up my professional blog, The Art of Conversation. It had been sliding…

  • Post a new comment


    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded