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-04 20:21:30 PST Path: archiver1.google.com!news2.google.com!newsfeed.stanford.edu!headwall.stanford.edu!fu-berlin.de!uni-berlin.de!82-43-33-75.cable.ubr01.croy.blueyonder.co.UK!not-for-mail From: "Nick Roberts" Newsgroups: comp.lang.ada Subject: Re: Ada Advocacy - WPG (Web Page Generation) scheme Date: Sun, 5 Oct 2003 04:21:24 +0100 Message-ID: References: NNTP-Posting-Host: 82-43-33-75.cable.ubr01.croy.blueyonder.co.uk (82.43.33.75) X-Trace: news.uni-berlin.de 1065324086 14889966 82.43.33.75 (16 [25716]) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700 Xref: archiver1.google.com comp.lang.ada:247 Date: 2003-10-05T04:21:24+01:00 List-Id: "Stephane Richard" wrote in message news:WOGfb.22559$kD3.8829@nwrdny03.gnilink.net... > Hey that sounds like it could make sense to me. Thank you! > Would we need to compile it into an ada program after? Yes, that is what I imagined. I think the most typical scenario is that the generated Ada source files would be uploaded to the (web hosting) server machine, and then compiled (probably with GNAT) there. The resulting executable binaries would be put into the "cgi-bin" directory, so that they would be executed (by the web server program) when the corresponding web pages were rewuested. > Dare I say "AdaScript" or something like it? I want to get away from scripting, really, since there are any number of existing scripting languages. I think it would be easier and better to leverage GNAT and the power of a fully compiled language. > With AWS as Server AWS did come into my mind certainly. In that scenario, it would be possible to compile the web page generator procedure right into the web server (rather than have it run as a separate CGI program). This could be the ultimate 'power solution' in some cases. (Hehe ;-) > Or are you talking about using Ada much like PHP as in > make it usable with Apache or other server technologies > like that one and not confine it to Ada. Yes, I was thinking of generating standard (in inverted commas) CGI programs, for use with web server programs that support CGI (including Apache). But not like PHP, which is interpreted. The programs generated would be compiled to be native code binary programs. > Web Server usage only? One of the neat things about CGI programs is that you can easily run them 'standalone' to test them. Also, the generated Ada procedures could be compiled into a bigger Ada program or library, rather than being compiled into a self-contained program. This bigger program could be a FastCGI program, or a complete web server (a la AWS), or something completely different (dons wetsuit ;-) -- Nick Roberts Jabber: debater@charente.de [ICQ: 159718630]