Math.Mod / compile rrror (to many digits)
Dear all, i tried to compile the Module "Math.mod" (12.10.2013, ../wirth/ProjectOberon/Sources/Math.Mod.txt) and got a dozen "to many digit" compile errors . Looks like some constant assignments are to long. My question: Is the bug in Math Module or is the compiler wrong here? I use the Oberon-Image (RISC.IMG, 28.03.2014) from Paul Reed´s "Project Oberon"-Website with the nice "Oberon RISC Emulator" from Peter De Wachter. BW, Volkert
Dear all, is this a bug in the compiler or a bug in the "Math.Mod"? I ask, because NW's "Math.Mod" is from last December and i would assume, that is compileable with his "Oberon RISC Compiler". BW, Volkert Am 01.04.2014 07:04, schrieb Volkert Barr:
Dear all,
i tried to compile the Module "Math.mod" (12.10.2013, ../wirth/ProjectOberon/Sources/Math.Mod.txt) and got a dozen "to many digit" compile errors . Looks like some constant assignments are to long. My question: Is the bug in Math Module or is the compiler wrong here?
I use the Oberon-Image (RISC.IMG, 28.03.2014) from Paul Reed´s "Project Oberon"-Website with the nice "Oberon RISC Emulator" from Peter De Wachter.
BW, Volkert -- Oberon@lists.inf.ethz.ch mailing list for ETH Oberon and related systems https://lists.inf.ethz.ch/mailman/listinfo/oberon
Am 01.04.2014 07:04, schrieb Volkert Barr:
i tried to compile the Module "Math.mod" (12.10.2013, ../wirth/ProjectOberon/Sources/Math.Mod.txt) and got a dozen "to many digit" compile errors . Looks like some constant assignments are to long. My question: Is the bug in Math Module or is the compiler wrong here?
These errors no longer appear when you use the latest sources (ORS, ORP and ORG) of the compiler updated 10 Apr 2014: http://www.inf.ethz.ch/personal/wirth/ProjectOberon/ Regards, Chris Burrows CFB Software http://www.cfbsoftware.com
Am 11.04.2014 16:16, schrieb Chris Burrows:
Am 01.04.2014 07:04, schrieb Volkert Barr:
i tried to compile the Module "Math.mod" (12.10.2013, ../wirth/ProjectOberon/Sources/Math.Mod.txt) and got a dozen "to many digit" compile errors . Looks like some constant assignments are to long. My question: Is the bug in Math Module or is the compiler wrong here?
These errors no longer appear when you use the latest sources (ORS, ORP and ORG) of the compiler updated 10 Apr 2014:
http://www.inf.ethz.ch/personal/wirth/ProjectOberon/
Regards,
Chris Burrows CFB Software http://www.cfbsoftware.com Thanks for the hint. I will test it this weekend.
BW, Volkert
Am 11.04.2014 17:43, schrieb volkert@nivoba.de:
Am 11.04.2014 16:16, schrieb Chris Burrows:
Am 01.04.2014 07:04, schrieb Volkert Barr:
i tried to compile the Module "Math.mod" (12.10.2013, ../wirth/ProjectOberon/Sources/Math.Mod.txt) and got a dozen "to many digit" compile errors . Looks like some constant assignments are to long. My question: Is the bug in Math Module or is the compiler wrong here?
These errors no longer appear when you use the latest sources (ORS, ORP and ORG) of the compiler updated 10 Apr 2014:
http://www.inf.ethz.ch/personal/wirth/ProjectOberon/
Regards,
Chris Burrows CFB Software http://www.cfbsoftware.com Thanks for the hint. I will test it this weekend.
Works. The other bug i found is also fixed (https://lists.inf.ethz.ch/pipermail/oberon/2014/007195.html) BW, Volkert PS: With an "bug or issue tracker" and we all can see, what bugs are new, open, fixed ...
BW, Volkert PS: With an "bug or issue tracker" and we all can see, what bugs are new, open, fixed ...
Where's the fun in that? It's like doing a crossword puzzle and having somebody looking over your shoulder and giving you all the answers. The whole point of Project Oberon is to help you to learn how to understand, maintain etc. an Operating system and compiler yourself and become self-sufficient. It can be done and it has been done. I use a comparison tool to see what has changed and then try to understand what has been fixed and how it has been fixed. After a very short time of this sort of exercise you learn how to fix these things yourself, Regards, Chris Chris Burrows CFB Software http://www.cfbsoftware.com
Chris Burrows wrote:
BW, Volkert PS: With an "bug or issue tracker" and we all can see, what bugs are new, open, fixed ... Where's the fun in that? It's like doing a crossword puzzle and having somebody looking over your shoulder and giving you all the answers.
And now you know, dear Volkert, why Oberon is still in the same place of development as it has been since 1994. Oberon is about fun. No practical use, just fun. Worldwide there are 40 enthusiasts. And each one has to find his own bugs and create his own fixes and should keep his mouth shut. No need to spoil the fun and tell others about bugs, fixes and new features.
The whole point of Project Oberon is to help you to learn how to understand, maintain etc. an Operating system and compiler yourself and become self-sufficient. It can be done and it has been done.
That was the original goal. But sooner or later some one has to break that tradition and make Oberon something for the world. For the people. Some stable branch to hit the market.
I use a comparison tool to see what has changed and then try to understand what has been fixed and how it has been fixed. After a very short time of this sort of exercise you learn how to fix these things yourself,
Unless the fixing part has completely reformatted the source files and then issued his fixes. Many of the NW sources are spaghetti code. The code is used without (m)any rules. Indenting, structure of IF/THEN's etc. It's a drama getting through many of the sources. Many of the NW produced sources are a direct violation of all the things taught in Data Structures and in the other books. Many statements on one line, which are very hard to understand, I reformatted ORG.Mod and it went from 1125 lines to 2000 lines of code with lots of whitespace so the commands stand out and control structures are easily identified and understood. Now I can see and understand what's going on. Volkert's proposal poses the next question to face: do we want Oberon to remain the never ending academic OS? Or do we want to give it a shot and try to give it an audience? As I see things, Paul Reed and Peter de Wachter have opted for the second option. And if you do that, excellent documentation and a bug/fix tracking system are inevitable. -- Groetjes Jan Verhoeven
-----Original Message----- From: Jan Verhoeven [mailto:jan@verhoeven272.nl] Sent: Saturday, 12 April 2014 10:19 AM To: chris@cfbsoftware.com; ETH Oberon and related systems Subject: Re: [Oberon] Math.Mod / compile rrror (to many digits)
Chris Burrows wrote:
BW, Volkert PS: With an "bug or issue tracker" and we all can see, what bugs are new, open, fixed ... Where's the fun in that? It's like doing a crossword puzzle and having somebody looking over your shoulder and giving you all the answers.
Oberon is about fun. No practical use, just fun.
Sigh! I should have known better than to use a colloquial English expression in an international forum :(
I use a comparison tool to see what has changed and then try to understand what has been fixed and how it has been fixed. After a very short time of this sort of exercise you learn how to fix these things yourself,
Unless the fixing part has completely reformatted the source files and then issued his fixes.
That is not a big problem. The trick is to work with three sets of sources: 1. The last Wirth version that you based your version on. 2. The latest Wirth version. 3. Your own version. You can then use the difference tool to compare 1 and 2 and apply the results to 3. If you are not already using a 'pretty-printing' code formatting tool I recommend that you start doing so. Regards, Chris Burrows CFB Software http://www.cfbsoftware.com
Am 12.04.2014 02:49, schrieb Jan Verhoeven:
Chris Burrows wrote:
BW, Volkert PS: With an "bug or issue tracker" and we all can see, what bugs are new, open, fixed ... Where's the fun in that? It's like doing a crossword puzzle and having somebody looking over your shoulder and giving you all the answers.
And now you know, dear Volkert, why Oberon is still in the same place of development as it has been since 1994. Oberon is about fun. No practical use, just fun. Worldwide there are 40 enthusiasts. And each one has to find his own bugs and create his own fixes and should keep his mouth shut. No need to spoil the fun and tell others about bugs, fixes and new features. Strange ....
The whole point of Project Oberon is to help you to learn how to understand, maintain etc. an Operating system and compiler yourself and become self-sufficient. It can be done and it has been done.
That was the original goal. But sooner or later some one has to break that tradition and make Oberon something for the world. For the people. Some stable branch to hit the market.
at least for the hobbyists ... yes ....
I use a comparison tool to see what has changed and then try to understand what has been fixed and how it has been fixed. After a very short time of this sort of exercise you learn how to fix these things yourself,
Volkert's proposal poses the next question to face: do we want Oberon to remain the never ending academic OS? Or do we want to give it a shot and try to give it an audience?
As I see things, Paul Reed and Peter de Wachter have opted for the second option. And if you do that, excellent documentation and a bug/fix tracking system are inevitable.
"Project Oberon" will only survive, if there are volunteers continuing the work and its spirit. I think that is the motivation of Paul Reed and Peter de Wachter. BW, Volkert
If you are not already using a 'pretty-printing' code formatting tool I recommend that you start doing so.
IF technology has [can ever] made fully automated formatting viable, THEN it's long over-due to program by just filling-in <parameters>, to a fully syntax-aware tool. This, particularly so, for IT people who need to cover many languages, and shouldn't need to be concerned if semicolon is the statement terminator or separator. I'm of course failing to distinguish between trainees [who must be punished by dumb repetition] & users? --- ]> Oberon is about fun. No practical use, ]> just fun. No!!! LEO is a powerful tool & work-horse. ]> I use a comparison tool to see what has changed and then try to understand ]> what has been fixed and how it has been fixed. After a very short time of ]> this sort of exercise you learn how to fix these things yourself, Good for you. Some of us are pressed for time and want to leverage collaboration [avoiding duplication of effort]. == Chris Glur. BTW rPi isn't a hit without good reason: it's a full PC in a cigarette packet [remember those?]. And yes, it's mobile-phone power connector is delicate; but you unplug the power, at the other end.
Am 12.04.2014 00:42, schrieb Chris Burrows:
BW, Volkert PS: With an "bug or issue tracker" and we all can see, what bugs are new, open, fixed ... Where's the fun in that? It's like doing a crossword puzzle and having somebody looking over your shoulder and giving you all the answers. The whole point of Project Oberon is to help you to learn how to understand, maintain etc. an Operating system and compiler yourself and become self-sufficient. It can be done and it has been done.
I use a comparison tool to see what has changed and then try to understand what has been fixed and how it has been fixed. After a very short time of this sort of exercise you learn how to fix these things yourself, I do .... but i am not good in guessing what were the reasons (which bug f.e.) for the code changes. But you can explain me with your comparison tool, what bugs NW has corrected in
You can always dig into, fix and extend on your copy and propose a solution for the main "Project Oberon" branch. That is reality in the most development projects. So, you - can have fun with your local copy - can have one official stable main branch from which main release of "Project Oberon" is created. - can see what issues are around i see no contradictions here the latest compiler version. Even for "small" system like "Project Oberon", it is a good idea to manage and document the changes. BW, Volkert
participants (5)
-
Chris Burrows -
eas lab -
Jan Verhoeven -
Volkert Barr -
volkert@nivoba.de