Xref: csiph.com comp.arch:32842 Newsgroups: comp.arch Path: csiph.com!au2pb.net!weretis.net!feeder6.news.weretis.net!news.glorb.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!kithrup.com!mrs From: mrs@kithrup.com (Mike Stump) Subject: Re: The freedom that give us C++ and C Message-ID: Date: Mon, 18 Jan 2016 12:16:41 GMT References: <2cfa4e09-d956-4e96-8c4a-c3a144a4ebd0@googlegroups.com> <2016Jan15.160423@mips.complang.tuwien.ac.at> <3f79f019-6b14-4844-baa5-bcf24d6665c7@googlegroups.com> Organization: Kithrup Enterprises, Ld. X-Newsreader: trn 4.0-test77 (Sep 1, 2010) Lines: 32 In article <3f79f019-6b14-4844-baa5-bcf24d6665c7@googlegroups.com>, Öö Tiib wrote: >James Kuyper in comp.lang.c wrote that problem with it is that such >subtraction of unrelated pointers is made illegal in C. He claims that >systems trap it in practice. That makes sense since on lot of cases >it indicates defect. People like that give me heart burn. My take, for == to work, a-b has to work, and for a-b to work, unrelated pointers - has to work. Also, it is handy to be able to produce a sorted list of pointers or a total ordering. For this, it is really handle to have - and have it be defined for all pointers (including 0). This is a useful property and I like C/C++ systems where this is true, by definition. These people are like the crazy people that say a byte can be other than 8 bits. I just laugh and walk away. Sure, they exist, but we should laugh at them. Eventually they will all die and plauge us no more. Now, in a hard core capability machine, I might go for expanded semantics that might seem strange to me now. In that world, it would be nice to have a method to sort (and order) and a few other nice things. The problem is the longer the years go by, and the more and more code is written that doesn't just cope with any such weirdness, the harder it will be to ever introduce such a machine. I'm waiting to see how Mill turns out in practice when a big OS vendor wants to support it, say a ubunutu or an Apple. I hope it does well, but I got this nagging feeling that it might be hard and the time required to make it work will suck down a ton of money and time and give Intel a chance to catch up. I hope I'm wrong, as I like to see healthy competition.