🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #136679

Re: [Xnews] Open Source Xnews?

#136679
From: Darrien
Date: Sun, 02 Nov 2003 09:30
75 lines
4631 bytes
On Sun, 02 Nov 2003 04:54:09 GMT, "August Derleth" Enlightened the world
by saying: 

> Darrien <Darrien_Lambert@NA._.COM@hotmail.com> wrote in message
> news:<Xns942639EC413FEDarrienL@140.99.99.130>... 
>> On Sat, 01 Nov 2003 13:08:44 GMT, "Richard Hoskins" Enlightened the
>> world by saying: 
>> 
>> [FollowUp set]
>> 
>>> Darrien <Darrien_Lambert@NA._.COM@hotmail.com> writes:
>>> 
>>>>
>>>> C is not a platform specific language.
>>>>
>>>
>>> That's the theory anyway.
>>> 
>> 
>> Can you explain this statement?
>> 
>> Why do you believe that C is platform specific?
> 
> C is as platform-specific as the writer makes it. He can choose to use
> only standard libraries and only the defined-standard syntax and
> semantics as defined in the ISO standard, making it portable to any
> machine with a Standard C compiler.
> 
> He can opt to use POSIX as well, a relatively high-level API that
> essentially defines a Unix-like environment for a program to operate
> in, but lose portability to older and special-purpose OSes that don't
> support POSIX.
> 
> He can use an API more system-specific than POSIX, like making his
> program dependent upon a specific system's implementation of threads.
> That might gain him some ease of use and perhaps a bit of speed, but
> it would require some rewrites to make it usable on an OS that doesn't
> support what he's relied upon.
> 

Once you use an API containing system specific code, it is no longer C. 
C has a very specific definition. Anyone who does something not defined in
the standard, has most likely invoked Undefined Behaviour and their
program should no longer be considered C. 

> And, of course, he could use nonstandard constructs like void main()
> and old K&R-style function definitions, simply because a specific
> compiler happens to support them the way he likes. Writing code like
> that could tie the sources to a specific version of a specific
> compiler, and in theory make it no more portable than if he'd written
> the program in assembly.
> 

void main() is not only nonstandard, it is UB. A program that uses 
void main() has no guarantees that it will do anything close to what the
programmer intended it to do. 

> So the upshot is this: If a programmer decides to make his program
> nonportable and tie it as tightly as he can to a specific
> OS/hardware/compiler combination, there are ways for him to do it
> while stil writing code in what looks like C. 
>

There are plenty of languages that "look like C". That doesn't make them C.

> If he decides to do something like write inline assembly, the
> unportability factor ramps up towards infinity. 
> 

Only in some cases. It is possible to use a small inline assembly function 
and still retain a high degree of portability.


-- 
Registered Linucks hater #7011799107
Technical Details
Message-ID: <Xns9427FB75C998DarrienL@140.99.99.130>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!news5.aus1.giganews.com!firehose2!nntp4!intern1.nntp.aus1.giganews.com!border3.nntp.aus1.giganews.com!nntp.giganews.com!newsfeed1.easynews.com!easynews.com!easynews!easynews-local!news.easynews.com.POSTED!not-for-mail
References: <aaKnb.211946$pl3.76968@pd7tw3no> <Xns9424B02ACBB87j44xm@216.196.97.129> <Xns94256BAA259CFpetitalexicathscouk@news-60.giganews.com> <Xns94266D263760EMQ4201HB@Kia.Ora.Hoa.Aku> <slrnbq66k0.2jl.dcmoose@moosemeat.ca.INVALID> <m3llr0n44s.fsf@apk.net> <Xns9426288C6688BDarrienL@140.99.99.130> <m3he1ome1v.fsf@apk.net> <Xns942639EC413FEDarrienL@140.99.99.130> <b6c8998.0311012054.2e2cb8e5@posting.google.com>

Show Full Headers
Complete Article Headers
Message-ID: <Xns9427FB75C998DarrienL@140.99.99.130>
Subject: Re: [Xnews] Open Source Xnews?
Date: Sun, 02 Nov 2003 09:30:58 GMT
From: Darrien <Darrien_Lambert@NA._.COM@hotmail.com>
References: <aaKnb.211946$pl3.76968@pd7tw3no> <Xns9424B02ACBB87j44xm@216.196.97.129> <Xns94256BAA259CFpetitalexicathscouk@news-60.giganews.com> <Xns94266D263760EMQ4201HB@Kia.Ora.Hoa.Aku> <slrnbq66k0.2jl.dcmoose@moosemeat.ca.INVALID> <m3llr0n44s.fsf@apk.net> <Xns9426288C6688BDarrienL@140.99.99.130> <m3he1ome1v.fsf@apk.net> <Xns942639EC413FEDarrienL@140.99.99.130> <b6c8998.0311012054.2e2cb8e5@posting.google.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!news5.aus1.giganews.com!firehose2!nntp4!intern1.nntp.aus1.giganews.com!border3.nntp.aus1.giganews.com!nntp.giganews.com!newsfeed1.easynews.com!easynews.com!easynews!easynews-local!news.easynews.com.POSTED!not-for-mail
Newsgroups: news.software.readers
Organization: N/A
User-Agent: Xnews/06.02.16
X-Face: 9~E_O:zvYdOXC-G5AQ/S6(y39)r[ak/4bXKns-eXr!0q)"'v0o+dA{J1#/4bzfjg`puOI^GU=zGrZ_g6|sMJ#d[5YV;
 l_}4L{N3fp\:=@klk"_7snPif\*Z8uvITg<UAqCV@QTF`kB-ll'x(WB.}"r<dM6ezIDVa~4(]0B!R(]Wek;
 %'6[+0(~D\_W{
MIME-Version: 1.0
Content-Type: text/plain; charset="iso-2022-jp"
X-Geek-Status: GS d+(-) s:+ a--->? C(++++) UB P+ L- E--- W+ N++ o+ K- w(++++)
 O M V(+) PS+@ PE@ Y+>+++ PGP t+++ 5++++ X+ R- tv- b+>++++ DI D G e+>++++ h!
 !r y**
Lines: 75
X-Complaints-To: abuse@easynews.com
X-Complaints-Info: Please be sure to forward a copy of ALL headers otherwise
 we will be unable to process your complaint properly.