Re: Future reuse of code
Roedy Green <roedy@mindprod .com> wrote in message news:<r2qnjv47q hjmtoib3k8lpe98 cfmlm3192j@4ax. com>...[color=blue]
> On 14 Aug 2003 06:02:20 -0700, ruse@webmail.co .za (goose) wrote or
> quoted :
>[color=green]
> >thats a lie again. C is cross-platform.
> >period.[/color]
>
> Don't be silly.[/color]
????
[color=blue]
> Look at any C code designed to run on many platforms.[/color]
yes, I am looking at a helluva lot of code I wrote.
[color=blue]
> It is riddled with macros to pull off the feat.[/color]
I dont seem to find macros designed to do that ... what
do you think the problem is ? me not being able to see
that "of course C cant run on many platforms without
macros" or you not being well-trained enough to know about
even the C standards ???
[color=blue]
>
> You can do a few simple things like parse the command line, open a
> flat file in a platform independent way, but not even the size of int
> is guaranteed unless you play some games with macros.[/color]
dammit!!!
yet another lie!!!! the values you can hold in an int are *guaranteed*.
do you *understand* what that means ??? is english your 2nd language ?
do you have problems with comprehension ????
i'll repeat:
the minimum and maximum values of an int are *the* *same* on every
conforming implementation! !!
[color=blue]
>
> You certainly can't write to a gui without some cross platform library
> which is not part of C. Java is in a quite different position. The
> standard class libraries are everywhere Java is supported.[/color]
but the point is that java is supported on so *few* platforms, that
calling it platform-independant is ludicrous.
[color=blue]
>
> C is a portable assembler.[/color]
a nice quote i've seen before. luckily, its not true.
[color=blue]
>
> Making code run absolutely unmodified on all platforms and giving the
> same results would interfere with its use as a portable assembler.[/color]
non-sequiter ???
[color=blue]
>
> Have you written any cross platform C or Java?[/color]
I've written cross-platform C code, not cross-platform java ...
(cross-platform java is an oxymoron).
a trivial example is a tic-tac-toe library. a set of functions
that allow to users to *play* the game and decides who wins.
I can post the source (have nowhere to host it), so that you can use
it in *your* application. thus far I've had it compiled and working
for :
point of sale machines.
an atm
a credit-card-swipe machine.
a smartcard reading+verific ation terminal.
normal PC's using windows, linux and bsd
the hitec C compiler for the PIC 16f877
the CCS compiler for the PIC 18f542
I've no doubt that it will also compile successfully
on the sun enterprise servers, on the 4-way xeon boxes
from ibm.
i *think* it will compile with avr-gcc, and for most
of the other 8051 variants, I haven't tried as my knowledge
wtr 8bit MCU is confined PIC (about to change, though:-).
would you like to write a library that plays tic-tac-toe ?
we'll see on how many places it will run unmodified, ok ?
you *can* decline this, but doing so means that you must
stop spouting bs about how "C is not cross-platform" ...
ok ?
if the stoplights down the road from where I live
run PICs, it would be possible (with *no* changes to the
"business logic" that actually *plays* the game) to
*play* tic-tac-toe using the red/green/orange/
east-facing/west-facing/north-facing/south-facing combinations
available to repesent the 3x3 board!
now *thats* cross-platform ...
yes. the same source code *unmodified* will run on those
stoplights *and* on a resource intensive server.
the reason, of course, is because I built it as a *library* !
go on, build your library that will run *everywhere* and show me
I'm wrong about cross-platform-ness wrt to java and C.
goose,
C ? Portable assembler ? please ... i feel nauseous enough
already ...
Roedy Green <roedy@mindprod .com> wrote in message news:<r2qnjv47q hjmtoib3k8lpe98 cfmlm3192j@4ax. com>...[color=blue]
> On 14 Aug 2003 06:02:20 -0700, ruse@webmail.co .za (goose) wrote or
> quoted :
>[color=green]
> >thats a lie again. C is cross-platform.
> >period.[/color]
>
> Don't be silly.[/color]
????
[color=blue]
> Look at any C code designed to run on many platforms.[/color]
yes, I am looking at a helluva lot of code I wrote.
[color=blue]
> It is riddled with macros to pull off the feat.[/color]
I dont seem to find macros designed to do that ... what
do you think the problem is ? me not being able to see
that "of course C cant run on many platforms without
macros" or you not being well-trained enough to know about
even the C standards ???
[color=blue]
>
> You can do a few simple things like parse the command line, open a
> flat file in a platform independent way, but not even the size of int
> is guaranteed unless you play some games with macros.[/color]
dammit!!!
yet another lie!!!! the values you can hold in an int are *guaranteed*.
do you *understand* what that means ??? is english your 2nd language ?
do you have problems with comprehension ????
i'll repeat:
the minimum and maximum values of an int are *the* *same* on every
conforming implementation! !!
[color=blue]
>
> You certainly can't write to a gui without some cross platform library
> which is not part of C. Java is in a quite different position. The
> standard class libraries are everywhere Java is supported.[/color]
but the point is that java is supported on so *few* platforms, that
calling it platform-independant is ludicrous.
[color=blue]
>
> C is a portable assembler.[/color]
a nice quote i've seen before. luckily, its not true.
[color=blue]
>
> Making code run absolutely unmodified on all platforms and giving the
> same results would interfere with its use as a portable assembler.[/color]
non-sequiter ???
[color=blue]
>
> Have you written any cross platform C or Java?[/color]
I've written cross-platform C code, not cross-platform java ...
(cross-platform java is an oxymoron).
a trivial example is a tic-tac-toe library. a set of functions
that allow to users to *play* the game and decides who wins.
I can post the source (have nowhere to host it), so that you can use
it in *your* application. thus far I've had it compiled and working
for :
point of sale machines.
an atm
a credit-card-swipe machine.
a smartcard reading+verific ation terminal.
normal PC's using windows, linux and bsd
the hitec C compiler for the PIC 16f877
the CCS compiler for the PIC 18f542
I've no doubt that it will also compile successfully
on the sun enterprise servers, on the 4-way xeon boxes
from ibm.
i *think* it will compile with avr-gcc, and for most
of the other 8051 variants, I haven't tried as my knowledge
wtr 8bit MCU is confined PIC (about to change, though:-).
would you like to write a library that plays tic-tac-toe ?
we'll see on how many places it will run unmodified, ok ?
you *can* decline this, but doing so means that you must
stop spouting bs about how "C is not cross-platform" ...
ok ?
if the stoplights down the road from where I live
run PICs, it would be possible (with *no* changes to the
"business logic" that actually *plays* the game) to
*play* tic-tac-toe using the red/green/orange/
east-facing/west-facing/north-facing/south-facing combinations
available to repesent the 3x3 board!
now *thats* cross-platform ...
yes. the same source code *unmodified* will run on those
stoplights *and* on a resource intensive server.
the reason, of course, is because I built it as a *library* !
go on, build your library that will run *everywhere* and show me
I'm wrong about cross-platform-ness wrt to java and C.
goose,
C ? Portable assembler ? please ... i feel nauseous enough
already ...
Comment