[Info-vax] Rust as a HS language, was: Re: Quiet?
Arne Vajhøj
arne at vajhoej.dk
Wed Apr 6 09:00:06 EDT 2022
On 4/6/2022 8:30 AM, Simon Clubley wrote:
> On 2022-04-05, Chris Townley <news at cct-net.co.uk> wrote:
>> On 06/04/2022 00:14, Arne Vajhøj wrote:
>>> On 4/5/2022 1:25 PM, Simon Clubley wrote:
>>>> On 2022-04-04, Arne Vajhøj <arne at vajhoej.dk> wrote:
>>>>> On 4/4/2022 1:56 PM, Simon Clubley wrote:
>>>>>>
>>>>>> Why wasn't Python 3 just another language mode in the existing compiler
>>>>>> instead of being a whole different compiler ?
>>>>>
>>>>> (ignoring that I would not call Python a compiler)
>>>>>
>>>>
>>>> In that case, would you have said (for example) UCSD Pascal wasn't
>>>> a compiler ?
>>>
>>> I have never used USCD Pascal, but I assume that it has a compilation
>>> step, so NO.
>>>
>>>> Python can output .pyc files but also has a way of running code
>>>> interactively if desired.
>>>
>>> Modules get saved as .pyc files when first used.
>>>
>>> I would call that "caching of intermediate code for
>>> interpretation" and not "compilation" but the difference
>>> between "caching of intermediate code for interpretation"
>>> and "JIT compilation" is pretty thin.
>>>
>>> But for no other reasons than common custom, then
>>> I do not consider Python (CPython that is)
>>> compiled.
>>
>> UCSD 'compilers' famously compiled to a pseudo code that was then
>> interpreted. Didn't go down well then...
>>
>
> Exactly why I picked that example. Its pretty much the same thing
> as what Python does.
If the compilation is part of the build process then it is not the
same.
> Another example, closer to home: Is TPU a compiled language ?
Yes.
You take your TPU source, you build it to a section file
and you distribute that section file.
Arne
More information about the Info-vax
mailing list