Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
| From | Keith Thompson <kst-u@mib.org> |
|---|---|
| Newsgroups | comp.lang.c |
| Subject | Re: Text processing |
| Date | 2012-03-07 19:09 -0800 |
| Organization | None to speak of |
| Message-ID | <lny5rb4wlc.fsf@nuthaus.mib.org> (permalink) |
| References | <j5pk64$vsu$1@speranza.aioe.org> <mstorkamp-62451D.08340226092011@news.eternal-september.org> <pan.2011.09.26.17.36.49.141000@nowhere.com> <24451427.70.1331170748808.JavaMail.geo-discussion-forums@ynel5> |
hormelfree@gmail.com writes:
> On Monday, September 26, 2011 10:36:49 AM UTC-7, Nobody wrote:
>> On Mon, 26 Sep 2011 08:34:03 -0500, Mark Storkamp wrote:
>>
>> >> A widely used application of text files are program files. Most
>> >> programming languages (and here C is not an exception) store the
>> >> program in text format.
>> >
>> > I'm not sure who your target audience is, but I find this to be less
>> > precise than I believe it should be. I think most people, when they
>> > think of programs, are thinking of the executable binaries, not the
>> > source code. While some languages, like BASIC, and other interpreted
>> > languages do indeed save their programs as text files, C and most others
>> > do not.
>>
>> Another counter-example is that many older dialects of BASIC *didn't*
>> store their programs as text files, but used a tokenised format for the
>> sake of space and performance.
>
> I think that was called "Java(TM)"...
I didn't see a smiley, so ...
No, that's not the same thing at all.
Java source code is text. It's typically *compiled* to byte code,
referred to as "Java bytecode". Other languages can be, and are,
compiled to the same byte code used by Java implementations, and
Java source can be compiled to things other than Java bytecode.
What "Nobody" is referring to is that there have been implementations
of BASIC where the program *source*, though it might be displayed as
text, is never actually stored as text. For example, the keyword
"GOSUB" would not be stored as the 5 characters 'G', 'O', 'S',
'U', 'B', but as a single encoded byte (that's displayed as "GOSUB"
by the specialized editor used to create and modify BASIC programs).
--
Keith Thompson (The_Other_Keith) kst-u@mib.org <http://www.ghoti.net/~kst>
Will write code for food.
"We must do something. This is something. Therefore, we must do this."
-- Antony Jay and Jonathan Lynn, "Yes Minister"
Back to comp.lang.c | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Text processing jacob navia <jacob@spamsink.net> - 2011-09-26 12:29 +0200
Re: Text processing Ben Bacarisse <ben.usenet@bsb.me.uk> - 2011-09-26 13:18 +0100
Re: Text processing jacob navia <jacob@spamsink.net> - 2011-09-26 17:06 +0200
Re: Text processing Ben Bacarisse <ben.usenet@bsb.me.uk> - 2011-09-26 19:07 +0100
Re: Text processing "BartC" <bc@freeuk.com> - 2011-09-26 16:16 +0100
Re: Text processing Harald van Dijk <truedfx@gmail.com> - 2011-09-26 12:36 -0700
Re: Text processing Harald van Dijk <truedfx@gmail.com> - 2011-09-26 13:33 -0700
Re: Text processing jacob navia <jacob@spamsink.net> - 2011-09-26 22:45 +0200
Re: Text processing Tim Rentsch <txr@alumni.caltech.edu> - 2012-03-07 15:48 -0800
Re: Text processing Ben Bacarisse <ben.usenet@bsb.me.uk> - 2011-09-26 22:58 +0100
Re: Text processing Harald van Dijk <truedfx@gmail.com> - 2011-09-26 15:40 -0700
Re: Text processing Ben Bacarisse <ben.usenet@bsb.me.uk> - 2011-09-27 01:41 +0100
Re: Text processing Harald van Dijk <truedfx@gmail.com> - 2011-09-26 17:55 -0700
Re: Text processing Ben Bacarisse <ben.usenet@bsb.me.uk> - 2011-09-27 02:41 +0100
Re: Text processing Harald van Dijk <truedfx@gmail.com> - 2011-09-26 22:56 -0700
Re: Text processing Ben Bacarisse <ben.usenet@bsb.me.uk> - 2011-09-27 12:51 +0100
Re: Text processing pacman@kosh.dhis.org (Alan Curry) - 2011-09-27 01:05 +0000
Re: Text processing Harald van Dijk <truedfx@gmail.com> - 2011-09-26 18:09 -0700
Re: Text processing James Kuyper <jameskuyper@verizon.net> - 2011-09-26 21:43 -0400
Re: Text processing Ben Bacarisse <ben.usenet@bsb.me.uk> - 2011-09-27 02:46 +0100
Re: Text processing Mark Storkamp <mstorkamp@yahoo.com> - 2011-09-26 08:34 -0500
Re: Text processing "BartC" <bc@freeuk.com> - 2011-09-26 15:47 +0100
Re: Text processing jacob navia <jacob@spamsink.net> - 2011-09-26 17:02 +0200
Re: Text processing jacob navia <jacob@spamsink.net> - 2011-09-26 17:03 +0200
Re: Text processing Nobody <nobody@nowhere.com> - 2011-09-26 18:36 +0100
Re: Text processing hormelfree@gmail.com - 2012-03-07 17:39 -0800
Re: Text processing Keith Thompson <kst-u@mib.org> - 2012-03-07 19:09 -0800
Re: Text processing pete <pfiland@mindspring.com> - 2011-09-26 19:46 -0400
Re: Text processing Kleuskes & Moos <kleuske@somewhere.else.net> - 2011-09-26 14:02 +0000
Re: Text processing Keith Thompson <kst-u@mib.org> - 2011-09-26 12:42 -0700
Re: Text processing Ben Pfaff <blp@cs.stanford.edu> - 2011-09-26 11:11 -0700
Re: Text processing jacob navia <jacob@spamsink.net> - 2011-09-26 21:01 +0200
csiph-web