comp.lang.ada
 help / color / mirror / Atom feed
From: Mark Lorenzen <mark.lorenzen@ofir.dk>
Subject: Re: GNAT and Florist
Date: 10 Aug 2004 21:24:15 +0200
Date: 2004-08-10T21:24:15+02:00	[thread overview]
Message-ID: <m3wu066bkw.fsf@0x53586c42.boanxx18.adsl-dhcp.tele.dk> (raw)
In-Reply-To: ba2f9c57.0408092309.750c8e5b@posting.google.com

fmdf@tiscali.it (fabio de francesco) writes:

> Hello,
> 
> I'm trying to learn Ada95 since a couple of months, coming from C/C++.
> I must say that I find Ada much more powerful for writing code that
> works without hours of debugging like in C/C++ and that it is much
> more readable than the latters.
> 
> I use GNAT compiler on Linux and I want to write an Ada program that
> has to use the TCP/IP Socket API and maybe other POSIX API.
> It's not clear to me which packages I have to use, because I have
> heard of a library named Florist that would provide Sockets bindings (
> and othe POSIX bindings while I also found a package Ada.Sockets in
> GNAT.
> 
> My question is about when and why anyone should choose packages
> provided by Florist instead than the ones by GNAT.
> 
> Thank you all in advance,
> 
> Fabio De Francesco.

Florist is an implementation of the ISO/IEC standard 14519 and defines
a binding the system calls and library functions defined by POSIX.

The socket bindings in GNAT are good enough if you want to do socket
programming, but they are not a complete binding to POSIX. If you want
to use other POSIX functions such as shared memory, memoty locking,
process signalling, select() system call, address resolver, read(),
write(), readv(), writev() etc., then you should go for Florist.

The ISO/IEC 14519 standard consists of nearly 900 pages, but it is
very clear and informative. It is actually a much better source for
learning POSIX than the usual C API.

Regards,
- Mark Lorenzen



  reply	other threads:[~2004-08-10 19:24 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-08-10  7:09 GNAT and Florist fabio de francesco
2004-08-10 19:24 ` Mark Lorenzen [this message]
2004-08-11 11:56   ` fabio de francesco
2004-08-11 16:11     ` Mark Lorenzen
2004-08-11 20:25       ` Ludovic Brenta
2004-08-11  9:02 ` Pascal Obry
replies disabled

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