9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: tlaronde@polynum.com
To: 9fans <9fans@9fans.net>
Subject: Re: [9fans] APL
Date: Tue, 23 Feb 2021 10:20:51 +0100	[thread overview]
Message-ID: <20210223092051.GA2248@polynum.com> (raw)
In-Reply-To: <202102230858.11N8wGG5004457@freefriends.org>

On Tue, Feb 23, 2021 at 01:58:16AM -0700, arnold@skeeve.com wrote:
> tlaronde@polynum.com wrote:
> 
> > On Mon, Feb 22, 2021 at 09:44:54PM +0000, Charles Forsyth wrote:
> > > I'm fairly sure Thompson wrote it on sabbatical in Berkeley. I think he
> > > also wrote the first version of a Pascal compiler.
> > > Pascal isn't a difficult language but I remember that compiler having an
> > > unusual style. I think others reworked it significantly later,
> > > so if it's there at all it's worth looking at the earliest possible one.
> > > 
> >
> > The Pascal compiler rings a bell... It would be fun indeed to derived a
> > version from it so that, finally, TeX and al. could be "natively"
> > compiled instead of converting the (pseudo) Pascal to C (this is web2c
> > purpose or, as I have named it, pp2rc---Pseudo Pascal to Raw C).
> 
> There was an interpreter for P-code and (I think later) a compiler
> for the Vax. You'd have to port it to current architectures, and
> compiling TeX would probably make TeX run more slowly than the C version.
> 
> The Berkeley Pascals were some of the compilers used for "Software Tools
> in Pascal".

The Pascal version would probably be a bit slower. And it would be more
an alternative to verify the code than a primary way, since in fact
D.E.K. has not written the program in some Pascal but in Algol, a high
level abstract description, the wizardry being in the data structures.
And, indeed, only the control flows are being translated from pseudo 
Pascal to C, the core---the data structures---being handled by ad-hoc
code.

And for the architectures, like other compilers, the aim would be to
convert to some intermediate language (perhaps assembly) and to borrow
the back-ends.

But it is all vaporware: I have to implement supplementary primitives
for the new version of LaTeX and I'm already late (not started yet)...
-- 
        Thierry Laronde <tlaronde +AT+ polynum +dot+ com>
                     http://www.kergis.com/
                    http://kertex.kergis.com/
                       http://www.sbfa.fr/
Key fingerprint = 0FF7 E906 FBAF FE95 FD89  250D 52B1 AE95 6006 F40C

------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/T476a1d7b83269775-Me5e205d80b9776ae87385457
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription

  reply	other threads:[~2021-02-23  9:22 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-21 22:31 Lyndon Nerenberg (VE7TFX/VE6BBM)
2021-02-21 23:01 ` Skip Tavakkolian
2021-02-21 23:19 ` Kurt H Maier
2021-02-22  1:24 ` Bakul Shah
2021-02-22 16:53   ` jas
2021-02-22 17:46     ` arnold
2021-02-22 18:28       ` tlaronde
2021-02-22 20:35         ` Lyndon Nerenberg (VE7TFX/VE6BBM)
2021-02-22 21:44           ` Charles Forsyth
2021-02-23  8:14             ` tlaronde
2021-02-23  8:58               ` arnold
2021-02-23  9:20                 ` tlaronde [this message]
2021-02-23  9:57                   ` arnold
2021-02-23 10:09                     ` tlaronde
2021-02-23  7:57           ` tlaronde
2021-02-22 22:01         ` Bakul Shah
2021-02-22 22:43           ` Charles Forsyth
2021-02-22 23:09             ` Bakul Shah
2021-02-22 23:56               ` Charles Forsyth
2021-02-23  0:13                 ` Bakul Shah
2021-02-23  0:03               ` Steffen Nurpmeso
2021-02-23  0:47                 ` Lyndon Nerenberg (VE7TFX/VE6BBM)
2021-02-23  4:41                   ` ori
2021-02-23  5:11                     ` Lyndon Nerenberg (VE7TFX/VE6BBM)
2021-02-23  5:16                     ` Bakul Shah
2021-02-24 13:48                   ` Steffen Nurpmeso
2021-03-08 22:11                     ` Jerome Ibanes
2021-02-24  0:33 Lyndon Nerenberg (VE7TFX/VE6BBM)

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210223092051.GA2248@polynum.com \
    --to=tlaronde@polynum.com \
    --cc=9fans@9fans.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).