From ... Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!cyclone.bc.net!skynet.be!skynet.be!ossa.telenet-ops.be!nmaster.kpnqwest.net!nreader2.kpnqwest.net.POSTED!not-for-mail Newsgroups: comp.lang.lisp Subject: Re: "Choose the Right Language" in "Tutorial" by Norvig and Pitman References: <3CBBCA7A.BCA63724@nyc.rr.com> <3CBC8E3C.1D71AAF8@nyc.rr.com> <501v8.3767$04.12055@news.iol.ie> <69ED16CD1B28F430.13E870C4636BD695.9C28C50C9A84EF84@lp.airnews.net> Mail-Copies-To: never From: Erik Naggum Message-ID: <3228111881824368@naggum.net> Organization: Naggum Software, Oslo, Norway Lines: 59 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Thu, 18 Apr 2002 09:44:42 GMT X-Complaints-To: newsmaster@KPNQwest.no X-Trace: nreader2.kpnqwest.net 1019123082 193.71.199.50 (Thu, 18 Apr 2002 11:44:42 MET DST) NNTP-Posting-Date: Thu, 18 Apr 2002 11:44:42 MET DST Xref: archiver1.google.com comp.lang.lisp:31930 * "Marc Battyani" | Here is a nice extract from it. | | Recursion | An XEXPR interpreter is not guaranteed to be safely tail recursive, even | though recursion is allowed. As such, it is generally better to use an | iterative form rather than a tail recursive form. | The following defines the linear recursive form of factorial. This is simple | to code, and easy to understand, but for large numbers, it may cause a stack | overflow. | | | 2 | | | | 1 | | | | | Brilliant no ? Let me recast this into my syntax, which also considers whitespace no evil: 1>>>>> Now, let me remove the tremendously stupid reference to X via an element and call simple arithmetic functions by reasonable names: x <* x >>>> Not so bad, I think. But the massive stupidity of XML's redundant end-tags should be ever more evident. Sigh. Like, I receive this HTML-ified newsletter every Friday, and each message is from 24K to 32K large. I rewrote it into my syntax, preserving all the HTML crap, but removing all the redundant whitespace. The results were from 6K to 9K large. Then I sanitized the table crap and made it into macro forms and removed the redundant font elements, and the results were from 3K to 5K. It is quite fascinating that people are willing to work with data formats that are 8 times more verbose than they trivially need to be, requiring 8 times more network bandwidth or time to send out newsletters by mail. Of course, these are the same people who think XML is better than shipping Word documents around. I just wait to see a Word-in-XML document that takes a minute to ship over megabit-lines and which says "Hello, world!". /// -- In a fight against something, the fight has value, victory has none. In a fight for something, the fight is a loss, victory merely relief. Post with compassion: http://home.chello.no/~xyzzy/kitten.jpg