Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.os.linux.misc > #59049
| From | "186282@ud0s4.net" <186283@ud0s4.net> |
|---|---|
| Subject | Re: The joy of FORTRAN |
| Newsgroups | comp.os.linux.misc, alt.folklore.computers |
| References | (3 earlier) <36KdnVlGJu9VLW77nZ2dnZfqn_qdnZ2d@earthlink.com> <IfZIO.214180$FzW1.122138@fx14.iad> <ZLecncKpCfSfT2n7nZ2dnZfqnPudnZ2d@earthlink.com> <ZOfJO.194439$kxD8.179224@fx11.iad> <vd4hgd$c3jf$8@dont-email.me> |
| Organization | wokiesux |
| Date | 2024-10-04 01:19 -0400 |
| Message-ID | <AxicncFTKaRW52L7nZ2dnZfqnPednZ2d@earthlink.com> (permalink) |
Cross-posted to 2 groups.
On 9/26/24 4:51 PM, Lawrence D'Oliveiro wrote:
> On Thu, 26 Sep 2024 16:18:01 GMT, Charlie Gibbs wrote:
>
>> One of the favourite functions in my library pulls the next token from a
>> delimited string, but as opposed to strtok() it does it
>> non-destructively and can handle empty strings.
>
> Use a high-level language which has all this and more:
>
> for item in "the,quick,brown,fox".split(",") :
> print(item)
> #end for
>
> Output:
>
> the
> quick
> brown
> fox
>
> In Python, strings are objects, and that applies to string expressions
> (including string literals) as well.
Ya know ... most of Python IS 'C'-based libs.
Never really looked into it, but the 'advanced'
Python function may just be strtok() with a
lot of handy fixes/cheats in disguise :-)
First you make COPIES of the source string ...
Look, then look DEEPER.
WAY back, latter 70s, Bill Gates used to participate
in 'contests' to see How To Do It In The Least
Bytes/Cycles/Mem - and often won. I do REMEMBER his name
from Way Back When. As such, despite all after, I do
NOT doubt his coding acumen.
The follow-on that a LOT of today's code is
STILL Bill Gates code - just adapted for a
particular chip. Smart ASM that got put
into the libs for almost every computer
language/OS/BIOS and whatever.
There IS 'depth' to all this.
Microprocessors CHANGED EVERYTHING.
Oh, Python 'strings' are ULTIMATELY just
a stretch of memory filled with various
values. The "object" stuff, a carefully-
crafted ILLUSION :-)
I started with ASM ... pre-4004/8008 ... as
such I see things more at their basic level.
Oh, recently found an ADVERT for a "desktop",
more an entire DESK, 8008 all-purpose/wonderful
8008 system. You could buy it with a nice serial
terminal AND a - gasp ! - floppy-disk drive
or, cheap-asses, a tape CASSETTE drive :-)
The first 'floppies' of MY experience were 8-inch
floppies. Huge, actually "floppy", didn't hold much
of DICK.
Ah how times have changed ! You don't even have to
solder-together your own I/O boards anymore !
SO boring ......
Back to comp.os.linux.misc | Previous | Next — Next in thread | Find similar
Re: The joy of FORTRAN "186282@ud0s4.net" <186283@ud0s4.net> - 2024-10-04 01:19 -0400
Re: The joy of FORTRAN Lawrence D'Oliveiro <ldo@nz.invalid> - 2024-10-04 05:48 +0000
Re: The joy of FORTRAN "186282@ud0s4.net" <186283@ud0s4.net> - 2024-10-04 02:03 -0400
Re: The joy of FORTRAN Lawrence D'Oliveiro <ldo@nz.invalid> - 2024-10-04 06:56 +0000
Re: The joy of FORTRAN rbowman <bowman@montana.com> - 2024-10-04 07:40 +0000
Re: The joy of FORTRAN Lawrence D'Oliveiro <ldo@nz.invalid> - 2024-10-04 20:13 +0000
Re: The joy of FORTRAN rbowman <bowman@montana.com> - 2024-10-04 22:47 +0000
Re: The joy of FORTRAN Lawrence D'Oliveiro <ldo@nz.invalid> - 2024-10-05 06:12 +0000
Re: The joy of FORTRAN "186282@ud0s4.net" <186283@ud0s4.net> - 2024-10-05 23:20 -0400
Re: The joy of FORTRAN Lawrence D'Oliveiro <ldo@nz.invalid> - 2024-10-06 03:29 +0000
Re: The joy of FORTRAN Louis Krupp <lkrupp@invalid.pssw.com.invalid> - 2024-10-06 16:06 -0600
Re: The joy of FORTRAN rbowman <bowman@montana.com> - 2024-10-07 03:02 +0000
Re: The joy of FORTRAN The Natural Philosopher <tnp@invalid.invalid> - 2024-10-07 10:00 +0100
Re: The joy of FORTRAN Charlie Gibbs <cgibbs@kltpzyxm.invalid> - 2024-10-05 02:37 +0000
Re: The joy of FORTRAN Lawrence D'Oliveiro <ldo@nz.invalid> - 2024-10-05 06:13 +0000
Re: The joy of FORTRAN rbowman <bowman@montana.com> - 2024-10-05 07:00 +0000
Re: The joy of FORTRAN Lawrence D'Oliveiro <ldo@nz.invalid> - 2024-10-05 08:08 +0000
Re: The joy of FORTRAN rbowman <bowman@montana.com> - 2024-10-06 02:29 +0000
Re: The joy of FORTRAN Lawrence D'Oliveiro <ldo@nz.invalid> - 2024-10-06 03:43 +0000
Re: The joy of FORTRAN Richard Kettlewell <invalid@invalid.invalid> - 2024-10-04 08:39 +0100
Re: The joy of FORTRAN John Ames <commodorejohn@gmail.com> - 2024-10-04 08:00 -0700
Re: The joy of FORTRAN Charlie Gibbs <cgibbs@kltpzyxm.invalid> - 2024-10-04 17:06 +0000
Re: python abstractions, The joy of FORTRAN John Levine <johnl@taugh.com> - 2024-10-04 18:00 +0000
csiph-web