comp.lang.ada
 help / color / mirror / Atom feed
* GNAT, LINUX, KDE
@ 1999-11-22  0:00 Alfred Hilscher
  1999-11-23  0:00 ` Preben Randhol
                   ` (3 more replies)
  0 siblings, 4 replies; 42+ messages in thread
From: Alfred Hilscher @ 1999-11-22  0:00 UTC (permalink / raw)


Hello there,

does anyone know about Ada bindings for KDE (to write grafical
applications with LINUX) ?




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

* RE: GNAT, LINUX, KDE
@ 1999-11-22  0:00 Robert C. Leif, Ph.D.
  1999-11-23  0:00 ` Preben Randhol
                   ` (2 more replies)
  0 siblings, 3 replies; 42+ messages in thread
From: Robert C. Leif, Ph.D. @ 1999-11-22  0:00 UTC (permalink / raw)
  To: comp.lang.ada

From: Bob Leif
To: Comp.Lang.Ada

Robert Dewar is probably correct for the short term concerning GtkAda.
However, for the long term, please visit www.w3.org. XML does math, has
vectors, data types, forms, etc and is programming language and operating
system independent. I believe that XML and the Web is where the software
action will be.

Although JAVA is of interest to the language experts, the required
functionality is JAVASCRIPT. Ada must work with XML both on the client and
server side. It should be possible to use XML forms and other elements for
screen generation and to do this from Ada. This means that one could design
screens using a commercial web page creation tool.

Amusingly, Microsoft was technically correct on the browser being integrated
into the operating system. First, the Network was the computer; now, the Web
is the computer. Of course, the objects which were used to create Explorer
could be documented so that a competitive product could interface with them.

-----Original Message-----
From: Robert Dewar [mailto:robert_dewar@my-deja.com]
Sent: Monday, November 22, 1999 6:03 PM
To: comp.lang.ada@ada.eu.org
Subject: Re: GNAT, LINUX, KDE


In article <383985C6.F36C0D0C@icn.siemens.de>,
  Alfred Hilscher <Alfred.Hilscher@icn.siemens.de> wrote:
> Hello there,
>
> does anyone know about Ada bindings for KDE (to write grafical
> applications with LINUX) ?


Probably the best recommendation for writing graphical
interfaces from Ada on Linux is to use GtkAda.


Sent via Deja.com http://www.deja.com/
Before you buy.








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

* RE: GNAT, LINUX, KDE
@ 1999-11-22  0:00 Robert C. Leif, Ph.D.
  0 siblings, 0 replies; 42+ messages in thread
From: Robert C. Leif, Ph.D. @ 1999-11-22  0:00 UTC (permalink / raw)
  To: comp.lang.ada

From: Bob Leif
To: Comp.Lang.Ada

Robert Dewar is probably correct for the short term concerning GtkAda.
However, for the long term, please visit www.w3.org. XML does math, has
vectors, data types, forms, etc and is programming language and operating
system independent. I believe that XML and the Web is where the software
action will be.

Although JAVA is of interest to the language experts, the required
functionality is JAVASCRIPT. Ada must work with XML both on the client and
server side. It should be possible to use XML forms and other elements for
screen generation and to do this from Ada. This means that one could design
screens using a commercial web page creation tool.

Amusingly, Microsoft was technically correct on the browser being integrated
into the operating system. First, the Network was the computer; now, the Web
is the computer. Of course, the objects which were used to create Explorer
could be documented so that a competitive product could interface with them.

-----Original Message-----
From: Robert Dewar [mailto:robert_dewar@my-deja.com]
Sent: Monday, November 22, 1999 6:03 PM
To: comp.lang.ada@ada.eu.org
Subject: Re: GNAT, LINUX, KDE


In article <383985C6.F36C0D0C@icn.siemens.de>,
  Alfred Hilscher <Alfred.Hilscher@icn.siemens.de> wrote:
> Hello there,
>
> does anyone know about Ada bindings for KDE (to write grafical
> applications with LINUX) ?


Probably the best recommendation for writing graphical
interfaces from Ada on Linux is to use GtkAda.


Sent via Deja.com http://www.deja.com/
Before you buy.








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

* Re: GNAT, LINUX, KDE
  1999-11-23  0:00     ` Preben Randhol
@ 1999-11-23  0:00       ` Fraser
  0 siblings, 0 replies; 42+ messages in thread
From: Fraser @ 1999-11-23  0:00 UTC (permalink / raw)


paene lacrimavi postquam Preben Randhol <randhol@pvv.org> scripsit:

>That you actually have Motif and most ordinary users don't, as it is
>not free.

There's always Lesstif (http://www.lesstif.org) which is source
compatible with Motif 1.2, and (it seems from reading their latest
news) turns out to be binary compatible as well!

A long while ago, a compiled the Ada Motif binding against Lesstif,
and I'm pretty sure it worked quite handily.  I've since switched
to Gtk though.

Fraser.




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

* Re: GNAT, LINUX, KDE
  1999-11-22  0:00 GNAT, LINUX, KDE Alfred Hilscher
                   ` (2 preceding siblings ...)
  1999-11-23  0:00 ` Aidan Skinner
@ 1999-11-23  0:00 ` Robert Dewar
  3 siblings, 0 replies; 42+ messages in thread
From: Robert Dewar @ 1999-11-23  0:00 UTC (permalink / raw)


In article <383985C6.F36C0D0C@icn.siemens.de>,
  Alfred Hilscher <Alfred.Hilscher@icn.siemens.de> wrote:
> Hello there,
>
> does anyone know about Ada bindings for KDE (to write grafical
> applications with LINUX) ?


Probably the best recommendation for writing graphical
interfaces from Ada on Linux is to use GtkAda.


Sent via Deja.com http://www.deja.com/
Before you buy.




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

* Re: GNAT, LINUX, KDE
  1999-11-22  0:00 GNAT, LINUX, KDE Alfred Hilscher
  1999-11-23  0:00 ` Preben Randhol
  1999-11-23  0:00 ` Dale Pontius
@ 1999-11-23  0:00 ` Aidan Skinner
  1999-11-23  0:00   ` Larry Kilgallen
  1999-11-23  0:00 ` Robert Dewar
  3 siblings, 1 reply; 42+ messages in thread
From: Aidan Skinner @ 1999-11-23  0:00 UTC (permalink / raw)


On Mon, 22 Nov 1999 19:04:54 +0100, Alfred Hilscher
<Alfred.Hilscher@icn.siemens.de> wrote: 

>does anyone know about Ada bindings for KDE (to write grafical
>applications with LINUX) ?

Not that I'm aware of.

If you want to write graphical applications for X-Windows then you
need a binding to either X itself (ie. Xlib), or a toolkit (ie. Motif,
GTK, QT etc.).

X-Windows is a scary and mystical place, where men are men and Orcs
have 18 HD each[1]. Don't go there.

There are bindings to Xt and GTK that I'm aware of, there's RPMs
available from http://www.gnuada.org

KDE itself doesn't, AFAIK, provide any graphical capability in and of
itself, but builds on top of QT, and there isn't an Ada binding to QT
AFAIK.

- Aidan

[1] RPG joke, sorry.
-- 
"I say we just bury him and eat dessert"
http://www.skinner.demon.co.uk/aidan/
OpenPGP Key Fingerprint: 9858 33E6 C755 7D34 B5C5  316D 9274 1343 FBE6 99D9




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

* Re: GNAT, LINUX, KDE
  1999-11-23  0:00 ` Aidan Skinner
@ 1999-11-23  0:00   ` Larry Kilgallen
  1999-11-23  0:00     ` Preben Randhol
  1999-11-24  0:00     ` Aidan Skinner
  0 siblings, 2 replies; 42+ messages in thread
From: Larry Kilgallen @ 1999-11-23  0:00 UTC (permalink / raw)


In article <slrn83jogj.1mn.aidan@skinner.demon.co.uk>, aidan@skinner.demon.co.uk (Aidan Skinner) writes:

> If you want to write graphical applications for X-Windows then you
> need a binding to either X itself (ie. Xlib), or a toolkit (ie. Motif,
> GTK, QT etc.).
> 
> X-Windows is a scary and mystical place, where men are men and Orcs
> have 18 HD each[1]. Don't go there.

While I don't do raw graphics (plotting splines in a window),
the combination of X-Windows and Motif is quite reasonable for
doing GUIs.  I recently added a GUI to a new program that would
otherwise have been only text-based.  The process was relatively
painless and the results were much better than the text-based
interface (which still exists for systems on which X-Windows
is not installed).

Larry Kilgallen




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

* Re: GNAT, LINUX, KDE
  1999-11-23  0:00 ` Preben Randhol
@ 1999-11-23  0:00   ` David Starner
  1999-11-23  0:00     ` Preben Randhol
  1999-11-24  0:00   ` Al Christians
  1 sibling, 1 reply; 42+ messages in thread
From: David Starner @ 1999-11-23  0:00 UTC (permalink / raw)


On 23 Nov 1999 12:16:27 +0100, Preben Randhol <randhol@pvv.org> wrote:
>Alfred Hilscher <Alfred.Hilscher@icn.siemens.de> writes:
>
>| Hello there,
>| 
>| does anyone know about Ada bindings for KDE (to write grafical
>| applications with LINUX) ?
>
>KDE is written in C++ which makes making bindings to other languages
>much harder. 

Actually, with GNAT, interfacing to C++ is no more difficult than interfacing
to C. The bindings aren't written yet, but I'm sure the KDE team would 
appreciate a well-written set of interfaces to Ada, and it's a task that's
more tedious than it is difficult.

-- 
David Starner - dstarner98@aasaa.ofe.org
I see no trend at all, except toward women playing mean and ugly 
sociopaths who are good at killing and who enjoy dark powers. Maybe 
it's just my friends?
	-- Dr. Kromm, on who plays what type of character in RPGs




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

* Re: GNAT, LINUX, KDE
  1999-11-22  0:00 GNAT, LINUX, KDE Alfred Hilscher
@ 1999-11-23  0:00 ` Preben Randhol
  1999-11-23  0:00   ` David Starner
  1999-11-24  0:00   ` Al Christians
  1999-11-23  0:00 ` Dale Pontius
                   ` (2 subsequent siblings)
  3 siblings, 2 replies; 42+ messages in thread
From: Preben Randhol @ 1999-11-23  0:00 UTC (permalink / raw)


Alfred Hilscher <Alfred.Hilscher@icn.siemens.de> writes:

| Hello there,
| 
| does anyone know about Ada bindings for KDE (to write grafical
| applications with LINUX) ?

KDE is written in C++ which makes making bindings to other languages
much harder. Personally I recommend Gtk+ and GtkAda instead. Look at
http://www.gtk.org (you can also look at http://www.gnome.org if you
haven't already)

-- 
Preben Randhol                     "Marriage is when you get to keep
[randhol@pvv.org]                   your girl and don't have to give
[http://www.pvv.org/~randhol/]      her back to her parents." (Eric, 6)




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

* Re: GNAT, LINUX, KDE
  1999-11-22  0:00 GNAT, LINUX, KDE Alfred Hilscher
  1999-11-23  0:00 ` Preben Randhol
@ 1999-11-23  0:00 ` Dale Pontius
  1999-11-23  0:00 ` Aidan Skinner
  1999-11-23  0:00 ` Robert Dewar
  3 siblings, 0 replies; 42+ messages in thread
From: Dale Pontius @ 1999-11-23  0:00 UTC (permalink / raw)


In article <383985C6.F36C0D0C@icn.siemens.de>,
        Alfred Hilscher <Alfred.Hilscher@icn.siemens.de> writes:
> Hello there,
>
> does anyone know about Ada bindings for KDE (to write grafical
> applications with LINUX) ?

You may be in for some problems, here. KDE uses the QT toolkit,
which comes native with C++ bindings. I'm under the impression
that KDE native bindings are C++, as well. I'm also under the
impression that nothing talks well with raw C++, so you first
need to find some wrappers, (probably C) and then either convert
them to Ada, or build Ada wrappers around them. (wrapper-wrappers,
I guess.)

Dale Pontius
NOT speaking for IBM




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

* Re: GNAT, LINUX, KDE
  1999-11-23  0:00   ` Larry Kilgallen
@ 1999-11-23  0:00     ` Preben Randhol
  1999-11-23  0:00       ` Fraser
  1999-11-24  0:00     ` Aidan Skinner
  1 sibling, 1 reply; 42+ messages in thread
From: Preben Randhol @ 1999-11-23  0:00 UTC (permalink / raw)


kilgallen@eisner.decus.org (Larry Kilgallen) writes:

| While I don't do raw graphics (plotting splines in a window),
| the combination of X-Windows and Motif is quite reasonable for

That you actually have Motif and most ordinary users don't, as it is
not free.

-- 
Preben Randhol                     "Marriage is when you get to keep
[randhol@pvv.org]                   your girl and don't have to give
[http://www.pvv.org/~randhol/]      her back to her parents." (Eric, 6)




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

* Re: GNAT, LINUX, KDE
  1999-11-23  0:00   ` David Starner
@ 1999-11-23  0:00     ` Preben Randhol
  0 siblings, 0 replies; 42+ messages in thread
From: Preben Randhol @ 1999-11-23  0:00 UTC (permalink / raw)


dvdeug@x8b4e53cd. (David Starner) writes:

| Actually, with GNAT, interfacing to C++ is no more difficult than interfacing
| to C. The bindings aren't written yet, but I'm sure the KDE team would 

Oh I thought it was. But at least for languages in general I think my
opinion is true.

-- 
Preben Randhol                     "Marriage is when you get to keep
[randhol@pvv.org]                   your girl and don't have to give
[http://www.pvv.org/~randhol/]      her back to her parents." (Eric, 6)




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

* Re: GNAT, LINUX, KDE
  1999-11-23  0:00 ` Preben Randhol
@ 1999-11-23  0:00   ` Vladimir Olensky
  1999-11-23  0:00     ` Preben Randhol
  1999-11-23  0:00     ` David Botton
  1999-11-23  0:00   ` Robert C. Leif, Ph.D.
  1 sibling, 2 replies; 42+ messages in thread
From: Vladimir Olensky @ 1999-11-23  0:00 UTC (permalink / raw)



Preben Randhol wrote in message ...
>"Robert C. Leif, Ph.D." <rleif@rleif.com> writes:
>
>| Robert Dewar is probably correct for the short term concerning GtkAda.
>| However, for the long term, please visit www.w3.org. XML does math, has
>| vectors, data types, forms, etc and is programming language and operating
>| system independent. I believe that XML and the Web is where the software
>| action will be.
>
>I'm cannot say that I see the relevance to XML here? The question was
>about a grafical toolkit not markup language.


Idea here is to  use JAVASCRIPT within XML documents to create
User Interface and exchange information between user form and Ada
application.
I think this approach is very good  as along term strategy.

Moreover,  this approach is the  universal approach to interact with
embedded applications. Now many comm. hardware manufactures use
embedded HTPP  server to provide remote control over hardware from
any network machine equipped with the browser which works
as a user GUI embedded into HTML document (e.g. Cisco
products family). I should say that this is extremely convenient
(I am using that to work with equipment).

More recent example is Erlang OTP that was mentioned recently
in one of the threads.
Among several standard modules that provide  user interface
(including Java, Tck/Tl ) it contain Internet Services Application (INETS)
module that is used to provide discussed above functionality.

Regards,
Vladimir Olensky






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

* Re: GNAT, LINUX, KDE
  1999-11-22  0:00 Robert C. Leif, Ph.D.
@ 1999-11-23  0:00 ` Preben Randhol
  1999-11-23  0:00   ` Vladimir Olensky
  1999-11-23  0:00   ` Robert C. Leif, Ph.D.
  1999-11-23  0:00 ` David Botton
  1999-11-24  0:00 ` Aidan Skinner
  2 siblings, 2 replies; 42+ messages in thread
From: Preben Randhol @ 1999-11-23  0:00 UTC (permalink / raw)


"Robert C. Leif, Ph.D." <rleif@rleif.com> writes:

| Robert Dewar is probably correct for the short term concerning GtkAda.
| However, for the long term, please visit www.w3.org. XML does math, has
| vectors, data types, forms, etc and is programming language and operating
| system independent. I believe that XML and the Web is where the software
| action will be.

I'm cannot say that I see the relevance to XML here? The question was
about a grafical toolkit not markup language.

-- 
Preben Randhol                     "Marriage is when you get to keep
[randhol@pvv.org]                   your girl and don't have to give
[http://www.pvv.org/~randhol/]      her back to her parents." (Eric, 6)




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

* Re: GNAT, LINUX, KDE
  1999-11-23  0:00   ` Vladimir Olensky
@ 1999-11-23  0:00     ` Preben Randhol
  1999-11-24  0:00       ` Vladimir Olensky
  1999-11-23  0:00     ` David Botton
  1 sibling, 1 reply; 42+ messages in thread
From: Preben Randhol @ 1999-11-23  0:00 UTC (permalink / raw)


"Vladimir Olensky" <vladimir_olensky@yahoo.com> writes:

| Idea here is to  use JAVASCRIPT within XML documents to create
| User Interface and exchange information between user form and Ada
| application.
| I think this approach is very good  as along term strategy.

One can do this easily with GtkAda :-) I don't agree that using
JAVAScript is a good strategy though.

-- 
Preben Randhol                     "Marriage is when you get to keep
[randhol@pvv.org]                   your girl and don't have to give
[http://www.pvv.org/~randhol/]      her back to her parents." (Eric, 6)




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

* Re: GNAT, LINUX, KDE
  1999-11-22  0:00 Robert C. Leif, Ph.D.
  1999-11-23  0:00 ` Preben Randhol
@ 1999-11-23  0:00 ` David Botton
  1999-11-24  0:00 ` Aidan Skinner
  2 siblings, 0 replies; 42+ messages in thread
From: David Botton @ 1999-11-23  0:00 UTC (permalink / raw)


They are documented (well mostly). I generated a binding to them using
BindCOM (http://www.adapower.com/com) and have done some neet stuff with
them. I have though been strugling with an issue related to them for
sometime now where calls made from Visual C++ work, but not from non-Visual
XXX products (ie. GCC, GNAT, etc). Strange..................................
since this doesn't appear with any non-MS COM objects, ever.

David Botton


Robert C. Leif, Ph.D. wrote in message ...
Of course, the objects which were used to create Explorer
>could be documented so that a competitive product could interface with
them.







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

* Re: GNAT, LINUX, KDE
  1999-11-23  0:00   ` Vladimir Olensky
  1999-11-23  0:00     ` Preben Randhol
@ 1999-11-23  0:00     ` David Botton
  1999-11-24  0:00       ` Aidan Skinner
  1999-11-24  0:00       ` tmoran
  1 sibling, 2 replies; 42+ messages in thread
From: David Botton @ 1999-11-23  0:00 UTC (permalink / raw)


I agree very much with you. What is needed is a simple HTTP server written
in Ada so we don't ended up married to Explorer.

So far the only workable solutions along these lines (an app on the desktop
producing dynamic browser contents from Ada) with out an HTTP server I have
been able to produce uses COM bindings to MS Internet Explorer. A while back
Robert Leif sent me a message about trying to do this sort of thing with Ada
(Sorry RL, I didn't produce an answer yet), but it seems the only reasonable
non-Microsoft way is to embed a very simple HTTP server in the Ada code.

It would also be possible to set up connections between JavaScript and Ada
using either AdaApplettes or TCP/CORBA/COM connections to Ada code from a
Java proxy to the JavaScript.

David Botton

PS. I wish I had the time to throw together a little http server (it isn't
that much work) for Ada, but I am swamped right now including working to get
out a more robust and concrete release of COM tools for Ada. If anyone takes
up this project let us know!

>Idea here is to  use JAVASCRIPT within XML documents to create
>User Interface and exchange information between user form and Ada
>application.
>I think this approach is very good  as along term strategy.







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

* RE: GNAT, LINUX, KDE
  1999-11-23  0:00 ` Preben Randhol
  1999-11-23  0:00   ` Vladimir Olensky
@ 1999-11-23  0:00   ` Robert C. Leif, Ph.D.
  1999-11-24  0:00     ` Preben Randhol
  1 sibling, 1 reply; 42+ messages in thread
From: Robert C. Leif, Ph.D. @ 1999-11-23  0:00 UTC (permalink / raw)
  To: comp.lang.ada

From: Bob Leif

To: Preben Randol et al.
"I'm cannot say that I see the relevance to XML here? The question was
about a grafical toolkit not markup language."

You build the graphical tool kit out of the markup language rendering
system. It would then be possible to build a windowing system (GUI) based on
Ada tasking. The markup language is for rendering. It greatly facilitates
creating windows or frames. When one uses a typical Internet application,
the material one sees is predominantly based on HTML and its environment.
The use of XML permits the creation of forms, equations, vector graphics
etc.

I never said that XML was in and of itself sufficient. However, the
combination of Ada and XML would provide the type of technological
discontinuity that permits a change in technology. Namely, we go from
hacking with Windows to software engineering with Ada and XML.

-----Original Message-----
From: Preben Randhol [mailto:randhol@pvv.org]
Sent: Tuesday, November 23, 1999 3:14 AM
To: comp.lang.ada@ada.eu.org
Subject: Re: GNAT, LINUX, KDE


"Robert C. Leif, Ph.D." <rleif@rleif.com> writes:

| Robert Dewar is probably correct for the short term concerning GtkAda.
| However, for the long term, please visit www.w3.org. XML does math, has
| vectors, data types, forms, etc and is programming language and operating
| system independent. I believe that XML and the Web is where the software
| action will be.

I'm cannot say that I see the relevance to XML here? The question was
about a grafical toolkit not markup language.

--
Preben Randhol                     "Marriage is when you get to keep
[randhol@pvv.org]                   your girl and don't have to give
[http://www.pvv.org/~randhol/]      her back to her parents." (Eric, 6)








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

* Re: GNAT, LINUX, KDE
  1999-11-23  0:00   ` Larry Kilgallen
  1999-11-23  0:00     ` Preben Randhol
@ 1999-11-24  0:00     ` Aidan Skinner
  1 sibling, 0 replies; 42+ messages in thread
From: Aidan Skinner @ 1999-11-24  0:00 UTC (permalink / raw)


On Tue, 23 Nov 1999 14:17:43 GMT, Larry Kilgallen
<kilgallen@eisner.decus.org> wrote: 

>the combination of X-Windows and Motif is quite reasonable for
>doing GUIs.  I recently added a GUI to a new program that would

Yes, of course. Using a toolkit on top of X is as pleasent as GUI
design can be IMO, but doing it "raw" as it were is a remarkably scary
experience. 

- Aidan
-- 
"I say we just bury him and eat dessert"
http://www.skinner.demon.co.uk/aidan/
OpenPGP Key Fingerprint: 9858 33E6 C755 7D34 B5C5  316D 9274 1343 FBE6 99D9




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

* Re: GNAT, LINUX, KDE
  1999-11-23  0:00 ` Preben Randhol
  1999-11-23  0:00   ` David Starner
@ 1999-11-24  0:00   ` Al Christians
  1 sibling, 0 replies; 42+ messages in thread
From: Al Christians @ 1999-11-24  0:00 UTC (permalink / raw)


Preben Randhol wrote:
> Personally I recommend Gtk+ and GtkAda instead. Look at
> http://www.gtk.org (you can also look at http://www.gnome.org if you
> haven't already)
> 

I downloaded GtkAda Ada (v1.3.3 for Win 32) yesterday.  The docs that
came in the distribution showed a fairly long list of widgets not 
supported by Gate.   Today I found the newer documentation that gave a 
much shorter list of not supported widgets.  This is good, but this new
documentation (from Oct 1999) is newer than the executable I got 
yesterday (from 1999-07-30).  Are the executable in 1.3.3 and the 
latest documentation in sync?

TIA.


Al




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

* Re: GNAT, LINUX, KDE
  1999-11-24  0:00       ` Vladimir Olensky
@ 1999-11-24  0:00         ` Preben Randhol
  0 siblings, 0 replies; 42+ messages in thread
From: Preben Randhol @ 1999-11-24  0:00 UTC (permalink / raw)


"Vladimir Olensky" <vladimir_olensky@yahoo.com> writes:

| But more generally all depends on what one wants (level of GUI
| complexity) and  type of an application.
| 
| The best thing in such (XML with Java Script) approach  that one
| does not need anything except browser.
| I think that this is the most serious argument.

[...]

| Another good argument is that such XML (or HTML) document  which
| implements user GUI via Java Script  should not be embedded into
| the application code. It may be stored separately and can be easily
| modified (localized).

Perhaps I misunderstand you, but GtkAda can also read an XML file to
set up the GUI interface as you want it. Thus you don't have to embed
it into the application code. 

-- 
Preben Randhol                     "Marriage is when you get to keep
[randhol@pvv.org]                   your girl and don't have to give
[http://www.pvv.org/~randhol/]      her back to her parents." (Eric, 6)




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

* Re: GNAT, LINUX, KDE
  1999-11-22  0:00 Robert C. Leif, Ph.D.
  1999-11-23  0:00 ` Preben Randhol
  1999-11-23  0:00 ` David Botton
@ 1999-11-24  0:00 ` Aidan Skinner
  2 siblings, 0 replies; 42+ messages in thread
From: Aidan Skinner @ 1999-11-24  0:00 UTC (permalink / raw)


On Mon, 22 Nov 1999 22:53:53 -0800, Robert C. Leif,
Ph.D. <rleif@rleif.com> wrote: 

>server side. It should be possible to use XML forms and other elements for
>screen generation and to do this from Ada. This means that one could design
>screens using a commercial web page creation tool.

You still need some form of interface between your GUI and the XML
though, GTK has this in form of Glade (http://glade.pn.org) and
libglade.

- Aidan

-- 
"I say we just bury him and eat dessert"
http://www.skinner.demon.co.uk/aidan/
OpenPGP Key Fingerprint: 9858 33E6 C755 7D34 B5C5  316D 9274 1343 FBE6 99D9




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

* Re: GNAT, LINUX, KDE
  1999-11-23  0:00     ` David Botton
@ 1999-11-24  0:00       ` Aidan Skinner
  1999-11-24  0:00       ` tmoran
  1 sibling, 0 replies; 42+ messages in thread
From: Aidan Skinner @ 1999-11-24  0:00 UTC (permalink / raw)


On Tue, 23 Nov 1999 19:51:37 -0500, David Botton <David@Botton.com> wrote:

>PS. I wish I had the time to throw together a little http server (it isn't
>that much work) for Ada, but I am swamped right now including working to get
>out a more robust and concrete release of COM tools for Ada. If anyone takes
>up this project let us know!

I'm intending to put HTTP into libra RSN. The client side will get
done first, to match the SMTP and NNTP functions (I figure this are
more immediatley useful), but it's more or less trivial to reverse the
thin client-side bindings to the server side and I intend to do this
almost immediately.

- Aidan

-- 
"I say we just bury him and eat dessert"
http://www.skinner.demon.co.uk/aidan/
OpenPGP Key Fingerprint: 9858 33E6 C755 7D34 B5C5  316D 9274 1343 FBE6 99D9




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

* Re: GNAT, LINUX, KDE
  1999-11-23  0:00     ` Preben Randhol
@ 1999-11-24  0:00       ` Vladimir Olensky
  1999-11-24  0:00         ` Preben Randhol
  0 siblings, 1 reply; 42+ messages in thread
From: Vladimir Olensky @ 1999-11-24  0:00 UTC (permalink / raw)



Preben Randhol wrote in message ...
>"Vladimir Olensky" <vladimir_olensky@yahoo.com> writes:
>
>| Idea here is to  use JAVASCRIPT within XML documents to create
>| User Interface and exchange information between user form and Ada
>| application.
>| I think this approach is very good  as along term strategy.
>
>One can do this easily with GtkAda :-) I don't agree that using
>JAVAScript is a good strategy though.


Yes I agree that anything could  be done easily when you have needed
tool (or set of different tools)  at hand.
And I have nothing against GtkAda :-).
From what I've read and seen I have very good impression.

But more generally all depends on what one wants (level of GUI
complexity) and  type of an application.

The best thing in such (XML with Java Script) approach  that one
does not need anything except browser.
I think that this is the most serious argument.

Another good argument is that such XML (or HTML) document  which
implements user GUI via Java Script  should not be embedded into
the application code. It may be stored separately and can be easily
modified (localized).

I know this not in words  from others, but in reality, as I am using that
when remotely control  equipment that I support.

I understand this as a some trend. No wonder that recently created Erlang
comes with INETS module that can be used to provide such functionality.
As I am telecommunications engineer and not a pure programmer I see
many things from different angle compared with pure programmers (actually
I know both sides).

Regards,
Vladimir Olensky.








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

* Re: GNAT, LINUX, KDE
  1999-11-23  0:00     ` David Botton
  1999-11-24  0:00       ` Aidan Skinner
@ 1999-11-24  0:00       ` tmoran
  1999-11-24  0:00         ` Geoff Bull
  1 sibling, 1 reply; 42+ messages in thread
From: tmoran @ 1999-11-24  0:00 UTC (permalink / raw)


> What is needed is a simple HTTP server written in Ada so we don't
> ended up married to Explorer.
   Do you mean server, or browser?
> a little http server (it isn't that much work) for Ada, ...
   Looking at RFC 2616, "little" isn't the word that comes to mind,
even after tossing everything related to cacheing.  What do you
have in mind?




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

* Re: GNAT, LINUX, KDE
  1999-11-24  0:00       ` tmoran
@ 1999-11-24  0:00         ` Geoff Bull
  1999-11-24  0:00           ` Robert C. Leif, Ph.D.
  1999-11-25  0:00           ` tmoran
  0 siblings, 2 replies; 42+ messages in thread
From: Geoff Bull @ 1999-11-24  0:00 UTC (permalink / raw)


tmoran@bix.com wrote:
> 
> > What is needed is a simple HTTP server written in Ada so we don't
> > ended up married to Explorer.
>    Do you mean server, or browser?
> > a little http server (it isn't that much work) for Ada, ...
>    Looking at RFC 2616, "little" isn't the word that comes to mind,
> even after tossing everything related to cacheing.  What do you
> have in mind?


http://developer.java.sun.com/developer/technicalArticles/Networking/Webserver/index.html

"The following code implements a simple, multithreaded HTTP server in a
few hundred lines of Java code."




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

* Re: GNAT, LINUX, KDE
  1999-11-23  0:00   ` Robert C. Leif, Ph.D.
@ 1999-11-24  0:00     ` Preben Randhol
  1999-11-24  0:00       ` Robert C. Leif, Ph.D.
  0 siblings, 1 reply; 42+ messages in thread
From: Preben Randhol @ 1999-11-24  0:00 UTC (permalink / raw)


"Robert C. Leif, Ph.D." <rleif@rleif.com> writes:

| You build the graphical tool kit out of the markup language rendering
| system. It would then be possible to build a windowing system (GUI) based on
| Ada tasking. The markup language is for rendering. It greatly facilitates
| creating windows or frames. When one uses a typical Internet application,
| the material one sees is predominantly based on HTML and its environment.
| The use of XML permits the creation of forms, equations, vector graphics
| etc.
| 
| I never said that XML was in and of itself sufficient. However, the
| combination of Ada and XML would provide the type of technological
| discontinuity that permits a change in technology. Namely, we go from
| hacking with Windows to software engineering with Ada and XML.

And GtkAda makes this possible, without having to use Javascript
too ;-)

-- 
Preben Randhol                     "Marriage is when you get to keep
[randhol@pvv.org]                   your girl and don't have to give
[http://www.pvv.org/~randhol/]      her back to her parents." (Eric, 6)




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

* RE: GNAT, LINUX, KDE
  1999-11-24  0:00         ` Geoff Bull
@ 1999-11-24  0:00           ` Robert C. Leif, Ph.D.
  1999-11-25  0:00             ` David Botton
  1999-11-25  0:00             ` Geoff Bull
  1999-11-25  0:00           ` tmoran
  1 sibling, 2 replies; 42+ messages in thread
From: Robert C. Leif, Ph.D. @ 1999-11-24  0:00 UTC (permalink / raw)
  To: comp.lang.ada

From: Bob Leif
To: Geogg Bull et al.

I looked at the JAVA code in the URL from the SUN JAVA site. However, being
neither competent in JAVA nor an expert on servers, I still do not know if
this example is relevant to my question. This question was initially posed
to Team-Ada. Is it feasible to create Ada software for processing HTML that
will work totally on the client computer (PC)? I wish to use HTML forms as
the front-end for a project. There is obvious commercial utility to do this
under Windows 98. However, for hard real-time applications any of the
following operating systems would permit my application to be the sole
executing software on the system. This application can not be interrupted
except perhaps by CTRL-Alt_Del or the reset button. I believe that this
should be possible with DOS, Windows CE, or Linux with an Ada core.
Thank you.
Bob Leif

-----Original Message-----
From: Geoff Bull [mailto:geoff@research.canon.com.au]
Sent: Tuesday, November 23, 1999 9:38 PM
To: comp.lang.ada@ada.eu.org
Subject: Re: GNAT, LINUX, KDE


tmoran@bix.com wrote:
>
> > What is needed is a simple HTTP server written in Ada so we don't
> > ended up married to Explorer.
>    Do you mean server, or browser?
> > a little http server (it isn't that much work) for Ada, ...
>    Looking at RFC 2616, "little" isn't the word that comes to mind,
> even after tossing everything related to cacheing.  What do you
> have in mind?


http://developer.java.sun.com/developer/technicalArticles/Networking/Webserv
er/index.html

"The following code implements a simple, multithreaded HTTP server in a
few hundred lines of Java code."








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

* RE: GNAT, LINUX, KDE
  1999-11-24  0:00     ` Preben Randhol
@ 1999-11-24  0:00       ` Robert C. Leif, Ph.D.
  1999-11-25  0:00         ` Preben Randhol
  0 siblings, 1 reply; 42+ messages in thread
From: Robert C. Leif, Ph.D. @ 1999-11-24  0:00 UTC (permalink / raw)
  To: comp.lang.ada

From: Bob Leif
To: Preben Randhol

Do you have an example where this all takes place on the same PC?

-----Original Message-----
From: Preben Randhol [mailto:randhol@pvv.org]
Sent: Wednesday, November 24, 1999 1:12 AM
To: comp.lang.ada@ada.eu.org
Subject: Re: GNAT, LINUX, KDE


"Robert C. Leif, Ph.D." <rleif@rleif.com> writes:

| You build the graphical tool kit out of the markup language rendering
| system. It would then be possible to build a windowing system (GUI) based
on
| Ada tasking. The markup language is for rendering. It greatly facilitates
| creating windows or frames. When one uses a typical Internet application,
| the material one sees is predominantly based on HTML and its environment.
| The use of XML permits the creation of forms, equations, vector graphics
| etc.
|
| I never said that XML was in and of itself sufficient. However, the
| combination of Ada and XML would provide the type of technological
| discontinuity that permits a change in technology. Namely, we go from
| hacking with Windows to software engineering with Ada and XML.

And GtkAda makes this possible, without having to use Javascript
too ;-)

--
Preben Randhol                     "Marriage is when you get to keep
[randhol@pvv.org]                   your girl and don't have to give
[http://www.pvv.org/~randhol/]      her back to her parents." (Eric, 6)








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

* Re: GNAT, LINUX, KDE
  1999-11-24  0:00         ` Geoff Bull
  1999-11-24  0:00           ` Robert C. Leif, Ph.D.
@ 1999-11-25  0:00           ` tmoran
  1 sibling, 0 replies; 42+ messages in thread
From: tmoran @ 1999-11-25  0:00 UTC (permalink / raw)


> http://developer.java.sun.com/developer/technicalArticles/Networking/Webserver/index.html
>
> "The following code implements a simple, multithreaded HTTP server in a
> few hundred lines of Java code."
 The same (simple) functionality using Ada with CLAW is 3/4 as big.
The only significant changes are that I don't show a directory list
if given the name of a directory with no index.html file (that does
not seem to be usually done, and seems like a security problem), and
I reject file names containing "..", "*", or "?".




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

* Re: GNAT, LINUX, KDE
  1999-11-24  0:00           ` Robert C. Leif, Ph.D.
  1999-11-25  0:00             ` David Botton
@ 1999-11-25  0:00             ` Geoff Bull
  1 sibling, 0 replies; 42+ messages in thread
From: Geoff Bull @ 1999-11-25  0:00 UTC (permalink / raw)


Robert C. Leif, Ph.D. wrote:

> However, being neither competent in JAVA nor an expert on
> servers, I still do not know if this example is relevant to
> my question.

> This question was initially posed to Team-Ada. 
> Is it feasible to create Ada software for processing HTML
> that will work totally on the client computer (PC)?
> I wish to use HTML forms as the front-end for a project.

Sorry, I had lost sight of your question.

The point of the Java web server code was merely to 
support David Botton's view that embedding an http server
wouldn't be "that much work", a point of view that has been
challenged.

You need understand neither Java nor servers to see
from the Java code that an embedded http server can be very
small (even though this one can't process forms).

Geoff




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

* Re: GNAT, LINUX, KDE
  1999-11-24  0:00       ` Robert C. Leif, Ph.D.
@ 1999-11-25  0:00         ` Preben Randhol
  0 siblings, 0 replies; 42+ messages in thread
From: Preben Randhol @ 1999-11-25  0:00 UTC (permalink / raw)


"Robert C. Leif, Ph.D." <rleif@rleif.com> writes:

| From: Bob Leif
| To: Preben Randhol
| 
| Do you have an example where this all takes place on the same PC?

Now I'm not following you. Please elaborate.

-- 
Preben Randhol                     "Marriage is when you get to keep
[randhol@pvv.org]                   your girl and don't have to give
[http://www.pvv.org/~randhol/]      her back to her parents." (Eric, 6)




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

* Re: GNAT, LINUX, KDE
  1999-11-24  0:00           ` Robert C. Leif, Ph.D.
@ 1999-11-25  0:00             ` David Botton
  1999-11-26  0:00               ` Vladimir Olensky
  1999-11-25  0:00             ` Geoff Bull
  1 sibling, 1 reply; 42+ messages in thread
From: David Botton @ 1999-11-25  0:00 UTC (permalink / raw)


This is __highly__ relevant to your question.

What is the big deal to have an Ada application that embeds a small web
server. Then start up your browser with http://localhost:PICK-A-PORT-HERE
(or have a shell script/bat file that runs it with the URL) and THERE YOU
GO!! Same PC as the APP.

For example:

The 1997 Britannica CD was written this way, the 1998 uses IE3.02 Web COM
objects.

The non-COM method is of course portable and has the advantage that the app
can also be run from a different machine then the one where the Ada
application is running. (If you wanted you could detect where the connection
is coming from and refuse non-LocalHost connections also.)

The Java code posted just proves my point. Add to that some simple handling
of forms (and XML if you must) and there you go.

If I could spare a couple of hours I would put such an app together, but I
don't have them right now.

David Botton


Robert C. Leif, Ph.D. wrote in message ...
 This question was initially posed
>to Team-Ada. Is it feasible to create Ada software for processing HTML that
>will work totally on the client computer (PC)?






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

* Re: GNAT, LINUX, KDE
  1999-11-26  0:00               ` Vladimir Olensky
@ 1999-11-26  0:00                 ` Tarjei Jensen
  1999-11-26  0:00                   ` Vladimir Olensky
                                     ` (2 more replies)
  0 siblings, 3 replies; 42+ messages in thread
From: Tarjei Jensen @ 1999-11-26  0:00 UTC (permalink / raw)



Vladimir Olensky wrote:
>    I think that it would be better if something like this would be done
>in pure Ada. I know this is not simple.  Doug Schmidt spent many
>years for all that.  But he looked into the future and his guess
>was right.
>
>  If similar communication subsystem would be a part of a standard
>or semi-standard Ada environment  it could provide an excellent
>platform  for many great things and make Ada more competitive
>in some areas where C++ has better positions.


You're not the only one who think along those lines.

I'm working on a Ada binding to the socket API. Progress is very slow since I
only do this in my less than copious spare time.

The reason that I want my own binding, is that I want something that "works
with" Ada, not just something that Ada tolerates. I want the compiler to catch
as many as possible of my mistakes.

I have discovered that is Ada vendors that supported interface.c were required
to supply basic datatypes like size_t, time_t for the C libraries, then life
would be easier.


>Importance of communications increases every year.


True.

I think network programming is a field where Ada could do really well if the
right examples existed and this theme were used by educators.

This is one reason why it is vital to get a good, portable and freely usable
socket interface for Ada.

After that we can begin building service libraries for such tings as ftp,
telnet, http, etc.

I believe that network programming (with the right library) could be the ideal
theme for teaching programming. I believe that students will get a sense of
achievement  when their program works. E.g. getting their program to retrieve
the time of day from a server and displaying it. Since the theme is very
practical it should help motivating the students. And it would be easy to vary
the difficulty according to the students level of competence.

Since I am not an educator and have no teaching experience I could be entirely
wrong about this. It would not surprise me at all if I was completely wrong.


Greetings,







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

* Re: GNAT, LINUX, KDE
  1999-11-26  0:00                 ` Tarjei Jensen
@ 1999-11-26  0:00                   ` Vladimir Olensky
  1999-11-28  0:00                   ` Aidan Skinner
  1999-11-28  0:00                   ` tmoran
  2 siblings, 0 replies; 42+ messages in thread
From: Vladimir Olensky @ 1999-11-26  0:00 UTC (permalink / raw)


Tarjei Jensen wrote in message <81lkb2$mra3@ftp.kvaerner.com>...
>
>Vladimir Olensky wrote:

>>  If similar communication subsystem would be a part of a standard
>>or semi-standard Ada environment  it could provide an excellent
>>platform  for many great things and make Ada more competitive
>>in some areas where C++ has better positions.

>You're not the only one who think along those lines.


That's very nice :-)

>>Importance of communications increases every year.

>True.
>I think network programming is a field where Ada could do really well if
the
>right examples existed and this theme were used by educators.


You may find them in CLAW from RR Software.

Actually I was talking not only about network programming  but
about communications in a more broader sense where this
particular aspect is the only some fraction  of the whole.

I see such subsystem consisting of several layers where the lowest
layers provide thread safe OO wrappers  to all the communications
capabilities  of the underlying OS including serial/parallel communications,
mailslots, named pipes, memory mapped files, sockets etc.
The upper layer uses all that  to build higher level services including
different data streams, TCP/IP services such as HTTP, FTP, TFTP,
SNMP, NTTP, Telnet  etc.
User can have access to the services at the needed level and combine
them to create what is needed for particular application.

I like the way the network  services are  done in Java.
Very convenient.
Even Serial/Parallel communication classes are already
available from Sun and are considered now to be part of the
Java standard.

When I first encountered ACE (last year)  I had a nice surprise that
everything I was thinking about had been already implemented using
advanced design patterns technique.
The bad thing about all this that it was C++ and not Ada.

Another nice surprise recently  was Erlang  with its communications
modules.

Regards,
Vladimir Olensky










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

* Re: GNAT, LINUX, KDE
  1999-11-25  0:00             ` David Botton
@ 1999-11-26  0:00               ` Vladimir Olensky
  1999-11-26  0:00                 ` Tarjei Jensen
  0 siblings, 1 reply; 42+ messages in thread
From: Vladimir Olensky @ 1999-11-26  0:00 UTC (permalink / raw)



David Botton wrote in message <81k70k$197u$1@news.gate.net>...

>What is the big deal to have an Ada application that embeds a small web
>server.

>The Java code posted just proves my point. Add to that some simple
>handling of forms (and XML if you must) and there you go.


Another HTTP Server example written in C++  from  very well known
Douglas C. Schmidt is located at:
   http://siesta.cs.wustl.edu/~schmidt/ACE_wrappers/apps/JAWS/server/

This HTTP server comes with the ACE ( The Adaptive Communication
Environment) source code distribution.

ACE home page is  http://www.cs.wustl.edu/~schmidt/ACE.html

   ACE has now become almost de-facto standard  in industry and
has a lot of industrial sponsors and users  (big players).
Even companies that use Ada are presented among them
(including Boeing and Lockheed Martin ).
This list just confirms that there is great need for such OO tool.

   I know that some people are working on creating Ada bindings to
TAO which means also bindings to ACE itself as TAO has been
built on top of the ACE.
    I think that it would be better if something like this would be done
in pure Ada. I know this is not simple.  Doug Schmidt spent many
years for all that.  But he looked into the future and his guess
was right.

  If similar communication subsystem would be a part of a standard
or semi-standard Ada environment  it could provide an excellent
platform  for many great things and make Ada more competitive
in some areas where C++ has better positions.

For instance Erlang ( http://www.erlang.org/)  from Ericsson has
much of that functionality (including HTTP server) in it's predefined
environment.
What is interesting Ericsson  is also among ACE sponsors.

It is interesting to know what others think regarding having
that functionality as part of Ada predefined environment.

Importance of communications increases every year.

Regards,
Vladimir Olensky







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

* Re: GNAT, LINUX, KDE
  1999-11-26  0:00                 ` Tarjei Jensen
  1999-11-26  0:00                   ` Vladimir Olensky
  1999-11-28  0:00                   ` Aidan Skinner
@ 1999-11-28  0:00                   ` tmoran
  2 siblings, 0 replies; 42+ messages in thread
From: tmoran @ 1999-11-28  0:00 UTC (permalink / raw)


>>  If similar communication subsystem would be a part of a standard
>>or semi-standard Ada environment  it could provide an excellent
>>platform  for many great things and make Ada more competitive
>>in some areas where C++ has better positions.
>You're not the only one who think along those lines.
>
>The reason that I want my own binding, is that I want something that "works
>with" Ada, not just something that Ada tolerates. I want the compiler to catch
>as many as possible of my mistakes.
  I think it would be unfortunate if a lot of effort went into
multiple, slightly different, incompatible Ada packages.  Since CLAW
works, and, having written the Sockets packages I think they are
quite usable, I naturally propose that others either use them, or at
least use their interface.  A quick glance is:

    -- Socket_Type   is a stream communication socket.
    -- It's a Controlled type so it will be automatically Closed
    -- when it goes out of scope.

    -- Async_Socket_Type (in Claw.Sockets.Non_Blocking) allows "interrupts"
    -- on Socket_Types.

    -- Datagram_Type (in Claw.Sockets.Datagrams) is a datagram communication socket.

    -- Server_Type  is a simple server accepting calls from clients,
    -- using polling or waiting for client arrival notification.

    -- Async_Server_Type  is a server with a When_Client interrupt, rather
    -- than polling or waiting, for client arrival notification.

    -- Socket_Stream_Type   is a new Root_Stream_Type for T'Read on sockets.

  procedure Open(Socket     : in out Socket_Type;
                 Domain_Name: in     String;
                 Port       : in     Port_Type;
                 Timeout    : in     Duration := 30.0);
  procedure Open(Socket  : in out Socket_Type;
                 Address : in     Network_Address_Type;
                 Port    : in     Port_Type;
                 Timeout : in     Duration := 30.0);
  procedure Close(Socket : in out Socket_Type);
  procedure Get (Socket : in out Socket_Type;
                 Item   :    out String;
                 Last   :    out Natural);
  procedure Get (Socket  : in out Socket_Type;
                 Timeout : in     Duration;
                 Item    :    out String;
                 Last    :    out Natural);
  procedure Put(Socket : in out Socket_Type;
                Phrase : in     String);
  procedure Put_Line(Socket : in out Socket_Type;
                     Phrase : in     String);
  similar IO for non-string data, records, Ada.Streams, etc.

  A Server_Type is similar but its most important routine is:

  procedure Greet(Server : in out Server_Type;
                  Socket : in out Socket_Type'Class);
        -- Wait for some client to access Server, then set Socket to
        -- an open socket connected to that client and return.
  There's also:
  type Async_Server_Type is new Server_Type with private;
  -- Server with When_Client notification of client arrival.
  -- Does not block, but the routine overiding When_Client is
  -- called on a new client's arrival.  When_Client should
  -- then do a Greet, presumably in a rendezvous with a worker
  -- task.

  function Get_Handle (Socket : in Root_Socket_Type'Class)
                return Socket_Handles;
  -- A way to get a Windows handle for a socket if you really
  -- need to pass it to some other low-level stuff.

  procedure Get_Socket_From_Handle (Socket : in out Socket_Type;
                                    Handle : in     Socket_Handles);
  -- A way to get a Claw socket from an existing Windows socket
  -- handle.

  There are of course a bunch of utility routines for finding who
you are connected to, looking up names, making or tearing apart
IP addresses, etc.
  CLAW handles the Windows messaging stuff internally.  The
standard CLAW exceptions like Not_Valid_Error, Not_Found, etc
are generated as appropriate.  There's also
  Busy : Exception;  -- raised when a second task attempts an operation
                     -- on a socket which is already in the middle of
                     -- an operation from a different task.  This
                     -- likely would result in a race condition.

  I really doubt there would be any copyright problems reusing the
spec of Claw.Sockets, since compatibility is obviously in the
interest of RR Software.




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

* Re: GNAT, LINUX, KDE
  1999-11-26  0:00                 ` Tarjei Jensen
  1999-11-26  0:00                   ` Vladimir Olensky
@ 1999-11-28  0:00                   ` Aidan Skinner
  1999-11-29  0:00                     ` Tarjei Jensen
  1999-11-28  0:00                   ` tmoran
  2 siblings, 1 reply; 42+ messages in thread
From: Aidan Skinner @ 1999-11-28  0:00 UTC (permalink / raw)


On Fri, 26 Nov 1999 10:37:18 +0100, Tarjei Jensen
<tarjei.jensen@kvaerner.com> wrote: 

>I'm working on a Ada binding to the socket API. Progress is very slow since I
>only do this in my less than copious spare time.

Are you intending to release this under the modified GPL? If so you probably
want to build it on top of the AdaSockets (http://www-inf.enst.fr/ANC/)
binding by Sam Tardieu.

>I have discovered that is Ada vendors that supported interface.c were required
>to supply basic datatypes like size_t, time_t for the C libraries, then life
>would be easier.

I think those sort of things are more in a POSIX stylee...

- Aidan
-- 
http://www.skinner.demon.co.uk/aidan/
http://www.gla.ac.uk/Clubs/WebSoc/~9704075s/
"I could always suspend a few hundred accounts and watch what happens"




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

* Re: GNAT, LINUX, KDE
  1999-11-28  0:00                   ` Aidan Skinner
@ 1999-11-29  0:00                     ` Tarjei Jensen
  1999-12-01  0:00                       ` Aidan Skinner
  1999-12-08  0:00                       ` Jeffrey L Straszheim
  0 siblings, 2 replies; 42+ messages in thread
From: Tarjei Jensen @ 1999-11-29  0:00 UTC (permalink / raw)



Aidan Skinner wrote:
>Are you intending to release this under the modified GPL? If so you probably
>want to build it on top of the AdaSockets (http://www-inf.enst.fr/ANC/)
>binding by Sam Tardieu.


If I manage to finish it, the license will be along what GNAT allows.

For my taste AdaSockets contains too much C flavour.

>>I have discovered that is Ada vendors that supported interface.c were
required
>>to supply basic datatypes like size_t, time_t for the C libraries, then life
>>would be easier.
>
>I think those sort of things are more in a POSIX stylee...


It may be Posix, but they are still useful for socket programming.


Greetings,







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

* Re: GNAT, LINUX, KDE
  1999-11-29  0:00                     ` Tarjei Jensen
@ 1999-12-01  0:00                       ` Aidan Skinner
  1999-12-08  0:00                       ` Jeffrey L Straszheim
  1 sibling, 0 replies; 42+ messages in thread
From: Aidan Skinner @ 1999-12-01  0:00 UTC (permalink / raw)


On Mon, 29 Nov 1999 17:22:53 +0100, Tarjei Jensen
<tarjei.jensen@kvaerner.com> wrote: 

>Aidan Skinner wrote:

>For my taste AdaSockets contains too much C flavour.

I guessed this, that's why I suggestted building it on top of
AdaSockets, you then don't have to do the low level stuff and can
concentrate on the public interface itself

>>>I have discovered that is Ada vendors that supported interface.c were
>required

>>I think those sort of things are more in a POSIX stylee...

>It may be Posix, but they are still useful for socket programming.

Yes, but since not all systems that Ada is implemented on is POSIX,
or, indeed, POSIX-like supplying them shouldn't be required by the
language.

- Aidan

-- 
http://www.skinner.demon.co.uk/aidan/
http://www.gla.ac.uk/Clubs/WebSoc/~9704075s/
"I could always suspend a few hundred accounts and watch what happens"




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

* Re: GNAT, LINUX, KDE
  1999-11-29  0:00                     ` Tarjei Jensen
  1999-12-01  0:00                       ` Aidan Skinner
@ 1999-12-08  0:00                       ` Jeffrey L Straszheim
  1999-12-10  0:00                         ` Tarjei Jensen
  1 sibling, 1 reply; 42+ messages in thread
From: Jeffrey L Straszheim @ 1999-12-08  0:00 UTC (permalink / raw)


Tarjei Jensen wrote:

> If I manage to finish it, the license will be along what GNAT allows.
 
Don't rule out allowing some collaboration on it. I only say this
because I'd be happy to contribute to such an effort, rather than
doing my own and have us both put in that much effort for duplicate
results.

<regarding Posix types in Ada>

> It may be Posix, but they are still useful for socket programming.

Some portable way (or at least close to portable) to pull in
the C header files and pump out compatable Ada types would
be nice. It's a real nuisance to write a C wrapper function
that just munges the parameters to send them on to the actual
C library call. Any thoughts?

-- Jeffrey Straszheim          
-- Systems Engineer, Programmer
-- http://www.shadow.net/~stimuli
-- stimuli AT shadow DOT net




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

* Re: GNAT, LINUX, KDE
  1999-12-08  0:00                       ` Jeffrey L Straszheim
@ 1999-12-10  0:00                         ` Tarjei Jensen
  0 siblings, 0 replies; 42+ messages in thread
From: Tarjei Jensen @ 1999-12-10  0:00 UTC (permalink / raw)



Jeffrey L Straszheim wrote
>Some portable way (or at least close to portable) to pull in
>the C header files and pump out compatable Ada types would
>be nice. It's a real nuisance to write a C wrapper function
>that just munges the parameters to send them on to the actual
>C library call. Any thoughts?


It would be most useful if the C bindings contained the various data types.
Creating ones own bindings would be easier that way and way more portable in
many cases. E.g. automatic differentiating between 32 bit and 64 bit Unix,
windows NT, etc.

At one time I was planning a C program which would generate automagically a
socket binding. However I found it impractical. I suppose it would be practical
to create a C program which automagically generates definitions for various C
data types. I am not thinking about automatically generating records, but their
individual components.

Just in case anybody asks; If I do it, it will be free as in gratis and I will
do it in my own time.

Greetings,







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

end of thread, other threads:[~1999-12-10  0:00 UTC | newest]

Thread overview: 42+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-11-22  0:00 GNAT, LINUX, KDE Alfred Hilscher
1999-11-23  0:00 ` Preben Randhol
1999-11-23  0:00   ` David Starner
1999-11-23  0:00     ` Preben Randhol
1999-11-24  0:00   ` Al Christians
1999-11-23  0:00 ` Dale Pontius
1999-11-23  0:00 ` Aidan Skinner
1999-11-23  0:00   ` Larry Kilgallen
1999-11-23  0:00     ` Preben Randhol
1999-11-23  0:00       ` Fraser
1999-11-24  0:00     ` Aidan Skinner
1999-11-23  0:00 ` Robert Dewar
  -- strict thread matches above, loose matches on Subject: below --
1999-11-22  0:00 Robert C. Leif, Ph.D.
1999-11-23  0:00 ` Preben Randhol
1999-11-23  0:00   ` Vladimir Olensky
1999-11-23  0:00     ` Preben Randhol
1999-11-24  0:00       ` Vladimir Olensky
1999-11-24  0:00         ` Preben Randhol
1999-11-23  0:00     ` David Botton
1999-11-24  0:00       ` Aidan Skinner
1999-11-24  0:00       ` tmoran
1999-11-24  0:00         ` Geoff Bull
1999-11-24  0:00           ` Robert C. Leif, Ph.D.
1999-11-25  0:00             ` David Botton
1999-11-26  0:00               ` Vladimir Olensky
1999-11-26  0:00                 ` Tarjei Jensen
1999-11-26  0:00                   ` Vladimir Olensky
1999-11-28  0:00                   ` Aidan Skinner
1999-11-29  0:00                     ` Tarjei Jensen
1999-12-01  0:00                       ` Aidan Skinner
1999-12-08  0:00                       ` Jeffrey L Straszheim
1999-12-10  0:00                         ` Tarjei Jensen
1999-11-28  0:00                   ` tmoran
1999-11-25  0:00             ` Geoff Bull
1999-11-25  0:00           ` tmoran
1999-11-23  0:00   ` Robert C. Leif, Ph.D.
1999-11-24  0:00     ` Preben Randhol
1999-11-24  0:00       ` Robert C. Leif, Ph.D.
1999-11-25  0:00         ` Preben Randhol
1999-11-23  0:00 ` David Botton
1999-11-24  0:00 ` Aidan Skinner
1999-11-22  0:00 Robert C. Leif, Ph.D.

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