From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fcda7,71c35a0e73c110d5 X-Google-Attributes: gidfcda7,public X-Google-Thread: 10872d,71c35a0e73c110d5 X-Google-Attributes: gid10872d,public X-Google-Thread: 1164f8,71c35a0e73c110d5 X-Google-Attributes: gid1164f8,public X-Google-Thread: fa528,71c35a0e73c110d5 X-Google-Attributes: gidfa528,public X-Google-Thread: 115614,71c35a0e73c110d5 X-Google-Attributes: gid115614,public X-Google-Thread: 11035d,71c35a0e73c110d5 X-Google-Attributes: gid11035d,public X-Google-ArrivalTime: 2003-08-08 17:02:20 PST Path: archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!pd2nf1so.cg.shawcable.net!residential.shaw.ca!news1.calgary.shaw.ca.POSTED!not-for-mail X-Trace-PostClient-IP: 24.77.129.12 From: Tony 'Nicoya' Mantler Newsgroups: comp.sys.hp.hpux,comp.unix.tru64,comp.sys.dec,comp.unix.solaris,comp.sys.sgi.admin,comp.unix.aix Subject: Re: Free UNIX for non-commerical use. Organization: Judean People's Front; Department of Whips, Chains, Thumb-Screws, Six Tons of Whipping Cream, the Entire Soprano Section of the Mormon Tabernacle Choir and Guest Apperances of Eva Peron aka Eric Conspiracy Secret Laboratories References: <3F233C74.4F4C3BAB@ntlworld.com> <3F3400B7.C644FA19@ntlworld.com> User-Agent: MT-NewsWatcher/3.1 (PPC) X-Disclaimer-1: This message has been edited from it's original form by members of the Eric Conspiracy. X-Disclaimer-2: There is no Eric Conspiracy. X-Not-For-Humans: aardvark@apia.dhs.org and zebra@apia.dhs.org are spamtraps. Message-ID: Date: Sat, 09 Aug 2003 00:02:07 GMT NNTP-Posting-Host: 24.66.94.143 X-Complaints-To: abuse@shaw.ca X-Trace: news1.calgary.shaw.ca 1060387327 24.66.94.143 (Fri, 08 Aug 2003 18:02:07 MDT) NNTP-Posting-Date: Fri, 08 Aug 2003 18:02:07 MDT Xref: archiver1.google.com comp.sys.hp.hpux:30235 comp.unix.tru64:10585 comp.sys.dec:16650 comp.unix.solaris:165343 comp.sys.sgi.admin:18980 comp.unix.aix:54562 In article , peter@abbnm.com (Peter da Silva) wrote: : In article , : Tony 'Nicoya' Mantler wrote: : > No doubt it would be nice, but it's not always practical to write something : > portably on the first version. : : It's rarely practical to do otherwise, unless you really DO build one to : throw away and actually throw it away. Why? Two reasons: : : 1. Writing portably really works best when it's done from the start. : : 2. Writing portably doesn't just help other people, it helps you, because : the system you first port to is often the next major release of the one : you started with. Well, there's different classifications for portability issues. Some are very simple, like bcopy() vs memcpy(), or differences in header files. Thankfully in linux (at least in debian) there's a 'conforming to' section in the manpages that can give you some indication of the portability of a function without having to search though the manpages of 10 different systems. These kinds of issues are reasonably easy to address at any point in development. Other issues can be a bit more complex - for example the raw storage command interface, where there is no standard nor even the slightest resemblence between the APIs on different platforms. This is the case where I would argue that it's easier to make the first stab non-portable (while keeping an eye toward making sure you can make it portable later) then add portability in the next iteration. If you try to write both your application *plus* a portability library at the same time, you end up effectively writing two projects at once which makes things a wee bit more difficult than they need to be. Of course, you can then argue whether writing portable code means 'writing code which works on any platform' or 'writing code which can easily be made to work on any platform'. I would argue that it's OK to fall short of the former, but you should be very careful not to slip up on the latter. (with the exceptions of applications which only logically apply to one platform) Cheers - Tony 'Nicoya' Mantler :) -- Tony 'Nicoya' Mantler -- Master of Code-fu -- nicoya@apia.dhs.org -- http://www.apia.dhs.org/ -- http://nicoya.feline.pp.se/ --