h5md-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [h5md-user] Strings again / parallel issue


From: Felix Höfling
Subject: Re: [h5md-user] Strings again / parallel issue
Date: Wed, 05 Feb 2014 16:35:24 +0100
User-agent: Opera Mail/12.16 (Linux)

Am 05.02.2014, 14:15 Uhr, schrieb Pierre de Buyl <address@hidden>:

On Tue, Feb 04, 2014 at 06:24:48PM +0100, Felix Höfling wrote:
Am 04.02.2014, 16:05 Uhr, schrieb Pierre de Buyl
<address@hidden>:

I always felt uncomfortable with specialising to a certain String type. I
suggest to drop "VL" and allow _any_ kind of HDF5 String type for the
writer. The reader can easily handle the different cases by querying
H5Tis_variable_str
http://www.hdfgroup.org/HDF5/doc/RM/RM_H5T.html#Datatype-IsVariableString

Actually, I think it will avoid a lot of problems to define what kind of strings we want. Aside from the purely practical aspect of writing less code, it also avoids the question from a new user: "what kind of strings should I use?". Removing this question makes it easier, in my opinion. Also, it decreases the amount of documentation in, say, the "implementation" page of the h5md site.

I really didn't want to bring the debate back, but a solution in Fortran should
be available :-)

If, as it is discussed on the other sub-thread, you cannot use VL strings in Fortran for the attributes (very specific case, but still), I'd prefer that we
mandate fixed-length.

Cheers,

Pierre


Hi Pierre,

The user does not need to ask this question, he/she can write whatever appears appropriate. On the reader side, there is only one small distinction of cases needed. Given the amount of code needed to read/write HDF5 these few lines don't count. It works in Fortran and any other language.

If we change mind and mandate fixed-length it won't take long until some example shows up where fixed-length strings are impractical. Removing any constraint on the String type in H5MD is the simplest and best solution by far. I'm truly convinced about this and, honestly, I'm wondering about the opposition that I'm facing with this view.

Cheers,

Felix



reply via email to

[Prev in Thread] Current Thread [Next in Thread]