Re: Canonical format for header files (was... who cares?)

From: Beth (BethStone21_at_hotmail.NOSPICEDHAM.com)
Date: 02/20/04


Date: Fri, 20 Feb 2004 19:21:21 -0000

Aaargh wrote:
> Randy wrote:
> <snip>
> >That's why an intermediate canonical format is such a good idea.
> >You keep as much semantic information as possible. Assemblers
> >that can't use it, ignore it. Those that can use it, do.
>
> What more information would you want to have beyond what's already
in
> the C header? From what I can see, a C header already has more info
> than either MASM or NASM can use.

"Canonical form" doesn't have any "more information" than the C file,
in that sense...the point is that it has the same information _but in
a "neutral" form_...

Okay, let's try to get the point across by looking at the same idea in
a different context...changing what you asked into this different
context:

Beth: "We could convert the Word document to use a 'canonical form' of
a plain ASCII text file - with special 'tags' mark-up - for transfer
across the internet...then web browsers - able to read 'canonical
format' - can 'convert' this - let's call it HTML - text to appear on
all the different machines!"

Aaargh: "What more information would you want to have beyond what's
already in the Word document? From what I can see, a Word document
already has more info than an Apple propietary file can use. Just send
Word documents around with FTP. Don't bother with this 'world wide
web' nonsense, as text files don't contain any more information than
the original Word document."

Kind of getting the idea yet? It's not that "canonical form" has "more
information" but that it has the information in a _neutral_ form
(actually, if we do go with XML then the HTML example is actually
pretty close to the mark ;)...and then when the information is "in
HTML" (canonical form), so to speak, then all the "endian" differences
(syntax differences) between different machines (different programming
languages) on the Internet doesn't matter anymore...

Okay, the world wide web isn't a perfect analogy, I confess...but it
might help to get the rough idea of what "canonical form" is all
about...it's not about any "more" or "less" information, it's about
having that _semantical_ information in a "syntax neutral" form...then
instead of writing a "Word document" web browser, a "PDF file" web
browser and so on for every different file format and different
machine on the internet...you just write a HTML web browser...

As some HTML book I read once phrased it: "HTML is the Esparanto of
the WWW"...this "canonical form" is like "include file
Esparanto"...so, rather than filling the UN with hundreds of different
interpreters (English -> French, English -> German, French ->
Japanese, Russian -> Chinese, Chinese -> English, Japanese -> German,
etc. ;)...you can have everyone learn the "neutral" Esparanto language
and just talk to each other in that language...

Mind you, "Esparanto" ultimately failed to do what it was intended to
do...because, though a great idea in theory, no-one could be bothered
to actually learn it and use it in practice...let's Hope this isn't
history repeating itself, eh?

Beth ;)



Relevant Pages

  • Re: FontBold Property
    ... You don't need to write the HTML yourself. ... Write and format your text in the Word document. ... objMAILITEM.Body = strBody ...
    (microsoft.public.access.modulesdaovba)
  • Re: How much should I charge for fixed-price software contract?
    ... we do NOT accept HTML ... Electronically, Word docs or PDF docs are accepted, ... I can, if I absolutely have to, create a Word document. ...
    (comp.programming)
  • Re: hide formatting text
    ... output from this app to generate it as a word document. ... if they have show/hide formatting text ... > the actual html when returning the web page to Word? ... > transport medium to return html created from Word docs back in to the ...
    (microsoft.public.word.docmanagement)
  • Re: Bizarre wildcard replace
    ... Had you thought of trying a tool named "Microsoft Word 2003"? ... It does a *perfect* job of converting a Word document to HTML. ...
    (microsoft.public.word.docmanagement)
  • Re: How much should I charge for fixed-price software contract?
    ... >> Some of it, I'm sure, is a general corporate conservativeness. ... > I am fairly sure HTML pre-dates PDF. ... > I can, if I absolutely have to, create a Word document. ... And, in this case, portability just isn't an issue. ...
    (comp.programming)