News for hackers. Stuff that matters.
Re:How Difficult is it to Write a Compiler? by akeefer on Monday December 15, 2008 @07:23PM (#399023)
Both JRuby and Jython compile dynamic languages into the JVM; the instruction set of the VM makes it fairly difficult to deal with dynamic types and to deal with reloading methods on the fly (I believe that in Java the only real way to unload a class is to throw away the whole classloader associated with it). If you're really curious about how it's done, check out Charles Nutter's blog (http://blog.headius.com/2008/09/first-taste-of-invokedynamic... is pretty interesting) or download the JRuby source and check it out.

That said, it's certainly not trivial, so it still might not qualify as "sane."

Re:How Difficult is it to Write a Compiler? by russell on Monday December 15, 2008 @10:47PM (#399164)
Sorry. I meant source to source, as in Python source to Java source. Python to java byte code, as in Jython, is a reasonable thing to do, but not easy.