🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.c
Article #81

Re: AVL tree insertion - programming exercise

#81
From: David Brown
Date: Fri, 09 Oct 2026 11:20
55 lines
4045 bytes
On 09/10/2026 12:43, bart wrote:
> On 09/10/2026 09:34, David Brown wrote:

>> And like "The C Programming Language", it suffers from age - you can't 
>> learn modern C from a 50 year old book, and you can't learn modern 
>> coding from a 60 year old book.
> 
> When I first looked at it wasn't quite that old!

I have the second edition from 1972 - the first edition was published in 
1968, but started in 1962.  I believe it would have been 1991 when I 
bought my copy - it was considered old-fashioned by then and not usable 
as course textbook.  But having won a bookshop voucher as an academic 
prize, it seemed appropriate to spend some on the nearest computer 
science has to a bible.  (I think I also bought a complete Shakespeare, 
which I still have, and from which I have actually read three or four 
plays.)

> 
>> Far and away the biggest mistake of the books - IMHO - is the use of a 
>> mythical assembly as the language for the programs instead of a high- 
>> level pseudo-code that made the interesting stuff clear instead of 
>> bogging it down in irrelevant detail.
> 
> This 'MIX' language was something that astonished me even then. Not only 
> was it assembly that would totally obscure whatever algorithm was being 
> expressed, but it was a weird made-up assembly with unusual byte and 
> word sizes.

Indeed.  When I first saw it, I was familiar with several 8-bit 
assemblies (6502, Z80, 8085) and some 32-bit ARM assembly, and had read 
books on the 68000 family and MIPS.  MIX was, to me, absurd.  To be 
fair, the computer world was not nearly as consolidated in 1962, but I'm 
sure it looked fairly odd even by the standards of the time.

> I understand that more recent editions use an updated 'MMIX' language: 
> now the registers are 64 bits, and there's a lot more of them. This is 
> still like publishing a book of algorithms using ARM64 assembly to 
> express them.

Yes, this strikes me as even more absurd.  It's just re-doing the 
previous mistake in a slightly less bad way.

> 
> It's not clear what he had against HLLs; perhaps he thought an actual 
> HLL would soon be superseded? Then pseudo-code should have been used.

Real HLL's were around at the time - FORTRAN and ALGOL, or possibly 
LISP, would have been appropriate choices in the days before small 
letters were invented.  Or he could have made a simple HLL pseudo-code 
for the purpose - things like unlimited sized integers and unlimited 
memory sizes would have made sense.


Technical Details
Message-ID: <11aaimc$n0f0$2@dont-email.me>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
References: <86ece2kppv.fsf@linuxsc.com> <11a5h8m$2t8e8$1@dont-email.me> <865wzdl3xz.fsf@linuxsc.com> <11a6qi4$3cv2b$1@dont-email.me> <86wlrsjqq9.fsf@linuxsc.com> <11a8ta9$6463$1@dont-email.me> <86jynrjrf3.fsf@linuxsc.com> <11aa8vb$jk93$1@dont-email.me> <11aaggn$mu6q$1@dont-email.me>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
From: David Brown <david.brown@hesbynett.no>
Newsgroups: comp.lang.c
Subject: Re: AVL tree insertion - programming exercise
Date: Fri, 9 Oct 2026 13:20:44 +0200
Organization: A noiseless patient Spider
Lines: 55
Message-ID: <11aaimc$n0f0$2@dont-email.me>
References: <86ece2kppv.fsf@linuxsc.com> <11a5h8m$2t8e8$1@dont-email.me>
 <865wzdl3xz.fsf@linuxsc.com> <11a6qi4$3cv2b$1@dont-email.me>
 <86wlrsjqq9.fsf@linuxsc.com> <11a8ta9$6463$1@dont-email.me>
 <86jynrjrf3.fsf@linuxsc.com> <11aa8vb$jk93$1@dont-email.me>
 <11aaggn$mu6q$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 09 Oct 2026 11:20:45 +0000 (UTC)
Injection-Info: dont-email.me;
	logging-data="754144"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX190+Lr/r3snJURT+fdReAw2U9Wm1oSPIfE="; posting-host="e4f5a948a55ca956d08d1b630ba49c87"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:ssUlKeG+psfxenjquyiBcXQm428= sha256:F513C2vu5/GfeZD1GxWkvQGApNy5YMeEJh95NX1HGWU=
	sha1:W5TC2Ph7czLlo9Q3t9ZSU7Yz26M= sha256:4Hk9X7MsJq4yfHd2VKcB/p6IkQFku8XFNNLrKgTp3Eg=
Content-Language: en-GB, nb-NO
In-Reply-To: <11aaggn$mu6q$1@dont-email.me>