comp.lang.ada
 help / color / mirror / Atom feed
* web scripting
@ 2003-05-16 21:42 Robert Stuckart
  2003-05-17  1:22 ` Dale Stanbrough
                   ` (2 more replies)
  0 siblings, 3 replies; 13+ messages in thread
From: Robert Stuckart @ 2003-05-16 21:42 UTC (permalink / raw)


I just saw this on comp.lang.php and if you could use a laugh, here it
is. http://public.yahoo.com/~radwin/talks/yahoo-phpcon2002.htm

Is there anything available that would allow the use of Ada for
server-side scripting?  It is extremely easy to write simple scripts
in PHP, but it doesn't scale well at all.

I know this is naive, but I have to ask.  Could scripting be the
killer application for Ada?

Bob



^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: web scripting
  2003-05-16 21:42 web scripting Robert Stuckart
@ 2003-05-17  1:22 ` Dale Stanbrough
  2003-05-17  1:37   ` Robert Stuckart
  2003-05-17  7:18 ` Pascal Obry
  2003-05-17 14:53 ` Tarjei T. Jensen
  2 siblings, 1 reply; 13+ messages in thread
From: Dale Stanbrough @ 2003-05-17  1:22 UTC (permalink / raw)


Robert Stuckart wrote:

> I just saw this on comp.lang.php and if you could use a laugh, here it
> is. http://public.yahoo.com/~radwin/talks/yahoo-phpcon2002.htm
> 
> Is there anything available that would allow the use of Ada for
> server-side scripting?  It is extremely easy to write simple scripts
> in PHP, but it doesn't scale well at all.

One of the language criteria is that...

   "doesn't require CS degree to use" 

so I doubt they are interested in high value skills.

> I know this is naive, but I have to ask.  Could scripting be the
> killer application for Ada?


The "killer application" for Ada is the one that -you- write, 
not one you suggest that others write at some time in the future.

Dale



^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: web scripting
  2003-05-17  1:22 ` Dale Stanbrough
@ 2003-05-17  1:37   ` Robert Stuckart
  2003-05-17  4:02     ` Dale Stanbrough
  0 siblings, 1 reply; 13+ messages in thread
From: Robert Stuckart @ 2003-05-17  1:37 UTC (permalink / raw)


On Sat, 17 May 2003 01:22:03 GMT, Dale Stanbrough
<dstanbro@bigpond.net.au> wrote:


>> I know this is naive, but I have to ask.  Could scripting be the
>> killer application for Ada?
>
>
>The "killer application" for Ada is the one that -you- write, 
>not one you suggest that others write at some time in the future.
>
>Dale

Has anyone already made a start on it?

Bob



^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: web scripting
  2003-05-17  1:37   ` Robert Stuckart
@ 2003-05-17  4:02     ` Dale Stanbrough
  0 siblings, 0 replies; 13+ messages in thread
From: Dale Stanbrough @ 2003-05-17  4:02 UTC (permalink / raw)


In article <ue4bcvk5km50j58uciof6a5ug1bgis0be7@4ax.com>,
 Robert Stuckart <xstuckaxt@stny.rr.com> wrote:


> >The "killer application" for Ada is the one that -you- write, 
> >not one you suggest that others write at some time in the future.
> >
> >Dale
> 
> Has anyone already made a start on it?
> 
> Bob

I write my CGI scripts in Ada, and i've written numerous 
simple html routines. Nothing spectacular, but it solves
my needs.


dale



^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: web scripting
  2003-05-16 21:42 web scripting Robert Stuckart
  2003-05-17  1:22 ` Dale Stanbrough
@ 2003-05-17  7:18 ` Pascal Obry
  2003-05-17 14:53 ` Tarjei T. Jensen
  2 siblings, 0 replies; 13+ messages in thread
From: Pascal Obry @ 2003-05-17  7:18 UTC (permalink / raw)



Robert Stuckart <xstuckaxt@stny.rr.com> writes:

> I just saw this on comp.lang.php and if you could use a laugh, here it
> is. http://public.yahoo.com/~radwin/talks/yahoo-phpcon2002.htm
> 
> Is there anything available that would allow the use of Ada for
> server-side scripting?  

AWS. I have used it in medium-large Web projects. It scales well and is very
powerful, of course I could be a bit biased ;) One powerful AWS's component is
the template engine.

See http://libre.act-europe.fr/aws

Pascal.

-- 

--|------------------------------------------------------
--| Pascal Obry                           Team-Ada Member
--| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE
--|------------------------------------------------------
--|         http://perso.wanadoo.fr/pascal.obry
--| "The best way to travel is by means of imagination"
--|
--| gpg --keyserver wwwkeys.pgp.net --recv-key C1082595



^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: web scripting
  2003-05-16 21:42 web scripting Robert Stuckart
  2003-05-17  1:22 ` Dale Stanbrough
  2003-05-17  7:18 ` Pascal Obry
@ 2003-05-17 14:53 ` Tarjei T. Jensen
  2003-05-17 17:19   ` tmoran
  2 siblings, 1 reply; 13+ messages in thread
From: Tarjei T. Jensen @ 2003-05-17 14:53 UTC (permalink / raw)


Robert Stuckart  wrote:
> Is there anything available that would allow the use of Ada for
> server-side scripting?  It is extremely easy to write simple scripts
> in PHP, but it doesn't scale well at all.

What you want is a web server which loads "scripts" as dynamic link
libraries. The point is of course that you should be able to unload the
lilbrary once the work is done.

> I know this is naive, but I have to ask.  Could scripting be the
> killer application for Ada?

It could be,  if you don't forget that it is a scripting language and not
Ada. e.g. you want strings like Borland Pascal does them, not like Ada95.

Ideally it should look like a cross between vbscript and Ada.


greetings,






^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: web scripting
  2003-05-17 14:53 ` Tarjei T. Jensen
@ 2003-05-17 17:19   ` tmoran
  2003-05-17 18:37     ` Tarjei T. Jensen
  0 siblings, 1 reply; 13+ messages in thread
From: tmoran @ 2003-05-17 17:19 UTC (permalink / raw)


>What you want is a web server which loads "scripts" as dynamic link
  A web server is just a program.  If you want it to run code that changes
on the fly, without a restart, then yes, you need to use dynamic loading,
or interpretation, or CGI, or Annex E or something.  If you know what it
should do and that doesn't change dramatically or frequently, you can code
the whole thing in Ada and recompile the whole thing as necessary.  That
also of course has security advantages.  The server at www.adaic.com
recently added a search capability.  That was done with Ada code, not
interpreted scripts.  If the web server doesn't have to handle all sorts
of bells and whistles, it can even be a rather small chunk of code.

>It could be,  if you don't forget that it is a scripting language and not
  As has been pointed out, Ada is perfectly fine for CGI, and it can
also be used for dll's or with the Distributed Annex.  Those all give you
dynamic loading.  So the real question is whether you need a new
application-specific language for the kinds of programs you intend
to write in this scripting language.



^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: web scripting
  2003-05-17 17:19   ` tmoran
@ 2003-05-17 18:37     ` Tarjei T. Jensen
  2003-05-17 19:06       ` Pascal Obry
  2003-05-19 15:23       ` Georg Bauhaus
  0 siblings, 2 replies; 13+ messages in thread
From: Tarjei T. Jensen @ 2003-05-17 18:37 UTC (permalink / raw)


"tmoran@acm.org" wrote :
> >What you want is a web server which loads "scripts" as dynamic link
>   A web server is just a program.  If you want it to run code that changes
> on the fly, without a restart, then yes, you need to use dynamic loading,
> or interpretation, or CGI, or Annex E or something.  If you know what it
> should do and that doesn't change dramatically or frequently, you can code
> the whole thing in Ada and recompile the whole thing as necessary.  That
> also of course has security advantages.

The main problem is most likely to be errant dll-code. I assume that all
loadable modules would be kept in a secure place.

> >It could be,  if you don't forget that it is a scripting language and not
>   As has been pointed out, Ada is perfectly fine for CGI, and it can
> also be used for dll's or with the Distributed Annex.  Those all give you
> dynamic loading.  So the real question is whether you need a new
> application-specific language for the kinds of programs you intend
> to write in this scripting language.

cgi is not terribly hot with regards to performance.

Read "The Inmates Are Running the Asylum" by Alan Cooper (lots of
self-publicity, but also real insight). Then we can quarrel about whether it
would be worth doing and what might be worth doing.

greetings,





^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: web scripting
  2003-05-17 18:37     ` Tarjei T. Jensen
@ 2003-05-17 19:06       ` Pascal Obry
  2003-05-18  8:08         ` Tarjei T. Jensen
  2003-05-19 15:23       ` Georg Bauhaus
  1 sibling, 1 reply; 13+ messages in thread
From: Pascal Obry @ 2003-05-17 19:06 UTC (permalink / raw)



"Tarjei T. Jensen" <tarjei.jensen@akerkvaerner.com> writes:

> "tmoran@acm.org" wrote :
> > >What you want is a web server which loads "scripts" as dynamic link
> >   A web server is just a program.  If you want it to run code that changes
> > on the fly, without a restart, then yes, you need to use dynamic loading,
> > or interpretation, or CGI, or Annex E or something.  If you know what it
> > should do and that doesn't change dramatically or frequently, you can code
> > the whole thing in Ada and recompile the whole thing as necessary.  That
> > also of course has security advantages.
> 
> The main problem is most likely to be errant dll-code. I assume that all
> loadable modules would be kept in a secure place.

Something strange here. Why do you want scripting on the server side ? It
will just slow down the server with no gain at all!

> > >It could be,  if you don't forget that it is a scripting language and not
> >   As has been pointed out, Ada is perfectly fine for CGI, and it can
> > also be used for dll's or with the Distributed Annex.  Those all give you
> > dynamic loading.  So the real question is whether you need a new
> > application-specific language for the kinds of programs you intend
> > to write in this scripting language.
> 
> cgi is not terribly hot with regards to performance.

Indeed. CGI also introduces security problems.

Pascal.

-- 

--|------------------------------------------------------
--| Pascal Obry                           Team-Ada Member
--| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE
--|------------------------------------------------------
--|         http://perso.wanadoo.fr/pascal.obry
--| "The best way to travel is by means of imagination"
--|
--| gpg --keyserver wwwkeys.pgp.net --recv-key C1082595



^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: web scripting
  2003-05-17 19:06       ` Pascal Obry
@ 2003-05-18  8:08         ` Tarjei T. Jensen
  2003-05-18  9:03           ` Pascal Obry
  0 siblings, 1 reply; 13+ messages in thread
From: Tarjei T. Jensen @ 2003-05-18  8:08 UTC (permalink / raw)


"Pascal Obry"  wrote:
> Something strange here. Why do you want scripting on the server side ? It
> will just slow down the server with no gain at all!

Of course there is gain. You get the ability to extend the functionality of
the server.

However I believe that it is better to extend this functionality by using
loadable modules.

greetings,







^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: web scripting
  2003-05-18  8:08         ` Tarjei T. Jensen
@ 2003-05-18  9:03           ` Pascal Obry
  0 siblings, 0 replies; 13+ messages in thread
From: Pascal Obry @ 2003-05-18  9:03 UTC (permalink / raw)



"Tarjei T. Jensen" <tarjei@online.no> writes:

> "Pascal Obry"  wrote:
> > Something strange here. Why do you want scripting on the server side ? It
> > will just slow down the server with no gain at all!
> 
> Of course there is gain. You get the ability to extend the functionality of
> the server.

But on the server side you always have the possibility to recompile your
application. Using scripting on the server just slow-down the whole beast by
a factor of 2 or 3. Is that a gain ?

> However I believe that it is better to extend this functionality by using
> loadable modules.

This is not scripting in that case. So maybe we are not talking about the
same thing! To extend a server look at the AWS's hotplug modules for example.

Pascal.

-- 

--|------------------------------------------------------
--| Pascal Obry                           Team-Ada Member
--| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE
--|------------------------------------------------------
--|         http://perso.wanadoo.fr/pascal.obry
--| "The best way to travel is by means of imagination"
--|
--| gpg --keyserver wwwkeys.pgp.net --recv-key C1082595



^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: web scripting
  2003-05-17 18:37     ` Tarjei T. Jensen
  2003-05-17 19:06       ` Pascal Obry
@ 2003-05-19 15:23       ` Georg Bauhaus
  2003-05-22 10:11         ` Tarjei T. Jensen
  1 sibling, 1 reply; 13+ messages in thread
From: Georg Bauhaus @ 2003-05-19 15:23 UTC (permalink / raw)


Tarjei T. Jensen <tarjei.jensen@akerkvaerner.com> wrote:
: 
: cgi is not terribly hot with regards to performance.

Does that include FastCGI?


-- Georg



^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: web scripting
  2003-05-19 15:23       ` Georg Bauhaus
@ 2003-05-22 10:11         ` Tarjei T. Jensen
  0 siblings, 0 replies; 13+ messages in thread
From: Tarjei T. Jensen @ 2003-05-22 10:11 UTC (permalink / raw)


Georg Bauhaus wrote:
> Does that include FastCGI?

I don't know.

greetings,





^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2003-05-22 10:11 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-05-16 21:42 web scripting Robert Stuckart
2003-05-17  1:22 ` Dale Stanbrough
2003-05-17  1:37   ` Robert Stuckart
2003-05-17  4:02     ` Dale Stanbrough
2003-05-17  7:18 ` Pascal Obry
2003-05-17 14:53 ` Tarjei T. Jensen
2003-05-17 17:19   ` tmoran
2003-05-17 18:37     ` Tarjei T. Jensen
2003-05-17 19:06       ` Pascal Obry
2003-05-18  8:08         ` Tarjei T. Jensen
2003-05-18  9:03           ` Pascal Obry
2003-05-19 15:23       ` Georg Bauhaus
2003-05-22 10:11         ` Tarjei T. Jensen

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