comp.lang.ada
 help / color / mirror / Atom feed
From: "Yannick Duchêne (Hibou57)" <yannick_duchene@yahoo.fr>
Subject: Re: Web-UI for Ada applications
Date: Wed, 28 Aug 2013 17:54:22 +0200
Date: 2013-08-28T17:54:22+02:00	[thread overview]
Message-ID: <op.w2jagwrwule2fv@cardamome> (raw)
In-Reply-To: kvkn4r$tmj$1@dont-email.me

Le Wed, 28 Aug 2013 13:32:43 +0200, Simon Clubley  
<clubley@remove_me.eisner.decus.org-earth.ufp> a écrit:

> On 2013-08-28, Gour <gour@atmarama.net> wrote:
>> On Wed, 28 Aug 2013 11:35:36 +0200
>> Jacob Sparre Andersen <jacob@jacob-sparre.dk> 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.

Not an issue if the page's content is kept reasonably small. No UI is  
handy when it presents a too big page or too many things anyway. There is  
an issue with, as an example, long text documents (I did such an  
application in the past, an XML editor, but with FPK, not Ada), but I  
believe the issue here is the editor specification (the editor is just an  
example), which should not be expected to display a  
mega‑characters/mega‑bytes document as a single piece, and something is  
broken in what we expects from some UI. The issue was not the browser in  
such, it was my lack of proper analysis at design time (well, I was aware  
of this potential issue, but had to save time… that was the real reason  
why).

Software components should always be designed like Ada types are designed,  
I mean, with real world constraints and limitations in mind, and that's  
applicable to UI too. If you design an UI as naïvely as most programming  
languages let you “design” numeric types, letting you believe there is no  
limitation and you don't have to bother about it, you will get some  
issues, inevitably (*). If you do the Ada way, and think bounds and  
constraint when designing the UI, you may get ride of parts of the issue  
you are pointing.

Computation cost of a typical, is ridiculously small (I don't count  
multimedia rendering, which is not part of the UI to me, although it may  
be a component hosted in an UI).


(*) Although I my self did the same error at one time, it always been  
astonishing to me, all editors I known, tries to open a thousand  
mega‑bytes document with no proper handling or limitations, and that's  
obviously even more an issue in an UI running in a web‑browser, but that  
still not the real issue to me, as I feel the real issue, is to believe it  
can be expected to work fine this way. It can't.

-- 
“Syntactic sugar causes cancer of the semi-colons.” [1]
“Structured Programming supports the law of the excluded muddle.” [1]
[1]: Epigrams on Programming — Alan J. — P. Yale University

  parent reply	other threads:[~2013-08-28 15:54 UTC|newest]

Thread overview: 88+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-04  6:59 Object Pascal vs Ada -- which is better for a hobbyist? Dufr
2013-07-04  9:12 ` Nasser M. Abbasi
2013-07-04 11:47 ` gautier_niouzes
2013-07-04 15:50   ` Bill Findlay
2013-08-27 14:34   ` Yannick Duchêne (Hibou57)
2013-08-27 23:18     ` Oliver Kleinke
2013-07-04 11:48 ` john
2013-07-04 14:00   ` AdaMagica
2013-07-04 14:22     ` john
2013-07-04 14:31       ` Dmitry A. Kazakov
2013-07-04 18:18         ` Niklas Holsti
2013-07-04 19:04           ` J-P. Rosen
2013-07-04 20:24             ` Jeffrey Carter
2013-07-04 20:36               ` Shark8
2013-07-05 21:20               ` Robert A Duff
2013-07-05 23:39                 ` Jeffrey Carter
2013-08-27 14:47           ` Yannick Duchêne (Hibou57)
2013-08-27 23:24             ` Oliver Kleinke
2013-07-04 18:49         ` john
2013-07-04 15:49 ` Bill Findlay
2013-07-04 16:00 ` Lucretia
2013-07-04 17:59 ` Jeffrey Carter
2013-07-05 21:39 ` Robert A Duff
2013-07-06  7:04 ` Dufr
2013-07-06 15:53   ` Georg Bauhaus
2013-07-06 17:41   ` Jeffrey Carter
2013-07-06 18:59     ` Shark8
2013-07-06 18:36   ` Ludovic Brenta
2013-07-06 22:19   ` Maurizio Tomasi
2013-07-07  8:43     ` Mike H
2013-07-08 13:53   ` Marc C
2013-08-27 14:50   ` Yannick Duchêne (Hibou57)
2013-08-27 16:50     ` Simon Clubley
2013-08-27 17:02       ` Bill Findlay
2013-08-27 20:27       ` Yannick Duchêne (Hibou57)
2013-08-28 12:05         ` Simon Clubley
2013-08-27 21:08       ` Gour
2013-08-27 22:57         ` Yannick Duchêne (Hibou57)
2013-08-28  8:54           ` Gour
2013-08-28  9:35             ` Web-UI for Ada applications (Was: Object Pascal vs Ada -- which is better for a hobbyist?) Jacob Sparre Andersen
2013-08-28 10:48               ` Web-UI for Ada applications Gour
2013-08-28 11:32                 ` Simon Clubley
2013-08-28 11:54                   ` Gour
2013-08-28 12:05                   ` G.B.
2013-08-28 16:13                     ` Yannick Duchêne (Hibou57)
2013-08-28 15:54                   ` Yannick Duchêne (Hibou57) [this message]
2013-08-28 14:08                 ` Jacob Sparre Andersen
2013-08-28 15:34               ` Web-UI for Ada applications (Was: Object Pascal vs Ada -- which is better for a hobbyist?) Yannick Duchêne (Hibou57)
2013-08-29  9:51                 ` Web-UI for Ada applications Jacob Sparre Andersen
2013-08-27 23:17         ` Object Pascal vs Ada -- which is better for a hobbyist? Yannick Duchêne (Hibou57)
2013-08-27 23:37         ` Yannick Duchêne (Hibou57)
2013-08-27 23:40           ` Yannick Duchêne (Hibou57)
2013-08-28  0:04             ` Oliver Kleinke
2013-08-28  6:28           ` Simon Wright
2013-09-01  3:04           ` Maurizio Tomasi
2013-09-01  3:48             ` Shark8
2013-08-28  8:02         ` Dmitry A. Kazakov
2013-08-28  9:01           ` Gour
2013-08-28  9:55             ` Dmitry A. Kazakov
2013-08-28 10:42               ` Gour
2013-07-07  4:14 ` Patrick
2013-08-27 14:23 ` Yannick Duchêne (Hibou57)
2016-03-14 15:29 ` girobusan
2016-03-14 18:19   ` Jeffrey R. Carter
2016-03-14 18:57     ` Dmitry A. Kazakov
2016-03-14 23:52       ` Randy Brukardt
2016-03-15 10:51       ` Bob Butler
2016-03-15 21:51         ` Randy Brukardt
2016-03-16 11:07           ` Bob Butler
2016-03-16 21:22             ` Ludovic Brenta
2016-03-17  1:08               ` brbarkstrom
2016-03-17  7:59               ` Bob Butler
2016-03-17  8:36                 ` gautier_niouzes
2016-03-15  9:04     ` egarrulo
2016-03-15  9:34       ` Dmitry A. Kazakov
2016-03-15  9:56         ` egarrulo
2016-03-15 10:23           ` Dmitry A. Kazakov
2016-03-15 10:31             ` egarrulo
2016-03-15 10:53               ` egarrulo
2016-03-15 13:18                 ` G.B.
2016-03-15 13:52                   ` egarrulo
2016-03-15 14:28                     ` G.B.
2016-03-15 14:31                       ` egarrulo
2016-03-17 14:59                         ` sjaniska
2016-03-15 17:50                       ` Nasser M. Abbasi
2016-03-16 15:43                     ` Jeremiah
2016-03-15 14:38                   ` G.B.
2016-03-15 17:33               ` Nasser M. Abbasi
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox