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: 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-Thread: 1164f8,71c35a0e73c110d5 X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 2003-08-09 11:31:59 PST Path: archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-08!supernews.com!news-out.visi.com!petbe.visi.com!in.100proofnews.com!in.100proofnews.com!pd2nf1so.cg.shawcable.net!residential.shaw.ca!news2.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> 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 18:31:43 GMT NNTP-Posting-Host: 24.66.94.143 X-Complaints-To: abuse@shaw.ca X-Trace: news2.calgary.shaw.ca 1060453903 24.66.94.143 (Sat, 09 Aug 2003 12:31:43 MDT) NNTP-Posting-Date: Sat, 09 Aug 2003 12:31:43 MDT Xref: archiver1.google.com comp.sys.hp.hpux:30260 comp.unix.tru64:10606 comp.sys.dec:16679 comp.unix.solaris:165408 comp.sys.sgi.admin:19007 comp.unix.aix:54589 In article , peter@abbnm.com (Peter da Silva) wrote: : In article , : Tony 'Nicoya' Mantler wrote: : > 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. : : I find that these kinds of problems can often be avoided, by looking at : the APIs you're using and simply avoiding ones that aren't standardised : or are in transition. : : The usual response to this suggestion is that these APIs are so much : more efficient than the standard ones than it wouldn't be practical to : use anything else. Which would have some weight if it weren't for the : tendency of the applications in question to simultaneously use expensive : libraries or components, or include expensive and cumbersome features like : "skinnable interfaces" that simultaneously make them harder to use. Well, this discussion started with the portability concerns of sending raw commands to storage devices to retrieve SMART data. The APIs to do so on each OS come in two flavours: non-portable and non-existant. Of course, nowadays there's the libscg compatability library to get around that, but if you didn't have that you'd be forced to either a: write non-portable code, or b: write your own portability library. : > 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. : : Isn't that a bit of an exaggeration? You don't need to write a portability : library to encapsulate the problematic component such that porting doesn't : turn into a complete rewrite of substantial portions of code (or, worse, : hastily writing an implementation of the parts of API #1 youhappen to use : in API #2). Well it's certainly more trouble than it's worth when the original author has no immediate need to run their application on any other platform. It's wise to make all your code clean so that you can make it portable more easily at a later date. It's idealistic to make all your code portable regardless of the needs of your current project. For example, right now I'm writing an ethernet driver in IRIX. I could, in theory, make it portable between IRIX, Linux, MacOS, Solaris, QNX, BeOS, AmigaOS, DOS and whatnot, but that would be one excedrin-sized headache I would be wise to avoid. In this case, the most sane path (should I ever need the driver on a different platform) would be a complete rewrite when porting. 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/ --