comp.lang.ada
 help / color / mirror / Atom feed
From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: Ada.Directories problems, a summary
Date: Thu, 1 Jan 2009 15:15:45 +0100
Date: 2009-01-01T15:15:50+01:00	[thread overview]
Message-ID: <142djsdjzi24c$.151j5h91k1zfk.dlg@40tude.net> (raw)
In-Reply-To: 8ea30198-c6cb-4f05-b82e-9f2418d97477@o4g2000pra.googlegroups.com

On Thu, 1 Jan 2009 05:47:13 -0800 (PST), Ivan Levashew wrote:

> Dmitry A. Kazakov wrote:
> 
>> After experimenting with Ada.Directories I collected the issues I think
>> must be addressed to make Ada.Directories more usable:
> 
> Ada RTL isn't enough (and wasn't ever) to do anything serious.

I hope running Ada programs qualifies as serious. (:-))

> I think a replacement library should be designed, with
> OS-specific and fallback (relying on Ada RTL) implementations.

Nope, Ada RTL must support design of platform-independent applications. Any
OS-specific library has no use in my eyes. I think there is a broad
understanding of this beyond Ada community. As an example consider GTK
introducing GIO library which tries to abstract the I/O OS layer. [GIO does
not work, but that is another story...]

> Your problems are not the only ones. For example, with Ada and
> GNAT RTL, I can't easily:
> Read word by word a file,

I don't see any problem with that. Ada.Streams.Stream_IO should do it.

> which is stored in a zip file,
> which itself is hosted on an FTP server,
> which is being accessed through a SOCKS5 proxy,
> which is being accessed through an HTTPS proxy (CONNECT method),
> which is being accessed directly.

All these are just not files. It is a UNIX-world aberration that everything
must be a file. Everything is nothing.

> Every part of Ada RTL and GNAT RTL is locked down to immediate
> filesystem/immediate network connectivity.

Which is good, because your list has no end. What about CORBA, DB
connections etc?

> I can't see any option other than another library.

The option is to limit it to files. Later on URI schemes could added in a
set of separate packages and so on.

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



  reply	other threads:[~2009-01-01 14:15 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-01 11:16 Ada.Directories problems, a summary Dmitry A. Kazakov
2009-01-01 13:47 ` Ivan Levashew
2009-01-01 14:15   ` Dmitry A. Kazakov [this message]
2009-01-02 14:22     ` Ivan Levashew
2009-01-02 14:49       ` Dmitry A. Kazakov
2009-01-02 22:33         ` Colin Paul Gloster
2009-01-03  9:08           ` Dmitry A. Kazakov
2009-01-05 10:01       ` Jean-Pierre Rosen
2009-01-02 22:57     ` Randy Brukardt
2009-01-03  9:39       ` Dmitry A. Kazakov
2009-01-06  1:23         ` Randy Brukardt
2009-01-06 10:41           ` Dmitry A. Kazakov
2009-01-06  1:23         ` Randy Brukardt
2009-01-01 13:56 ` Dmitry A. Kazakov
2009-01-01 14:05 ` Colin Paul Gloster
2009-01-01 14:29   ` Dmitry A. Kazakov
2009-01-01 20:41 ` anon
2009-01-02 11:22   ` Colin Paul Gloster
2009-01-02 10:22 ` Georg Bauhaus
2009-01-02 11:09   ` Dmitry A. Kazakov
replies disabled

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