Type compatibility in Oberon
Oberon as it is defined in the report leaves some parts needed for low level programming to the implementation.
At the heart the problem appears to be two-fold: a) the language leaves certain things undefined, and b) in order to truly implement an entire system like the Oberon system, one has to cheat (at least a little). For example, today it is not guaranteed that a program compiled with two different implementations of the same report behave in the same way.
I agree that you have to have a certain freedom in implementation. Eg the whole telecom industry only defines the interface between systems (exact semantic and presentation layer) but not the implementation of this interface. In Oberon the semantic and syntax is addressed but the presentation layer (key for low level programming) is totally left to the compiler. Most probably NW didn’t want to specify the endianess nor the register size of the underlying HW. That is okay. But leaving this topic totally to the compiler and not addressing it in the language, is in my point of view, not optimal. The topic how to solve this dilemma is not easy. How to balance the two sides: on one side being high level and abstract things away and on the other side be low level enough to allow register programming if needed. Eg define the exact semantic of hex notation would help: Are hex literals totally identical to decimal literals (with INTEGER sign rules) or does hex notation allow to represent 1:1 values of the underlying registers (=neglecting / overwriting INTEGER sign rules and specify the value 1:1 with the underlying endianness)? This must be part of the language. Bit numbering is another topic that is totally neglected in Oberon. In my point of view it does not hurt to define bit 0 in a SET is the rightmost. As the compiler knows the endianness of the underlying CPU he either maps the bit nbr 1:1 or calculates (register size - bit nbr). br Jörg
Am 01.05.2020 um 11:08 schrieb Andreas Pirklbauer <andreas_pirklbauer@yahoo.com>:
Oberon as it is defined in the report leaves some parts needed for low level programming to the implementation.
At the heart the problem appears to be two-fold: a) the language leaves certain things undefined, and b) in order to truly implement an entire system like the Oberon system, one has to cheat (at least a little). For example, today it is not guaranteed that a program compiled with two different implementations of the same report behave in the same way.
-- Oberon@lists.inf.ethz.ch mailing list for ETH Oberon and related systems https://lists.inf.ethz.ch/mailman/listinfo/oberon
Not exactly. This amended statement is more accurate: "It is not guaranteed that a program THAT USES UNDEFINED FEATURES compiled with two different implementations of the same report behave in the same way." I find that neither surprising nor anything to be concerned about. I sincerely hope that an Oberon programmer would not assume otherwise. Regards, Chris Burrows CFB Software https://www.astrobe.com
-----Original Message----- From: Oberon [mailto:oberon-bounces@lists.inf.ethz.ch] On Behalf Of Andreas Pirklbauer Sent: Friday, 1 May 2020 6:36 PM To: Oberon List Subject: [Oberon] Type compatibility in Oberon
Oberon as it is defined in the report leaves some parts needed for low level programming to the implementation.
At the heart the problem appears to be two-fold: a) the language leaves certain things undefined, and b) in order to truly implement an entire system like the Oberon system, one has to cheat (at least a little). For example, today it is not guaranteed that a program compiled with two different implementations of the same report behave in the same way.
-- Oberon@lists.inf.ethz.ch mailing list for ETH Oberon and related systems https://lists.inf.ethz.ch/mailman/listinfo/oberon
Is using 90909090H an undefined feature? What value does it represent? br Jörg
Am 01.05.2020 um 14:13 schrieb Chris Burrows <chris@cfbsoftware.com>:
Not exactly. This amended statement is more accurate:
"It is not guaranteed that a program THAT USES UNDEFINED FEATURES compiled with two different implementations of the same report behave in the same way."
I find that neither surprising nor anything to be concerned about. I sincerely hope that an Oberon programmer would not assume otherwise.
Regards, Chris Burrows CFB Software https://www.astrobe.com
-----Original Message----- From: Oberon [mailto:oberon-bounces@lists.inf.ethz.ch] On Behalf Of Andreas Pirklbauer Sent: Friday, 1 May 2020 6:36 PM To: Oberon List Subject: [Oberon] Type compatibility in Oberon
Oberon as it is defined in the report leaves some parts needed for low level programming to the implementation.
At the heart the problem appears to be two-fold: a) the language leaves certain things undefined, and b) in order to truly implement an entire system like the Oberon system, one has to cheat (at least a little). For example, today it is not guaranteed that a program compiled with two different implementations of the same report behave in the same way.
-- Oberon@lists.inf.ethz.ch mailing list for ETH Oberon and related systems https://lists.inf.ethz.ch/mailman/listinfo/oberon
-- Oberon@lists.inf.ethz.ch mailing list for ETH Oberon and related systems https://lists.inf.ethz.ch/mailman/listinfo/oberon
Check with your supplier's compiler documentation to see what range of values are allowed. If it is not specified contact their technical support.
-----Original Message----- From: Joerg [mailto:joerg.straube@iaeth.ch] Sent: Friday, 1 May 2020 10:39 PM To: chris@cfbsoftware.com; ETH Oberon and related systems Subject: Re: [Oberon] Type compatibility in Oberon
Is using 90909090H an undefined feature? What value does it represent?
br J rg
Am 01.05.2020 um 14:13 schrieb Chris Burrows <chris@cfbsoftware.com>:
?Not exactly. This amended statement is more accurate:
"It is not guaranteed that a program THAT USES UNDEFINED FEATURES compiled with two different implementations of the same report behave in the same way."
I find that neither surprising nor anything to be concerned about. I sincerely hope that an Oberon programmer would not assume otherwise.
Regards, Chris Burrows CFB Software https://www.astrobe.com
-----Original Message----- From: Oberon [mailto:oberon-bounces@lists.inf.ethz.ch] On Behalf Of Andreas Pirklbauer Sent: Friday, 1 May 2020 6:36 PM To: Oberon List Subject: [Oberon] Type compatibility in Oberon
Oberon as it is defined in the report leaves some parts needed for low level programming to the implementation.
At the heart the problem appears to be two-fold: a) the language leaves certain things undefined, and b) in order to truly implement an entire system like the Oberon system, one has to cheat (at least a little). For example, today it is not guaranteed that a program compiled with two different implementations of the same report behave in the same way.
-- Oberon@lists.inf.ethz.ch mailing list for ETH Oberon and related systems https://lists.inf.ethz.ch/mailman/listinfo/oberon
-- Oberon@lists.inf.ethz.ch mailing list for ETH Oberon and related systems https://lists.inf.ethz.ch/mailman/listinfo/oberon
wrong answer😊 I can not be left to the compiler to decide whether the semantic of a decimal literal and a hex literal differ or not. Jörg
Am 01.05.2020 um 15:34 schrieb Chris Burrows <chris@cfbsoftware.com>:
Check with your supplier's compiler documentation to see what range of values are allowed. If it is not specified contact their technical support.
-----Original Message----- From: Joerg [mailto:joerg.straube@iaeth.ch] Sent: Friday, 1 May 2020 10:39 PM To: chris@cfbsoftware.com; ETH Oberon and related systems Subject: Re: [Oberon] Type compatibility in Oberon
Is using 90909090H an undefined feature? What value does it represent?
br J rg
Am 01.05.2020 um 14:13 schrieb Chris Burrows <chris@cfbsoftware.com>:
?Not exactly. This amended statement is more accurate:
"It is not guaranteed that a program THAT USES UNDEFINED FEATURES compiled with two different implementations of the same report behave in the same way."
I find that neither surprising nor anything to be concerned about. I sincerely hope that an Oberon programmer would not assume otherwise.
Regards, Chris Burrows CFB Software https://www.astrobe.com
-----Original Message----- From: Oberon [mailto:oberon-bounces@lists.inf.ethz.ch] On Behalf Of Andreas Pirklbauer Sent: Friday, 1 May 2020 6:36 PM To: Oberon List Subject: [Oberon] Type compatibility in Oberon
Oberon as it is defined in the report leaves some parts needed for low level programming to the implementation.
At the heart the problem appears to be two-fold: a) the language leaves certain things undefined, and b) in order to truly implement an entire system like the Oberon system, one has to cheat (at least a little). For example, today it is not guaranteed that a program compiled with two different implementations of the same report behave in the same way.
-- Oberon@lists.inf.ethz.ch mailing list for ETH Oberon and related systems https://lists.inf.ethz.ch/mailman/listinfo/oberon
-- Oberon@lists.inf.ethz.ch mailing list for ETH Oberon and related systems https://lists.inf.ethz.ch/mailman/listinfo/oberon
-- Oberon@lists.inf.ethz.ch mailing list for ETH Oberon and related systems https://lists.inf.ethz.ch/mailman/listinfo/oberon
I didn't say it should. You would need to know what range of values INTEGER could assume and how values outside of that range would be handled.
-----Original Message----- From: Joerg [mailto:joerg.straube@iaeth.ch] Sent: Friday, 1 May 2020 11:11 PM To: chris@cfbsoftware.com; ETH Oberon and related systems Subject: Re: [Oberon] Type compatibility in Oberon
wrong answer?? I can not be left to the compiler to decide whether the semantic of a decimal literal and a hex literal differ or not.
J rg
Am 01.05.2020 um 15:34 schrieb Chris Burrows <chris@cfbsoftware.com>:
?Check with your supplier's compiler documentation to see what range of values are allowed. If it is not specified contact their technical support.
-----Original Message----- From: Joerg [mailto:joerg.straube@iaeth.ch] Sent: Friday, 1 May 2020 10:39 PM To: chris@cfbsoftware.com; ETH Oberon and related systems Subject: Re: [Oberon] Type compatibility in Oberon
Is using 90909090H an undefined feature? What value does it represent?
br J rg
Am 01.05.2020 um 14:13 schrieb Chris Burrows <chris@cfbsoftware.com>:
?Not exactly. This amended statement is more accurate:
"It is not guaranteed that a program THAT USES UNDEFINED FEATURES compiled with two different implementations of the same report behave in the same way."
I find that neither surprising nor anything to be concerned about. I sincerely hope that an Oberon programmer would not assume otherwise.
Regards, Chris Burrows CFB Software https://www.astrobe.com
-----Original Message----- From: Oberon [mailto:oberon-bounces@lists.inf.ethz.ch] On Behalf Of Andreas Pirklbauer Sent: Friday, 1 May 2020 6:36 PM To: Oberon List Subject: [Oberon] Type compatibility in Oberon
Oberon as it is defined in the report leaves some parts needed for low level programming to the implementation.
At the heart the problem appears to be two-fold: a) the language leaves certain things undefined, and b) in order to truly implement an entire system like the Oberon system, one has to cheat (at least a little). For example, today it is not guaranteed that a program compiled with two different implementations of the same report behave in the same way.
-- Oberon@lists.inf.ethz.ch mailing list for ETH Oberon and related systems https://lists.inf.ethz.ch/mailman/listinfo/oberon
-- Oberon@lists.inf.ethz.ch mailing list for ETH Oberon and related systems https://lists.inf.ethz.ch/mailman/listinfo/oberon
-- Oberon@lists.inf.ethz.ch mailing list for ETH Oberon and related systems https://lists.inf.ethz.ch/mailman/listinfo/oberon
participants (3)
-
Andreas Pirklbauer -
Chris Burrows -
Joerg