Re: Possible to write compiler to Java VM?

Bob Wilson <bwilson@shasta.stanford.edu>
25 Jan 1996 22:20:40 -0500

          From comp.compilers

Related articles
Re: Possible to write compiler to Java VM? (I volunteer to summarize) boutell.com@holly.aa.net (1996-01-23)
Re: Possible to write compiler to Java VM? Dirk.Craeynest@cs.kuleuven.ac.be (1996-01-25)
Re: Possible to write compiler to Java VM? chase@centerline.com (1996-01-25)
Re: Possible to write compiler to Java VM? bwilson@shasta.stanford.edu (Bob Wilson) (1996-01-25)
Re: Possible to write compiler to Java VM? clodius@sst.lanl.gov (William Clodius) (1996-01-27)
Re: Possible to write compiler to Java VM? tdunbar@gserver.grads.vt.edu (Thomas Dunbar) (1996-01-27)
Re: Possible to write compiler to Java VM? tore@lis.pitt.edu (1996-01-27)
Re: Possible to write compiler to Java VM? sam@inf.enst.fr (Samuel Tardieu) (1996-01-28)
Re: Possible to write compiler to Java VM? hbaker@netcom.com (1996-01-29)
Re: Possible to write compiler to Java VM? david.hopwood@lady-margaret-hall.oxford.ac.uk (1996-01-29)
[23 later articles]
| List of all articles for this month |

From: Bob Wilson <bwilson@shasta.stanford.edu>
Newsgroups: comp.compilers
Date: 25 Jan 1996 22:20:40 -0500
Organization: Computer Systems Lab, Stanford University
References: 96-01-063 96-01-075
Keywords: translator, OOP

David Chase wrote:
> You bet. By-the-way, be careful not to confuse Java and the JVM. For
> all its complexity, the C++ template system just bangs out code as if
> from a stencil, and the front-end language (Java or whatever) could
> bang out code as if from a stencil, and generate the byte codes for
> each of the instances of the template. IT WOULD BE NICE if there were
> some sort of VM support for shared-byte-code templates, but when I
> thought about this, it got messy. If you (or anyone else) care, the
> approach that I find most interesting is what is described in some of
> the work on Theta by Liskov et al at MIT. See
> http://clef.lcs.mit.edu/, or their article (Day, Gruber, Liskov,
> Myers) in OOPLSA '95.


I agree that the Theta approach to templates is very interesting,
and it seems like it would be fairly straightforward to add similar
capabilities to Java. If you use Java interfaces to constrain the
parametric types, you would avoid some of the more complicated
things in Theta. I haven't had time to work out any of the details
of that, so I'm curious to know how it gets messy. Are there
security issues involved? Something else? One of these days I'll
have to sit down and work it out myself. In the meantime, I'd like
to learn from your experience.


--Bob (bwilson@shasta.stanford.edu)
--


Post a followup to this message

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