I wonder what Professor Wirth's views might be on this.
From the book The School of Niklaus Wirth (>> The Art of Simplicity<<) ISBN 1-55860-723-4, the chapter by Michael Franz called Oberon - The Overlooked Jewel:
"I still vividly remember the day that With decided to replace the elegant data structure used in the compiler's symbol table handler by a mundane linear list. In the original compiler, the objects in the symbol table had been sorted in a tree data structure (in identifier lexical order) for fast access, with a separate linear list representing their declaration order. One day Wirth decided that there really weren't enough objects in a typical scope to make the sorted tree cost-effective. All of us Ph.D. students were horrified: it had taken time to implement the sorted tree, the solution was elegant, and it worked well - so why would one want to throw it away and replace it with something simpler, and even worse, something as prosaic as a linear list? But of course, Wirth was right, and the simplified compiler was both smaller and faster than its predecessor." The implementation using IF ... THEN chains is simple. If the most common cases are positioned first in the chain then the execution time for these cases is minimised. The compiler will be simpler, the implementation of the ELSE (or an error) is simple to implement and the compiler will be simple and fast. Looking through the body of Oberon code that we have what is the distribution of the number of cases? I realise we are talking about a new feature, but I still favour the simple solution, in keeping with the spirit of Oberon. John Stout [King George V Logo] John Stout Management Information Systems Coordinator Tel: 01704 530601 E-Mail: JSS@kgv.ac.uk Web: www.kgv.ac.uk Information contained in this e-mail is intended for the use of the addressee only and is confidential. Any dissemination, distribution, copying or use of this communication without prior permission of the addresseeis strictly prohibited. Every effort has been made to ensure that any attachment to this mail does not contain virus. King George V College has taken every reasonable precaution to minimise this risk, neither it nor the sender can accept liability for any damage which you sustain as a result of software viruses. You should carry outyour own virus checks before opening any attachments. [Think Before You Print]
Yes, The old man has been right most of the time, I agree. And I will have a royal battle to reduce the compiler construction back down to Wirthian elegance, that I also realize. But at the same time the code I produce is very elegant and sweet. On the basis of that I would say you are wrong in your statement that IF THEN can be made as efficient as a good case construct. Besides, a Case statement allows ranges like A..Z, a..z and so on, this has never been part of IF THEN, while in a properly constructed bin-tree it resolves itself. So since Wirth was first and foremost a teacher all his life, we could say that there are 2 learning opportunities here 1. to produce fast code. 2. to construct an elegant way of doing so. I think that the master himself also realized the issues you and I are bringing up, and did not see his way out of the predicament yet. And since he is about 80 now and since he still got a few irons in the fire this was left for a bit. Lastly Dijkstra taught that you should never limit yourself because of inefficient machines. But you should strive to generalize any language design solution to as many cases as possible, even if that slows your program execution down a bit. There were big arguments in the Algol design meetings about that. Some people then felt that you had to live with the equipment given and use it as efficiently as possible. Wirth no doubt knows that whole history even better than I do. In the mean time of course, the machine limitations of those days (it was the time of the vacuum tubes) have been solved a hundred times over, but we still are trying to live with the language limitations of some of the older languages. Ergo the numerical case statement is in the O-7 language report, but is has not been implemented yet. So I feel fully justified implementing it. The way how to, we can talk about. If the Oberon community is alive and well ten I am sure that the last word has not been spoken yet. Enjoy your day j. On Tue, Nov 10, 2015 at 3:23 PM, John Stout <JSS@kgv.ac.uk> wrote:
I wonder what Professor Wirth’s views might be on this.
From the book The School of Niklaus Wirth (>> The Art of Simplicity<<) ISBN 1-55860-723-4, the chapter by Michael Franz called Oberon – The Overlooked Jewel:
“I still vividly remember the day that With decided to replace the elegant data structure used in the compiler’s symbol table handler by a mundane linear list. In the original compiler, the objects in the symbol table had been sorted in a tree data structure (in identifier lexical order) for fast access, with a separate linear list representing their declaration order. One day Wirth decided that there really weren’t enough objects in a typical scope to make the sorted tree cost-effective. All of us Ph.D. students were horrified: it had taken *time* to implement the sorted tree, the solution was *elegant*, and it worked *well* – so why would one want to throw it away and replace it with something *simpler*, and even worse, something as prosaic as a linear list? But of course, Wirth was right, and the simplified compiler was both smaller and faster than its predecessor.”
The implementation using IF … THEN chains is simple. If the most common cases are positioned first in the chain then the execution time for these cases is minimised. The compiler will be simpler, the implementation of the ELSE (or an error) is simple to implement and the compiler will be simple and fast.
Looking through the body of Oberon code that we have what is the distribution of the number of cases? I realise we are talking about a new feature, but I still favour the simple solution, in keeping with the spirit of Oberon.
John Stout
[image: King George V Logo]
*John Stout* Management Information Systems Coordinator Tel: 01704 530601 E-Mail: JSS@kgv.ac.uk Web: www.kgv.ac.uk
Information contained in this e-mail is intended for the use of the addressee only and is confidential. Any dissemination, distribution, copying or use of this communication without prior permission of the addresseeis strictly prohibited.
Every effort has been made to ensure that any attachment to this mail does not contain virus. King George V College has taken every reasonable precaution to minimise this risk, neither it nor the sender can accept liability for any damage which you sustain as a result of software viruses. You should carry outyour own virus checks before opening any attachments.
[image: Think Before You Print]
-- Oberon@lists.inf.ethz.ch mailing list for ETH Oberon and related systems https://lists.inf.ethz.ch/mailman/listinfo/oberon
My 2cents: I assume Wirth did include all language elements that are needed by the compiler, as he may think: if you can write such a complex thing as a complier with it, the language is okay. Eg string (= special form of array) assignments - strictly speaking - are not needed. But as the Scanner needs strings quite intensively, Wirth included it in the language. If you read the compiler source code, you will find out that numerical array assignments are possible as well although not present in the language description. However Record assignments - although handy in certain cases - are not in the language, as the compiler does not need them. The same with the numerical CASE statement. There is no immediate need for it when writing the compiler. br Jörg
Am 16.11.2015 um 09:31 schrieb Jan de Kruyf <jan.de.kruyf@gmail.com>:
Yes, The old man has been right most of the time, I agree. And I will have a royal battle to reduce the compiler construction back down to Wirthian elegance, that I also realize. But at the same time the code I produce is very elegant and sweet. On the basis of that I would say you are wrong in your statement that IF THEN can be made as efficient as a good case construct. Besides, a Case statement allows ranges like A..Z, a..z and so on, this has never been part of IF THEN, while in a properly constructed bin-tree it resolves itself.
So since Wirth was first and foremost a teacher all his life, we could say that there are 2 learning opportunities here 1. to produce fast code. 2. to construct an elegant way of doing so.
I think that the master himself also realized the issues you and I are bringing up, and did not see his way out of the predicament yet. And since he is about 80 now and since he still got a few irons in the fire this was left for a bit.
Lastly Dijkstra taught that you should never limit yourself because of inefficient machines. But you should strive to generalize any language design solution to as many cases as possible, even if that slows your program execution down a bit. There were big arguments in the Algol design meetings about that. Some people then felt that you had to live with the equipment given and use it as efficiently as possible. Wirth no doubt knows that whole history even better than I do. In the mean time of course, the machine limitations of those days (it was the time of the vacuum tubes) have been solved a hundred times over, but we still are trying to live with the language limitations of some of the older languages. Ergo the numerical case statement is in the O-7 language report, but is has not been implemented yet.
So I feel fully justified implementing it. The way how to, we can talk about. If the Oberon community is alive and well ten I am sure that the last word has not been spoken yet.
Enjoy your day
j.
On Tue, Nov 10, 2015 at 3:23 PM, John Stout <JSS@kgv.ac.uk> wrote: I wonder what Professor Wirth’s views might be on this.
From the book The School of Niklaus Wirth (>> The Art of Simplicity<<) ISBN 1-55860-723-4, the chapter by Michael Franz called Oberon – The Overlooked Jewel:
“I still vividly remember the day that With decided to replace the elegant data structure used in the compiler’s symbol table handler by a mundane linear list. In the original compiler, the objects in the symbol table had been sorted in a tree data structure (in identifier lexical order) for fast access, with a separate linear list representing their declaration order. One day Wirth decided that there really weren’t enough objects in a typical scope to make the sorted tree cost-effective. All of us Ph.D. students were horrified: it had taken time to implement the sorted tree, the solution was elegant, and it worked well – so why would one want to throw it away and replace it with something simpler, and even worse, something as prosaic as a linear list? But of course, Wirth was right, and the simplified compiler was both smaller and faster than its predecessor.”
The implementation using IF … THEN chains is simple. If the most common cases are positioned first in the chain then the execution time for these cases is minimised. The compiler will be simpler, the implementation of the ELSE (or an error) is simple to implement and the compiler will be simple and fast.
Looking through the body of Oberon code that we have what is the distribution of the number of cases? I realise we are talking about a new feature, but I still favour the simple solution, in keeping with the spirit of Oberon.
John Stout
John Stout Management Information Systems Coordinator Tel: 01704 530601 E-Mail: JSS@kgv.ac.uk Web: www.kgv.ac.uk
Information contained in this e-mail is intended for the use of the addressee only and is confidential. Any dissemination, distribution, copying or use of this communication without prior permission of the addresseeis strictly prohibited.
Every effort has been made to ensure that any attachment to this mail does not contain virus. King George V College has taken every reasonable precaution to minimise this risk, neither it nor the sender can accept liability for any damage which you sustain as a result of software viruses. You should carry outyour own virus checks before opening any attachments.
-- 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 missed your post Jörg, sorry about that. I would say, yes. But at the same time the CASE constructions in the compiler via IF THEN are very verbose, and we can only guess about the execution time. I agree there was no immediate need for it, but at the same time he did put it in the language description, so here is a riddle. On the matter of record aggregate assignments: They are fine when the records are 1 deep, and even recommended since the compiler helps you to pick up initialization errors in the case you change the record. But on multilevel records (a record in a record) they very quickly become a very big pain. In any case I do like the new WHILE, mainly because, although it might not execute quite as quickly as an oldfashioned loop with random exits, it does force me to write clearer code. Then I wanted to ask you a question or 2: 1. have you used the CASE statement to separate records by extension? Can I have a base record and one extented base record and treat them each differently with CASE? (it is my lazy day you see.) 2. Is there any other O-7 compiler except the one for the RISC environment? cheers, j. On Mon, Nov 16, 2015 at 1:48 PM, Jörg Straube <joerg.straube@iaeth.ch> wrote:
My 2cents: I assume Wirth did include all language elements that are needed by the compiler, as he may think: if you can write such a complex thing as a complier with it, the language is okay.
Eg string (= special form of array) assignments - strictly speaking - are not needed. But as the Scanner needs strings quite intensively, Wirth included it in the language. If you read the compiler source code, you will find out that numerical array assignments are possible as well although not present in the language description. However Record assignments - although handy in certain cases - are not in the language, as the compiler does not need them.
The same with the numerical CASE statement. There is no immediate need for it when writing the compiler.
br Jörg
Am 16.11.2015 um 09:31 schrieb Jan de Kruyf <jan.de.kruyf@gmail.com>:
Yes, The old man has been right most of the time, I agree. And I will have a royal battle to reduce the compiler construction back down to Wirthian elegance, that I also realize. But at the same time the code I produce is very elegant and sweet. On the basis of that I would say you are wrong in your statement that IF THEN can be made as efficient as a good case construct. Besides, a Case statement allows ranges like A..Z, a..z and so on, this has never been part of IF THEN, while in a properly constructed bin-tree it resolves itself.
So since Wirth was first and foremost a teacher all his life, we could say that there are 2 learning opportunities here 1. to produce fast code. 2. to construct an elegant way of doing so.
I think that the master himself also realized the issues you and I are bringing up, and did not see his way out of the predicament yet. And since he is about 80 now and since he still got a few irons in the fire this was left for a bit.
Lastly Dijkstra taught that you should never limit yourself because of inefficient machines. But you should strive to generalize any language design solution to as many cases as possible, even if that slows your program execution down a bit. There were big arguments in the Algol design meetings about that. Some people then felt that you had to live with the equipment given and use it as efficiently as possible. Wirth no doubt knows that whole history even better than I do. In the mean time of course, the machine limitations of those days (it was the time of the vacuum tubes) have been solved a hundred times over, but we still are trying to live with the language limitations of some of the older languages. Ergo the numerical case statement is in the O-7 language report, but is has not been implemented yet.
So I feel fully justified implementing it. The way how to, we can talk about. If the Oberon community is alive and well ten I am sure that the last word has not been spoken yet.
Enjoy your day
j.
On Tue, Nov 10, 2015 at 3:23 PM, John Stout <JSS@kgv.ac.uk> wrote:
I wonder what Professor Wirth’s views might be on this.
From the book The School of Niklaus Wirth (>> The Art of Simplicity<<) ISBN 1-55860-723-4, the chapter by Michael Franz called Oberon – The Overlooked Jewel:
“I still vividly remember the day that With decided to replace the elegant data structure used in the compiler’s symbol table handler by a mundane linear list. In the original compiler, the objects in the symbol table had been sorted in a tree data structure (in identifier lexical order) for fast access, with a separate linear list representing their declaration order. One day Wirth decided that there really weren’t enough objects in a typical scope to make the sorted tree cost-effective. All of us Ph.D. students were horrified: it had taken *time* to implement the sorted tree, the solution was *elegant*, and it worked *well* – so why would one want to throw it away and replace it with something *simpler*, and even worse, something as prosaic as a linear list? But of course, Wirth was right, and the simplified compiler was both smaller and faster than its predecessor.”
The implementation using IF … THEN chains is simple. If the most common cases are positioned first in the chain then the execution time for these cases is minimised. The compiler will be simpler, the implementation of the ELSE (or an error) is simple to implement and the compiler will be simple and fast.
Looking through the body of Oberon code that we have what is the distribution of the number of cases? I realise we are talking about a new feature, but I still favour the simple solution, in keeping with the spirit of Oberon.
John Stout
[image: King George V Logo]
*John Stout* Management Information Systems Coordinator Tel: 01704 530601 E-Mail: JSS@kgv.ac.uk Web: www.kgv.ac.uk
Information contained in this e-mail is intended for the use of the addressee only and is confidential. Any dissemination, distribution, copying or use of this communication without prior permission of the addresseeis strictly prohibited.
Every effort has been made to ensure that any attachment to this mail does not contain virus. King George V College has taken every reasonable precaution to minimise this risk, neither it nor the sender can accept liability for any damage which you sustain as a result of software viruses. You should carry outyour own virus checks before opening any attachments.
[image: Think Before You Print]
-- 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 just picked up something else in the ADA best practice: "Use a sequence of assignments for an aggregation when measured performance indicates." And I remember now looking at ARM machine code produced by the Ada compiler: The mess produced was quite drastic. j. On Wed, Nov 18, 2015 at 12:23 PM, Jan de Kruyf <jan.de.kruyf@gmail.com> wrote:
I missed your post Jörg, sorry about that. I would say, yes. But at the same time the CASE constructions in the compiler via IF THEN are very verbose, and we can only guess about the execution time. I agree there was no immediate need for it, but at the same time he did put it in the language description, so here is a riddle.
On the matter of record aggregate assignments: They are fine when the records are 1 deep, and even recommended since the compiler helps you to pick up initialization errors in the case you change the record. But on multilevel records (a record in a record) they very quickly become a very big pain.
In any case I do like the new WHILE, mainly because, although it might not execute quite as quickly as an oldfashioned loop with random exits, it does force me to write clearer code.
Then I wanted to ask you a question or 2:
1. have you used the CASE statement to separate records by extension? Can I have a base record and one extented base record and treat them each differently with CASE? (it is my lazy day you see.)
2. Is there any other O-7 compiler except the one for the RISC environment?
cheers, j.
On Mon, Nov 16, 2015 at 1:48 PM, Jörg Straube <joerg.straube@iaeth.ch> wrote:
My 2cents: I assume Wirth did include all language elements that are needed by the compiler, as he may think: if you can write such a complex thing as a complier with it, the language is okay.
Eg string (= special form of array) assignments - strictly speaking - are not needed. But as the Scanner needs strings quite intensively, Wirth included it in the language. If you read the compiler source code, you will find out that numerical array assignments are possible as well although not present in the language description. However Record assignments - although handy in certain cases - are not in the language, as the compiler does not need them.
The same with the numerical CASE statement. There is no immediate need for it when writing the compiler.
br Jörg
Am 16.11.2015 um 09:31 schrieb Jan de Kruyf <jan.de.kruyf@gmail.com>:
Yes, The old man has been right most of the time, I agree. And I will have a royal battle to reduce the compiler construction back down to Wirthian elegance, that I also realize. But at the same time the code I produce is very elegant and sweet. On the basis of that I would say you are wrong in your statement that IF THEN can be made as efficient as a good case construct. Besides, a Case statement allows ranges like A..Z, a..z and so on, this has never been part of IF THEN, while in a properly constructed bin-tree it resolves itself.
So since Wirth was first and foremost a teacher all his life, we could say that there are 2 learning opportunities here 1. to produce fast code. 2. to construct an elegant way of doing so.
I think that the master himself also realized the issues you and I are bringing up, and did not see his way out of the predicament yet. And since he is about 80 now and since he still got a few irons in the fire this was left for a bit.
Lastly Dijkstra taught that you should never limit yourself because of inefficient machines. But you should strive to generalize any language design solution to as many cases as possible, even if that slows your program execution down a bit. There were big arguments in the Algol design meetings about that. Some people then felt that you had to live with the equipment given and use it as efficiently as possible. Wirth no doubt knows that whole history even better than I do. In the mean time of course, the machine limitations of those days (it was the time of the vacuum tubes) have been solved a hundred times over, but we still are trying to live with the language limitations of some of the older languages. Ergo the numerical case statement is in the O-7 language report, but is has not been implemented yet.
So I feel fully justified implementing it. The way how to, we can talk about. If the Oberon community is alive and well ten I am sure that the last word has not been spoken yet.
Enjoy your day
j.
On Tue, Nov 10, 2015 at 3:23 PM, John Stout <JSS@kgv.ac.uk> wrote:
I wonder what Professor Wirth’s views might be on this.
From the book The School of Niklaus Wirth (>> The Art of Simplicity<<) ISBN 1-55860-723-4, the chapter by Michael Franz called Oberon – The Overlooked Jewel:
“I still vividly remember the day that With decided to replace the elegant data structure used in the compiler’s symbol table handler by a mundane linear list. In the original compiler, the objects in the symbol table had been sorted in a tree data structure (in identifier lexical order) for fast access, with a separate linear list representing their declaration order. One day Wirth decided that there really weren’t enough objects in a typical scope to make the sorted tree cost-effective. All of us Ph.D. students were horrified: it had taken *time* to implement the sorted tree, the solution was *elegant*, and it worked *well* – so why would one want to throw it away and replace it with something *simpler*, and even worse, something as prosaic as a linear list? But of course, Wirth was right, and the simplified compiler was both smaller and faster than its predecessor.”
The implementation using IF … THEN chains is simple. If the most common cases are positioned first in the chain then the execution time for these cases is minimised. The compiler will be simpler, the implementation of the ELSE (or an error) is simple to implement and the compiler will be simple and fast.
Looking through the body of Oberon code that we have what is the distribution of the number of cases? I realise we are talking about a new feature, but I still favour the simple solution, in keeping with the spirit of Oberon.
John Stout
[image: King George V Logo]
*John Stout* Management Information Systems Coordinator Tel: 01704 530601 E-Mail: JSS@kgv.ac.uk Web: www.kgv.ac.uk
Information contained in this e-mail is intended for the use of the addressee only and is confidential. Any dissemination, distribution, copying or use of this communication without prior permission of the addresseeis strictly prohibited.
Every effort has been made to ensure that any attachment to this mail does not contain virus. King George V College has taken every reasonable precaution to minimise this risk, neither it nor the sender can accept liability for any damage which you sustain as a result of software viruses. You should carry outyour own virus checks before opening any attachments.
[image: Think Before You Print]
-- 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
From: Oberon [mailto:oberon-bounces@lists.inf.ethz.ch] On Behalf Of Jan de Kruyf Sent: Wednesday, 18 November 2015 9:00 PM To: ETH Oberon and related systems Subject: Re: [Oberon] Numerical CASE Statements in Project Oberon
2. Is there any other O-7 compiler except the one for the RISC environment?
Yes - there are several. The ARM O-7 compiler used in our Astrobe development system targets ARM Cortex-M3 and Cortex-M4 devices and is a *complete* implementation (including both numeric and type-extension CASE statements) of the March 2015 Revision of the Language Report: http://www.astrobe.com There are also some other O-7 compilers listed on David Evan's site: http://oberon07.com/compilers.xhtml Regards, Chris Burrows CFB Software http://www.astrobe.com
Thanks Chris, I am not into buying anything at the moment (unfortunately, I am looking for work like never before) but you will certainly be welcome to the code I am cooking up. So far there is only 3 rather smallish new procedures in OSG in which some Wirthian magic is used, but the rest should plonk straight into any compiler except of course that I use Wirthian OSG.Items. But I am sure you will know what to do with those. Cheers, j. On Wed, Nov 18, 2015 at 2:45 PM, Chris Burrows <chris@cfbsoftware.com> wrote:
From: Oberon [mailto:oberon-bounces@lists.inf.ethz.ch] On Behalf Of Jan de Kruyf Sent: Wednesday, 18 November 2015 9:00 PM To: ETH Oberon and related systems Subject: Re: [Oberon] Numerical CASE Statements in Project Oberon
2. Is there any other O-7 compiler except the one for the RISC environment?
Yes - there are several. The ARM O-7 compiler used in our Astrobe development system targets ARM Cortex-M3 and Cortex-M4 devices and is a *complete* implementation (including both numeric and type-extension CASE statements) of the March 2015 Revision of the Language Report:
There are also some other O-7 compilers listed on David Evan's site:
http://oberon07.com/compilers.xhtml
Regards, Chris Burrows
CFB Software http://www.astrobe.com
-- Oberon@lists.inf.ethz.ch mailing list for ETH Oberon and related systems https://lists.inf.ethz.ch/mailman/listinfo/oberon
Jan, Any change requires a need. What is the need? -Doug On 11/18/2015 6:24 AM, Jan de Kruyf wrote:
Thanks Chris,
I am not into buying anything at the moment (unfortunately, I am looking for work like never before) but you will certainly be welcome to the code I am cooking up. So far there is only 3 rather smallish new procedures in OSG in which some Wirthian magic is used, but the rest should plonk straight into any compiler except of course that I use Wirthian OSG.Items. But I am sure you will know what to do with those.
Cheers,
j.
On Wed, Nov 18, 2015 at 2:45 PM, Chris Burrows <chris@cfbsoftware.com <mailto:chris@cfbsoftware.com>> wrote:
> > From: Oberon [mailto:oberon-bounces@lists.inf.ethz.ch <mailto:oberon-bounces@lists.inf.ethz.ch>] On Behalf Of > Jan de Kruyf > Sent: Wednesday, 18 November 2015 9:00 PM > To: ETH Oberon and related systems > Subject: Re: [Oberon] Numerical CASE Statements in Project Oberon > > 2. Is there any other O-7 compiler except the one for the RISC > environment? >
Yes - there are several. The ARM O-7 compiler used in our Astrobe development system targets ARM Cortex-M3 and Cortex-M4 devices and is a *complete* implementation (including both numeric and type-extension CASE statements) of the March 2015 Revision of the Language Report:
There are also some other O-7 compilers listed on David Evan's site:
http://oberon07.com/compilers.xhtml
Regards, Chris Burrows
CFB Software http://www.astrobe.com
-- Oberon@lists.inf.ethz.ch <mailto: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
Douglas, hallo. 1. Me trying to keep my brain from bitrot by trying to do something nice. 2. Me finding a case statement easier and more elegant to program and maintain than 'if then else'. 3. Me needing the odd discussion with you guys about some technical challenge. Are those needs valid enough? :) Cheers, j. On Thu, Nov 19, 2015 at 10:00 PM, Douglas G. Danforth < danforth@greenwoodfarm.com> wrote:
Jan, Any change requires a need. What is the need? -Doug
On 11/18/2015 6:24 AM, Jan de Kruyf wrote:
Thanks Chris,
I am not into buying anything at the moment (unfortunately, I am looking for work like never before) but you will certainly be welcome to the code I am cooking up. So far there is only 3 rather smallish new procedures in OSG in which some Wirthian magic is used, but the rest should plonk straight into any compiler except of course that I use Wirthian OSG.Items. But I am sure you will know what to do with those.
Cheers,
j.
On Wed, Nov 18, 2015 at 2:45 PM, Chris Burrows <chris@cfbsoftware.com> wrote:
From: Oberon [mailto:oberon-bounces@lists.inf.ethz.ch] On Behalf Of Jan de Kruyf Sent: Wednesday, 18 November 2015 9:00 PM To: ETH Oberon and related systems Subject: Re: [Oberon] Numerical CASE Statements in Project Oberon
2. Is there any other O-7 compiler except the one for the RISC environment?
Yes - there are several. The ARM O-7 compiler used in our Astrobe development system targets ARM Cortex-M3 and Cortex-M4 devices and is a *complete* implementation (including both numeric and type-extension CASE statements) of the March 2015 Revision of the Language Report:
There are also some other O-7 compilers listed on David Evan's site:
http://oberon07.com/compilers.xhtml
Regards, Chris Burrows
CFB Software http://www.astrobe.com
-- 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 systemshttps://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
Jan, The language has that implemented. Why are you trying to "re" implement it? -Doug On 11/21/2015 1:14 AM, Jan de Kruyf wrote:
2. Me finding a case statement easier and more elegant to program and maintain than 'if then else'.
In the compiler of ProjectOberon (ORP.Mod) the numerical CASE is not (yet) implemented. Jörg Gruss, Jörg
Am 21.11.2015 um 10:45 schrieb Douglas G. Danforth <danforth@greenwoodfarm.com>:
Jan, The language has that implemented. Why are you trying to "re" implement it? -Doug
On 11/21/2015 1:14 AM, Jan de Kruyf wrote: 2. Me finding a case statement easier and more elegant to program and maintain than 'if then else'.
-- Oberon@lists.inf.ethz.ch mailing list for ETH Oberon and related systems https://lists.inf.ethz.ch/mailman/listinfo/oberon
Douglas, Only in the O-7 language document. In the compiler for the RISC system it is missing. j. On Sat, Nov 21, 2015 at 11:45 AM, Douglas G. Danforth < danforth@greenwoodfarm.com> wrote:
Jan, The language has that implemented. Why are you trying to "re" implement it? -Doug
On 11/21/2015 1:14 AM, Jan de Kruyf wrote:
2. Me finding a case statement easier and more elegant to program and maintain than 'if then else'.
-- Oberon@lists.inf.ethz.ch mailing list for ETH Oberon and related systems https://lists.inf.ethz.ch/mailman/listinfo/oberon
Most “modern” compilers generate truly terrible code if optimization is turned off, and rely on the optimizers to clean it up. I can’t remember now who wrote it, but Wirth’s compilers demonstrated pretty solidly that it was a lot easier, all around, to generate good code in the first place. This reduced the ability of the optimizer to “improve” it, but the final code was frequently better than what was produced by the “modern” “production quality” compilers. (The piece mentioned that only IBM’s RS-6000 compiler did better than Wirth’s Oberon compilers.) The ARM instruction set is somewhat of a mess. (It isn’t nearly as bad as the x86, but still...) --John R. Strohm From: Jan de Kruyf Sent: Wednesday, November 18, 2015 4:29 AM To: ETH Oberon and related systems Subject: Re: [Oberon] Numerical CASE Statements in Project Oberon I just picked up something else in the ADA best practice: "Use a sequence of assignments for an aggregation when measured performance indicates." And I remember now looking at ARM machine code produced by the Ada compiler: The mess produced was quite drastic. j. --- This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus
On Mon, Nov 16, 2015 at 1:07 AM Jan de Kruyf <jan.de.kruyf@gmail.com> wrote:
And since he is about 80 now and since he still got a few irons in the fire this was left for a bit.
Some things will always be left as an exercise for the reader. ;)
participants (7)
-
Chris Burrows -
Douglas G. Danforth -
Jack Johnson -
Jan de Kruyf -
John R. Strohm -
John Stout -
Jörg Straube