Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!border4.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!news.iecc.com!nerds-end From: torbenm@diku.dk (Torben Ægidius Mogensen) Newsgroups: comp.compilers Subject: Re: Thoughts on the JVM as a compilation Target? Date: Thu, 24 May 2012 10:34:30 +0200 Organization: SunSITE.dk - Supporting Open source Lines: 21 Sender: news@iecc.com Approved: comp.compilers@iecc.com Message-ID: <12-05-017@comp.compilers> References: <12-05-013@comp.compilers> NNTP-Posting-Host: news.iecc.com X-Trace: leila.iecc.com 1337921965 83596 64.57.183.58 (25 May 2012 04:59:25 GMT) X-Complaints-To: abuse@iecc.com NNTP-Posting-Date: Fri, 25 May 2012 04:59:25 +0000 (UTC) Keywords: Java Posted-Date: 25 May 2012 00:59:25 EDT X-submission-address: compilers@iecc.com X-moderator-address: compilers-request@iecc.com X-FAQ-and-archives: http://compilers.iecc.com Xref: csiph.com comp.compilers:646 "Aaron W. Hsu" 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