1

I need to write a command tool and I would like to write it in Scala. The problem is the start-up time of JVM (Oracle JDK). I did not measure it but I am sure the JVM starts slower than Python, for example.

I have already asked a similar question and got answers about tools like Drip and Nailgun. However I would like to use just a JVM without any other tools.

Now I am looking for a small and lightweight JVM, which starts as fast as Python and can run Scala generated bytecode. Can I use an Android JVM for that purpose ?

Community
  • 1
  • 1
Michael
  • 41,026
  • 70
  • 193
  • 341

2 Answers2

2

I have not used any of these, but I think you can run Scala on Avian, and also it should be possible to compile to native code using GCJ. I have just installed PDFtk which is compiled using gcj, and it's startup time is zero. You might want to use Proguard to shrink the size of your executable as well.

0__
  • 66,707
  • 21
  • 171
  • 266
1

Would Drip (https://github.com/ninjudd/drip) be of value here perhaps?

Michael Nash
  • 304
  • 3
  • 4