From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: ffc31,8d2315bbfec7d11 X-Google-Attributes: gidffc31,public X-Google-Thread: 1164f8,769bc7b1925998af X-Google-Attributes: gid1164f8,public X-Google-Thread: 10cebf,55be15e14d3dee4e X-Google-Attributes: gid10cebf,public X-Google-Thread: fdd80,769bc7b1925998af X-Google-Attributes: gidfdd80,public From: peter@baileynm.com (Peter da Silva) Subject: Re: RT-11/TSX-PLUS Year 2000 Compliant Application Programs Date: 1998/10/14 Message-ID: <701msk$ksc@web.nmti.com>#1/1 X-Deja-AN: 400917287 References: <3613A881.ED0E72FC@idirect.com> <3623696C.4DDC6F13@trailing-edge.com> <700ae7$aea@web.nmti.com> <362388D7.4E2BA351@trailing-edge.com> Organization: Bailey Network Management Newsgroups: alt.sys.pdp11,comp.sys.dec,comp.sys.dec.micro,vmsnet.pdp-11 In article <362388D7.4E2BA351@trailing-edge.com>, Tim Shoppa wrote: >I would imagine that a lot of COBOL programmers in the 1960's >had the same attitude towards the Y2K problem - "Oh, somebody >will fix that later ... all they have to do is just add two more >digits to the year field and recompile!" Since the problem isn't "recompiling", it's finding where to add the two extra digits, I'm not sure that you're making the point you think you're making. If a bigger time_t is something that scares you, then you haven't done enough ports with MUCH bigger problems than that. I have a bigger problem with the buggers who wrote code that "knows" an integer and a pointer are the same size. Actually, my biggest gripe is with compiler vendors who come up with "long long" for their 64-bit ports because they don't have the guts to break all the "all-the-world's-a-VAX" code out there. But then that's something I've been griping about since 1980 when I first tried to port PDP-11 code to 4.1BSD. They should have made "long" a 64 bit value on the first VAX port, and the issue would never have arisen. (instead we'd be griping about the 128 bit problem now) Anyway, after shepherding some code from PDP-11 UNIX, to RSX-11 and VMS, to Xenix-286 and MS-DOS, to SunOS, then to Digital UNIX and Solaris... another recompile is nothing. Dealing with word-size problems is a minor issue: a halfway decent compiler and lint will do most of the work for you. Admittedly I've only ever used two 36-bit platforms, and only one of them was 1s-complement, so my porting experience is mostly limited to power-of- two word sizes... but at least C makes an attempt at hiding those details: if I never have to decide whether some "BIN FIXED(35)" really *needed* to be 36 bits wide again it'll be too soon. Whoever made it so easy to microspecify data types in PL/I should be shot. At least Intel didn't pick up that insanity in PL/M. Porting all that code from PL/M on RMX-86 to C on SunOS and Digital UNIX was tough enough. Even WITH piles of automated translation code. -- In hoc signo hack, Peter da Silva `-_-' "Heb jij vandaag je wolf al geaaid?" 'U` "Tell init(8) to lock-n-load, we're goin' zombie slaying!"