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=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,b1150caefb87348f X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-10-11 20:30:37 PST Path: archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsmi-us.news.garr.it!newsmi-eu.news.garr.it!NewsITBone-GARR!newsserver.cilea.it!news.crs4.it!not-for-mail From: Jacob Sparre Andersen Newsgroups: comp.lang.ada Subject: Re: Ada Advocacy - WPG (Web Page Generation) scheme Date: Wed, 08 Oct 2003 20:14:19 +0200 Organization: CRS4, Center for Adv. Studies, Research and Development in Sardinia Message-ID: <3F8453FB.8060803@crs4.it> References: <5qWdnWcBj-C38OKiU-KYuA@gbronline.com> NNTP-Posting-Host: sparre.crs4.it Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: pietro.crs4.it 1065678277 11352 156.148.70.170 (9 Oct 2003 05:44:37 GMT) X-Complaints-To: news@nntpserver.crs4.it. NNTP-Posting-Date: 9 Oct 2003 05:44:37 GMT User-Agent: Any Browser, HTML 4.01, XHTML 1.0 X-Accept-Language: fo, da, no, sv, is, fr, de, it, In-Reply-To: <5qWdnWcBj-C38OKiU-KYuA@gbronline.com> Xref: archiver1.google.com comp.lang.ada:699 Date: 2003-10-09T05:44:37+00:00 List-Id: Wes Groleau wrote: > If you want to embed Ada into HTML, instead of inventing > a new cryptic syntax, use the same syntax as for embedding > Javascript. Since it (as I read it) is different from Javascript in two important ways, I wouldn't use that syntax: 1) WPG is intended for server-side use, whereas Javascript is intended for client-side use. 2) Even though the code doesn't look like it, it is actually more an attempt at embedding HTML code in Ada programs in an easy way, than the other way around. Altogether I find the PHP inspired (by the looks) syntax very sensible. My main worry about the idea is to run the programs through the CGI protocol. Starting a separate program every time a page is requested is not very efficient. I think it has to be made into something that can be loaded as a module in Apache (and in AWS of course). Jacob -- "People are not intrinsically greedy. They are only cyclically greedy."