Re: code bloat [was Re: Semaphore assembly-code bug]

From: Tim Hockin (thockin_at_hockin.org)
Date: 10/31/04

  • Next message: janitor_at_sternwelten.at: "[patch 5/8] serial/68360serial: replace schedule_timeout() with msleep_interruptible()"
    Date:	Sat, 30 Oct 2004 15:50:27 -0700
    To: Jeff Garzik <jgarzik@pobox.com>
    
    

    On Sat, Oct 30, 2004 at 06:44:10PM -0400, Jeff Garzik wrote:
    > Tim Hockin wrote:
    > >So you end up with the mindset of, for example, "if it's text it's XML".
    > >You have to parse everything as XML, when simple parsers would be tons
    > >faster and simpler and smaller.
    >
    >
    > hehehe. One of the reasons why I like XML is that you don't have to
    > keep cloning new parsers.

    I'm fine with XML, when it makes sense. In fact, I wrote an XML parser.
    It's blazingly fast. But it doesn't try to do everything for everyone.
    It does just as much as I needed. And Whn I need XML, I don;t have any
    problem linking it in. It's only a couple hundred lines of C.

    What irks me is best demonstrated by this:

    At OLS last year or the year before, at a talk about DBUS, someone asked
    about the DBUS protocol. When told that it was binary, they asked if
    there was any advantage to that over text. The reply "We didn't want to
    link an XML parser in".

    Now, I am fine with not wanting to ad bloat. But umm, the question was
    about TEXT, not XML. They are not the same thing. Not all text should be
    XML.

    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/


  • Next message: janitor_at_sternwelten.at: "[patch 5/8] serial/68360serial: replace schedule_timeout() with msleep_interruptible()"

    Relevant Pages

    • Re: up2date RPM package conflict error
      ... Group: System Environment/Libraries Source RPM: ... Xerces provides world-class XML parsing and generation. ... The parsers are highly modular and configurable. ... The install times match. ...
      (RedHat)
    • Re: code bloat [was Re: Semaphore assembly-code bug]
      ... >>You have to parse everything as XML, when simple parsers would be tons ... One of the reasons why I like XML is that you don't have to ... > keep cloning new parsers. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: Question about scoping
      ... the listener has run more reliably and memory usage is reduced. ... # make sure the very first part of the file is a valid xml header ... release methods on the parsers, the memory consumed by the parsers ...
      (comp.lang.perl.misc)
    • Re: Anyone getting XML to work??
      ... haven't included SAX, but it sounds like you're trying to use it. ... You lost me with the comment about parsers. ... Parse C++ code or use XML for something? ... > on out and modifiy lots of header files just to get the supplied example ...
      (microsoft.public.windowsce.embedded.vc)
    • Re: code bloat [was Re: Semaphore assembly-code bug]
      ... > You have to parse everything as XML, when simple parsers would be tons ... One of the reasons why I like XML is that you don't have to ... keep cloning new parsers. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)