xsl-list
[Top] [All Lists]

Re: [xsl] Efficient way to do an identity transform, eliminating duplicate elements, in XSLT 1.0?

2013-12-13 13:58:54
Ivan,

        As for the problem stated, I’d start with a SAX parser for a
        J. Random Language (be it Prolog, Perl, Basic, or Common Lisp),
        and proceed from there.  It may depend on how the “duplicates”
        are defined, but I see nothing in the problem to make it
        unsolvable on “not-so-decent” hardware.


My argument is that you are still being paid for your time doing this
-- while the problem becomes *non-existent* (in 99.99% of all cases,
which for many companies is 100%) when people have decent computers.

So, this is a matter of a good management decision and shouldn't
involve additional programmer effort.

Both sides are happy: the management saves big, and the programmers
get involved in more interesting problems. :)

Cheers,
Dimitre



On Fri, Dec 13, 2013 at 11:50 AM, Ivan Shmakov <oneingray(_at_)gmail(_dot_)com> 
wrote:
Dimitre Novatchev <dnovatchev(_at_)gmail(_dot_)com> writes:

[…]

 >> I want the identity transform to remove duplicate elements in
 >> <First> and remove duplicate elements in <Second>.

[…]

 > My new home PC I bought in May has 32GB RAM.

 > It seems obvious that paying $2000 for a decent computer

        It may quickly get off-topic, but I don’t seem to recall paying
        over $500 at once for computer hardware, or owning a single box
        that would cost as much at the time of appraisal — and that’s in
        some 20 years of owning “the micros.”

        (That being said, my former employer had bought some computers
        at well above that price.)

 > is so much cheaper than paying programmers (myself included) to
 > invent tricks — at least for this kind of problems.

        As for the problem stated, I’d start with a SAX parser for a
        J. Random Language (be it Prolog, Perl, Basic, or Common Lisp),
        and proceed from there.  It may depend on how the “duplicates”
        are defined, but I see nothing in the problem to make it
        unsolvable on “not-so-decent” hardware.

--
FSF associate member #7257

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: 
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--




-- 
Cheers,
Dimitre Novatchev
---------------------------------------
Truly great madness cannot be achieved without significant intelligence.
---------------------------------------
To invent, you need a good imagination and a pile of junk
-------------------------------------
Never fight an inanimate object
-------------------------------------
To avoid situations in which you might make mistakes may be the
biggest mistake of all
------------------------------------
Quality means doing it right when no one is looking.
-------------------------------------
You've achieved success in your field when you don't know whether what
you're doing is work or play
-------------------------------------
To achieve the impossible dream, try going to sleep.
-------------------------------------
Facts do not cease to exist because they are ignored.
-------------------------------------
Typing monkeys will write all Shakespeare's works in 200yrs.Will they
write all patents, too? :)
-------------------------------------
I finally figured out the only reason to be alive is to enjoy it.

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--