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: 1164f8,71c35a0e73c110d5 X-Google-Attributes: gid1164f8,public X-Google-Thread: 10872d,71c35a0e73c110d5 X-Google-Attributes: gid10872d,public X-Google-Thread: 11035d,71c35a0e73c110d5 X-Google-Attributes: gid11035d,public X-Google-Thread: fa528,71c35a0e73c110d5 X-Google-Attributes: gidfa528,public X-Google-Thread: 115614,71c35a0e73c110d5 X-Google-Attributes: gid115614,public X-Google-ArrivalTime: 2003-08-08 17:06:37 PST Path: archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-04!sn-xit-01!sn-xit-08!supernews.com!newsfeed.news2me.com!small1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!intern1.nntp.aus1.giganews.com!nntp.giganews.com!nntp.thebiz.net!news.thebiz.net.POSTED!not-for-mail NNTP-Posting-Date: Fri, 08 Aug 2003 19:06:07 -0500 Date: Fri, 08 Aug 2003 20:06:07 -0400 From: Alan Johnson User-Agent: Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:1.4) Gecko/20030624 X-Accept-Language: en-us, en MIME-Version: 1.0 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. References: <3F233C74.4F4C3BAB@ntlworld.com> <3F3400B7.C644FA19@ntlworld.com> In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Message-ID: NNTP-Posting-Host: 64.30.131.23 X-Trace: sv3-636LR41ZHbGA3+9WqH1FfNdTi3GA/xKH5HJr+mglnJGpzASv28oj1LRZTFGmgFZQ27OBPlkFIPk8Syo!SGojsh1wiCgJtiGU4aL4zs9OUd7Ui/Wu6Ng+LXpAiSUeYT67SE/GeZqtaoJqgyx00LvXP5c= X-Complaints-To: abuse@thebiz.net X-DMCA-Complaints-To: abuse@thebiz.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.1 Xref: archiver1.google.com comp.sys.hp.hpux:30236 comp.unix.tru64:10586 comp.sys.dec:16651 comp.unix.solaris:165344 comp.sys.sgi.admin:18981 comp.unix.aix:54563 Tony 'Nicoya' Mantler wrote: > 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 :) > PLEASE STOP CROSS POSTING TO NEWSGROUPS THAT HAVE NO INTEREST IN WHAT YOU ARE TALKING ABOUT!