comp.lang.ada
 help / color / mirror / Atom feed
From: "Nick Roberts" <nickroberts@blueyonder.co.uk>
Subject: Re: Ada Advocacy - WPG (Web Page Generation) scheme
Date: Sun, 5 Oct 2003 04:21:24 +0100
Date: 2003-10-05T04:21:24+01:00	[thread overview]
Message-ID: <blo2nl$e6cve$1@ID-25716.news.uni-berlin.de> (raw)
In-Reply-To: WOGfb.22559$kD3.8829@nwrdny03.gnilink.net

"Stephane Richard" <stephane.richard@verizon.net> 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]






  reply	other threads:[~2003-10-05  3:21 UTC|newest]

Thread overview: 38+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-10-04 20:29 Ada Advocacy - WPG (Web Page Generation) scheme Nick Roberts
2003-10-04 21:17 ` Larry Kilgallen
2003-10-05  3:32   ` Nick Roberts
2003-10-05  3:51     ` Larry Kilgallen
2003-10-05  9:19       ` Stephane Richard
2003-10-04 21:18 ` Stephane Richard
2003-10-05  3:21   ` Nick Roberts [this message]
2003-10-05  9:16     ` Preben Randhol
2003-10-05  9:26     ` Pascal Obry
2003-10-06  0:00       ` Nick Roberts
2003-10-06  0:06         ` Stephane Richard
2003-10-06  8:56         ` chris
2003-10-06 16:31         ` Pascal Obry
2003-10-06 18:30           ` Wiljan Derks
2003-10-06 19:45             ` Martin Dowie
2003-10-08 18:22               ` Wiljan Derks
2003-10-09 17:48                 ` Pascal Obry
2003-10-09 21:19                   ` Wiljan Derks
2003-10-10  7:42                     ` Preben Randhol
2003-10-10 18:26                       ` Wiljan Derks
2003-10-07 17:21             ` Pascal Obry
2003-10-08  7:18               ` Jean-Pierre Rosen
2003-10-08 19:09               ` Wiljan Derks
2003-10-06  1:07     ` Wes Groleau
2003-10-06  3:15       ` Nick Roberts
2003-10-05  9:14   ` Preben Randhol
2003-10-05  1:00 ` Wes Groleau
2003-10-05  3:05   ` Nick Roberts
2003-10-06  1:03     ` Wes Groleau
2003-10-08 18:14   ` Jacob Sparre Andersen
2003-10-05  9:17 ` Pascal Obry
2003-10-06  3:53   ` David Trudgett
2003-10-06  7:41   ` Dmitriy Anisimkov
2003-10-06 16:09     ` Pascal Obry
2003-10-06 20:28     ` Georg Bauhaus
2003-10-05  9:41 ` Preben Randhol
2003-10-05 11:30 ` Simon Wright
2003-10-05 14:59 ` Georg Bauhaus
replies disabled

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