Re: [Oberon] RISC emulator
Hi The German characters (ASCII character codes above 7F) do not only impact the keyboard driver (Input.Mod) but also the fonts (Fonts.Mod) and Files.Mod if you want to allow filenames with German letters. The current Fonts.Mod used in the RISC implementation restricts the character pattern to <80H. Br, Jörg
Am 17.03.2014 um 00:04 schrieb Peter De Wachter <pdewacht@gmail.com>:
On 16-03-14 22:22, Peter Matthias wrote: Hi Peter,
thanks for the emulator. It made me get interested in Oberon-risc.
It compiles and runs well on Ubuntu/X64, however, German keyboard layout is not recognized.
Two questions: - How do I copy files to/from the disk image? - What are *.smb files?
I don't have a way yet to transfer files to Oberon. The system supports file transfer over RS-232 or wireless but those interfaces aren't emulated yet. I think it might be possible to mount the disk image with one of the "big" Oberon implementations and transfer files that way, but I haven't tried that yet.
To get a German keyboard layout, you'll have to edit the keymap table in Input.Mod. The emulator only deals with scancodes, translating those to characters is Oberon's job.
-- Oberon@lists.inf.ethz.ch mailing list for ETH Oberon and related systems https://lists.inf.ethz.ch/mailman/listinfo/oberon
Hi all Introducing German letters is more complicated than I originally thought. - You could do a first hack by just allowing one byte characters >127. As there exist different ASCII extensions for characters >127, eg. ISO-8859-1, code page 437 or Mac OS Roman, you have to chose which code page you want to implement in ProjectOberon. ISO-8859-1 code page 437 Mac OS Roman ä E4 84 8A ö F6 94 9A ü FC 81 9F Benefit: even umlauts are one byte and fit in a standard CHAR. Disadvantage: you have to chose a certain code page and file transfer to other OS have to take care of the chosen code page. I would chose ISO-8859-1. - A more general approach to support international languages would be to use Unicode and take internally UTF-8 as encoding. UTF-8 ä C3 A4 ö C3 B6 ü C3 BC Benefit: almost all newer OS base on Unicode and UTF-8, Unicode is ready for ALL international languages not only German. Disadvantage: Implementation is more complex. You have to convert strings into UTF8 and back. Umlauts do not fit into one CHAR anymore. For the sake of simplicity, Wirth restricted this little project to ASCII only. The extensions mentioned above can be seen as an exercise :-) Jörg Am 17.03.2014 um 09:31 schrieb Jörg Straube <joerg.straube@iaeth.ch>:
Hi The German characters (ASCII character codes above 7F) do not only impact the keyboard driver (Input.Mod) but also the fonts (Fonts.Mod) and Files.Mod if you want to allow filenames with German letters. The current Fonts.Mod used in the RISC implementation restricts the character pattern to <80H. Br, Jörg
Am 17.03.2014 um 00:04 schrieb Peter De Wachter <pdewacht@gmail.com>:
On 16-03-14 22:22, Peter Matthias wrote: Hi Peter,
thanks for the emulator. It made me get interested in Oberon-risc.
It compiles and runs well on Ubuntu/X64, however, German keyboard layout is not recognized.
Two questions: - How do I copy files to/from the disk image? - What are *.smb files?
I don't have a way yet to transfer files to Oberon. The system supports file transfer over RS-232 or wireless but those interfaces aren't emulated yet. I think it might be possible to mount the disk image with one of the "big" Oberon implementations and transfer files that way, but I haven't tried that yet.
To get a German keyboard layout, you'll have to edit the keymap table in Input.Mod. The emulator only deals with scancodes, translating those to characters is Oberon's job.
-- Oberon@lists.inf.ethz.ch mailing list for ETH Oberon and related systems https://lists.inf.ethz.ch/mailman/listinfo/oberon
Hi,
Disadvantage: Implementation is more complex. You have to convert strings into UTF8 and back. Umlauts do not fit into one CHAR anymore.
Question is, must CHAR be one byte or should you rather have a distinction between a type BYTE which is 8 bits and a type CHAR which can hold all Unicode character values from 0 to 10FFFFH and therefore is represented internally in some "different" way. claudio -- Claudio Nieder, Talweg 6, CH-8610 Uster, Tel +4179 357 6743, www.claudio.ch
Hi After some thought I'm not so sure if the "international Project Oberon" should really be able to hold ALL Unicode characters, so ALL 17 planes. I think we can limit to plane 0, namely BMP. I'm now rather in favor of the following scheme: - Redefine CHAR as a type occupying TWO bytes. - Use internally the UCS-2 coding (almost identical to UTF-16 but restricted to plane 0) - If you write text to files use UTF-8 coding. On the other hand, knowing that the Oberon fonts do only support a very limited set of additional latin letters, the whole UCS-2 coding is a little overkill. We could easily go with Unicode but restrict the code points to one byte. We could call that coding "reduced ISO-8859-1" :-) br, Jörg
Am 17.03.2014 um 17:51 schrieb Claudio Nieder <private@claudio.ch>:
Hi,
Disadvantage: Implementation is more complex. You have to convert strings into UTF8 and back. Umlauts do not fit into one CHAR anymore.
Question is, must CHAR be one byte or should you rather have a distinction between a type BYTE which is 8 bits and a type CHAR which can hold all Unicode character values from 0 to 10FFFFH and therefore is represented internally in some "different" way.
claudio -- Claudio Nieder, Talweg 6, CH-8610 Uster, Tel +4179 357 6743, www.claudio.ch
-- Oberon@lists.inf.ethz.ch mailing list for ETH Oberon and related systems https://lists.inf.ethz.ch/mailman/listinfo/oberon
Jörg Straube wrote:
On the other hand, knowing that the Oberon fonts do only support a very limited set of additional latin letters, the whole UCS-2 coding is a little overkill. We could easily go with Unicode but restrict the code points to one byte. We could call that coding "reduced ISO-8859-1" :-)
A small OS like Oberon should not have to bother with all codepages, all keyboard layouts, all fonts, all charactersets, hiragana, katakana, left/right alignment of tokens (like arabic) or even up/down alignment. Just settle with US keyboard, US characterset. Who needs umlauts when middle clicking a command? -- Groetjes Jan Verhoeven
Jan In contrast to other OS one of the main concept of Oberon is that output wrlitten to the screen can be used as input by middle clicking. So the question is: not only: Shall the compiler accept something like Log.String('Grüezi'); But do you want being able to middle.click on Strich.Länge Even on the Internet it is nowadays possible to have a domain www.jörg.ch But I agree fully that we should not overdo it. Perhaps one of the reasons why Oberon is not so widely spread is exactly that it restricts itself to Latin text. Who knows :-) Jörg
Am 18.03.2014 um 16:20 schrieb Jan Verhoeven <jan@verhoeven272.nl>:
Jörg Straube wrote:
On the other hand, knowing that the Oberon fonts do only support a very limited set of additional latin letters, the whole UCS-2 coding is a little overkill. We could easily go with Unicode but restrict the code points to one byte. We could call that coding "reduced ISO-8859-1" :-)
A small OS like Oberon should not have to bother with all codepages, all keyboard layouts, all fonts, all charactersets, hiragana, katakana, left/right alignment of tokens (like arabic) or even up/down alignment.
Just settle with US keyboard, US characterset. Who needs umlauts when middle clicking a command?
-- Groetjes
Jan Verhoeven
-- Oberon@lists.inf.ethz.ch mailing list for ETH Oberon and related systems https://lists.inf.ethz.ch/mailman/listinfo/oberon
Jörg Straube wrote:
Even on the Internet it is nowadays possible to have a domain www.jörg.ch
That is a very foolish development then. I speak/write german (I have to, I live in a country next to it) so I know that o-umlaut is the same as 'oe' but ONLY in germany. In Holland 'oe' is a sound of its own (comparable to the german 'u' sound). So www.jorg.ch is different from www.joerg.ch but only non native speakers with US keyboards know this.... -- Groetjes Jan Verhoeven
Jan
That is a very foolish development then.
IDNA exists since 2003. See http://tools.ietf.org/html/rfc3490 Why should a japanese Internet user use English domain names? Jörg
On Tuesday 18 March 2014 21:26:45 Jörg Straube wrote:
Jan
That is a very foolish development then.
IDNA exists since 2003. See http://tools.ietf.org/html/rfc3490 Why should a japanese Internet user use English domain names?
They don't even have a japanese word for 'incredible'. They accept that not everything can be done in their sign language. How do I know? I worked for 15+ years for japanese multinationals and it is very funny to hear japanese engineers speak 'gibberish', interspersed with words like 'incredible'. -- Met vriendelijke groeten, Jan Verhoeven http://www.verhoeven272.nl
On 18 Mar 2014, at 23:26, "Jan Verhoeven" <jan@verhoeven272.nl> wrote:
On Tuesday 18 March 2014 21:26:45 Jörg Straube wrote: Jan
That is a very foolish development then.
IDNA exists since 2003. See http://tools.ietf.org/html/rfc3490 Why should a japanese Internet user use English domain names?
They don't even have a japanese word for 'incredible'. They accept that not everything can be done in their sign language.
How do I know? I worked for 15+ years for japanese multinationals and it is very funny to hear japanese engineers speak 'gibberish', interspersed with words like 'incredible'.
Wow, that's incredible! And did you know, there's no French word for camouflage? And the Inuit have 0 words for monsoon? And there's only one Basque word in English. Bizarre, isn't it?! B
Jan Verhoeven wrote:
A small OS like Oberon should not have to bother with all codepages, all keyboard layouts, all fonts, all charactersets, hiragana, katakana, left/right alignment of tokens (like arabic) or even up/down alignment. Just settle with US keyboard, US characterset. Who needs umlauts when middle clicking a command?
Exactly. "unix" is a spoof on the name "multics" which apparently FAILED becos it wos 2 complex. Isn't this a teaching project? What about successive refinement? Add your private features later. Alto' char-format IS a fundamental decision, I suppose. Can this thing do like S3 / V4: you can work heads-up: without needing to bob your head upNdown between the kybrd & screen? For me the VALUE is in the TUI/Ceres human-interface. I'm increasingly porting my jobs to ARM based rPi. Especially since `wily` [inspired/copied by ETHO] was available with the good ETHO-like TUI interface. If <Oberon RISC machine & OS> DOES S3:TUI how difficult is it to emulate on rPi, since it seems that no one is going to port ETHO to rPi? So what if it runs at 1% of the speed. The Microsoft <Pascal for TRS80: 10 page pamphlet + cassette [IIRC ran 'compilerV0' via the P-code-interpreter]> wrote 3 lines per-second as it compiled, and when it stopped at the error, you knew exactly and immediately what the syntax error was. == Chris Glur.
-----Original Message----- From: eas lab [mailto:lab.eas@gmail.com] Sent: Wednesday, 19 March 2014 9:53 PM To: ETH Oberon and related systems Subject: Re: [Oberon] RISC emulator
Can this thing do like S3 / V4: you can work heads-up: without needing to bob your head upNdown between the kybrd & screen?
As far as I recall it is more like the earlier Oberon systems (e.g. the v2.6 SPARC Oberon that I was using in 1992) than the System 3 that came about five years later. I was amused when I started working with the RISC Oberon system. I had been happily using it for about 30 minutes before I realised that I didn't have the keyboard plugged in! Regards, Chris Chris Burrows CFB Software Astrobe: Oberon for ARM7 and Cortex-M3 http://www.astrobe.com
Ok, then it's got the essential features. Actually, I remember the original BYTE article [? 70s ?] showed the 2:1 width-ratio User/System columns. So perhaps the magical HCI was part of Oberon from the start. All this talk about VMs is separate from the HCI. VMs to run P-code interpreters are easy. I made them for: HP desktop calculator/computer driving IEEE488 instruments [to be able to write in a nice PASCAL-like syntax]; Fairchild F8 microProc, 68** family, 86X [16bit:cpm stage] There were only a couple-of-dozen pseudo-instructions. Initially I only had byte & byte-array types. Then I think I had pointers. The cpm version had 16-bit-words I think. Finally I thought I'd look at Turbo Pascal, since perhaps it wasn't just another stupid fad. Then I discovered what I'd been missing!!! The HCI is by far the most important aspect. == Chris Glur. On 3/19/14, Chris Burrows <chris@cfbsoftware.com> wrote:
-----Original Message----- From: eas lab [mailto:lab.eas@gmail.com] Sent: Wednesday, 19 March 2014 9:53 PM To: ETH Oberon and related systems Subject: Re: [Oberon] RISC emulator
Can this thing do like S3 / V4: you can work heads-up: without needing to bob your head upNdown between the kybrd & screen?
As far as I recall it is more like the earlier Oberon systems (e.g. the v2.6 SPARC Oberon that I was using in 1992) than the System 3 that came about five years later.
I was amused when I started working with the RISC Oberon system. I had been happily using it for about 30 minutes before I realised that I didn't have the keyboard plugged in!
Regards, Chris
Chris Burrows CFB Software Astrobe: Oberon for ARM7 and Cortex-M3 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
-----Original Message----- From: eas lab [mailto:lab.eas@gmail.com] Sent: Thursday, 20 March 2014 11:57 PM To: chris@cfbsoftware.com; ETH Oberon and related systems Subject: Re: [Oberon] RISC emulator
Ok, then it's got the essential features. Actually, I remember the original BYTE article [? 70s ?] showed the 2:1 width-ratio User/System columns.
Actually it was a little later than that. The initial official public announcements regarding Oberon (language and operating system) were in 1988. The article with the Oberon screenshot was in the May 1993 issue of BYTE magazine. You can see the actual article "Oberon: A Glimpse at the Future" here: https://archive.org/stream/BYTE-1993-05#page/n124/mode/1up
So perhaps the magical HCI was part of Oberon from the start.
Yes. The tiled windows, extensive use of all three mouse buttons with interclicking, unique scrollbar behaviour etc. were part of the earliest publicly available versions of the Oberon operating system. They were documented in Chaper 2: "The Oberon user interface and the standard system editor" in Martin Reiser's Book: The Oberon System - User Guide and Programmers's Manual (ISBN 0-201-54422-9) first published in 1991. Regards, Chris Burrows -- CFB Software Astrobe: Oberon for ARM and Cortex-M3 Microcontrollers http://www.astrobe.com
Hi,
After some thought I'm not so sure if the "international Project Oberon" should really be able to hold ALL Unicode characters, so ALL 17 planes. I think we can limit to plane 0, namely BMP.
Sounds a bit of what Java has done. They started by supporting only plane 0. So char is a 16 bit type. Then they changed their mind and now support all planes, so now - String is still a sequence of char (16 byte values) and non-plane 0 unicode characters are encoded by two char values a so called high-surrogate (D800H - DBFFH) and a low-surrogate (DC00H - DFFFH) value. (UTF-16) - String.charAt(i) which returned the i-th character and now just returns the i-th char which can be a proper Unicode character or a high or low surrogate value. But even when it returns the i-th char this might be a character with number <1 in the string if before that one there was a character that was formed by a surrogate pair. - String.codePointAt(i) was added so it will return the integer unicode value of the character provided the programmer has chosen the proper i, i.e. i still refers to the i-th char value in the string and not to the i-th unicode character within the string, but at least as long one does not supply an index which corresponds to a low-surrogate char value the "decoded" unicode character value is returned, but of course as type int because type char would not allow values beyond FFFFH. Thus as soon as you go beyond plane 0 String is not anymore a clean abstraction of a string where you can easily get the its i-th unicode character. So I feel this would be a bad solution. Either you do it the way you originally proposed and just use UTF-8 and leave it to the applications to handle them, or go for a CHAR type which really represents all unicode characters. claudio -- Claudio Nieder, Talweg 6, CH-8610 Uster, Tel +4179 357 6743, www.claudio.ch
participants (6)
-
Bob Walkden -
Chris Burrows -
Claudio Nieder -
eas lab -
Jan Verhoeven -
Jörg Straube