Re: [Oberon] Hennessy.Mod 64kB limit
@ Skulski, Wojciech It's probably a matter of discretion. However, since I have studied the Oberon System quite intensively now, I can confirm that there are quite a few hacks, at least in my humble view, in both the inner and outer modules. I have tried to remove some of them, for example in Fonts.Mod. I see a certain contradiction between what is preached and what is actually done by the preachers. Swiss are pragmatics, once more ;-) Best R. --------------------- Skulski, Wojciech wrote: [....] The bottom line: If the community spent thirty years developing a very powerful abstract language where hacks are supposedly not necessary, then the community should avoid hacks. Especially after writing so many books and articles on the merits of good programming. What I have shown above should not be allowed. If it has become a habit then something is badly missing in the language. Either the Gospel is not really the Gospel, or the language is missing some crucial features which are then emulated with pieces of nasty code. Wojtek
Rochus wrote:
I see a certain contradiction between what is preached and what is actually done by the preachers.
This would be OK if it was done right. The following code is syntactically correct but it cannot be "right". SYSTEM.PUT(adr, (offset MOD 1000000H) + 0F7000000H);
Swiss are pragmatics, once more ;-)
This could be accepted if they wrote comments in their code. If the purpose of programming is to confuse the enemy, then everything is OK of course. (The enemy being everyone except the author.) W
Wojtek One could obviously write: CONST (* branch conditions *) MI = 0; EQ = 1; LT = 5; LE = 6, ALWAYS = 7; CondOffset = 01000000H; (* instruction formats *) RegisterInstruction0 = 0; RegisterInstruction1 = 1; MemoryInstruction = 2; BranchInstruction = 3; InstOffset = 40000000H; U = 20000000H; V = 10000000H; SYSTEM.PUT(address, BranchInstruction*InstOffset + ALWAYS*CondOffset + U + V + offset MOD CondOffset); br Jörg -----Original Message----- From: Oberon <oberon-bounces@lists.inf.ethz.ch> On Behalf Of Skulski, Wojciech Sent: Tuesday, February 18, 2020 4:58 PM To: rochus.keller@bluewin.ch; ETH Oberon and related systems <oberon@lists.inf.ethz.ch> Subject: Re: [Oberon] Hennessy.Mod 64kB limit Rochus wrote:
I see a certain contradiction between what is preached and what is actually done by the preachers.
This would be OK if it was done right. The following code is syntactically correct but it cannot be "right". SYSTEM.PUT(adr, (offset MOD 1000000H) + 0F7000000H);
Swiss are pragmatics, once more ;-)
This could be accepted if they wrote comments in their code. If the purpose of programming is to confuse the enemy, then everything is OK of course. (The enemy being everyone except the author.) W -- Oberon@lists.inf.ethz.ch mailing list for ETH Oberon and related systems https://lists.inf.ethz.ch/mailman/listinfo/oberon
participants (3)
-
Joerg -
rochus.keller@bluewin.ch -
Skulski, Wojciech