Oberon Text and new systems; was Re (n): Question about Oakwood guidelines and design choices
From: "Skulski, Wojciech" <skulski@pas.rochester.edu> Date: Mon, 7 Jun 2021 17:21:05 +0000
Since you said Text, please be aware that there are multiple Text flavors out there.
The section at https://en.wikibooks.org/wiki/Oberon#Oberon_Text is intended to be understandable to a novice. Under the subheading "Additional Details" is the link to https://en.wikibooks.org/wiki/Oberon/Text where the variant systems are addressed in more detail. Sorry to say, V4 is not yet included. =8~( When encountering Text, visualization of the record types was difficult for me. The tables you see in the second page cited above are my way of mitigating difficulty.
3) I believe that System 3 did about the same as #2 above, but in a more complex way.
In ETH Oberon and in A2, Texts.TextDesc is an extension of Objects.ObjDesc. Consequently, understanding the Text type requires understanding records defined in two modules--Objects and Texts. An additional difficulty for a newbie. In the tables, the extension is represented by background color shading. The display of types concisely in one place should help a novice.
6) I suspect that porting #2 [V4] to the FPGA Oberon would entail a complete replacement of the 2013 Text and text frames with the ones from Linz V4. This will not be easy not because of the code, but because of the language: "they" changed the language so V4 will no longer compile.
Didn't Andreas discuss or mention that months ago. Three steps to put an "old" system, S, on a new machine. (1) In an extant S, translate the sources into Oberon-07. In the process, the sources can be recompiled by the compiler in S. This is just work; time consuming but not lethal. =8~) (2) In the new system, compile all the sources of S. (3) Install and run the revised S on the new machine. S can be V4 or ETH Oberon or another.
I am afraid that (4+Gadgets) is unlikely to fit into a small memory footprint.
For basic Text functionality, the complete Gadgets machinery is not necessary. Build a system with the Objects module and the Texts module? I haven't evaluated the memory requirement. If someone drafts a V4 section and adds it to https://en.wikibooks.org/wiki/Oberon/Text , the contribution will be welcome. Accept that merciless editing can happen. =8~| Should a universal Oberon Text type be derived from V4, ETH Oberon or V5? Also acknowledge that HTML5 is far more ubiquitous than any Oberon Text type. Hypothetically an Oberon system can be built with plain ASCII text and HTML5 and no Oberon Text. Discussion by the knowledgeale and experienced people can help. Regards, ... P.L. -- tel: +1 604 670 0140 Bcc: peter at easthope. ca
On 6/8/21 9:24 AM, peter@easthope.ca wrote:
From: "Skulski, Wojciech" <skulski@pas.rochester.edu> Date: Mon, 7 Jun 2021 17:21:05 +0000
Since you said Text, please be aware that there are multiple Text flavors out there.
The section at https://en.wikibooks.org/wiki/Oberon#Oberon_Text is intended to be understandable to a novice. Under the subheading "Additional Details" is the link to
...
6) I suspect that porting #2 [V4] to the FPGA Oberon would entail a complete replacement of the 2013 Text and text frames with the ones from Linz V4. This will not be easy not because of the code, but because of the language: "they" changed the language so V4 will no longer compile.
Didn't Andreas discuss or mention that months ago. Three steps to put an "old" system, S, on a new machine. (1) In an extant S, translate the sources into Oberon-07. In the process, the sources can be recompiled by the compiler in S. This is just work; time consuming but not lethal. =8~) (2) In the new system, compile all the sources of S. (3) Install and run the revised S on the new machine. S can be V4 or ETH Oberon or another. Wow, lots for me to digest. I'm up for attempting to port some modules from Oberon-2 to Oberon-7. Texts seems like a good place but I will likely take the simplest path first before attempting a more ambitious like a universal Texts module (though the side of me interested in Software Preservation thinks that is a good idea). I'm still very new to Oberon so I'm sure I'll do dump things and beware I'll ask dump questions too. I'm not quick in picking up new systems. I feel like I am in book club where everyone now reading and discussing chapter 17 and I'm still reading the preface! Cheers, Robert
Hello Peter, Am 08.06.2021 um 18:24 schrieb peter@easthope.ca:
Should a universal Oberon Text type be derived from V4, ETH Oberon or V5? Also acknowledge that HTML5 is far more ubiquitous than any Oberon Text type. Hypothetically an Oberon system can be built with plain ASCII text and HTML5 and no Oberon Text. Discussion by the knowledgeale and experienced people can help.
The most complex application on most "smaller" OSes today is the Web browser. And even when they are several megabytes large, they cannot adequately parse what "HTML5" has become today (even if you exclude JavaScript). With the demise of the old edgehtml engine (and deprecation of old IE Trident and Opera Presto engine) there are effectively only two feature-complete rendering engines for HTML5 left (Gecko used by Mozilla Firefox, and Webkit/Chromium/Blink used by the others). And the size of their (uncompressed) sources is gigantic. So, I would not try to provide any (badly compatible) HTML5 support to a system like Oberon which tries to be simple and tries to remove what can be removed. By the way, V5 text does not have vertical offsets, so no subscripts/superscripts. Regards, Michael
I fully agree, to render HTML5 you need a lot of code. For completeness: The V5 text is prepared for an offeset (Texts.PieceDesc.voff). You can even set the offset (Edit.ChangeOffset) but TextFrames does not display that field. By adding an own MyTextFrames.Mod without changing Text.Mod you could enable offsets. It’s like the color: it’s there (Texts.PieceDesc.col) By changing the display driver Display.Mod without changing Texts.Mod you can display colored text. Here a screenshot of a colored FPGA implementation. Color depth is 4 (16 colors!) the rest is color mixing. br Jörg
Am 08.06.2021 um 23:03 schrieb Michael Schierl <schierlm@gmx.de>:
Hello Peter,
Am 08.06.2021 um 18:24 schrieb peter@easthope.ca:
Should a universal Oberon Text type be derived from V4, ETH Oberon or V5? Also acknowledge that HTML5 is far more ubiquitous than any Oberon Text type. Hypothetically an Oberon system can be built with plain ASCII text and HTML5 and no Oberon Text. Discussion by the knowledgeale and experienced people can help.
The most complex application on most "smaller" OSes today is the Web browser. And even when they are several megabytes large, they cannot adequately parse what "HTML5" has become today (even if you exclude JavaScript).
With the demise of the old edgehtml engine (and deprecation of old IE Trident and Opera Presto engine) there are effectively only two feature-complete rendering engines for HTML5 left (Gecko used by Mozilla Firefox, and Webkit/Chromium/Blink used by the others). And the size of their (uncompressed) sources is gigantic.
So, I would not try to provide any (badly compatible) HTML5 support to a system like Oberon which tries to be simple and tries to remove what can be removed.
By the way, V5 text does not have vertical offsets, so no subscripts/superscripts.
Regards,
Michael -- Oberon@lists.inf.ethz.ch mailing list for ETH Oberon and related systems https://lists.inf.ethz.ch/mailman/listinfo/oberon
On Tue, 8 Jun 2021 at 23:03, Michael Schierl <schierlm@gmx.de> wrote:
With the demise of the old edgehtml engine (and deprecation of old IE Trident and Opera Presto engine) there are effectively only two feature-complete rendering engines for HTML5 left (Gecko used by Mozilla Firefox, and Webkit/Chromium/Blink used by the others). And the size of their (uncompressed) sources is gigantic.
This is true. However, there *are* alternatives, although they are niche. • Netsurf: https://www.netsurf-browser.org/ The Netsurf browser is FOSS and runs on the old Acorn RISC OS OS as well as others. It supports HTML 4, CSS 2, HTTPS and other modern-web features, but does _not_ support Javascript. This dramatically simplifies the browser but also limits which sites it can access, but at least it runs enough that you can often get to a simpler mobile version of the site or something like that. • Dillo: https://www.dillo.org/ Another very simple FOSS browser, and not active in some years, but is included in some lightweight Linux distros. Does support HTTPS at least. • Lynx: https://invisible-island.net/lynx/ • W3M: http://w3m.sourceforge.net/ • Links: http://links.twibright.com/ • ELinks: http://www.elinks.cz/ These 4 are all text-mode tools for the Linux shell environment, but offer varying degrees of ability to open, render and display web pages. I have recently tried the A2 browser (for my FOSDEM talk in February) and found it crippled by its inability to display HTTPS links -- which is almost all of them now. However, even plain-text largely-unformatted HTTPS is still somewhat useful. I really must write up my ideas for the FOSDEM talk so that the list can *cough* offer me some critical feedback. :-)
So, I would not try to provide any (badly compatible) HTML5 support to a system like Oberon which tries to be simple and tries to remove what can be removed.
HTML5 is not the big problem, IMHO. Javascript is the big problem. Omit JS and the underlying Document Object Mobile (DOM) that it needs, and a web browser can still be relatively small and simple. -- Liam Proven – Profile: https://about.me/liamproven Email: lproven@cix.co.uk – gMail/gTalk/gHangouts: lproven@gmail.com Twitter/Facebook/LinkedIn/Flickr: lproven – Skype: liamproven UK: +44 7939-087884 – ČR (+ WhatsApp/Telegram/Signal): +420 702 829 053
Hello Liam, Am 09.06.2021 um 18:17 schrieb Liam Proven:
well as others. It supports HTML 4, CSS 2
If a browser supports HTML4 and/or CSS2, I would not call it HTML5.
HTML5 is not the big problem, IMHO. Javascript is the big problem.
While JS is also a big problem, there are *many* HTML5 features that can be used without scripting and while some of them may be simple to implement, implementing *all* of them will massively bloat the browser. I'm talking about embedded media/video, inline SVG, CSS3 (for both HTML and SVG), shadow DOM (sometimes also called element namespaces), CSS animations, CSS variables, CSS transforms, new input element types (color, slider, multifile upload, camera upload), CSS media/darktheme detection, CSS blending modes. All of them can be used without relying on scripting, and modern websites often do. And probably I forgot a dozen or more others. Regards, Michael
dillo and netsurf are called "tiny" or "small" browsers. But "tiny" and "small" are relative. The code size of Dillo 2.2 is (uncompressed) 1.7 MB. And needs at least 30 MB of RAM for every open tab. This might be tiny compared to other browsers that need 128 MB or even 256 MB minimum, but is far out of reach of the FPGA boards I have. The original FPGA Oberon board supports 1 MB. (The dillo executable alone without one open HTML page wouldn't fit in this RAM) The Oberon system on the FPGA board I have uses 16 MB. Dillo could fit (assuming we ported its code base to Oberon) but could not render a HTML page br Jörg Am 09.06.21, 22:44 schrieb "Oberon im Auftrag von Michael Schierl" <oberon-bounces@lists.inf.ethz.ch im Auftrag von schierlm@gmx.de>: Hello Liam, Am 09.06.2021 um 18:17 schrieb Liam Proven: > well as others. It supports HTML 4, CSS 2 If a browser supports HTML4 and/or CSS2, I would not call it HTML5. > HTML5 is not the big problem, IMHO. Javascript is the big problem. While JS is also a big problem, there are *many* HTML5 features that can be used without scripting and while some of them may be simple to implement, implementing *all* of them will massively bloat the browser. I'm talking about embedded media/video, inline SVG, CSS3 (for both HTML and SVG), shadow DOM (sometimes also called element namespaces), CSS animations, CSS variables, CSS transforms, new input element types (color, slider, multifile upload, camera upload), CSS media/darktheme detection, CSS blending modes. All of them can be used without relying on scripting, and modern websites often do. And probably I forgot a dozen or more others. Regards, Michael -- Oberon@lists.inf.ethz.ch mailing list for ETH Oberon and related systems https://lists.inf.ethz.ch/mailman/listinfo/oberon
On 6/8/21 4:02 PM, Michael Schierl wrote:
there are effectively only two feature-complete rendering engines
Don't lump WebKit and Blink together! (And, please, "rendering engine" is an archaic misnomer. "Browser engine" manages to be less jargon-y sidestep the issues that make "rendering engine" a flawed term.) -- Colby Russell
participants (6)
-
Colby Russell -
Joerg -
Liam Proven -
Michael Schierl -
peter@easthope.ca -
R. S. Doiel