comp.lang.ada
 help / color / mirror / Atom feed
* programming a web with ADA
@ 2006-10-17 16:59 ogalve
  2006-10-17 18:55 ` Simon Wright
  2006-10-17 21:23 ` Georg Bauhaus
  0 siblings, 2 replies; 19+ messages in thread
From: ogalve @ 2006-10-17 16:59 UTC (permalink / raw)


Hello
I am new in the group and quite inexperienced programming in ADA.
It would want to make a Web in ADA, somebody could explain to me what I
can use for it?

I have investigated a little and I believe that there is a language
called JGNAT but I don't find documentation that explains its use.




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

* Re: programming a web with ADA
  2006-10-17 16:59 programming a web with ADA ogalve
@ 2006-10-17 18:55 ` Simon Wright
  2006-10-17 19:33   ` Ludovic Brenta
  2006-10-17 20:24   ` tmoran
  2006-10-17 21:23 ` Georg Bauhaus
  1 sibling, 2 replies; 19+ messages in thread
From: Simon Wright @ 2006-10-17 18:55 UTC (permalink / raw)


"ogalve" <ogalve3@yahoo.es> writes:

> I am new in the group and quite inexperienced programming in ADA.
> It would want to make a Web in ADA, somebody could explain to me
> what I can use for it?

You can create a web server in Ada using AWS (at
http://libre.adacore.com), which offers lots of standard protocols, or
my embedded web server (at http://embed-web-srvr.sf.net/) which is
very minimalist by comparison. May be (probably are) others.

> I have investigated a little and I believe that there is a language
> called JGNAT but I don't find documentation that explains its use.

This would be more appropriate for creating Java applets in Ada. NB it
may not be very well supported, others will no doubt expand on this.



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

* Re: programming a web with ADA
  2006-10-17 18:55 ` Simon Wright
@ 2006-10-17 19:33   ` Ludovic Brenta
  2006-10-17 19:59     ` Pascal Obry
  2006-10-18  6:21     ` Adrian Hoe
  2006-10-17 20:24   ` tmoran
  1 sibling, 2 replies; 19+ messages in thread
From: Ludovic Brenta @ 2006-10-17 19:33 UTC (permalink / raw)


Simon Wright <simon@pushface.org> writes:
>> I am new in the group and quite inexperienced programming in ADA.
>> It would want to make a Web in ADA, somebody could explain to me
>> what I can use for it?
> You can create a web server in Ada using AWS (at
> http://libre.adacore.com), which offers lots of standard protocols, or
> my embedded web server (at http://embed-web-srvr.sf.net/) which is
> very minimalist by comparison. May be (probably are) others.

Yes, as a very simple approach, there's AdaCGI which allows you to
write Common Gateway Interface programs which the web server calls to
service requests.  That's probably the most light-weight approach, but
also the least scalable.

Ogalve, I think you should try to explain better what you mean by
"make a Web".

-- 
Ludovic Brenta.



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

* Re: programming a web with ADA
  2006-10-17 19:33   ` Ludovic Brenta
@ 2006-10-17 19:59     ` Pascal Obry
  2006-10-17 21:16       ` Georg Bauhaus
  2006-10-18  4:59       ` Simon Wright
  2006-10-18  6:21     ` Adrian Hoe
  1 sibling, 2 replies; 19+ messages in thread
From: Pascal Obry @ 2006-10-17 19:59 UTC (permalink / raw)
  To: Ludovic Brenta

Ludovic Brenta a �crit :

> Yes, as a very simple approach, there's AdaCGI which allows you to
> write Common Gateway Interface programs which the web server calls to
> service requests.  That's probably the most light-weight approach, but
> also the least scalable.

I disagree with the most "light-weight". To run your CGI you need to
install Apache or another Web Server. This is not light-weight to me,
AWS or Simon's embedded web server (Simon, does it have a name?) is
lighter. Without saying that CGI is just old way to program the Web, a
model where it is not that trivial to keep a session around... and many
other limitations...

Pascal.

-- 

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



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

* Re: programming a web with ADA
  2006-10-17 18:55 ` Simon Wright
  2006-10-17 19:33   ` Ludovic Brenta
@ 2006-10-17 20:24   ` tmoran
  2006-10-17 21:05     ` Randy Brukardt
  1 sibling, 1 reply; 19+ messages in thread
From: tmoran @ 2006-10-17 20:24 UTC (permalink / raw)


> May be (probably are) others.
eg Smplsrvr, a descendant of which runs www.adaic.org, and another runs
http://scout.dyndns.info:63080/xscout.htm



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

* Re: programming a web with ADA
  2006-10-17 20:24   ` tmoran
@ 2006-10-17 21:05     ` Randy Brukardt
  0 siblings, 0 replies; 19+ messages in thread
From: Randy Brukardt @ 2006-10-17 21:05 UTC (permalink / raw)


<tmoran@acm.org> wrote in message
news:PvudnZEewpptpqjYnZ2dnUVZ_v-dnZ2d@comcast.com...
> > May be (probably are) others.
> eg Smplsrvr, a descendant of which runs www.adaic.org, and another runs
> http://scout.dyndns.info:63080/xscout.htm

Actually, the Ada server runs www.adaic.com; www.adaic.org is hosted on a
commercial hosting site (I believe they run Apache). The AdaIC search engine
(which also is the search engine used for the HTML RM and Ada 2005
Rationale) is also written in Ada and hosted at www.adaic.com.

                      Randy.





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

* Re: programming a web with ADA
  2006-10-17 19:59     ` Pascal Obry
@ 2006-10-17 21:16       ` Georg Bauhaus
  2006-10-18  4:59       ` Simon Wright
  1 sibling, 0 replies; 19+ messages in thread
From: Georg Bauhaus @ 2006-10-17 21:16 UTC (permalink / raw)


On Tue, 2006-10-17 at 21:59 +0200, Pascal Obry wrote:

>  CGI [...], a
> model where it is not that trivial to keep a session around... and many
> other limitations...

I'd agree that you need supporting modules for session handling
when writing plain old CGI programs, but in fact then session
is trivial.

We have to keep some 50_000 sessions around 24/7, and
this is done using mostly Apache + CGI. (I really wish I had some
of Ada's tasking comfort at times, though. Experiments
still ongoing.)





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

* Re: programming a web with ADA
  2006-10-17 16:59 programming a web with ADA ogalve
  2006-10-17 18:55 ` Simon Wright
@ 2006-10-17 21:23 ` Georg Bauhaus
  2006-10-19  1:27   ` Britt Snodgrass
  1 sibling, 1 reply; 19+ messages in thread
From: Georg Bauhaus @ 2006-10-17 21:23 UTC (permalink / raw)


On Tue, 2006-10-17 at 09:59 -0700, ogalve wrote:


> I have investigated a little and I believe that there is a language
> called JGNAT but I don't find documentation that explains its use.

JGNAT, and also AppletMagic, are compilers that translate
Ada programs for the JVM. You can write Ada programs and
execute them on the JVM.

There are some limitations as regards full Ada 95 language
support. The class files generated by JGNAT and AppletMagic
need backwards compatibility switches turned on when you
run them.

(JGNAT is not a language, it is GNAT targetting the JVM.)





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

* Re: programming a web with ADA
  2006-10-17 19:59     ` Pascal Obry
  2006-10-17 21:16       ` Georg Bauhaus
@ 2006-10-18  4:59       ` Simon Wright
  1 sibling, 0 replies; 19+ messages in thread
From: Simon Wright @ 2006-10-18  4:59 UTC (permalink / raw)


Pascal Obry <pascal@obry.net> writes:

> Simon's embedded web server (Simon, does it have a name?)

EWS of course, but unfortunately someone on sf.net got there first!



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

* Re: programming a web with ADA
  2006-10-17 19:33   ` Ludovic Brenta
  2006-10-17 19:59     ` Pascal Obry
@ 2006-10-18  6:21     ` Adrian Hoe
  2006-10-18 17:56       ` ogalve
  1 sibling, 1 reply; 19+ messages in thread
From: Adrian Hoe @ 2006-10-18  6:21 UTC (permalink / raw)


On Oct 18, 3:33 am, Ludovic Brenta <ludo...@ludovic-brenta.org> wrote:
> Yes, as a very simple approach, there's AdaCGI which allows you to
> write Common Gateway Interface programs which the web server calls to
> service requests.  That's probably the most light-weight approach, but
> also the least scalable.

Yes. We are using AdaCGI to develop web applications. The web
applications we are developing now are Membership Management and
Appointment Management for a sport organization and medical clinics
respectively. We use MySQL as the backend database.

See http://adrianhoe.com/



> Ogalve, I think you should try to explain better what you mean by
> "make a Web".

It is most likely he meant "making a web page".




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

* Re: programming a web with ADA
  2006-10-18  6:21     ` Adrian Hoe
@ 2006-10-18 17:56       ` ogalve
  2006-10-18 18:16         ` Pascal Obry
  0 siblings, 1 reply; 19+ messages in thread
From: ogalve @ 2006-10-18 17:56 UTC (permalink / raw)


> > Ogalve, I think you should try to explain better what you mean by
> > "make a Web".
>
> It is most likely he meant "making a web page".

Yes, I meant that. I feel too much by my level of English.

What I need to do is an animation. I need to work with image objects.
For example, to take an image and to move it by the screen. But
depending on which the user says: left, rigth...

Thanks to all for your answers, you are helping me much




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

* Re: programming a web with ADA
  2006-10-18 17:56       ` ogalve
@ 2006-10-18 18:16         ` Pascal Obry
  2006-10-18 18:58           ` ogalve
  0 siblings, 1 reply; 19+ messages in thread
From: Pascal Obry @ 2006-10-18 18:16 UTC (permalink / raw)
  To: ogalve

ogalve a �crit :

> What I need to do is an animation. I need to work with image objects.
> For example, to take an image and to move it by the screen. But
> depending on which the user says: left, rigth...

Animation on the Web... this is not that simple! I don't think we are
talking about the same thing then... Can you give an example ?

Pascal.

-- 

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



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

* Re: programming a web with ADA
  2006-10-18 18:16         ` Pascal Obry
@ 2006-10-18 18:58           ` ogalve
  2006-10-18 19:21             ` Pascal Obry
  0 siblings, 1 reply; 19+ messages in thread
From: ogalve @ 2006-10-18 18:58 UTC (permalink / raw)


I must do something like this page

http://webpages.ull.es/users/jriera/Docencia/AVL/AVL%20tree%20applet.htm

but this page is made in JAVA :-(




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

* Re: programming a web with ADA
  2006-10-18 18:58           ` ogalve
@ 2006-10-18 19:21             ` Pascal Obry
  2006-10-18 20:02               ` Dmitry A. Kazakov
  0 siblings, 1 reply; 19+ messages in thread
From: Pascal Obry @ 2006-10-18 19:21 UTC (permalink / raw)
  To: ogalve

ogalve a �crit :
> I must do something like this page
> 
> http://webpages.ull.es/users/jriera/Docencia/AVL/AVL%20tree%20applet.htm
> 
> but this page is made in JAVA :-(

I see you are looking for client side scripting. The page you show us is
about Web Applets. For this you need a technology that the browser
supports. The Applets could be built with an Ada compiler targeting the
JVM like AdaMagic and JGNAT. JGNAT is not supported anymore, I don't
know about AdaMagic. Maybe others will have some better ideas...

Pascal.

-- 

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



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

* Re: programming a web with ADA
  2006-10-18 19:21             ` Pascal Obry
@ 2006-10-18 20:02               ` Dmitry A. Kazakov
  2006-10-18 20:56                 ` Georg Bauhaus
  0 siblings, 1 reply; 19+ messages in thread
From: Dmitry A. Kazakov @ 2006-10-18 20:02 UTC (permalink / raw)


On Wed, 18 Oct 2006 21:21:01 +0200, Pascal Obry wrote:

> ogalve a �crit :
>> I must do something like this page
>> 
>> http://webpages.ull.es/users/jriera/Docencia/AVL/AVL%20tree%20applet.htm
>> 
>> but this page is made in JAVA :-(
> 
> I see you are looking for client side scripting. The page you show us is
> about Web Applets. For this you need a technology that the browser
> supports. The Applets could be built with an Ada compiler targeting the
> JVM like AdaMagic and JGNAT. JGNAT is not supported anymore, I don't
> know about AdaMagic. Maybe others will have some better ideas...

What about Aonix? Do they support JVM target?

-- 
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de



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

* Re: programming a web with ADA
  2006-10-18 20:02               ` Dmitry A. Kazakov
@ 2006-10-18 20:56                 ` Georg Bauhaus
  0 siblings, 0 replies; 19+ messages in thread
From: Georg Bauhaus @ 2006-10-18 20:56 UTC (permalink / raw)


On Wed, 2006-10-18 at 22:02 +0200, Dmitry A. Kazakov wrote:


> What about Aonix? Do they support JVM target?

IF you write Java, yes, sure :-)

If you write Ada, they did, but no longer using ObjectAda 8.x.
The compiler was basically an integration of AppletMagic,
though a few changes to AppletMagic have been made since.
(Aonix ObjectAda uses AdaMagic in its front end, so there...)


-- Georg 






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

* Re: programming a web with ADA
  2006-10-17 21:23 ` Georg Bauhaus
@ 2006-10-19  1:27   ` Britt Snodgrass
  2006-10-19 11:26     ` Georg Bauhaus
  2006-11-01 12:09     ` Georg Bauhaus
  0 siblings, 2 replies; 19+ messages in thread
From: Britt Snodgrass @ 2006-10-19  1:27 UTC (permalink / raw)


Georg Bauhaus wrote:

>
> There are some limitations as regards full Ada 95 language
> support. The class files generated by JGNAT and AppletMagic
> need backwards compatibility switches turned on when you
> run them.
>
> (JGNAT is not a language, it is GNAT targetting the JVM.)

I have never used either but I think I read that that neither of them
support JVM versions newer than version 1.2 (i.e. JDK 1.2 or J2SE 1.2).
This old version is still available from Sun at
http://java.sun.com/products/archive/j2se/1.2.2_017/

JGNAT 1.1p can still be found at
http://gd.tuwien.ac.at/languages/ada/gnat/jgnat/jgnat-1.1p/

-- Britt




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

* Re: programming a web with ADA
  2006-10-19  1:27   ` Britt Snodgrass
@ 2006-10-19 11:26     ` Georg Bauhaus
  2006-11-01 12:09     ` Georg Bauhaus
  1 sibling, 0 replies; 19+ messages in thread
From: Georg Bauhaus @ 2006-10-19 11:26 UTC (permalink / raw)


On Wed, 2006-10-18 at 18:27 -0700, Britt Snodgrass wrote:

> > (JGNAT is not a language, it is GNAT targetting the JVM.)
> 
> I have never used either but I think I read that that neither of them
> support JVM versions newer than version 1.2 (i.e. JDK 1.2 or J2SE 1.2).

Yes, though you can still run the programs with todays JVMs
by setting suitable switches.

> This old version is still available from Sun at
> http://java.sun.com/products/archive/j2se/1.2.2_017/
> 
> JGNAT 1.1p can still be found at
> http://gd.tuwien.ac.at/languages/ada/gnat/jgnat/jgnat-1.1p/

Also, a (somewhat dated) edition of AppletMagic is available
with the 1995 edition of John Barnes' Ada book.



-- Georg 





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

* Re: programming a web with ADA
  2006-10-19  1:27   ` Britt Snodgrass
  2006-10-19 11:26     ` Georg Bauhaus
@ 2006-11-01 12:09     ` Georg Bauhaus
  1 sibling, 0 replies; 19+ messages in thread
From: Georg Bauhaus @ 2006-11-01 12:09 UTC (permalink / raw)


On Wed, 2006-10-18 at 18:27 -0700, Britt Snodgrass wrote:
> Georg Bauhaus wrote:
> 
> >
> > There are some limitations as regards full Ada 95 language
> > support. The class files generated by JGNAT and AppletMagic
> > need backwards compatibility switches turned on when you
> > run them.

> I have never used either but I think I read that that neither of them
> support JVM versions newer than version 1.2 (i.e. JDK 1.2 or J2SE 1.2).

FWIW, here is an update as I've just got AppletMagic for Linux.
It seems a number of things have been fixed and added.

Running Ada->JVM programs is straightforward so far using
either JDK 1.5 or GCC's gij (the GNU interpreter for Java bytecode).
I.e.,

$ adajava hello.ada
$ java hello
Hello, World!
$

The new things include byte code injections for SofCheck's analysis tools.
So I guess you can use just Ada language properties for program analysis
where you would otherwise be using the new Java @annotations from the
Do-it-Yourself Java language straightening toolkit ;-)

Georg 





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

end of thread, other threads:[~2006-11-01 12:09 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-10-17 16:59 programming a web with ADA ogalve
2006-10-17 18:55 ` Simon Wright
2006-10-17 19:33   ` Ludovic Brenta
2006-10-17 19:59     ` Pascal Obry
2006-10-17 21:16       ` Georg Bauhaus
2006-10-18  4:59       ` Simon Wright
2006-10-18  6:21     ` Adrian Hoe
2006-10-18 17:56       ` ogalve
2006-10-18 18:16         ` Pascal Obry
2006-10-18 18:58           ` ogalve
2006-10-18 19:21             ` Pascal Obry
2006-10-18 20:02               ` Dmitry A. Kazakov
2006-10-18 20:56                 ` Georg Bauhaus
2006-10-17 20:24   ` tmoran
2006-10-17 21:05     ` Randy Brukardt
2006-10-17 21:23 ` Georg Bauhaus
2006-10-19  1:27   ` Britt Snodgrass
2006-10-19 11:26     ` Georg Bauhaus
2006-11-01 12:09     ` Georg Bauhaus

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