Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!us.feeder.erje.net!news2.arglkargh.de!news.swapon.de!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail From: Joshua Cranmer Newsgroups: comp.lang.java.programmer Subject: Re: single instance Date: Sun, 06 Jan 2013 21:39:27 -0600 Organization: A noiseless patient Spider Lines: 28 Message-ID: References: <1rxjd74kjrhfc.mdbq9v09dxbn$.dlg@40tude.net> <50e8e7ea$0$282$14726298@news.sunsite.dk> <50ea23ce$0$285$14726298@news.sunsite.dk> <50ea2bd7$0$282$14726298@news.sunsite.dk> <50ea30d2$0$282$14726298@news.sunsite.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Mon, 7 Jan 2013 03:39:33 +0000 (UTC) Injection-Info: mx04.eternal-september.org; posting-host="b5e4fe56db341d88f7c9c7600d8e654f"; logging-data="3179"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19ivOKxisLWddRgQCF7C7M441oz51Bd8Ps=" User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/17.0 Thunderbird/17.0 In-Reply-To: Cancel-Lock: sha1:WeVNI2NR9q479a6wT4q2LiKHgMo= Xref: csiph.com comp.lang.java.programmer:21130 On 1/6/2013 8:31 PM, Twirlip of the Mists wrote: > Linux is used enough, especially on the server side, to cover, too, and > covering all Unixes isn't much harder than covering MacOS X, unless you > want a normal-looking native GUI, and with Java, using the native L&F > suffices for that. As someone who has worked with cross-platform native projects, I will truthfully say that covering all Unixes can be much harder than just OS X, since OS X uses different graphics libraries, filesystem conventions, desktop environment APIs, and even a different linker/loader than the most common Unix-based varieties. >> But there are still a big difference between what has to work on all >> platforms and what happens to work on the most popular platforms. > > If anything genuinely and literally "has to work on all platforms" then > we're all fucked. :) Low-level platform details--like filesystems--are surprisingly different, even between platforms claiming to confirm to POSIX; that's why there exists massive libraries to try to paper over these differences. Even where there are standards, there are cases where some implementations purposefully ignore them (the NFS atomic file creation issue is a famous one). -- Beware of bugs in the above code; I have only proved it correct, not tried it. -- Donald E. Knuth