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,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 Path: border1.nntp.ams.giganews.com!nntp.giganews.com!rt.uk.eu.org!aioe.org!.POSTED!not-for-mail From: =?utf-8?Q?Yannick_Duch=C3=AAne_=28Hibou57?= =?utf-8?Q?=29?= Newsgroups: comp.lang.ada Subject: Re: Web-UI for Ada applications Date: Wed, 28 Aug 2013 18:13:40 +0200 Organization: Ada @ Home Message-ID: References: <20130827230816.535a440d@atmarama.noip.me> <20130828105441.7d5d5943@atmarama.noip.me> <87ioyq6tuf.fsf_-_@adaheads.sparre-andersen.dk> <20130828124830.46f645e1@atmarama.noip.me> <521de785$0$9526$9b4e6d93@newsspool1.arcor-online.net> NNTP-Posting-Host: bsJIecVz+tRSOZwqdVlFPg.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes Content-Transfer-Encoding: Quoted-Printable X-Complaints-To: abuse@aioe.org User-Agent: Opera Mail/12.16 (Linux) X-Notice: Filtered by postfilter v. 0.8.2 Xref: number.nntp.dca.giganews.com comp.lang.ada:183201 Date: 2013-08-28T18:13:40+02:00 List-Id: Le Wed, 28 Aug 2013 14:05:37 +0200, G.B. = a =C3=A9crit: > On 28.08.13 13:32, Simon Clubley wrote: >> However, this can change if the input >> also contains a scripting language (such as Javascript) section as we= ll >> as the HTML code. > > OTOH, Javascript interpreters of today have evolved > into VMs with JIT compilation. Therefore, the larger > part of Javascript code will not be interpreted, but > be compiled into optimized binary code that JIT > compilers produce. (That includes profile directed > optimization.) Still don't expect too much of it. It still have more server limitation = = than native binaries (noticed in practice, not a gratuitous belief), = mainly due to automated (not application's specific needs aware) memory = = management I believe, then bad memory management again due to the lack o= f = proper type definitions and representations (everything is an = hash=E2=80=91lookup=E2=80=91associative table), and less importantly, du= e to the start up = overhead. JIT, even with good hot=E2=80=91path optimization, do solve on= ly a tiny = part of the efficiency issues (not to mention these languages are not we= ll = suited to large scale design nor to trustability, even if JavaScript is = = more predictable than PHP, Python and others). My point of view, is to restrict it to user gesture handling, and to = delegate all the processing to a native application written in an = appropriate language (to implicitly name Ada). -- = =E2=80=9CSyntactic sugar causes cancer of the semi-colons.=E2=80=9D [1] =E2=80=9CStructured Programming supports the law of the excluded muddle.= =E2=80=9D [1] [1]: Epigrams on Programming =E2=80=94 Alan J. =E2=80=94 P. Yale Univers= ity