4 ms·
Isn't there a tool that translates Java bytecode into Davlik byte-code (dx I think). Even if not, we have functioning decompilers to go from Java byte-code into
by gizmo686 13y ago
Isn't there a tool that translates Java bytecode into Davlik byte-code (dx I think). Even if not, we have functioning decompilers to go from Java byte-code into Java source-code, and a well maintained toolchain to go from Java-source code to Dalvik byte-code.
In fact, you don't even need a Java decompiler to do this. All you need is a backwords Java compiler. That is, one that treats bytecode as a source languages and compiles down to Java. This is a much easier process because (ignoring things like Enums) you don't need to try and figure out what the original code is, and instead can just do a naive decompile with optimization passes.
- yareally 13y agoThere's been some Jython ports to Android in the past, but all are abandoned as far as I know. There were some problems with performance as well and the dynamic nature of Python. I know there's a maintained JRuby project[1] for Android though. [1] http://ruboto.org/ http://ruboto.org/
- jnbiche 13y agoAnd there's also Myrah, a Ruby-like language that can produce Dalvik bytecode. I've been meaning to try it out for several years, it looks pretty promising. It's basically typed Ruby.
- yareally 13y agoHaven't heard of Mirah, but looks like it's still updated and maintained so that's a plus. http://www.mirah.org/ http://www.mirah.org/