Embedding JavaScript In Java with Rhino

Recently I've I experimented with embedding JavaScript in Java with Rhino. Previously I had written a Python utility that parses text files in an AWK like fashion by allowing an expression to be passed in on the command line. In Python writing such a utility is easy because of it's dynamic nature - a user provided expression can be bits of Python which are then eval'd on the fly. But I was curious if I could make it faster by rewriting it in a faster language such as Java.

Subscribe to RSS - rhino