Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.alphanet.ch!alphanet.ch!news.imp.ch!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!feeder.erje.net!news.albasani.net!.POSTED!not-for-mail From: BGB Newsgroups: comp.lang.java.programmer Subject: Re: =?UTF-8?B?QW5kcm9pZOKAlFdoeSBEYWx2aWs/?= Date: Tue, 07 Jun 2011 01:30:52 -0700 Organization: albasani.net Lines: 47 Message-ID: References: <953kh4Fo65U1@mid.dfncis.de> <95652kF8muU1@mid.dfncis.de> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Trace: news.albasani.net C0ikzL3HRBewsXt8Ek3K+2AgiVJ9lBEqTK5lPlKjQk7QThv67QaL97tU0wGAiaWionOJ55bCF6GEacapkHF7kw== NNTP-Posting-Date: Tue, 7 Jun 2011 08:34:06 +0000 (UTC) Injection-Info: news.albasani.net; logging-data="XZYcAPwYLFaW0kzkj9H0eEGhIMecVtsByUKFpxTdVwlwIUjM2ifLAQsyt5DHPablDMaQTp0asP62ylNcZTwnxZaLXlhyPO9BrVt5nS6rbWHEyuau8we4IBvE9D33LBId"; mail-complaints-to="abuse@albasani.net" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.17) Gecko/20110414 Thunderbird/3.1.10 In-Reply-To: <95652kF8muU1@mid.dfncis.de> Cancel-Lock: sha1:0zIPppO5tU+kkr2rb5on6m7pjfI= Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:5058 On 6/7/2011 1:16 AM, H.J. Sander Bruggink wrote: > On 06/07/2011 03:40 AM, Lawrence D'Oliveiro wrote: >> In message<953kh4Fo65U1@mid.dfncis.de>, H.J. Sander Bruggink wrote: >> >>> The fact that there exist platforms on which there is no JVM, indicates >>> that porting a C (or C++) program to a different platform is not simply >>> a recompile. There is actually a big effort involved. >> >> There are thousands of open-source C/C++ programs that can indeed be >> “simply >> recompiled” across a wide range of hardware platforms. > > Most open-source application use a lot of #ifdef's for the > system-dependant code. So that is not a refutation of the claim that > there is a big effort involved. > yep, there is this... however, if done well, the cost of getting the thing working on various targets is much less than that of writing the app to begin with, as generally the system-dependent code is a relative minority of the total codebase. >> >>> C is very portable, yes, if you're writing a single-threaded, >>> non-networking console application. If you want the program to be >>> actually usable in practice, you need platform-independent libraries for >>> the networking, the threads, the GUI, the XML processing, etc. >> >> Most of which are already available, and written in portable C/C++, right >> all the way down to a portable OS kernel. > > Even choosing only the GUI library will in general severely limit the > platforms the application will compile on. > at the same time though, there are only a small number of platforms which "really matter", so one can ignore most of the others and call it "good enough"... > groente > -- Sander >