| Deutsch English Français Italiano |
|
<lbmcnV0rM4Aq_Wr7nZ2dnZfqnPednZ2d@earthlink.com> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!Xl.tags.giganews.com!local-1.nntp.ord.giganews.com!nntp.earthlink.com!news.earthlink.com.POSTED!not-for-mail NNTP-Posting-Date: Sat, 28 Sep 2024 01:49:43 +0000 Subject: Re: The joy of FORTRAN Newsgroups: comp.os.linux.misc,alt.folklore.computers References: <pan$96411$d204da43$cc34bb91$1fe98651@linux.rocks> <5mqdnZuGq4lgwm_7nZ2dnZfqnPSdnZ2d@earthlink.com> <vcub5c$36h63$1@dont-email.me> <36KdnVlGJu9VLW77nZ2dnZfqn_qdnZ2d@earthlink.com> <IfZIO.214180$FzW1.122138@fx14.iad> <ZLecncKpCfSfT2n7nZ2dnZfqnPudnZ2d@earthlink.com> <ZOfJO.194439$kxD8.179224@fx11.iad> <nOWcncO0uZgZyWv7nZ2dnZfqnPGdnZ2d@earthlink.com> <79CJO.19676$MoU3.9722@fx36.iad> From: "186282@ud0s4.net" <186283@ud0s4.net> Organization: wokiesux Date: Fri, 27 Sep 2024 21:49:43 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: <79CJO.19676$MoU3.9722@fx36.iad> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Message-ID: <lbmcnV0rM4Aq_Wr7nZ2dnZfqnPednZ2d@earthlink.com> Lines: 73 X-Usenet-Provider: http://www.giganews.com NNTP-Posting-Host: 99.101.150.97 X-Trace: sv3-IVS4+Qd3wdvhrDzvWmVvoUbyyqDazE0rlZJmbdsGAC2eKnI5X7yBS5/sEr4ceqdWBgSdkayj4BE/dtI!5Ml6tF9RxJTFdBANBMaoHur2TRwQ2O1j14QawCDAWu76YwjL+VAg9o0wN2oKthMAPCknJsJmDqCe!WBDfKXYg3T/LI4MfqkOi X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 Bytes: 4762 On 9/27/24 1:43 PM, Charlie Gibbs wrote: > On 2024-09-27, 186282@ud0s4.net <186283@ud0s4.net> wrote: > >> I always liked ascii-delimited multi-value records. >> Hey, you can actually READ them. They are also VERY >> easy and cheap for microcontrollers and such to >> create on the fly. > > Yes, I got into them early - and found it was a short easy > step to CSV, so now my stuff can be read by the people in > spreadsheet land. I have, however, had to put a fair amount > of effort into what I call "Excel-proofing" my data, since > our favourite Redmond software company loves meddling with it. > ISO 8601 does a good job of sidestepping Excel's obsession > with turning dates into month/day/year format, for instance. I ran into ascii-delimited MV records when I did some things with the PICK system long back. These were largely 'text' records ... 10000 was "10000", not any binary rep. As such, the 'high' ascii vals were used as record/field/subfield/subsubfield delimiters (this was before unicode). On old PCs you could directly view the delims - those funky graphics-like characters so handy for making text/terminal forms. However I'd been doing a number of microcontroller- based dataloggers and found that building up ascii-delimited was really THE easiest way of storing lots of sensor values. You just keep tacking-stuff onto the end of the string and save it when done. No more exotic structure or logic required. <Temp1><subfield-mark><Temp2><field-mark><Humid1> <subfield-mark><Humid2><subfield-mark><Humid3> <field-mark>" etc until you've done all the various kinds of sensors and then you stick a <record-mark> at the end. Human-readable. Revelation DB system used ascii-255 as the record mark, 254 as the field marks and worked backwards from there, thus allowing about 127 levels of sub-sub values though nobody EVER used THAT many. Machine-reading is straight-up. Some kinds of EDITING can get peculiar however because you want some kind of 'intent' defined - 'data dictionaries' are a common approach. DBs generally use hashing to facilitate getting to a given record quickly. ANYWAY, those became my go-to kind of record keeping for many projects and I wrote little related functions in a number of langs. I've noted that some people think that because their high-level lang has a function for dealing with strings and such means it's better/faster but the TRUTH is that most langs are writ in 'C' and those functions are just handy, disguised, 'C'. Just because you don't SEE 'strtok()' does not mean it isn't ACTUALLY used. Final note, FORTRAN is *still* good for most uses. It's fairly clear, un-fancy, and well-tuned and people added enough to it over the years so there's hardly any task you can't do with it. Still didn't find a native FORTRAN compiler for modern Linux though ... I suspect when Intel nixxed 8-bit code it broke most of them. Such a pity ... and 8-bits WERE enough for a lot of little things and SO nicely compact.