OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

xri message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: RE: [xri] Issue 1: Clarifying * Semantics


I can easily say the parsing rules are equally simple, because as
someone who knows the complexity of writing a parser, I know
that the hard part isn't in the differences we're talking about
on this thread.

=Loren

-----Original Message-----
From: Drummond Reed [mailto:drummond.reed@cordance.net] 
Sent: Thursday, July 08, 2004 11:12 PM
To: Loren West; xri@lists.oasis-open.org
Subject: RE: [xri] Issue 1: Clarifying * Semantics


How can you say, "the parsing rules are equally simple"? Any way you do it,
you
end out with at least one less rule with a single subsegment delimiter. And
you
get a clean separation of delimiters and decorators.

=Drummond

--- Loren West <loren.west@epok.net> wrote:
&gt; If you don't like Dave's use of the word preceed, and want to consider
&gt; stars and colons as ALWAYS both sub-segment separators AND decorators,
&gt; then the rules look like this:
&gt; 
&gt; 1) Slashes delimit segments
&gt; 2) Stars delimit reassignable sub-segments
&gt; 3) Colons delimit persistent sub-segments
&gt; 4) Stars may be omitted before the first subsegment in a segment
&gt; 
&gt; -and- with both proposals, when writing a parser you have to specify
&gt; what to do with null sub-segments (is it an error?  if not, what do
&gt; you do?).  So, the existing syntax gets:
&gt; 
&gt; 5) Null sub-segments can be disregarded
&gt; 
&gt; That handles the /:123/ issue where there are two sub-segments,
&gt; one null and one persistent.
&gt; 
&gt; And it's unclear with the new proposal if the same rule exists,
&gt; or an equally complex rule exists:
&gt; 
&gt; 5) Null sub-segments indicate an XRI error condition
&gt; 
&gt; We're not talking about significant differences in complexity
&gt; of parser writing.  You have to handle a null sub-segment one
&gt; way or the other.  Throwing it away is just as simple (simpler?)
&gt; than dealing with it as an error condition.
&gt; 
&gt; I still maintain the existing syntax simpler than the proposed 
&gt; syntax because the parsing rules are equally simple, HFI's are
&gt; exactly equivalent, and MFI's are simpler without multiple
&gt; characters before each sub-segment.
&gt; 
&gt; =Loren
&gt; 
&gt; -----Original Message-----
&gt; From: Drummond Reed [mailto:drummond.reed@cordance.net] 
&gt; Sent: Thursday, July 08, 2004 10:08 PM
&gt; To: Dave McAlpin; xri@lists.oasis-open.org
&gt; Subject: RE: [xri] Issue 1: Clarifying * Semantics
&gt; 
&gt; 
&gt; It seems to me that saying "preceed" blurs the distinction between a
&gt; delimiter
&gt; and decorator. Delimiters delimit segments or subsegments. Decorators
only
&gt; prefix segments/subsegments. If stars and colons can be both delimiters
and
&gt; decorators, you end out with funny exceptions.
&gt; 
&gt; For example, if you apply your ruleset to "/:123/", is ":123" a segment
or
a
&gt; subsegment? If its a segment, you break rule 3. If its a subsegment,
you
&gt; either
&gt; break rule 1, because it's not a segment, or you have to posit a
implicit
&gt; null
&gt; subsegment between the slash and the colon.
&gt; 
&gt; A clean division between delimiters and decorators avoids all that.
&gt; 
&gt; =Drummond
&gt; 
&gt; 
&gt; --- Dave McAlpin &lt;Dave.McAlpin@epok.net&gt; wrote:
&gt; &amp;gt; I think you made that a little more difficult than it had to
be.
&gt; Couldn't
&gt; you
&gt; &amp;gt; say something like.
&gt; &amp;gt;  
&gt; &amp;gt; 1) Slashes delimit segments
&gt; &amp;gt; 2) Stars precede reassignable sub-segments
&gt; &amp;gt; 3) Colons precede persistent sub-segments. 
&gt; &amp;gt; 4) Stars may be omitted before the first subsegment in a
segment
and
&gt; before a
&gt; &amp;gt; relative cross-reference.
&gt; &amp;gt; 
&gt; &amp;gt; ________________________________
&gt; &amp;gt; 
&gt; &amp;gt; From: Drummond Reed [mailto:drummond.reed@cordance.net]
&gt; &amp;gt; Sent: Fri 7/9/2004 12:07 AM
&gt; &amp;gt; To: xri@lists.oasis-open.org
&gt; &amp;gt; Subject: RE: [xri] Issue 1: Clarifying * Semantics
&gt; &amp;gt; 
&gt; &amp;gt; 
&gt; &amp;gt; 
&gt; &amp;gt; Dave and I talked late today about this issue (he's
&gt; &amp;gt; headed out of town tomorrow), and I think our
&gt; &amp;gt; conversation helped me better understand the crux of
&gt; &amp;gt; the issues here. In this message I'll try to:
&gt; &amp;gt; 
&gt; &amp;gt; a) summarize that understanding first,
&gt; &amp;gt; b) clear up one misconception,
&gt; &amp;gt; c) further clarify one point being discussed, and
&gt; &amp;gt; d) share a long-term perspective that I have been
&gt; &amp;gt; applying to this issue.
&gt; &amp;gt; 
&gt; &amp;gt; SUMMARIZING THE ARGUMENTS
&gt; &amp;gt; 
&gt; &amp;gt; The case for "dual subsegment delimiters" (star and
&gt; &amp;gt; colon both) seems to rest primarily on two points:
&gt; &amp;gt; 
&gt; &amp;gt; 1) Backwards compatability with XRI 1.0.
&gt; &amp;gt; 
&gt; &amp;gt; 2) Compactness of consecutive persistent XRI
&gt; &amp;gt; subsegments because only colon is needed to both
&gt; &amp;gt; delimit and "decorate" them.
&gt; &amp;gt; 
&gt; &amp;gt; The case for "one subsegment delimiter and one
&gt; &amp;gt; persistence decorator" also seems to rest primarily on
&gt; &amp;gt; two points:
&gt; &amp;gt; 
&gt; &amp;gt; 1) Simplified parsing and interpretation rules (for
&gt; &amp;gt; both machines and humans)
&gt; &amp;gt; 
&gt; &amp;gt; 2) Freeing up colon to be used by producer-specific
&gt; &amp;gt; algorithms (see new subthread I just posted).
&gt; &amp;gt; 
&gt; &amp;gt; CLEARING UP ONE MISCONCEPTION
&gt; &amp;gt; 
&gt; &amp;gt; In messages earlier today there were references to my
&gt; &amp;gt; early proposal to do away with the concept of
&gt; &amp;gt; subsegment altogether by putting star on an equal
&gt; &amp;gt; footing with slash. Although I still believe in the
&gt; &amp;gt; underlying motivations for this proposal, I was
&gt; &amp;gt; convinced by the subsequent discussion that it was
&gt; &amp;gt; better to keep the current "two-level" structure of
&gt; &amp;gt; XRIs, i.e., major segments (slash delimited) and minor
&gt; &amp;gt; subsegments. The reason was backwards-compatability
&gt; &amp;gt; with URIs, which depends heavily on having only a
&gt; &amp;gt; single major segment delimiter (slash).
&gt; &amp;gt; 
&gt; &amp;gt; However the main motivation behind this proposal was
&gt; &amp;gt; and still is simplification of XRI syntax. The simpler
&gt; &amp;gt; the better (as long as it is still sufficiently
&gt; &amp;gt; expressive). To that end...
&gt; &amp;gt; 
&gt; &amp;gt; FURTHER CLARIFYING THE SIMPLIFIED
&gt; &amp;gt; PARSING/INTERPRETATION RULES
&gt; &amp;gt; 
&gt; &amp;gt; Since one of the main motivations for the single
&gt; &amp;gt; subsegment delimiter approach is the simplified
&gt; &amp;gt; parsing and interpretation rules for both machines and
&gt; &amp;gt; humans, I thought it would be helpful to actually list
&gt; &amp;gt; the rules involved. My inspiration for this was my
&gt; &amp;gt; experience updating the proposed XDI addressing rules
&gt; &amp;gt; to reflect single subsegment delimiter syntax. I found
&gt; &amp;gt; myself very surprised at how much simpler things got.
&gt; &amp;gt; 
&gt; &amp;gt; So, herewith my summary of the rules involved:
&gt; &amp;gt; 
&gt; &amp;gt; RULES FOR DUAL SUBSEGMENT DELIMITERS:
&gt; &amp;gt; Rule 1) Slashes delimit segments
&gt; &amp;gt; Rule 2) Stars or colons delimit subsegments UNLESS the
&gt; &amp;gt; star or colon immediately follows a slash, GCS
&gt; &amp;gt; character, or opening parentheses, in which case the
&gt; &amp;gt; star or colon is only a reassignable or persistent
&gt; &amp;gt; decorator
&gt; &amp;gt; Rule 3) A segment or subsegment is persistent if it is
&gt; &amp;gt; preceeded by a colon used EITHER as a delimiter or a
&gt; &amp;gt; decorator
&gt; &amp;gt; Rule 4) A segment or subsegment that is preceeded by a
&gt; &amp;gt; star that is NOT used as a delimiter is equivalent to
&gt; &amp;gt; the same segment or subsegment without the star
&gt; &amp;gt; 
&gt; &amp;gt; RULES FOR A SINGLE SUBSEGMENT DELIMITER:
&gt; &amp;gt; Rule 1) Slashes delimits segments
&gt; &amp;gt; Rule 2) Stars delimits subsegments
&gt; &amp;gt; Rule 3) Colon decorates (prefixes) any persistent
&gt; &amp;gt; segment or subsegment.
&gt; &amp;gt; 
&gt; &amp;gt; I don't know about anyone else, but I find the
&gt; &amp;gt; differences in these two rulesets striking. I think
&gt; &amp;gt; the reason is that the whole concept of a
&gt; &amp;gt; "reassignable decorator" just goes away. It's not
&gt; &amp;gt; needed anymore. Delimiters are delimiters, decorators
&gt; &amp;gt; are decorators, and only one decorator is needed -
&gt; &amp;gt; colon.
&gt; &amp;gt; 
&gt; &amp;gt; TAKING THE LONG-TERM PERSPECTIVE
&gt; &amp;gt; 
&gt; &amp;gt; In several other recent conversations I have shared
&gt; &amp;gt; the perspective I've been applying to this issue,
&gt; &amp;gt; which is: "What is best thing for XRIs in the long
&gt; &amp;gt; run?" Yes, the issue of backwards compatability with
&gt; &amp;gt; 1.0 is very important. But realistically, the XRIs
&gt; &amp;gt; that exist today are probably less than .001% of the
&gt; &amp;gt; XRIs that will exist 10 years from now. We are at the
&gt; &amp;gt; very earliest stages of real-world deployment.
&gt; &amp;gt; 
&gt; &amp;gt; Thus, as we have agreed several times, 1.1 is our
&gt; &amp;gt; single best opportunity to make any changes to the
&gt; &amp;gt; syntax that make it as clean and simple as possible
&gt; &amp;gt; for the 99.99% of all XRIs to come.
&gt; &amp;gt; 
&gt; &amp;gt; This is the reason I am a proponent of the single
&gt; &amp;gt; subsegment delimiter proposal. It is in my view a
&gt; &amp;gt; fairly dramatic improvement in simplicity. When paired
&gt; &amp;gt; with the advantage that it frees up colon to be used
&gt; &amp;gt; (along with dot) in producer-specific algorithms for
&gt; &amp;gt; subsegment composition - and that this cushions the
&gt; &amp;gt; problems with backwards compatability - I believe the
&gt; &amp;gt; benefits well outweigh the costs.
&gt; &amp;gt; 
&gt; &amp;gt; =Drummond
&gt; 
=== message truncated ===


To unsubscribe from this mailing list (and be removed from the roster of the
OASIS TC), go to
http://www.oasis-open.org/apps/org/workgroup/xri/members/leave_workgroup.php
.




[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]