Re: Thoughts on the JVM as a compilation Target?

torbenm@diku.dk (Torben Ęgidius Mogensen)
Thu, 24 May 2012 10:34:30 +0200

          From comp.compilers

Related articles
Thoughts on the JVM as a compilation Target? arcfide@sacrideo.us (Aaron W. Hsu) (2012-05-22)
Re: Thoughts on the JVM as a compilation Target? gah@ugcs.caltech.edu (glen herrmannsfeldt) (2012-05-24)
Re: Thoughts on the JVM as a compilation Target? jeremy.wright@microfocus.com (Jeremy Wright) (2012-05-24)
Re: Thoughts on the JVM as a compilation Target? torbenm@diku.dk (2012-05-24)
Re: Thoughts on the JVM as a compilation Target? arcfide@sacrideo.us (Aaron W. Hsu) (2012-05-24)
Re: Thoughts on the JVM as a compilation Target? lpsantil@gmail.com (lpsantil@gmail.com) (2012-05-24)
Re: Thoughts on the JVM as a compilation Target? cr88192@hotmail.com (BGB) (2012-05-24)
Re: Thoughts on the JVM as a compilation Target? cr88192@hotmail.com (BGB) (2012-05-25)
Re: Thoughts on the JVM as a compilation Target? torbenm@diku.dk (2012-05-29)
| List of all articles for this month |
From: torbenm@diku.dk (Torben Ęgidius Mogensen)
Newsgroups: comp.compilers
Date: Thu, 24 May 2012 10:34:30 +0200
Organization: SunSITE.dk - Supporting Open source
References: 12-05-013
Keywords: Java
Posted-Date: 25 May 2012 00:59:25 EDT

"Aaron W. Hsu" <arcfide@sacrideo.us> writes:
> What are your thoughts on JVM as a compilation target, especially with new
> languages all targeting high performance or multi-core type features?


JVM is O.K. as a target if you want to compile an object-oriented
statically-typed language, since this is what the VM assumes. For other
languages, you will have to jump through hoops to express the semantics
of your language in terms of the JVM primitives. Since JVM is
Turing-complete, it is, of course, possible to do so. But it won't be
pretty and likely not very efficient.


JVM, however, has the huge advantage of being implemented on a lot of
different platforms, and when new platforms appear, it is likely that
these will soon support JVM, so you don't have to worry about porting
your language to new platforms. There are also a large standard library
that you can use, but unless your language is an object-oriented
statically-typed language, these libraries may be hard to use
effectively from programs written in your language.


Torben



Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.