From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Simon Clubley Newsgroups: comp.lang.ada Subject: Re: Web-UI for Ada applications Date: Wed, 28 Aug 2013 11:32:43 +0000 (UTC) Organization: A noiseless patient Spider Message-ID: References: <20130827230816.535a440d@atmarama.noip.me> <20130828105441.7d5d5943@atmarama.noip.me> <87ioyq6tuf.fsf_-_@adaheads.sparre-andersen.dk> <20130828124830.46f645e1@atmarama.noip.me> Injection-Date: Wed, 28 Aug 2013 11:32:43 +0000 (UTC) Injection-Info: mx05.eternal-september.org; posting-host="3a7522c45acd2a6c162b080668fa4020"; logging-data="30419"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19Q7fqTy30qQm9kWVad/N8ntnUxgHwfVPk=" User-Agent: slrn/0.9.8.1 (VMS/Multinet) Cancel-Lock: sha1:OUX0aM7hZaypoR0x8EQoA00azyI= Xref: news.eternal-september.org comp.lang.ada:17012 Date: 2013-08-28T11:32:43+00:00 List-Id: On 2013-08-28, Gour wrote: > On Wed, 28 Aug 2013 11:35:36 +0200 > Jacob Sparre Andersen wrote: > >> The problem with this is that you both add an extra "OS" layer (the >> browser) _and_ require GUI operations to be interpreted (to some >> extent) rather than executed as binary code. > > I'm not sure I get the 2nd part? > When a program which uses, say, the GTK toolkit wants to draw a text box on the screen, it does it by making a direct subroutine call to the GTK function from the program itself. OTOH, if you use HTML input to render a text box in the browser, then the HTML code is treated as source code input to the browser's rendering engine and needs to first be translated to a internal format before the rendering engine can process the HTML code. IOW, every time the rendering engine reads the HTML input, it needs to treat it in the same way as, say, a Python or bash interpreter would treat it's input. Given the high level nature of pure HTML itself, this should not be too great a overhead for pure HTML code. However, this can change if the input also contains a scripting language (such as Javascript) section as well as the HTML code. Simon. -- Simon Clubley, clubley@remove_me.eisner.decus.org-Earth.UFP Microsoft: Bringing you 1980s technology to a 21st century world