From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fdd80,769bc7b1925998af X-Google-Attributes: gidfdd80,public X-Google-Thread: ffc31,8d2315bbfec7d11 X-Google-Attributes: gidffc31,public X-Google-Thread: 10cebf,55be15e14d3dee4e X-Google-Attributes: gid10cebf,public X-Google-Thread: 1164f8,769bc7b1925998af X-Google-Attributes: gid1164f8,public From: wilson@dbit.com (John Wilson) Subject: Re: RT-11/TSX-PLUS Year 2000 Compliant Application Programs Date: 1998/10/14 Message-ID: <3624b343.0@news.wizvax.net>#1/1 X-Deja-AN: 400988796 References: <3613A881.ED0E72FC@idirect.com> <700ae7$aea@web.nmti.com> <362388D7.4E2BA351@trailing-edge.com> <701msk$ksc@web.nmti.com> X-Trace: 14 Oct 1998 10:20:51 -0500, dbit.dbit.com Organization: D Bit, Troy, NY Newsgroups: alt.sys.pdp11,comp.sys.dec,comp.sys.dec.micro,vmsnet.pdp-11 In article <701msk$ksc@web.nmti.com>, Peter da Silva wrote: >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 hope you're picturing a port to a different OS with a bigger time_t, because if you're thinking of duplicate libraries and/or system calls existing side by side on the same system with different sizes of time_t, it isn't going to be as much fun as you make it sound. >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. What C really needed was a way to just say straight out "I want an unsigned integer of at least ___ size", like the FORTRAN INTEGER*2/INTEGER*4/etc. but maybe extended a little. Instead we get in this silly situation where different compilers of the same language for the same machine, use different sizes for basic data types, you can't count on anything. >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) Integers will *never* be big enough. There are really two main categories of things in computers: (a) a bunch of things, and (b) a potentially infinite number of things. Using your favorite size of integer to count (a) isn't a problem, but people keep thinking that the *next* time we increase the word size it will be enough for (b)... Some things *should* be done with multiple precision math! John Wilson D Bit