Archive: 2006-07-10

  • Thoughts on Ruby to JavaScript conversion

    My quick hack the other day received a lot of attention, as the graph of visitors shows. I must emphasise that it is just a quick hack, however. It does work to the extent that it can turn a subset of Ruby into working JavaScript, but there’s more to Ruby than just the syntax: non-trivial code is going to fall into the gaps between Ruby and JavaScript semantics rather quickly. JavaScript isn’t as dissimilar from Ruby as some languages, but it’s different enough.

    More …