comp.lang.ada
 help / color / mirror / Atom feed
From: dewar@merv.cs.nyu.edu (Robert Dewar)
Subject: Re: ADA CORE TECHNOLOGIES ANNOUNCES GNAT-TO-JAVA SYSTEM
Date: 1997/09/20
Date: 1997-09-20T00:00:00+00:00	[thread overview]
Message-ID: <dewar.874760620@merv> (raw)
In-Reply-To: 5vt73c$3nk$1@goanna.cs.rmit.edu.au


<<Nope.  "Slim binaries" are absolutely NOTHING LIKE P-code.
Slim binaries are based on two ideas:
    - source code compresses very well
    - IO is slow.

Slim Binaries are used in the Juice system, currently available for
PCs and PowerMacs.  The idea is very simple, and the implementation is
rather elegant.  The precompiler parses a source file, does all the
static checks, may make other completely portable transformations,
and then emits

    > compressed annotated abstract syntax graphs <

At run-time, the Juice system reads the slim binary, decompressing and
building the AST as it goes, and then runs a normal compiler back end
to generate native code.>>


This only makes sense if your compilers have succeeded in employing the
techniques we developed in the 70's and early 80's to make compiler
front ends absurdly slow. Lexical analysis and parsing are instantaneous
if done right. My Ada lex/parser for Ada 83 runs at over 10 million
lines a minute on a reasonable fast PC, including IO, and trying to
optimize this part away is a waste of time. Distributing compressed
sources makes sense, doing anything more to them does not if you
are following this kind of approach. I find the slim binary approach
to be completely without merit.

But to understand why your "nope" is wrong, bump your level of 
abstraction up a bit. The slim binary approach and the P-Code approach
and the Java approach, and similar approaches over time, are all trying
to solve the problem of how to distribute software in a completely
portable manner. 

Actually it is not hard at all to solve this problem, you can just
distribute sourrce and be done with it, and that of course is
Richard Stallman's precsription for how to solve this problem.

In practice, distribution of source has two problems, of a very different
nature:

1. Building large systems from sources can be a very tricky business,
requiring skills that a user of the system does not necessarily have.

2. For those who want to keep their software proprietary, distributing
sources fills them with horror :-)






  parent reply	other threads:[~1997-09-20  0:00 UTC|newest]

Thread overview: 36+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-09-11  0:00 ADA CORE TECHNOLOGIES ANNOUNCES GNAT-TO-JAVA SYSTEM Robert Dewar
1997-09-12  0:00 ` Stephen Leake
1997-09-13  0:00   ` Robert Dewar
1997-09-14  0:00     ` Ralph Paul
1997-09-14  0:00       ` Robert Dewar
1997-09-16  0:00         ` Brian Rogoff
1997-09-17  0:00           ` Tarjei T. Jensen
1997-09-18  0:00             ` Robert Dewar
1997-09-17  0:00           ` Ralph Paul
1997-09-18  0:00             ` Robert Dewar
1997-09-19  0:00               ` Richard A. O'Keefe
1997-09-19  0:00                 ` Jon S Anthony
1997-09-20  0:00                   ` Jay Han
1997-09-22  0:00                   ` Richard A. O'Keefe
1997-09-20  0:00                 ` Robert Dewar [this message]
1997-09-21  0:00                   ` Fergus Henderson
1997-09-22  0:00                     ` Robert Dewar
1997-09-16  0:00         ` Ralph Paul
1997-09-15  0:00     ` Stephen Leake
1997-09-15  0:00       ` Mark L. Fussell
1997-09-16  0:00       ` Robert Dewar
1997-09-17  0:00         ` Stephen Leake
1997-09-18  0:00           ` Robert Dewar
1997-09-19  0:00             ` W. Wesley Groleau x4923
1997-09-20  0:00               ` Robert Dewar
1997-09-23  0:00                 ` multi-language to JVM compilers? W. Wesley Groleau x4923
1997-09-19  0:00             ` translating to Ada, was Re: ADA CORE TECHNOLOGIES ANNOUNCES GNAT-TO-JAVA SYSTEM Tom Moran
1997-09-16  0:00       ` Tucker Taft
1997-09-17  0:00         ` Robert Dewar
1997-09-13  0:00   ` Tarjei T. Jensen
1997-09-14  0:00     ` Robert Dewar
1997-09-14  0:00       ` Tarjei T. Jensen
1997-09-15  0:00         ` Robert Dewar
  -- strict thread matches above, loose matches on Subject: below --
1997-09-15  0:00 Marc Wachowitz
1997-09-20  0:00 Marc Wachowitz
1997-09-21  0:00 ` Robert Dewar
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox