From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: Exclusive file access
Date: Mon, 7 Sep 2015 21:06:17 +0200
Date: 2015-09-07T21:06:17+02:00 [thread overview]
Message-ID: <9pmm48f38rj5.os8vtdtxiti.dlg@40tude.net> (raw)
In-Reply-To: 87fv2qw0cx.fsf@mid.deneb.enyo.de
On Mon, 07 Sep 2015 20:27:58 +0200, Florian Weimer wrote:
> * Dmitry A. Kazakov:
>
>> Anything you can encode in Unicode you can encode in Unicode.
>
> This is simply not true across multiple Unicode versions (and when
> dealing with multi-byte encodings).
Versions of Unicode are irrelevant.
> It is not possible to express all
> possible UCS-2 sequences in UTF-32, in the sense that converting from
> UTF-32 completely covers the entire set of UCS-2 strings.
You can represent all code ranges in UTF-32. I don't think the language
should care about "visible characters." This insanity can be safely
ignored.
>>> The user may select a file, but the application cannot open it.
>>> That's a poor user experience.
>>
>> That is not a problem at all. You cannot create a 999TB large file either.
>
> Well ...
>
> -rw-r--r-- 1 fw fw 1098412116148224 Sep 7 20:23 t
>
> And I expect that I can delete it, too. Anything else would be a bug.
Bug of the OS or of your program?
Ada.Text_IO could also tell you that the file was created and then proclaim
anything else a bug.
>> System-specific constraints put on an implementation do not effect the
>> interface, which has Name_Error in it already.
>
> It's not a constraint that the system imposes, it's something that
> requires careful thought from the programming language implementor.
You cannot have files named ".." on some OSes. That has nothing to do with
Ada or any other language.
> If they impose stronger constraints on strings than what the file
> system enforces, you end up with non-nameable files and a poor user
> experience.
That is the problem with current Ada.Directories and Ada.Text_IO. Not
because of a constraint, but because the constraint is meaningless in a
system that allows wider sets of characters than ASCII.
--
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de
next prev parent reply other threads:[~2015-09-07 19:06 UTC|newest]
Thread overview: 52+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-27 13:52 Exclusive file access ahlan
2015-08-27 14:27 ` gautier_niouzes
2015-08-31 23:20 ` Randy Brukardt
2015-09-01 16:23 ` Pascal Obry
2015-09-01 20:48 ` Randy Brukardt
2015-08-27 14:42 ` Björn Lundin
2015-08-27 14:48 ` G.B.
2015-08-27 15:08 ` Björn Lundin
2015-08-27 18:38 ` tmoran
2015-08-27 23:16 ` Georg Bauhaus
2015-08-27 23:29 ` Pascal Obry
2015-08-28 7:25 ` Georg Bauhaus
2015-08-27 15:15 ` ahlan
2015-08-27 18:29 ` Jeffrey R. Carter
2015-08-28 5:41 ` ahlan
2015-08-28 7:10 ` Georg Bauhaus
2015-08-28 17:40 ` ahlan
2015-08-28 19:49 ` Anh Vo
2015-08-28 21:06 ` Simon Wright
2015-08-28 21:38 ` Jeffrey R. Carter
2015-08-29 7:05 ` Dmitry A. Kazakov
2015-08-29 8:31 ` Pascal Obry
2015-08-29 12:02 ` Dmitry A. Kazakov
2015-08-30 11:35 ` Florian Weimer
2015-08-30 12:44 ` Dmitry A. Kazakov
2015-08-30 19:37 ` Florian Weimer
2015-08-31 7:22 ` Dmitry A. Kazakov
2015-08-31 21:12 ` Florian Weimer
2015-09-01 7:26 ` Dmitry A. Kazakov
2015-09-07 18:27 ` Florian Weimer
2015-09-07 19:06 ` Dmitry A. Kazakov [this message]
2015-09-11 16:54 ` Florian Weimer
2015-08-31 23:34 ` Randy Brukardt
2015-09-01 7:33 ` Dmitry A. Kazakov
2015-08-29 16:07 ` gautier_niouzes
2015-08-29 17:12 ` Dmitry A. Kazakov
2015-09-01 12:37 ` brbarkstrom
2015-09-01 14:05 ` ahlan
2015-09-01 15:13 ` Simon Wright
2015-09-01 20:36 ` Randy Brukardt
2015-09-01 15:17 ` Jacob Sparre Andersen
2015-09-01 20:37 ` Randy Brukardt
2015-09-01 16:05 ` G.B.
2015-09-01 20:02 ` brbarkstrom
2015-09-01 21:17 ` Simon Wright
2015-09-05 15:52 ` Björn Lundin
2015-09-01 20:31 ` Randy Brukardt
2015-09-01 15:31 ` ahlan
2015-09-05 15:56 ` Björn Lundin
2015-09-06 17:38 ` brbarkstrom
2015-09-06 19:52 ` Björn Lundin
2015-09-07 15:18 ` brbarkstrom
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox