Re: [vox] Gopher: New use for old software.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [vox] Gopher: New use for old software.
On Wed, Jun 05, 2002 at 05:23:22PM -0700, Mark K. Kim wrote:
> On Wed, 5 Jun 2002, nbs wrote:
>
> > On Wed, Jun 05, 2002 at 02:09:36PM -0700, Mark K. Kim wrote:
> > >
> > > I guess it depends on what "portable" means. Is a language portable if
> > > programs *can* be made portable, or if it *forces* programs to be
> > > portable?
> >
> >
> > If the former, then even BASIC is portable :)
> >
> > PRINT "HELLO"
> [Insert Beaker here :]
> > But - that first 'program' at the top is portable! ;)
>
> Are you sure? I think you need a number in the front:
>
> 10 PRINT "HELLO"
Well, actually - Some BASICs include an editor, rather than have
an interpreter only (where you must do line numbers). :)
Just a plain "PRINT "HELLO"", while I guess not technically a
_program_ in most BASICs, is still valid. ;^)
> Is PERL, an interpreted language like BASIC, portable?
Depends on if you use any of the calls that let the underlying platform
'bubble through' I guess. :)
> Are SDL programs, compiled using C or C++, portable?
See above. Not if you do: system("format c:"); ;)
I think, much like the line between Operating Systems, Interfaces and
Applications is getting very very fuzzy, whether or not a particular
language is portable is (and really always has been) a matter of whether
the language _forces_ you to be portable. (e.g., NO way of doing a
"system()" or a "POKE")
<snip>
> PS: FYI, the way QuickBASIC "compiled" BASIC programs was to make P-CODE
> out of BASIC program, then stick it at the end of a precompiled
> executable. At runtime, the precompiled executable would read the P-CODE
> and run it piece-by-piece. So basically it was interpreting your BASIC
> code even if you "compiled" it. It was rediculously lazy of Microsoft...
Fairly typical, I think. TurboBASIC XL on the Atari can be "compiled,"
but to run it, you need to run a "runtime." I'm guessing that the
'compiled' code is much like P-CODE, although it COULD theoretically
be straight 6502 CPU code - the runtime only needed for "library calls"
like "PRINT", "OPEN", "CLOSE", etc.
-bill!
_______________________________________________
vox mailing list
vox@lists.lugod.org
http://lists.lugod.org/mailman/listinfo/vox
|