🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.misc
Article #3744

Re: Machine Language Typing (Was Re: A Hard Problem for Static Type Systems)

#3744
From: Stephen P Spackman
Date: Fri, 03 May 1991 23:25
48 lines
3654 bytes
In article <OLSON.91May3124040@lear.juliet.ll.mit.edu> olson@juliet.ll.mit.edu ( Steve Olson) writes:

|In article <STEPHEN.91May3051250@estragon.uchicago.edu> stephen@estragon.uchicago.edu (Stephen P Spackman) writes:
|   I have to disagree. A good machine language (one with no Catch Fire &
|   Burn instructions) for a machine without programmer-visible caching is
|   both strongly and statically typed, simply by virtue of the fact that
|   all consequences of a given machine state are defined. You are making
|   the mistake of imagining that addresses and ints and so forth exist in
|   object code; but they don't. Those are abstractions in your mind.
|   Ultimately they are NOT represented in the machine model. Bits go
|   here, bits go there, the memory holds bits and nothing else. The
|   (only) data type is the bit....
|
|If one puts an integer into a floating point instruction, one might
|get a deteriminstic result. But so what?  The result wouldn't be
|meaningful.  I might as well argue the only real data type is the
|voltage level.  

I don't believe so, because the machine language is defined in terms
of bits and not voltages. If we were looking at hardware bus
behaviours at 100MHz or more, I'd agree with you.

|   I'm really not trying to be silly here. The fact that machines are
|   strongly typed underlyingly is the thing that makes secure
|   implementations possible. If something could happen to be in memory
|   that wasn't a bit, no language layered above could ever have
|   guaranteed behaviour... (which is why it's bad when the hardware fails
|   - untrapped type violations then CAN occur.... :-).
|
|According to your definitions a weakly typed language is impossible on
|deterministic hardware.  Depending on how you set up your starting 
|definitions, there might be some narrow, literal truth to it, but it
|dosen't seem like a terribly useful way to think about programming languages.

Oh, no! What the language does NOT define is of the essence. Each
impemetation is in some sense underlyingly typed, but that doesn't
reflect on the language at all. Compilers will be specified in terms
of language semantics, not machine code translations....

But I will admit to the philosophical stance that "untyped" data do
not exist - it may be convenient to pretend otherwise, but ultimately
the only reason a function should not validate its arguments is if it
is intended to process non-data - if it's a GIGO engine. And I just
don't see how this can possibly be relevant to any human endeavour.
----------------------------------------------------------------------
stephen p spackman         Center for Information and Language Studies
systems analyst                                  University of Chicago
----------------------------------------------------------------------
Technical Details
Message-ID: <STEPHEN.91May3172547@pesto.uchicago.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uwm.edu!ux1.cso.uiuc.edu!midway!midway!stephen
References: <2392@optima.cs.arizona.edu> <3156@opal.cs.tu-berlin.de> <ROCKWELL.91Apr25193638@socrates.socrates.umd.edu> <51984@nigel.ee.udel.edu> <STEPHEN.91May3051250@estragon.uchicago.edu> <OLSON.91May3124040@lear.juliet.ll.mit.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uwm.edu!ux1.cso.uiuc.edu!midway!midway!stephen
From: stephen@pesto.uchicago.edu (Stephen P Spackman)
Newsgroups: comp.lang.misc
Subject: Re: Machine Language Typing (Was Re: A Hard Problem for Static Type Systems)
Message-ID: <STEPHEN.91May3172547@pesto.uchicago.edu>
Date: 3 May 91 23:25:47 GMT
References: <2392@optima.cs.arizona.edu> <3156@opal.cs.tu-berlin.de>
 <ROCKWELL.91Apr25193638@socrates.socrates.umd.edu>
 <51984@nigel.ee.udel.edu> <STEPHEN.91May3051250@estragon.uchicago.edu>
 <OLSON.91May3124040@lear.juliet.ll.mit.edu>
Sender: news@midway.uchicago.edu (NewsMistress)
Organization: University of Chicago CILS
Lines: 48
In-Reply-To: olson@juliet.ll.mit.edu's message of 3 May 91 18: 40:40 GMT