Thread View: comp.os.linux.misc
1099 messages
1099 total messages
Page 8 of 22
Started by Leroy H
Fri, 16 Oct 2026 03:26
Page 8 of 22 • 1099 total messages
Re: Back To CS Basics. Fuck AI
Author: rbowman
Date: Tue, 20 Oct 2026 18:15
Date: Tue, 20 Oct 2026 18:15
26 lines
2271 bytes
2271 bytes
On Tue, 20 Oct 2026 02:48:09 +0100, Nuno Silva wrote: > On 2026-10-16, Tapiro Ubriaco wrote: > >> On Fri, 16 Oct 2026 15:05:32 +0100, The Natural Philosopher wrote: >> >>> On 16/10/2026 13:15, Tapiro Ubriaco wrote: > [...] >>>> Some of us don't have _that_ much time on our hands. >>> >>> Perhaps some of us aren't as smart as we like to think we are. >> >> Are we all sure that the kid that tinkers with computers after school >> is "smarter" than the kid who spends his spare time chasing girls? :-D > > All I know is that Feynman made it quite clear that, had he had done > that, > he'd have studied Portuguese instead of Spanish, which would later have > proven useful for his visit to Brasil. In high school the 'college entrance' kids took 2 years of Latin followed by 2 years of French or German. The business and shop kids took Spanish. Which would have been more useful in my later life? The dummies also took typing. I still can't touch type.
Re: Back To CS Basics. Fuck AI
Author: rbowman
Date: Tue, 20 Oct 2026 18:26
Date: Tue, 20 Oct 2026 18:26
27 lines
2591 bytes
2591 bytes
On Tue, 20 Oct 2026 10:51:23 +0200, Carlos E.R. wrote: > On 2026-10-20 00:09, John Ames wrote: >> On Sun, 18 Oct 2026 11:48:59 +0100 The Natural Philosopher >> <tnp@invalid.invalid> wrote: > > > >>>> The chinese Classic of Music dates back to about 3000 years ago and >>>> the Pythagorean school is not that far behind, but ok. >>> >>> 'music theory' *as we know it today * has only existed a couple of >>> hundred years >> >> You yourself started off this discussion talking about "music existing >> ten thousand years before music theory," so grouping classical Chinese >> and Pythagorean thought in with post-Renaissance Western theory is as >> fair as anything. They didn't have *any* of those in the Paleolithic. > > How come the instruments have fixed notes, and these appeared very very > long ago? before the theory was developed formally? > > Google says the western notes appeared between 6th and 11th centuries. > > They had to know some theory. What theory did the East Asians use?
Re: Back To CS Basics. Fuck AI
Author: John Ames
Date: Tue, 20 Oct 2026 18:46
Date: Tue, 20 Oct 2026 18:46
20 lines
2824 bytes
2824 bytes
On 20 Oct 2026 18:26:11 GMT rbowman <bowman@montana.com> wrote: > > How come the instruments have fixed notes, and these appeared very > > very long ago? before the theory was developed formally? > > > > Google says the western notes appeared between 6th and 11th > > centuries. > > > > They had to know some theory. > > What theory did the East Asians use? Per a brief survey of Wikipedia, the particulars are unclear (the oldest indicated text, the Classic of Music, was probably lost in Qin Shi Huang's Ye Olde Cultural Revolution, though fragments have been preserved in later works,) but the guqin goes back a good 3000 years, and uses a scale based on the harmonic series - something akin to Pythagorean tuning, if I'm understanding correctly.
Re: Back To CS Basics. Fuck AI
Author: Charlie Gibbs
Date: Tue, 20 Oct 2026 19:04
Date: Tue, 20 Oct 2026 19:04
28 lines
2888 bytes
2888 bytes
On 2026-10-20, John Ames <commodorejohn@gmail.com> wrote: > On Tue, 20 Oct 2026 03:33:56 GMT > Charlie Gibbs <cgibbs@kltpzyxm.invalid> wrote: > >> I tried an octave mandolin once. It was frustrating - a lot of the >> stretches become too far to reach. You'd need different fingerings; >> I suppose it's similar to violin vs. cello. (I also play viola - my >> fingers are long enough that I can manage most of the violin >> stretches.) > > Funny, I had the opposite problem - tried to play a friend's mandolin > once and it absolutely boggled my mind how close the upper frets were. > Could hardly line my fingers up behind one without rolling over to the > next, and I'm not at all sausage-fingered; maybe there's a trick to it, > but I couldn't see how a grown adult was supposed to play the thing... True, it's different from a guitar. But there's no law that says your finger has to fit comfortably between two frets. As long as the string touches the desired fret and nothing else between there and the bridge, you're golden. It doesn't matter what else your finger touches on the other side. -- /~\ Charlie Gibbs | In this world there are \ / <cgibbs@kltpzyxm.invalid> | two kinds of people: X I'm really at ac.dekanfrus | 1. Those who can extrapolate / \ if you read it the right way. | from incomplete data.
Re: Back To CS Basics. Fuck AI
Author: Charlie Gibbs
Date: Tue, 20 Oct 2026 19:04
Date: Tue, 20 Oct 2026 19:04
37 lines
3138 bytes
3138 bytes
On 2026-10-20, rbowman <bowman@montana.com> wrote: > In high school the 'college entrance' kids took 2 years of Latin followed > by 2 years of French or German. The business and shop kids took Spanish. > Which would have been more useful in my later life? I took French from grades 8 through 12 (standard in Canadian schools). In university I took two years of German just to have some variety. I think it's good to learn other languages, even if you never get to the point were you can carry on a conversation. It exposes you to different concepts, stretching your mind a little (plus you don't have to turn the cereal box over if you happen to pick up the French side). Words in one language don't necessarily mean exactly the same as the nearest equivalent in another; it's sort of like the way the inch and centimeter marks don't line up on a ruler. This means that subtle gradations can be different from one language to another. And then there are the adjustments an English speaker has to make to handle the Spanish verb "gustar"... I suppose the differences must be even grater when going to, say, Indian or oriental languages. > The dummies also took typing. I still can't touch type. Who are you calling dummies? I took a typing class in grade 9. It was just for the hell of it at the time (I was too nerdy to realize that the class was full of girls), but it turned out to be one of the best things I ever did. I worked my way up to 45 words per minute on one of those big old Underwood manuals. And then I got into computers and really nice keyboards - I do 75 wpm now, which is great for productivity. -- /~\ Charlie Gibbs | In this world there are \ / <cgibbs@kltpzyxm.invalid> | two kinds of people: X I'm really at ac.dekanfrus | 1. Those who can extrapolate / \ if you read it the right way. | from incomplete data.
Re: Back To CS Basics. Fuck AI
Author: Charlie Gibbs
Date: Tue, 20 Oct 2026 19:04
Date: Tue, 20 Oct 2026 19:04
18 lines
2189 bytes
2189 bytes
On 2026-10-20, The Natural Philosopher <tnp@invalid.invalid> wrote: > On 20/10/2026 09:51, Carlos E.R. wrote: > >> How come the instruments have fixed notes, and these appeared very very >> long ago? before the theory was developed formally? > > Because it is in the nature of musical instruments to produce one or > more fixed notes And those fixed notes tend to have fixed relationships between them (e.g. harmonics). -- /~\ Charlie Gibbs | In this world there are \ / <cgibbs@kltpzyxm.invalid> | two kinds of people: X I'm really at ac.dekanfrus | 1. Those who can extrapolate / \ if you read it the right way. | from incomplete data.
Re: Back To CS Basics. Fuck AI
Author: Carlos E.R.
Date: Tue, 20 Oct 2026 19:20
Date: Tue, 20 Oct 2026 19:20
14 lines
2336 bytes
2336 bytes
On 2026-10-20 15:18, The Natural Philosopher wrote: > On 20/10/2026 09:51, Carlos E.R. wrote: >> How come the instruments have fixed notes, and these appeared very >> very long ago? before the theory was developed formally? > > Because it is in the nature of musical instruments to produce one or > more fixed notes Certainly, but they had a certain separation between them and not another. They knew. It was not random. -- Cheers, Carlos. ES🇪🇸, EU🇪🇺;
Re: Back To CS Basics. Fuck AI
Author: Carlos E.R.
Date: Tue, 20 Oct 2026 19:27
Date: Tue, 20 Oct 2026 19:27
26 lines
2662 bytes
2662 bytes
On 2026-10-20 21:04, Charlie Gibbs wrote: > On 2026-10-20, rbowman <bowman@montana.com> wrote: > >> The dummies also took typing. I still can't touch type. > > Who are you calling dummies? I took a typing class in grade 9. > It was just for the hell of it at the time (I was too nerdy to > realize that the class was full of girls), but it turned out > to be one of the best things I ever did. I worked my way up > to 45 words per minute on one of those big old Underwood manuals. > And then I got into computers and really nice keyboards - I do > 75 wpm now, which is great for productivity. I did not go to a formal class, but my father taught me how to do it. One year in high school, the teacher said she would dictate the Philosophy notes. No book. My handwriting at speed is awful, so each afternoon I typed my notes. So I can almost touch type, which has helped me all my life, even this instant. Professionally and leisure (the last word does not feel correct...) -- Cheers, Carlos. ES🇪🇸, EU🇪🇺;
Re: Back To CS Basics. Fuck AI
Author: Leroy H
Date: Tue, 20 Oct 2026 19:33
Date: Tue, 20 Oct 2026 19:33
24 lines
2390 bytes
2390 bytes
On Tue, 20 Oct 2026 10:51:23 +0200, Carlos E.R. wrote: > > Google says the western notes appeared between 6th and 11th centuries. > Ha, ha, ha, ha! Google says "jump off a cliff." Will you do it? Ask Google about the "Pythagorean comma." <https://en.wikipedia.org/wiki/Pythagorean_comma> The Pythagorean comma, as well as the tetrachords of Aristoxenus, extends Western music theory back to at least 300 B.C.E. But my knowledge of this area is limited and the origin may even be earlier. Of course, the rustics, then as now, continued to dance in the barnyard while animated by their pentatonic flutes, but civilized peoples developed a theory of music at the very beginning of civilization.
Re: Back To CS Basics. Fuck AI
Author: Lawrence D’Oliveiro
Date: Tue, 20 Oct 2026 20:08
Date: Tue, 20 Oct 2026 20:08
9 lines
2222 bytes
2222 bytes
On Tue, 20 Oct 2026 19:04:54 GMT, Charlie Gibbs wrote: > I worked my way up to 45 words per minute on one of those big old > Underwood manuals. And then I got into computers and really nice > keyboards - I do 75 wpm now, which is great for productivity. Back in the days when the “software crisis” was still a thing, I remember a quote from someone who said that the quickest way to double the productivity of your programmers was to teach them how to type.
Re: Back To CS Basics. Fuck AI
Author: Charlie Gibbs
Date: Tue, 20 Oct 2026 23:18
Date: Tue, 20 Oct 2026 23:18
25 lines
2612 bytes
2612 bytes
On 2026-10-20, Lawrence D’Oliveiro <ldo@nz.invalid> wrote: > On Tue, 20 Oct 2026 19:04:54 GMT, Charlie Gibbs wrote: > >> I worked my way up to 45 words per minute on one of those big old >> Underwood manuals. And then I got into computers and really nice >> keyboards - I do 75 wpm now, which is great for productivity. > > Back in the days when the “software crisis” was still a thing, I > remember a quote from someone who said that the quickest way to double > the productivity of your programmers was to teach them how to type. That's great if your manager wasn't a martinet who insisted that all program code shall be punched by the keypunch department from code written on official coding forms. If you were lucky there was a spare keypunch you could use when no one was looking. Otherwise... well, we had one of those little punches that did one hole at a time. I attached a sign to it saying, "Programmers have priority on this punch!" -- /~\ Charlie Gibbs | In this world there are \ / <cgibbs@kltpzyxm.invalid> | two kinds of people: X I'm really at ac.dekanfrus | 1. Those who can extrapolate / \ if you read it the right way. | from incomplete data.
Re: Back To CS Basics. Fuck AI
Author: rbowman
Date: Wed, 21 Oct 2026 01:19
Date: Wed, 21 Oct 2026 01:19
36 lines
2815 bytes
2815 bytes
On Tue, 20 Oct 2026 19:04:54 GMT, Charlie Gibbs wrote: > I took French from grades 8 through 12 (standard in Canadian schools). > In university I took two years of German just to have some variety. Well, Canada is more or less bilingual, mostly less in Alberta. I took German in both high school and college. The theory was it might be needed to read technical papers but all the Germans learned English. It does come in handy because Schwedenkrimi sometimes gets translated to German before English and is available on the Kindle. >> The dummies also took typing. I still can't touch type. > > Who are you calling dummies? I took a typing class in grade 9. > It was just for the hell of it at the time (I was too nerdy to realize > that the class was full of girls), but it turned out to be one of the > best things I ever did. The shop and business students were the Untermenschen in high school. If you whined enough someone on the college entrance track might have been able to take typing but it would definitely be odd. I forget the wpm count but the outstanding typist was Jackie Harris. He brought his lunch to school in a tin lunchbox that was painted like a barn. https://www.ebay.com/itm/257131289573 Today they would put him on a spectrum of some sort but in the early '60s he was just considered strange. I don't think he had any other particular skills other than typing like a madman.
Re: Back To CS Basics. Fuck AI
Author: rbowman
Date: Wed, 21 Oct 2026 01:25
Date: Wed, 21 Oct 2026 01:25
16 lines
2207 bytes
2207 bytes
On Tue, 20 Oct 2026 20:08:33 -0000 (UTC), Lawrence D’Oliveiro wrote: > On Tue, 20 Oct 2026 19:04:54 GMT, Charlie Gibbs wrote: > >> I worked my way up to 45 words per minute on one of those big old >> Underwood manuals. And then I got into computers and really nice >> keyboards - I do 75 wpm now, which is great for productivity. > > Back in the days when the “software crisis” was still a thing, I > remember a quote from someone who said that the quickest way to double > the productivity of your programmers was to teach them how to type. We had one programmer that typed very rapidly. Unfortunately he didn't type very accurately. Unless you're doing SQL, which I equate to shoveling out horse stalls, I'm not sure how much typing speed counts. Okay, I'll add COBOL to SQL for verbosity.
Re: Back To CS Basics. Fuck AI
Author: rbowman
Date: Wed, 21 Oct 2026 01:33
Date: Wed, 21 Oct 2026 01:33
16 lines
2308 bytes
2308 bytes
On Tue, 20 Oct 2026 23:18:43 GMT, Charlie Gibbs wrote: > That's great if your manager wasn't a martinet who insisted that all > program code shall be punched by the keypunch department from code > written on official coding forms. If you were lucky there was a spare > keypunch you could use when no one was looking. Otherwise... well, we > had one of those little punches that did one hole at a time. I attached > a sign to it saying, "Programmers have priority on this punch!" For better or worse what passed for a computer lab had a number of keypunch machines. The assumption was if you managed to graduate and get a job there would be keypunch operators to punch in from the coding forms. There was a similar assumption that if you reached a level where you were generating memos and so forth real typists do the job. Email was not a glimmer on the horizon.
Re: Back To CS Basics. Fuck AI
Author: rbowman
Date: Wed, 21 Oct 2026 01:57
Date: Wed, 21 Oct 2026 01:57
16 lines
2247 bytes
2247 bytes
On Tue, 20 Oct 2026 11:46:38 -0700, John Ames wrote: > Per a brief survey of Wikipedia, the particulars are unclear (the oldest > indicated text, the Classic of Music, was probably lost in Qin Shi > Huang's Ye Olde Cultural Revolution, though fragments have been > preserved in later works,) but the guqin goes back a good 3000 years, > and uses a scale based on the harmonic series - something akin to > Pythagorean tuning, if I'm understanding correctly. https://www.masterthescore.com/article/japanese-scales South Asia has its own ideas too. https://anupamagagneja.com/2021/12/23/thaat/
Re: Back To CS Basics. Fuck AI
Author: rbowman
Date: Wed, 21 Oct 2026 02:42
Date: Wed, 21 Oct 2026 02:42
22 lines
2521 bytes
2521 bytes
On Tue, 20 Oct 2026 21:20:44 +0200, Carlos E.R. wrote: > On 2026-10-20 15:18, The Natural Philosopher wrote: >> On 20/10/2026 09:51, Carlos E.R. wrote: >>> How come the instruments have fixed notes, and these appeared very >>> very long ago? before the theory was developed formally? >> >> Because it is in the nature of musical instruments to produce one or >> more fixed notes > > Certainly, but they had a certain separation between them and not > another. They knew. It was not random. With Native American simple system flutes it was the width of a thumb, the thumb belonging to whoever made the flute. The holes were the same size. I've made some passable PVC Irish flutes. It's a bit more complicated. https://www.anycalculator.com/pvcpipeflute.html I don't even want to think about how much experimentation went into developing a Boehm system flute.
Re: Back To CS Basics. Fuck AI
Author: Charlie Gibbs
Date: Wed, 21 Oct 2026 03:22
Date: Wed, 21 Oct 2026 03:22
43 lines
3674 bytes
3674 bytes
On 2026-10-21, rbowman <bowman@montana.com> wrote: > On Tue, 20 Oct 2026 23:18:43 GMT, Charlie Gibbs wrote: > >> That's great if your manager wasn't a martinet who insisted that all >> program code shall be punched by the keypunch department from code >> written on official coding forms. If you were lucky there was a spare >> keypunch you could use when no one was looking. Otherwise... well, we >> had one of those little punches that did one hole at a time. I attached >> a sign to it saying, "Programmers have priority on this punch!" > > For better or worse what passed for a computer lab had a number of > keypunch machines. The assumption was if you managed to graduate and get a > job there would be keypunch operators to punch in from the coding forms. > There was a similar assumption that if you reached a level where you were > generating memos and so forth real typists do the job. Email was not a > glimmer on the horizon. The keypunches in our student area were almost always busy. However, there were usually one or two that had gotten jammed. I learned how to clear a jam with nothing more than a blank card torn in half lengthwise. I would welcome the sight of a jammed punch because I could quickly clear it and punch my cards without waiting. As a bonus, I left a functioning punch behind when I was done. I found coding forms to be horribly crippling. You'd have to write very slowly and neatly, and write out _everything_. I would scribble my initial draft on the back of an old listing, full of internal shorthand, omitting boilerplate. If I could punch my own cards I would do it right from my chicken tracks, which was _much_ faster than writing it all out longhand. To add insult to injury, the keypunch department didn't verify what they had punched from our forms. Also, the operators weren't used to all the special characters used in source code - heck, some of them could barely handle alphabetics - so they made lots of errors. Punching my own cards was a _big_ win. -- /~\ Charlie Gibbs | In this world there are \ / <cgibbs@kltpzyxm.invalid> | two kinds of people: X I'm really at ac.dekanfrus | 1. Those who can extrapolate / \ if you read it the right way. | from incomplete data.
Re: Back To CS Basics. Fuck AI
Author: The Natural Philosopher
Date: Wed, 21 Oct 2026 09:07
Date: Wed, 21 Oct 2026 09:07
75 lines
5351 bytes
5351 bytes
On 20/10/2026 18:54, John Ames wrote: > On Tue, 20 Oct 2026 09:16:25 +0100 > The Natural Philosopher <tnp@invalid.invalid> wrote: > >>> You yourself started off this discussion talking about "music >>> existing ten thousand years before music theory," so grouping >>> classical Chinese and Pythagorean thought in with post-Renaissance >>> Western theory is as fair as anything. They didn't have*any* of >>> those in the Paleolithic. >> >> There are those who thinks that science discovers truths and >> mathematics are inherent to the universe and you cant do anything >> without a 'theory' >> >> Philosophers have by and large concluded that that is all bollox. All >> of them are human *inventions*. > > Nobody but you is claiming "you can't do anything without a theory" Actually that is exactly what they *are* doing > as > a position implied by an analytical outlook. Of *course* you can, and > millions *did,* before anybody got around to developing it; the fact > that these things are discoverable means you don't have to be *told* in > order to make use of them. Theory is nothing more than an attempt to > codify what's *been* discovered, to make it easier to learn & apply. > >> If you want to *believe* otherwise, there isn't much I can say > > I don't have to "believe" anything here; the fact that mathematics is > innately complete and inherent to reality is self-demonstrating, as any > child who's ever learned to count should know. Gödels Incompleteness theorem ? > Have two, get two, have > four - that's addition, and it was so before the very first hominid who > stopped to *think* about the number of tasty bits of fruit and game in > his private cache. Nature has been adding, subtracting, multiplying, > and dividing things from the first instant of the universe, and it'd be > doing that even if we'd never gotten around to putting names to those. > Nature hasn't Human minds have >>> How come the instruments have fixed notes, and these appeared very >>> very long ago? before the theory was developed formally? >> >> Because it is in the nature of musical instruments to produce one or >> more fixed notes > > It's in the nature of *some* instruments to produce fixed notes; others > (e.g. unfretted string instruments, slide whistles, or the human voice) > are not thus limited. > > And for those which are - which notes, and why? Certainly the folks > chipping flutes out of bone in the caves of the Ice Age got it by trial > and error, but there *is* a system to it, as we'd worked out by the > days of ancient Mesopotamia (we have Sumerian texts on music theory > going back to 2+ millennia BC.) > Whichjh I am sure every single black slave learnt before creating jazz, rhythm and blues out of exposure to the white man's instruments -- Future generations will wonder in bemused amazement that the early twenty-first century’s developed world went into hysterical panic over a globally average temperature increase of a few tenths of a degree, and, on the basis of gross exaggerations of highly uncertain computer projections combined into implausible chains of inference, proceeded to contemplate a rollback of the industrial age. Richard Lindzen
Re: Back To CS Basics. Fuck AI
Author: The Natural Philosopher
Date: Wed, 21 Oct 2026 09:09
Date: Wed, 21 Oct 2026 09:09
21 lines
2476 bytes
2476 bytes
On 20/10/2026 19:15, rbowman wrote:
> In high school the 'college entrance' kids took 2 years of Latin followed
> by 2 years of French or German. The business and shop kids took Spanish.
> Which would have been more useful in my later life?
>
Honestly cant say. I did Latin and French. I liked Latin but it was
fairly useless. I can just about make myself understood in French
Spanish was not considered important here in Europe.
> The dummies also took typing. I still can't touch type.
Likewise
--
“Ideas are inherently conservative. They yield not to the attack of
other ideas but to the massive onslaught of circumstance"
- John K Galbraith
Re: Back To CS Basics. Fuck AI
Author: Tapiro Ubriaco
Date: Wed, 21 Oct 2026 09:13
Date: Wed, 21 Oct 2026 09:13
23 lines
3037 bytes
3037 bytes
On Tue, 20 Oct 2026 10:54:04 -0700, John Ames wrote: > I don't have to "believe" anything here; the fact that mathematics is > innately complete and inherent to reality is self-demonstrating, as any > child who's ever learned to count should know. Have two, get two, have > four - that's addition, and it was so before the very first hominid who > stopped to *think* about the number of tasty bits of fruit and game in > his private cache. Then again, it's self evident that the inner angles of a triangle always sum up to a straight angle. Any child who has tried to cut a triangle out of a sheet of paper, and then cut the angles and lay them adjacent to one another should know. A more adventurous child might have tried to do that with a triangle drawn on an orange, or a balloon... and found out they don't necessarily add up :-) That child would have then found out the need to systematise geometry and distinguish between Euclidean and non-Euclidean geometries with their axioms and rules of inference... :-)
Re: Back To CS Basics. Fuck AI
Author: Tapiro Ubriaco
Date: Wed, 21 Oct 2026 09:13
Date: Wed, 21 Oct 2026 09:13
8 lines
2297 bytes
2297 bytes
On Tue, 20 Oct 2026 13:37:26 +0000, Leroy H wrote: > Anyone who actually *does* mathematics/science, rather than just sit in > a comfy armchair and pontificate, realizes that there are no > "inventions" but only "discoveries." Constructivist mathematicians might differ :-)
Re: Back To CS Basics. Fuck AI
Author: The Natural Philosopher
Date: Wed, 21 Oct 2026 09:15
Date: Wed, 21 Oct 2026 09:15
30 lines
3025 bytes
3025 bytes
On 20/10/2026 20:04, Charlie Gibbs wrote: > On 2026-10-20, The Natural Philosopher <tnp@invalid.invalid> wrote: > >> On 20/10/2026 09:51, Carlos E.R. wrote: >> >>> How come the instruments have fixed notes, and these appeared very very >>> long ago? before the theory was developed formally? >> >> Because it is in the nature of musical instruments to produce one or >> more fixed notes > > And those fixed notes tend to have fixed relationships between them > (e.g. harmonics). > No, they dont. On multi-fixed pitch like say pan pipes or an ocarina, they are made to have that relationship because its sounds 'better', in a way that no one can really explain, to random spacings Possibly the theory of intermodulation distortion can say why, but no music theory can. -- “The ultimate result of shielding men from the effects of folly is to fill the world with fools.” Herbert Spencer
Re: Back To CS Basics. Fuck AI
Author: The Natural Philosopher
Date: Wed, 21 Oct 2026 09:16
Date: Wed, 21 Oct 2026 09:16
22 lines
2830 bytes
2830 bytes
On 20/10/2026 20:20, Carlos E.R. wrote: > On 2026-10-20 15:18, The Natural Philosopher wrote: >> On 20/10/2026 09:51, Carlos E.R. wrote: >>> How come the instruments have fixed notes, and these appeared very >>> very long ago? before the theory was developed formally? >> >> Because it is in the nature of musical instruments to produce one or >> more fixed notes > > Certainly, but they had a certain separation between them and not > another. They knew. It was not random. > Exactly, And they knew without any theory at all, It just 'sounded right' in some indefinable way -- “The ultimate result of shielding men from the effects of folly is to fill the world with fools.” Herbert Spencer
Re: Back To CS Basics. Fuck AI
Author: The Natural Philosopher
Date: Wed, 21 Oct 2026 09:56
Date: Wed, 21 Oct 2026 09:56
34 lines
3347 bytes
3347 bytes
On 21/10/2026 10:13, Tapiro Ubriaco wrote: > On Tue, 20 Oct 2026 13:37:26 +0000, Leroy H wrote: > > >> Anyone who actually *does* mathematics/science, rather than just sit in >> a comfy armchair and pontificate, realizes that there are no >> "inventions" but only "discoveries." > > Constructivist mathematicians might differ :-) Indeed. Metaphysicians might argue, and many do, that all science and mathematics is not the discovery of rules within the world itself, but merely in the worldviews of the humans that construct it . In particular quantity and separateness of objects is not an inherent quality of the world-in-itself, but merely the way we divide it up in order to render it intelligible to our senses. Cf Theseus boat. Or when cat shit ceases to be 'part of' the cat and becomes 'separate' But people comfortable in their 'superior' knowledge of theory to the extent they think it is fact, are inaccessible to the deeper regions of human thought. -- “A leader is best When people barely know he exists. Of a good leader, who talks little,When his work is done, his aim fulfilled,They will say, “We did this ourselves.” ― Lao Tzu, Tao Te Ching
Re: Back To CS Basics. Fuck AI
Author: rbowman
Date: Wed, 21 Oct 2026 14:02
Date: Wed, 21 Oct 2026 14:02
6 lines
1891 bytes
1891 bytes
On Wed, 21 Oct 2026 10:07:27 +0100, The Natural Philosopher wrote: > Whichjh I am sure every single black slave learnt before creating jazz, > rhythm and blues out of exposure to the white man's instruments I'm sure Bach would be appalled by bending a note.
Re: Back To CS Basics. Fuck AI
Author: The Natural Philosopher
Date: Wed, 21 Oct 2026 14:17
Date: Wed, 21 Oct 2026 14:17
19 lines
2757 bytes
2757 bytes
On 21/10/2026 15:02, rbowman wrote: > On Wed, 21 Oct 2026 10:07:27 +0100, The Natural Philosopher wrote: > >> Whichjh I am sure every single black slave learnt before creating jazz, >> rhythm and blues out of exposure to the white man's instruments > > I'm sure Bach would be appalled by bending a note. Who the fuck cares? Plenty of heavy metal/classical guitarists shredding Bach out of existence I wonder what nightingales know of music theory -- "I guess a rattlesnake ain't risponsible fer bein' a rattlesnake, but ah puts mah heel on um jess the same if'n I catches him around mah chillun".
Re: Back To CS Basics. Fuck AI
Author: Leroy H
Date: Wed, 21 Oct 2026 14:23
Date: Wed, 21 Oct 2026 14:23
19 lines
2475 bytes
2475 bytes
On Wed, 21 Oct 2026 10:56:59 +0100, The Natural Philosopher wrote: > > Metaphysicians might argue, and many do, that all science and > mathematics is not the discovery of rules within the world itself, but > merely in the worldviews of the humans that construct it . > I hope that these metaphysicans include sub-human animals too: https://en.wikipedia.org/wiki/Number_sense_in_animals It would seem that in order to survive living creatures must actually discover the world and not impose their dreams (i.e. worldviews) upon it. Of course, it is very easy for the metaphysician to slip into sleep on his comfy armchair and not be aware of his actual state.
Re: Back To CS Basics. Fuck AI
Author: John Ames
Date: Wed, 21 Oct 2026 16:01
Date: Wed, 21 Oct 2026 16:01
19 lines
2875 bytes
2875 bytes
On 21 Oct 2026 01:57:20 GMT rbowman <bowman@montana.com> wrote: > > Per a brief survey of Wikipedia, the particulars are unclear (the > > oldest indicated text, the Classic of Music, was probably lost in > > Qin Shi Huang's Ye Olde Cultural Revolution, though fragments have > > been preserved in later works,) but the guqin goes back a good 3000 > > years, and uses a scale based on the harmonic series - something > > akin to Pythagorean tuning, if I'm understanding correctly. > > https://www.masterthescore.com/article/japanese-scales > > South Asia has its own ideas too. > > https://anupamagagneja.com/2021/12/23/thaat/ Oh, interesting - I've read a *little* about Indian scales, but I hadn't heard of the Japanese ones.
Re: Back To CS Basics. Fuck AI
Author: John Ames
Date: Wed, 21 Oct 2026 17:04
Date: Wed, 21 Oct 2026 17:04
29 lines
3409 bytes
3409 bytes
On Wed, 21 Oct 2026 09:13:29 -0000 (UTC) Tapiro Ubriaco <interwebs.dude@gmail.com> wrote: > > I don't have to "believe" anything here; the fact that mathematics > > is innately complete and inherent to reality is self-demonstrating, > > as any child who's ever learned to count should know. Have two, get > > two, have four - that's addition, and it was so before the very > > first hominid who stopped to *think* about the number of tasty bits > > of fruit and game in his private cache. > > Then again, it's self evident that the inner angles of a triangle > always sum up to a straight angle. > > Any child who has tried to cut a triangle out of a sheet of paper, > and then cut the angles and lay them adjacent to one another should > know. > > A more adventurous child might have tried to do that with a triangle > drawn on an orange, or a balloon... and found out they don't > necessarily add up :-) > > That child would have then found out the need to systematise geometry > and distinguish between Euclidean and non-Euclidean geometries with > their axioms and rules of inference... :-) Sure - but this is also discoverable, as your own example shows. It's certainly quicker and easier to learn from someone who already knows, but it's *possible* to work this stuff out independently.
Re: Back To CS Basics. Fuck AI
Author: Charlie Gibbs
Date: Wed, 21 Oct 2026 17:33
Date: Wed, 21 Oct 2026 17:33
35 lines
2877 bytes
2877 bytes
On 2026-10-21, The Natural Philosopher <tnp@invalid.invalid> wrote:
> On 20/10/2026 20:04, Charlie Gibbs wrote:
>
>> On 2026-10-20, The Natural Philosopher <tnp@invalid.invalid> wrote:
>>
>>> On 20/10/2026 09:51, Carlos E.R. wrote:
>>>
>>>> How come the instruments have fixed notes, and these appeared very very
>>>> long ago? before the theory was developed formally?
>>>
>>> Because it is in the nature of musical instruments to produce one or
>>> more fixed notes
>>
>> And those fixed notes tend to have fixed relationships between them
>> (e.g. harmonics).
>
> No, they dont.
>
> On multi-fixed pitch like say pan pipes or an ocarina, they are made to
> have that relationship because its sounds 'better', in a way that no one
> can really explain, to random spacings
>
> Possibly the theory of intermodulation distortion can say why, but no
> music theory can.
I was thinking of multiple pitches produced by a single vibrating
element, e.g. a horn or single string ("single-fixed pitch" vs.
"multi-fixed pitch").
--
/~\ Charlie Gibbs | In this world there are
\ / <cgibbs@kltpzyxm.invalid> | two kinds of people:
X I'm really at ac.dekanfrus | 1. Those who can extrapolate
/ \ if you read it the right way. | from incomplete data.
Re: Back To CS Basics. Fuck AI
Author: John Ames
Date: Wed, 21 Oct 2026 18:49
Date: Wed, 21 Oct 2026 18:49
94 lines
6733 bytes
6733 bytes
On Wed, 21 Oct 2026 10:07:27 +0100 The Natural Philosopher <tnp@invalid.invalid> wrote: > > Have two, get two, have four - that's addition, and it was so > > before the very first hominid who stopped to *think* about the > > number of tasty bits of fruit and game in his private cache. Nature > > has been adding, subtracting, multiplying, and dividing things from > > the first instant of the universe, and it'd be doing that even if > > we'd never gotten around to putting names to those. > > Nature hasn't Human minds have Force of impact is equal to mass * velocity^2. Gravitational attract- ion falls off with the square of distance; magnetic force falls off with its cube. Math is happening across the universe and all around you, whether you recognize it or not. > > And for those which are - which notes, and why? Certainly the folks > > chipping flutes out of bone in the caves of the Ice Age got it by > > trial and error, but there *is* a system to it, as we'd worked out > > by the days of ancient Mesopotamia (we have Sumerian texts on music > > theory going back to 2+ millennia BC.) > > Whichjh I am sure every single black slave learnt before creating > jazz, rhythm and blues out of exposure to the white man's instruments Again you do not seem to grasp that "did not receive a formal education in a Western musical college" does *not* mean "never learned anything from anyone and created the whole thing ex nihilo." And African-American music forms didn't just spring out of a vacuum, either; blues picked up notable influences from music of the Islamic world due to the Sahel heritage of many slaves taken to the Americas, and early jazz blended an approach to harmony influenced by European hymnody with traditional African and American folk music. They are hybrid forms developed by people who were exposed to a wide variety of musical traditions and deliberately incorporated the elements they liked into something unique, not just something that happens when you toss a fungible mass of black people into a roomful of instruments. > > And those fixed notes tend to have fixed relationships between them > > (e.g. harmonics). > > No, they dont. > > On multi-fixed pitch like say pan pipes or an ocarina, they are made > to have that relationship because its sounds 'better', in a way that > no one can really explain, to random spacings > > Possibly the theory of intermodulation distortion can say why, but no > music theory can. "No one can really explain" is a funny way of saying "I, personally, do not know." In reality - as has already been discussed - the basic relationship of harmony to simple frequency ratios has been understood for millennia; this gave rise to tuning systems derived from integer multiples (what is commonly called Pythagorean tuning, although it actually predates Pythagoras and was probably independently invented in multiple places, as in e.g. the Chinese instrument we were discussing elsethread.) This is an attractively simple way to do things, because the basics are both easy to calculate and easy to tune by ear - 2:1 is an octave, 3:2 is a fifth, and you can stack fifths and drop back down an octave to successively derive each note on the scale... ...almost. Unfortunately, basic math says no power of 1.5 is ever going to be a power of 2, and by the time you get from C up to B, you're at an octave-adjusted multiple of 0.94921875 - over 5% left to go before you reach the octave! This is known as the "wolf interval," and various traditions have different ways of dealing with it: Chinese traditional, I gather, shuffles it around in different modes, while AFAICT Indian 24- tone music is actually a whole family of scales in which sets of notes are pitched differently to avoid it. Equal temperament in Western music divides it up by spacing each note slightly wider than the ideal, so that the difference isn't terribly noticeable and the steps all add up. So there you have it: a straightforward reason for the conspicuously non-random intervals between notes. > Who the fuck cares? Plenty of heavy metal/classical guitarists > shredding Bach out of existence And yet another *immensely* funny take. Would this be a good time to point out that, f'rexample, Ritchie Blackmore's solo in "Highway Star" was inspired by ol' J.S. himself? > I wonder what nightingales know of music theory When circumstances align to let me become one, I'll be sure and write it up for you. Until then, I'm content to learn what I can and quietly envy the creatures that can do it by instinct.
Re: Back To CS Basics. Fuck AI
Author: rbowman
Date: Wed, 21 Oct 2026 19:06
Date: Wed, 21 Oct 2026 19:06
18 lines
2225 bytes
2225 bytes
On Wed, 21 Oct 2026 10:09:36 +0100, The Natural Philosopher wrote: > On 20/10/2026 19:15, rbowman wrote: >> In high school the 'college entrance' kids took 2 years of Latin >> followed by 2 years of French or German. The business and shop kids >> took Spanish. >> Which would have been more useful in my later life? >> > Honestly cant say. I did Latin and French. I liked Latin but it was > fairly useless. I can just about make myself understood in French > > Spanish was not considered important here in Europe. It was not too useful in that area either. There were Puerto Ricans in New York City and you might see bilingual signs but that was a different world. TV shows that originated in California would make jokes about tacos but we didn't have a clue. Even pizza was something you found in disreputable saloons probably run by the mafia,
Re: Back To CS Basics. Fuck AI
Author: Janis Papanagnou
Date: Fri, 23 Oct 2026 16:50
Date: Fri, 23 Oct 2026 16:50
35 lines
2441 bytes
2441 bytes
On 2026-10-21 00:54, Helmut Waitzmann wrote:
> Janis Papanagnou <janis_papanagnou+ng@hotmail.com>:
>> On 2026-10-17 22:47, Lawrence D’Oliveiro wrote:
>> I've just done this ("a script change while it's running") [*]
>>
>> [*] What I've done was to run the following script "dynchg.sh"
>>
>> while read ; do
>> echo $REPLY
>> done
>>
>> and change it (from another terminal) while it runs by
>>
>> sed -i '2p' dynchg.sh
>>
>
> As the "-i" option is not defined by the POSIX standard but by GNU sed,
> I assume that your example uses GNU sed.
Yes. (I've just used '-i' for simplicity.)
A better example would have been to issue (from another shell window)
the command
echo "echo END" >> dynchg.sh
and we then see that after terminating the above loop the "END" will
be printed.
(I'm testing with ksh but suppose that in bash it would be similar.)
Janis
> [...]
Re: Back To CS Basics. Fuck AI
Author: c186282
Date: Sat, 24 Oct 2026 03:59
Date: Sat, 24 Oct 2026 03:59
49 lines
3408 bytes
3408 bytes
On 10/23/26 12:50, Janis Papanagnou wrote:
> On 2026-10-21 00:54, Helmut Waitzmann wrote:
>> Janis Papanagnou <janis_papanagnou+ng@hotmail.com>:
>>> On 2026-10-17 22:47, Lawrence D’Oliveiro wrote:
>>> I've just done this ("a script change while it's running") [*]
>>>
>>> [*] What I've done was to run the following script "dynchg.sh"
>>>
>>> while read ; do
>>> echo $REPLY
>>> done
>>>
>>> and change it (from another terminal) while it runs by
>>>
>>> sed -i '2p' dynchg.sh
>>>
>>
>> As the "-i" option is not defined by the POSIX standard but by GNU
>> sed, I assume that your example uses GNU sed.
>
> Yes. (I've just used '-i' for simplicity.)
>
> A better example would have been to issue (from another shell window)
> the command
>
> echo "echo END" >> dynchg.sh
>
> and we then see that after terminating the above loop the "END" will
> be printed.
>
> (I'm testing with ksh but suppose that in bash it would be similar.)
KSH and BASH are "mostly compatible". Minor diffs but
nothing hard to get around. Anything you can do in KSH
can be done in BASH.
There are MANY shells, of course. CSH and ZSH are 'more
different' for example and it'd be a more complicated
translation. Not impossible, just more work.
If KSH works for you then stick with it. Note however
that MOST distros default to BASH now - so if you plan
to 'distribute' your work it'd be better to move your
stuff over to BASH. Most distros, users would have to
intentionally install KSH and scripts would need a
shebang at the top to specify which shell to use.
(good practice, always add the shebang)
Re: Back To CS Basics. Fuck AI
Author: Janis Papanagnou
Date: Sat, 24 Oct 2026 09:53
Date: Sat, 24 Oct 2026 09:53
73 lines
4461 bytes
4461 bytes
On 2026-10-24 05:59, c186282 wrote: > > KSH and BASH are "mostly compatible". Minor diffs but > nothing hard to get around. Anything you can do in KSH > can be done in BASH. This is not correct. While Bash has over time adopted quite some features from Ksh - but sadly needed often far too many years for that - there's still a lot substantial functions in Ksh that Bash has not implemented (or substituted by some equivalent feature). > [...] > > If KSH works for you then stick with it. I use Ksh meanwhile for ~35 years, and since I use a lot of Ksh features that Bash just doesn't support there's certainly no reason to switch. (Also its speed is a criterion, BTW. And back then there were no Bash versions on commercial Unixes; but commercial Linuxes haven't the prevalence any more today, and play no role now in my private systems context.) > Note however that MOST distros default to BASH now - Yes, Linux often has Bash as its default. > so if you plan > to 'distribute' your work it'd be better to move your > stuff over to BASH. Certainly not. And this is short-sighted. If _portability_ is an issue you'd better stick with the POSIX subset of both, Ksh and Bash. (Sadly, as we observe, especially "Linux kiddies" often don't know what that POSIX subset actually is; in their scripts they are writing #!/bin/sh and using some bash-specific syntax not realizing that there's a difference, and that Bash is not the [portable] *standard*.) > Most distros, users would have to > intentionally install KSH and scripts would need a > shebang at the top to specify which shell to use. I don't recall to have ever "intentionally installed" Ksh on Linux. Earlier Linuxes had just a (sub-optimal!) PD-ksh that you could use out of the box. Later they provided also the much better "original" [AT&T] Ksh, and meanwhile you find on (some?) Linuxes ksh93u+m, Martijn Dekker's improved version. Of course you can call shell scripts with the executable-flag set and with a she-bang line on top. Personally I run most shell scripts with the interpreter explicitly provided, as in ksh my-script flags arguments allowing easy debugging by adding '-x' without explicit 'set' command in the script. Only if some script gets the status of a "standard-command" I regularly use I set the shebang. YMMV. (So you don't "need" a shebang line, but it's useful.) > (good practice, always add the shebang) Yes, if you are running your scripts executable script (or if you want to give your editor a hint for syntax highlighting, what shell is actually used, or just for specification purpose; but note, as said above, that we see many people have no clear idea about what a "/bin/sh" is and where /bin/bash or /bin/ksh differ from the standard. Janis
Re: Back To CS Basics. Fuck AI
Author: Nuno Silva
Date: Sat, 24 Oct 2026 11:06
Date: Sat, 24 Oct 2026 11:06
10 lines
1722 bytes
1722 bytes
On 2026-10-24, c186282 wrote: > KSH and BASH are "mostly compatible". Minor diffs but > nothing hard to get around. Anything you can do in KSH > can be done in BASH. Now that sounds like something Greg Sullivan of Microsoft would say. -- Nuno Silva
Taking Speedy too seriously (Was: Back To CS Basics. Fuck AI)
Author: Kenny McCormack
Date: Sat, 24 Oct 2026 12:10
Date: Sat, 24 Oct 2026 12:10
27 lines
2115 bytes
2115 bytes
In article <11bhv61$1bjd2$2@dont-email.me>, Janis Papanagnou <janis_papanagnou+ng@hotmail.com> wrote: >On 2026-10-24 05:59, c186282 wrote: >> >> KSH and BASH are "mostly compatible". Minor diffs but >> nothing hard to get around. Anything you can do in KSH >> can be done in BASH. > >This is not correct. While Bash has over time adopted quite >some features from Ksh - but sadly needed often far too many >years for that - there's still a lot substantial functions >in Ksh that Bash has not implemented (or substituted by some >equivalent feature). I think you're taking Speedy way too seriously here. All of your points are valid, of course, but it should not be necessary to respond to the troll. BTW, you assert that there are (many) features of Ksh that are not (yet) present in bash. I'm not doubting you, but I am curious about examples. It seems to me that if you assert something like that, you should give examples. -- Rich people pay Fox people to convince middle class people to blame poor people. (John Fugelsang)
Re: Back To CS Basics. Fuck AI
Author: Stéphane CARPENTIER
Date: Sat, 24 Oct 2026 13:41
Date: Sat, 24 Oct 2026 13:41
48 lines
3824 bytes
3824 bytes
Le 24-10-2026, Janis Papanagnou <janis_papanagnou+ng@hotmail.com> a écrit : > On 2026-10-24 05:59, c186282 wrote: >> Note however that MOST distros default to BASH now - > > Yes, Linux often has Bash as its default. I just keep this because I guess, if I don't consider it to be wrong because I know what it exactly means, I believe it's often a source of confusion. Because it can mean two different things and three different things must be considered when speaking about the default shell. Mostly, BASH is the default for the three things, one of them can be changed effortlessly, one of them would be very difficult to change in the long term and the last one depend on the interaction with others. The first thing is the way by which you interact directly with your SHELL, a kind of REPL. It's just a field in the /etc/passwd file, it's easy to change and if you prefer any SHELL, just install it, change the field and it rocks. It's just a matter of taste, nothing can go wrong by changing it. The second thing is the shell used by the distro to run its script. This one is clearly often BASH, changing it can be challenging. And things can go wrong in a lot of ways, from the shebang poorly defined to some specificities expected by the distro. But really, I'm not sure it's a real issue because I'm not sure there are reason to change it. The fact that systemd doesn't need any shell script is a reason why it's nit that important. One can want to change the default provided by the distro, but changing the script shell provided by the distro mean each time an update is done, the changes will be removed. And they will need special care. When there are ways to change the default without changing the scripts provided by the distro. The last one is the shell you choose to write your scripts. It doesn't need to be the same one than the one you are using to interact with your shell. As long as the shebang is correctly defined, it depends more on the people with whom you share it than with any default choice made by any distro. Because people can be more or less comfortable with different specificities, even if they can install any available shell. Unlike the choice of the default bootloader or the choice of the default init system can can have huge impacts, I really don't see how the choice of the default shell by a distro can be important (for the end user because for the contributor, it has some implications). -- Si vous avez du temps à perdre : https://scarpet42.gitlab.io
Re: Taking Speedy too seriously (Was: Back To CS Basics. Fuck AI)
Author: Janis Papanagnou
Date: Sat, 24 Oct 2026 16:53
Date: Sat, 24 Oct 2026 16:53
50 lines
3687 bytes
3687 bytes
On 2026-10-24 14:10, Kenny McCormack wrote: > In article <11bhv61$1bjd2$2@dont-email.me>, > Janis Papanagnou <janis_papanagnou+ng@hotmail.com> wrote: >> On 2026-10-24 05:59, c186282 wrote: >>> >>> KSH and BASH are "mostly compatible". Minor diffs but >>> nothing hard to get around. Anything you can do in KSH >>> can be done in BASH. >> >> This is not correct. While Bash has over time adopted quite >> some features from Ksh - but sadly needed often far too many >> years for that - there's still a lot substantial functions >> in Ksh that Bash has not implemented (or substituted by some >> equivalent feature). > > I think you're taking Speedy way too seriously here. All of your points > are valid, of course, but it should not be necessary to respond to the > troll. Oh, I didn't knew that he's considered a troll. His post looked just uninformed, or opinionated, not trollish. > > BTW, you assert that there are (many) features of Ksh that are not (yet) > present in bash. I'm not doubting you, but I am curious about examples. > It seems to me that if you assert something like that, you should give > examples. Mind that his post says "Minor diffs"; and I was not (not primarily) addressing the absolute number of features but those features that are hard(er) or in practice impossible [based on existing functions] to substitute. Off the top of my head I had been thinking of discipline functions, or the "type system" - these are very closely embedded in the shell. Note that while these features are probably not widely used there's also many often used details I used, functions and options, that Bash doesn't have as I noticed over the time. I've occasionally mentioned those in some posts that where about such functionality, but I'm too lazy to create a list or something, which would require to re-test every features whether one or another has meanwhile been implemented; that would be too much effort.[*]) Janis [*] After finishing writing the post I remembered that we could ask a search machine AI, but strangely it had no or found any substantial information, not even the obvious examples; so we have to rely on the experts or own experience here.
Re: Back To CS Basics. Fuck AI
Author: Carlos E.R.
Date: Sat, 24 Oct 2026 19:31
Date: Sat, 24 Oct 2026 19:31
42 lines
3668 bytes
3668 bytes
On 2026-10-24 15:41, Stéphane CARPENTIER wrote: > Le 24-10-2026, Janis Papanagnou <janis_papanagnou+ng@hotmail.com> a écrit : >> On 2026-10-24 05:59, c186282 wrote: >>> Note however that MOST distros default to BASH now - >> >> Yes, Linux often has Bash as its default. > > I just keep this because I guess, if I don't consider it to be wrong > because I know what it exactly means, I believe it's often a source of > confusion. Because it can mean two different things and three different > things must be considered when speaking about the default shell. > > Mostly, BASH is the default for the three things, one of them can be > changed effortlessly, one of them would be very difficult to change in > the long term and the last one depend on the interaction with others. > > The first thing is the way by which you interact directly with your > SHELL, a kind of REPL. It's just a field in the /etc/passwd file, it's > easy to change and if you prefer any SHELL, just install it, change the > field and it rocks. It's just a matter of taste, nothing can go wrong by > changing it. > > The second thing is the shell used by the distro to run its script. This > one is clearly often BASH, changing it can be challenging. And things > can go wrong in a lot of ways, from the shebang poorly defined to some > specificities expected by the distro. But really, I'm not sure it's a > real issue because I'm not sure there are reason to change it. The > fact that systemd doesn't need any shell script is a reason why it's nit > that important. One can want to change the default provided by the > distro, but changing the script shell provided by the distro mean each > time an update is done, the changes will be removed. And they will need > special care. When there are ways to change the default without changing > the scripts provided by the distro. I don't see any reason to change the shell used by system scripts. If the shebang is /bin/sh, and bad things happen if you uninstall bash and they are forced to use ksh, well, it is their fault and it is a bug. They should have specified the proper shebang. Just report it. -- Cheers, Carlos. ES🇪🇸, EU🇪🇺;
Re: Back To CS Basics. Fuck AI
Author: Lawrence D’Oliveiro
Date: Sat, 24 Oct 2026 22:36
Date: Sat, 24 Oct 2026 22:36
14 lines
2301 bytes
2301 bytes
On 24 Oct 2026 13:41:20 GMT, Stéphane CARPENTIER wrote: > The second thing is the shell used by the distro to run its script. > This one is clearly often BASH, changing it can be challenging. And > things can go wrong in a lot of ways, from the shebang poorly > defined to some specificities expected by the distro. Debian (and I guess its derivatives as well) long ago moved away from the assumption that “/bin/sh” meant the same thing as “/bin/bash”. They introduced a new, very vanilla, POSIX-compliant shell called dash(1) <https://manpages.debian.org/dash(1)>, which is the shell that is invoked when your script says “/bin/sh”. So if you want bash, you have to explicitly ask for bash.
Re: Back To CS Basics. Fuck AI
Author: c186282
Date: Mon, 26 Oct 2026 03:49
Date: Mon, 26 Oct 2026 03:49
156 lines
8278 bytes
8278 bytes
On 10/24/26 05:53, Janis Papanagnou wrote:
> On 2026-10-24 05:59, c186282 wrote:
>>
>> KSH and BASH are "mostly compatible". Minor diffs but
>> nothing hard to get around. Anything you can do in KSH
>> can be done in BASH.
>
> This is not correct. While Bash has over time adopted quite
> some features from Ksh - but sadly needed often far too many
> years for that - there's still a lot substantial functions
> in Ksh that Bash has not implemented (or substituted by some
> equivalent feature).
>
>> [...]
>>
>> If KSH works for you then stick with it.
>
> I use Ksh meanwhile for ~35 years, and since I use a lot of
> Ksh features that Bash just doesn't support there's certainly
> no reason to switch. (Also its speed is a criterion, BTW. And
> back then there were no Bash versions on commercial Unixes;
> but commercial Linuxes haven't the prevalence any more today,
> and play no role now in my private systems context.)
>
>> Note however that MOST distros default to BASH now -
>
> Yes, Linux often has Bash as its default.
>
>> so if you plan
>> to 'distribute' your work it'd be better to move your
>> stuff over to BASH.
>
> Certainly not.
>
> And this is short-sighted. If _portability_ is an issue you'd
> better stick with the POSIX subset of both, Ksh and Bash.
>
> (Sadly, as we observe, especially "Linux kiddies" often don't
> know what that POSIX subset actually is; in their scripts they
> are writing #!/bin/sh and using some bash-specific syntax not
> realizing that there's a difference, and that Bash is not the
> [portable] *standard*.)
Delay does not necessarily equate with 'ignorance'.
Different developers ... everyone had their own idea
of a 'perfect shell' - but then had to adapt and adapt
again as the Real Needs became more obvious. Now, most
WILL do the same things - just slightly different syntax.
I rather liked the 'c-shell' long back because it, well,
'looked like C'. It was one of the things that attracted
me to Unix/Linux in the first place. Now I'm happy (ok,
that's not really the word) with BASH. Not much it
can't do ... but the fudged-fudged-fudged syntax to add
features over time CAN be a pain in the ass.
If I want 'scripting' now, I do it with Python. BASH
or whatever, maybe it just EVOKES the Python scripts,
a one or two-liner. Wrote many rather long BASH scripts
in the past, and while they worked they were, well, just
TOO messy/cryptic.
Last big BASH script I did was for backing up a bunch
of on-network drives. Mount-checking (important), calls
to rsync and openSSH and ftp, local AND 'cloud', all
with some confirmation checks along the way. SEMI-repeating
units but each was a bit 'special'.
(ALWAYS pre-encrypt before sending to 'cloud' - I do
NOT trust the providers one bit. Mine had an extension
that 'suggested' some kind of ZIP, just to help them
waste time)
RE-did it in Python. MUCH shorter and more comprehensible
and a nice easy CSV config file you could tweak in a text
editor or spreadsheet. Python made it all BETTER.
Had a 'C' version of that backup pgm earlier. Worked
fine, but there was a lot of string checking/editing
involved and 'C' is CLUNKY with string shit. Python
stole the FORTRAN string-slicing stuff, good deal !
Won't ever use BASH or any other 'shell script' for
that kind of task again. Those might be "trad -IX"
but IMHO they're just OVER. "Solutions" MOVED ON.
>> Most distros, users would have to
>> intentionally install KSH and scripts would need a
>> shebang at the top to specify which shell to use.
>
> I don't recall to have ever "intentionally installed" Ksh on
> Linux. Earlier Linuxes had just a (sub-optimal!) PD-ksh that
> you could use out of the box. Later they provided also the
> much better "original" [AT&T] Ksh, and meanwhile you find on
> (some?) Linuxes ksh93u+m, Martijn Dekker's improved version.
Um ... these days, almost all distros, you do have
to "intentionally install" KSH or any rivals. BASH
rules by default.
> Of course you can call shell scripts with the executable-flag
> set and with a she-bang line on top. Personally I run most
> shell scripts with the interpreter explicitly provided, as in
> ksh my-script flags arguments
> allowing easy debugging by adding '-x' without explicit 'set'
> command in the script. Only if some script gets the status of
> a "standard-command" I regularly use I set the shebang. YMMV.
Direct spec of the shell IS useful, however the
'shebang' trick works well too.
> (So you don't "need" a shebang line, but it's useful.)
>
>> (good practice, always add the shebang)
>
> Yes, if you are running your scripts executable script (or if
> you want to give your editor a hint for syntax highlighting,
> what shell is actually used, or just for specification purpose;
> but note, as said above, that we see many people have no clear
> idea about what a "/bin/sh" is and where /bin/bash or /bin/ksh
> differ from the standard.
I have, I think, FOUR shells on this machine. The
shebang IS required/desired.
Still kinda like 'tcsh', it's there in case I get
a brain-worm and wanna fool around with olde-dayz
stuff. Zsh ain't so bad either.
But, as said, for 'scripting' now, Python is by
far my #1 choice unless the script is like a
simple little ten-liner. Tend to use those on
my PIs.
Fooled around a bit with Lua and Ruby for scripting,
but, really, Python and the MASSIVE number of libs
have them beat. Python will do ANYTHING these days,
just not as fast as 'C'. However CPU speed is less
of a thing these days - I/O ops drag things down
more than the CPU - so Python and 'C' can usually
compete pretty well.
There are Python compilers too. The main issue there
is all the sub-sub-versions of Python, so you always
have to include the entire binaries into each compilation
to ensure it'll work. But then space is also a minor
issue now as well unless you're doing micro-controllers.
Did my share of those - DO teach you how to really SQUEEZE
shit in - all computer kiddies should learn MCs first.
. . .
("Harry talks in his sleep, didn't you notice ?"
Slight telling delay, then Hermonie says 'No' :-)
Re: Back To CS Basics. Fuck AI
Author: c186282
Date: Mon, 26 Oct 2026 03:59
Date: Mon, 26 Oct 2026 03:59
25 lines
2692 bytes
2692 bytes
On 10/24/26 07:06, Nuno Silva wrote: > On 2026-10-24, c186282 wrote: > >> KSH and BASH are "mostly compatible". Minor diffs but >> nothing hard to get around. Anything you can do in KSH >> can be done in BASH. > > Now that sounds like something Greg Sullivan of Microsoft would say. You "can do" most anything in COBOL or FORTRAN or 'C' in ANY other lang - just as anything in one shell script you can do in any other. The issue is 'how easily' - and that depends on your particular application. "Needs" eventually rule. So, EVERYONE winds up with kind of the same 'capabilities'. How nice/easy/clear, depends. Use Python for scripts over maybe 10 lines for everything these days. Infinitely capable and READABLE and DOCUMENTED. No real competition now. If you hate Python "just because" then reconsider. Yea yea ... the old shells are "Trad-IX" ... but IMHO their day is kinda OVER.
Re: Taking Speedy too seriously (Was: Back To CS Basics. Fuck AI)
Author: c186282
Date: Mon, 26 Oct 2026 04:28
Date: Mon, 26 Oct 2026 04:28
82 lines
5280 bytes
5280 bytes
On 10/24/26 12:53, Janis Papanagnou wrote: > On 2026-10-24 14:10, Kenny McCormack wrote: >> In article <11bhv61$1bjd2$2@dont-email.me>, >> Janis Papanagnou <janis_papanagnou+ng@hotmail.com> wrote: >>> On 2026-10-24 05:59, c186282 wrote: >>>> >>>> KSH and BASH are "mostly compatible". Minor diffs but >>>> nothing hard to get around. Anything you can do in KSH >>>> can be done in BASH. >>> >>> This is not correct. While Bash has over time adopted quite >>> some features from Ksh - but sadly needed often far too many >>> years for that - there's still a lot substantial functions >>> in Ksh that Bash has not implemented (or substituted by some >>> equivalent feature). >> >> I think you're taking Speedy way too seriously here. All of your points >> are valid, of course, but it should not be necessary to respond to the >> troll. > > Oh, I didn't knew that he's considered a troll. His post looked just > uninformed, or opinionated, not trollish. Thanks, I think :-) I never 'troll' - just relate MY experiences and what I've learned from them. I had my own path, own needs, my own 'environments', starting in the punch-card days. But what served ME best may not be what served YOU, what I learned may not be what YOU learned. A great purpose of groups like these is to bring in a LOT of experiences and perspectives. You MAY find something compatible/useful in all the diverse advice. I don't pretend to know-it-all, nothing close (though a few, well, SAY they do :-) As said elsewhere, "NEED" eventually supersedes all else. Earlier on, all the shells maybe started with a narrow 'vision' but HAD to include capabilities the other people put in. Sometimes the additions were neat/clear, sometimes not so much, but they're THERE. A sort of 'functional convergence' due to NEEDS. Anyway, I reject 'religions' built around shells or langs and such. For each need, pick the best tools and approaches. "Best" - sometimes that's what most harmonizes with YOUR brand of thinking. >> BTW, you assert that there are (many) features of Ksh that are not (yet) >> present in bash. I'm not doubting you, but I am curious about examples. >> It seems to me that if you assert something like that, you should give >> examples. > > Mind that his post says "Minor diffs"; and I was not (not primarily) > addressing the absolute number of features but those features that > are hard(er) or in practice impossible [based on existing functions] > to substitute. Off the top of my head I had been thinking of discipline > functions, or the "type system" - these are very closely embedded in > the shell. > > Note that while these features are probably not widely used there's > also many often used details I used, functions and options, that Bash > doesn't have as I noticed over the time. I've occasionally mentioned > those in some posts that where about such functionality, but I'm too > lazy to create a list or something, which would require to re-test > every features whether one or another has meanwhile been implemented; > that would be too much effort.[*]) > > Janis > > [*] After finishing writing the post I remembered that we could ask > a search machine AI, but strangely it had no or found any substantial > information, not even the obvious examples; so we have to rely on the > experts or own experience here. "AI"s aren't really as all-around 'smart' as their sellers suggest :-) You generally find that out AFTER you $ubscribe .....
Re: Taking Speedy too seriously (Was: Back To CS Basics. Fuck AI)
Author: c186282
Date: Mon, 26 Oct 2026 04:57
Date: Mon, 26 Oct 2026 04:57
40 lines
3369 bytes
3369 bytes
On 10/24/26 08:10, Kenny McCormack wrote: > In article <11bhv61$1bjd2$2@dont-email.me>, > Janis Papanagnou <janis_papanagnou+ng@hotmail.com> wrote: >> On 2026-10-24 05:59, c186282 wrote: >>> >>> KSH and BASH are "mostly compatible". Minor diffs but >>> nothing hard to get around. Anything you can do in KSH >>> can be done in BASH. >> >> This is not correct. While Bash has over time adopted quite >> some features from Ksh - but sadly needed often far too many >> years for that - there's still a lot substantial functions >> in Ksh that Bash has not implemented (or substituted by some >> equivalent feature). > > I think you're taking Speedy way too seriously here. All of your points > are valid, of course, but it should not be necessary to respond to the > troll. > > BTW, you assert that there are (many) features of Ksh that are not (yet) > present in bash. I'm not doubting you, but I am curious about examples. > It seems to me that if you assert something like that, you should give > examples. I've mentioned (necessary) "Functional Convergence". If yer shell doesn't do something neat-o some other one does NOW, it WILL soon enough. Might get squeezed-in nice/neat, or maybe NOT. All great/pure ideas/visions eventually HAVE to converge somewhere - or vanish into the historical recycle bin. Anyway, for 'scripts', I'm 99% Python now. Does EVERYTHING and MUCH clearer than any old shell. Of note, did NOT use Python until P3 came out. It seemed interesting/versatile but why learn an obsolete version ? BASIC, skip the bile, became a fair 'script' lang after awhile - but, too clunky IMHO - meant for a different era, different environment, different mindset.
Re: Back To CS Basics. Fuck AI
Author: Janis Papanagnou
Date: Mon, 26 Oct 2026 05:04
Date: Mon, 26 Oct 2026 05:04
237 lines
11132 bytes
11132 bytes
On 2026-10-26 04:49, c186282 wrote:
> On 10/24/26 05:53, Janis Papanagnou wrote:
>> On 2026-10-24 05:59, c186282 wrote:
>>>
>>> KSH and BASH are "mostly compatible". Minor diffs but
>>> nothing hard to get around. Anything you can do in KSH
>>> can be done in BASH.
>>
>> This is not correct. While Bash has over time adopted quite
>> some features from Ksh - but sadly needed often far too many
>> years for that - there's still a lot substantial functions
>> in Ksh that Bash has not implemented (or substituted by some
>> equivalent feature).
>>
>>> [...]
>>>
>>> If KSH works for you then stick with it.
>>
>> I use Ksh meanwhile for ~35 years, and since I use a lot of
>> Ksh features that Bash just doesn't support there's certainly
>> no reason to switch. (Also its speed is a criterion, BTW. And
>> back then there were no Bash versions on commercial Unixes;
>> but commercial Linuxes haven't the prevalence any more today,
>> and play no role now in my private systems context.)
>>
>>> Note however that MOST distros default to BASH now -
>>
>> Yes, Linux often has Bash as its default.
>>
>>> so if you plan
>>> to 'distribute' your work it'd be better to move your
>>> stuff over to BASH.
>>
>> Certainly not.
>>
>> And this is short-sighted. If _portability_ is an issue you'd
>> better stick with the POSIX subset of both, Ksh and Bash.
>>
>> (Sadly, as we observe, especially "Linux kiddies" often don't
>> know what that POSIX subset actually is; in their scripts they
>> are writing #!/bin/sh and using some bash-specific syntax not
>> realizing that there's a difference, and that Bash is not the
>> [portable] *standard*.)
>
> Delay does not necessarily equate with 'ignorance'.
Not sure why you bring up that statement; nobody said anything
like that.
My statement about the delayed adoption of Ksh features by Bash
was just pointing to the fact that Bash users had to wait before
they could use comfortable features that Ksh had already provided
for (often many) years.
(It's also a bit unfortunate that Bash implemented some features,
and some of them IMO unnecessarily, in a slightly different way,
so that you cannot easily switch between the two shells.)
>
> Different developers ... everyone had their own idea
> of a 'perfect shell' - but then had to adapt and adapt
> again as the Real Needs became more obvious. Now, most
> WILL do the same things - just slightly different syntax.
Where not outright wrong, this is very fuzzy. (I don't think it
makes sense to comment on that.)
>
> I rather liked the 'c-shell' long back because it, well,
> 'looked like C'. It was one of the things that attracted
> me to Unix/Linux in the first place. Now I'm happy (ok,
> that's not really the word) with BASH. Not much it
> can't do ... but the fudged-fudged-fudged syntax to add
> features over time CAN be a pain in the ass.
If you think it's a good idea to use C-shell for scripting, and
since for you it seems to be just a syntax-difference, well, do
what you like in your private working context.
>
> If I want 'scripting' now, I do it with Python. BASH
> or whatever, maybe it just EVOKES the Python scripts,
> a one or two-liner. Wrote many rather long BASH scripts
> in the past, and while they worked they were, well, just
> TOO messy/cryptic.
Yes, I share your valuation of shells being somewhat cryptic and
also "messy".
>
> Last big BASH script I did was for backing up a bunch
> of on-network drives. Mount-checking (important), calls
> to rsync and openSSH and ftp, local AND 'cloud', all
> with some confirmation checks along the way. SEMI-repeating
> units but each was a bit 'special'.
Well, that's what their task mostly is, to "glue" together tools,
even if that glue is quite powerful (yet still somewhat "messy").
>
> (ALWAYS pre-encrypt before sending to 'cloud' - I do
> NOT trust the providers one bit. Mine had an extension
> that 'suggested' some kind of ZIP, just to help them
> waste time)
I suppose you mean here that you encrypt your backups before you
store them in the cloud. That's sensible. (I don't store my files
or backups in the cloud in the first place.)
>
> RE-did it in Python. MUCH shorter and more comprehensible
> and a nice easy CSV config file you could tweak in a text
> editor or spreadsheet. Python made it all BETTER.
I'm not too surprised that you say that.
>
> Had a 'C' version of that backup pgm earlier. Worked
> fine, but there was a lot of string checking/editing
> involved and 'C' is CLUNKY with string shit.
Shell has higher abstractions compared to "C".
> Python
> stole the FORTRAN string-slicing stuff, good deal !
Not sure what you are actually referring here to. (Shell has
such things as well. Unless you mean something more fancy when
you talk about Python or FORTRAN? My memories on FORTRAN are
very faint after 40 years when I had last used it.)
>
> Won't ever use BASH or any other 'shell script' for
> that kind of task again. Those might be "trad -IX"
> but IMHO they're just OVER. "Solutions" MOVED ON.
With the POSIX-Shells you have at least a standard language on
Unixes.
>
>>> Most distros, users would have to
>>> intentionally install KSH and scripts would need a
>>> shebang at the top to specify which shell to use.
>>
>> I don't recall to have ever "intentionally installed" Ksh on
>> Linux. Earlier Linuxes had just a (sub-optimal!) PD-ksh that
>> you could use out of the box. Later they provided also the
>> much better "original" [AT&T] Ksh, and meanwhile you find on
>> (some?) Linuxes ksh93u+m, Martijn Dekker's improved version.
>
> Um ... these days, almost all distros, you do have
> to "intentionally install" KSH or any rivals. BASH
> rules by default.
Mine has even ksh93u+m. Some years ago I've got original ksh. Yet
more years ago I've seen PD-ksh. All in the standard distribution.
As said, I've never had to "intentionally install" a Ksh.
There's one exception; back in the days when there was only PD-Ksh
provided in the distributions and that was the only existing Ksh,
but AT&T released their ksh93 for free, I got that from the AT&T
to replace the PD-thing. That *was* an intentional install. But
all those who didn't want The Original they could just use the one
that came with the distros.
>
>> Of course you can call shell scripts with the executable-flag
>> set and with a she-bang line on top. Personally I run most
>> shell scripts with the interpreter explicitly provided, as in
>> ksh my-script flags arguments
>> allowing easy debugging by adding '-x' without explicit 'set'
>> command in the script. Only if some script gets the status of
>> a "standard-command" I regularly use I set the shebang. YMMV.
>
> Direct spec of the shell IS useful, however the
> 'shebang' trick works well too.
>
>> (So you don't "need" a shebang line, but it's useful.)
>>
>>> (good practice, always add the shebang)
>>
>> Yes, if you are running your scripts executable script (or if
>> you want to give your editor a hint for syntax highlighting,
>> what shell is actually used, or just for specification purpose;
>> but note, as said above, that we see many people have no clear
>> idea about what a "/bin/sh" is and where /bin/bash or /bin/ksh
>> differ from the standard.
>
> I have, I think, FOUR shells on this machine. The
> shebang IS required/desired.
>
> Still kinda like 'tcsh', it's there in case I get
> a brain-worm and wanna fool around with olde-dayz
> stuff. Zsh ain't so bad either.
I don't consider it a good idea to use 'csh' or 'tcsh' for shell
*programming*. (Browse the web for the well known paper with the
thoroughly explained rationales.)
I know some folks use and prefer 'tcsh' as interactive shells.
(Although the Bash, Zsh, or Ksh, are meanwhile quite comfortable
to use also interactively.)
>
> But, as said, for 'scripting' now, Python is by
> far my #1 choice unless the script is like a
> simple little ten-liner. Tend to use those on
> my PIs.
>
> Fooled around a bit with Lua and Ruby for scripting,
> but, really, Python and the MASSIVE number of libs
> have them beat. Python will do ANYTHING these days,
> just not as fast as 'C'. However CPU speed is less
> of a thing these days - I/O ops drag things down
> more than the CPU - so Python and 'C' can usually
> compete pretty well.
>
> There are Python compilers too. The main issue there
> is all the sub-sub-versions of Python, so you always
> have to include the entire binaries into each compilation
> to ensure it'll work. But then space is also a minor
> issue now as well unless you're doing micro-controllers.
> Did my share of those - DO teach you how to really SQUEEZE
> shit in - all computer kiddies should learn MCs first.
(I'm not the appropriate person to discuss Python, Lua, Ruby, and
similar.)
Janis
>
> . . .
>
> ("Harry talks in his sleep, didn't you notice ?"
> Slight telling delay, then Hermonie says 'No' :-)
>
Re: Taking Speedy too seriously (Was: Back To CS Basics. Fuck AI)
Author: Janis Papanagnou
Date: Mon, 26 Oct 2026 05:20
Date: Mon, 26 Oct 2026 05:20
76 lines
4645 bytes
4645 bytes
On 2026-10-26 05:28, c186282 wrote: > On 10/24/26 12:53, Janis Papanagnou wrote: >> On 2026-10-24 14:10, Kenny McCormack wrote: >>> In article <11bhv61$1bjd2$2@dont-email.me>, >>> Janis Papanagnou <janis_papanagnou+ng@hotmail.com> wrote: >>>> On 2026-10-24 05:59, c186282 wrote: >>>>> >>>>> KSH and BASH are "mostly compatible". Minor diffs but >>>>> nothing hard to get around. Anything you can do in KSH >>>>> can be done in BASH. >>>> >>>> This is not correct. While Bash has over time adopted quite >>>> some features from Ksh - but sadly needed often far too many >>>> years for that - there's still a lot substantial functions >>>> in Ksh that Bash has not implemented (or substituted by some >>>> equivalent feature). >>> >>> I think you're taking Speedy way too seriously here. All of your points >>> are valid, of course, but it should not be necessary to respond to the >>> troll. >> >> Oh, I didn't knew that he's considered a troll. His post looked just >> uninformed, or opinionated, not trollish. > > Thanks, I think :-) > > I never 'troll' - just relate MY experiences and what > I've learned from them. I had my own path, own needs, > my own 'environments', starting in the punch-card days. (I've still a block of punch-cards in the cellar, so I've got an impression where you're coming from.) > But what served ME best may not be what served YOU, what > I learned may not be what YOU learned. Oh, in my previous reply I said something like that; that it's fine if it serves you in your private contexts. A discrepancy might appear when you are working in a larger area with rules that are not tailored to your personal likings but to experiences from a larger (or another) group of persons. > > A great purpose of groups like these is to bring in > a LOT of experiences and perspectives. You MAY find > something compatible/useful in all the diverse advice. > I don't pretend to know-it-all, nothing close (though > a few, well, SAY they do :-) Oh, I'm completely fine with that. - If statements are formulated as opinions, what else can we do than agree to those or disagree. A problem, though, is, when opinions are stated as facts, and if statements are even wrong, then they should be corrected. (Or clarified if it was just a communication or expression problem.) > > As said elsewhere, "NEED" eventually supersedes all else. > Earlier on, all the shells maybe started with a narrow > 'vision' but HAD to include capabilities the other people > put in. Sometimes the additions were neat/clear, sometimes > not so much, but they're THERE. > > A sort of 'functional convergence' due to NEEDS. > > Anyway, I reject 'religions' built around shells or > langs and such. For each need, pick the best tools > and approaches. "Best" - sometimes that's what most > harmonizes with YOUR brand of thinking. (Unfortunately language topics are often presented with religious fervor.) Janis > [...]
Re: Back To CS Basics. Fuck AI
Author: Janis Papanagnou
Date: Mon, 26 Oct 2026 05:41
Date: Mon, 26 Oct 2026 05:41
33 lines
2932 bytes
2932 bytes
On 2026-10-26 04:59, c186282 wrote:
> On 10/24/26 07:06, Nuno Silva wrote:
>> On 2026-10-24, c186282 wrote:
>>
>>> KSH and BASH are "mostly compatible". Minor diffs but
>>> nothing hard to get around. Anything you can do in KSH
>>> can be done in BASH.
>>
>> Now that sounds like something Greg Sullivan of Microsoft would say.
>
> You "can do" most anything in COBOL or FORTRAN or 'C'
> in ANY other lang - just as anything in one shell script
> you can do in any other. The issue is 'how easily' - and
> that depends on your particular application.
(Be careful; if your argument goes in the direction of "language A
is Turing-complete so you can use it simulating language B, which
makes it effectively the same", then that statement would be of no
practical value!)
I want to give you an example code from a little shell tool I wrote:
function LINES.set { .kosta.rows=${.sh.value} ; .kosta.update ;}
(What this does is that whenever the environment variable 'LINES'
changes - e.g. if you pick your mouse and resize the X-window - then
that function gets triggered and the actions defined executed.)
I'd be interested how you'd implement or emulate that, say, in Bash.
Janis
> [...]
Re: Back To CS Basics. Fuck AI
Author: c186282
Date: Mon, 26 Oct 2026 07:15
Date: Mon, 26 Oct 2026 07:15
385 lines
17752 bytes
17752 bytes
On 10/26/26 01:04, Janis Papanagnou wrote: > On 2026-10-26 04:49, c186282 wrote: >> On 10/24/26 05:53, Janis Papanagnou wrote: >>> On 2026-10-24 05:59, c186282 wrote: >>>> >>>> KSH and BASH are "mostly compatible". Minor diffs but >>>> nothing hard to get around. Anything you can do in KSH >>>> can be done in BASH. >>> >>> This is not correct. While Bash has over time adopted quite >>> some features from Ksh - but sadly needed often far too many >>> years for that - there's still a lot substantial functions >>> in Ksh that Bash has not implemented (or substituted by some >>> equivalent feature). >>> >>>> [...] >>>> >>>> If KSH works for you then stick with it. >>> >>> I use Ksh meanwhile for ~35 years, and since I use a lot of >>> Ksh features that Bash just doesn't support there's certainly >>> no reason to switch. (Also its speed is a criterion, BTW. And >>> back then there were no Bash versions on commercial Unixes; >>> but commercial Linuxes haven't the prevalence any more today, >>> and play no role now in my private systems context.) >>> >>>> Note however that MOST distros default to BASH now - >>> >>> Yes, Linux often has Bash as its default. >>> >>>> so if you plan >>>> to 'distribute' your work it'd be better to move your >>>> stuff over to BASH. >>> >>> Certainly not. >>> >>> And this is short-sighted. If _portability_ is an issue you'd >>> better stick with the POSIX subset of both, Ksh and Bash. >>> >>> (Sadly, as we observe, especially "Linux kiddies" often don't >>> know what that POSIX subset actually is; in their scripts they >>> are writing #!/bin/sh and using some bash-specific syntax not >>> realizing that there's a difference, and that Bash is not the >>> [portable] *standard*.) >> >> Delay does not necessarily equate with 'ignorance'. > > Not sure why you bring up that statement; nobody said anything > like that. My following exposition explains why. > My statement about the delayed adoption of Ksh features by Bash > was just pointing to the fact that Bash users had to wait before > they could use comfortable features that Ksh had already provided > for (often many) years. Well, good for them. I'll stick to my philosophic "Functional Convergence" theory here. If shell X does something neat-o then it HAS to be incorporated into all others - some way, some how, neat or not. > (It's also a bit unfortunate that Bash implemented some features, > and some of them IMO unnecessarily, in a slightly different way, > so that you cannot easily switch between the two shells.) > >> >> Different developers ... everyone had their own idea >> of a 'perfect shell' - but then had to adapt and adapt >> again as the Real Needs became more obvious. Now, most >> WILL do the same things - just slightly different syntax. > > Where not outright wrong, this is very fuzzy. (I don't think it > makes sense to comment on that.) I think it makes good sense. Everybody just HAS to somehow incorporate everyone else's good ideas eventually. Otherwise --> TRASH BIN of history. >> I rather liked the 'c-shell' long back because it, well, >> 'looked like C'. It was one of the things that attracted >> me to Unix/Linux in the first place. Now I'm happy (ok, >> that's not really the word) with BASH. Not much it >> can't do ... but the fudged-fudged-fudged syntax to add >> features over time CAN be a pain in the ass. > > If you think it's a good idea to use C-shell for scripting, and > since for you it seems to be just a syntax-difference, well, do > what you like in your private working context. As said, CSH did initially attract me to -IX. However don't really USE it anymore. HAVE tcsh installed though, Just In Case. Good idea, but didn't "evolve" enough. >> If I want 'scripting' now, I do it with Python. BASH >> or whatever, maybe it just EVOKES the Python scripts, >> a one or two-liner. Wrote many rather long BASH scripts >> in the past, and while they worked they were, well, just >> TOO messy/cryptic. > > Yes, I share your valuation of shells being somewhat cryptic and > also "messy". VERY messy and OFTEN 'cryptic' (unless very short). Just no NEED for such shit anymore. >> Last big BASH script I did was for backing up a bunch >> of on-network drives. Mount-checking (important), calls >> to rsync and openSSH and ftp, local AND 'cloud', all >> with some confirmation checks along the way. SEMI-repeating >> units but each was a bit 'special'. > > Well, that's what their task mostly is, to "glue" together tools, > even if that glue is quite powerful (yet still somewhat "messy"). But NOT 'comprehensible' a year or two LATER. Been there, experienced/suffered that. Python is MUCH better in that respect. Didn't matter if I wrote the thing, the logic/sense of it DECAYS with time no matter HOW many comments/doc. I had a 40+ year career ... even 'simple' scripts/pgms, the whole sense/sensibility decayed over time. It all seems SO clear WHEN you're writing it, but ...... Note a good third of my 'programs' at least were COMMENTS - by-line PLUS an informative header at the top of each function. Two or three years later, revision time - "WHAT The Fuck ???". >> (ALWAYS pre-encrypt before sending to 'cloud' - I do >> NOT trust the providers one bit. Mine had an extension >> that 'suggested' some kind of ZIP, just to help them >> waste time) > > I suppose you mean here that you encrypt your backups before you > store them in the cloud. That's sensible. (I don't store my files > or backups in the cloud in the first place.) I very much mean to encrypt the backups BEFORE you send them to 'cloud'. Don't put un-encrypted shit on their sites for a millisecond. Do NOT trust them ! AES-xxx is good, though sometimes used Camilla. With several langs/FTP you can put a file on 'cloud' and then set the datetime/ownership to whatever the original had. That's how I did it for a decade+ - works very well. Encrypt, upload, then tweak the specifics. Pirates get NOTHING. >> RE-did it in Python. MUCH shorter and more comprehensible >> and a nice easy CSV config file you could tweak in a text >> editor or spreadsheet. Python made it all BETTER. > > I'm not too surprised that you say that. Do you disagree ??? >> Had a 'C' version of that backup pgm earlier. Worked >> fine, but there was a lot of string checking/editing >> involved and 'C' is CLUNKY with string shit. > > Shell has higher abstractions compared to "C". Slightly - but also CLUNKY and hard to understand a year or two later. Doing serious string stuff in BASH and several others ... nasty ! Look, if you're 20-something it MAY be possible to hold all the sense/logic of older shit in your head. Believe me - that CHANGES. Too much shit on a small drive, so to speak. >> Python >> stole the FORTRAN string-slicing stuff, good deal ! > > Not sure what you are actually referring here to. (Shell has > such things as well. Unless you mean something more fancy when > you talk about Python or FORTRAN? My memories on FORTRAN are > very faint after 40 years when I had last used it.) Um ... check. Almost all the Python string shit was 'borrowed' from FORTRAN. This is a GOOD thing. SO often you have to slice and dice and squish string stuff together in the real world. It'd better be EASY and OBVIOUS or you're doomed. >> Won't ever use BASH or any other 'shell script' for >> that kind of task again. Those might be "trad -IX" >> but IMHO they're just OVER. "Solutions" MOVED ON. > > With the POSIX-Shells you have at least a standard language on > Unixes. Python is now 'standard enough' - and totally ubiquitous. FIRST place I started seeing a lot of Python wasn't Linux, but WINDERS. Had to learn a little P2 just because. Found, despite initial prejudice, I didn't hate it ...... >>>> Most distros, users would have to >>>> intentionally install KSH and scripts would need a >>>> shebang at the top to specify which shell to use. >>> >>> I don't recall to have ever "intentionally installed" Ksh on >>> Linux. Earlier Linuxes had just a (sub-optimal!) PD-ksh that >>> you could use out of the box. Later they provided also the >>> much better "original" [AT&T] Ksh, and meanwhile you find on >>> (some?) Linuxes ksh93u+m, Martijn Dekker's improved version. >> >> Um ... these days, almost all distros, you do have >> to "intentionally install" KSH or any rivals. BASH >> rules by default. > > Mine has even ksh93u+m. Some years ago I've got original ksh. Yet > more years ago I've seen PD-ksh. All in the standard distribution. > As said, I've never had to "intentionally install" a Ksh. Umm ... what IS this 'ksh'-defaulting distro ??? > There's one exception; back in the days when there was only PD-Ksh > provided in the distributions and that was the only existing Ksh, > but AT&T released their ksh93 for free, I got that from the AT&T > to replace the PD-thing. That *was* an intentional install. But > all those who didn't want The Original they could just use the one > that came with the distros. > >> >>> Of course you can call shell scripts with the executable-flag >>> set and with a she-bang line on top. Personally I run most >>> shell scripts with the interpreter explicitly provided, as in >>> ksh my-script flags arguments >>> allowing easy debugging by adding '-x' without explicit 'set' >>> command in the script. Only if some script gets the status of >>> a "standard-command" I regularly use I set the shebang. YMMV. >> >> Direct spec of the shell IS useful, however the >> 'shebang' trick works well too. >> >>> (So you don't "need" a shebang line, but it's useful.) >>> >>>> (good practice, always add the shebang) >>> >>> Yes, if you are running your scripts executable script (or if >>> you want to give your editor a hint for syntax highlighting, >>> what shell is actually used, or just for specification purpose; >>> but note, as said above, that we see many people have no clear >>> idea about what a "/bin/sh" is and where /bin/bash or /bin/ksh >>> differ from the standard. >> >> I have, I think, FOUR shells on this machine. The >> shebang IS required/desired. >> >> Still kinda like 'tcsh', it's there in case I get >> a brain-worm and wanna fool around with olde-dayz >> stuff. Zsh ain't so bad either. > > I don't consider it a good idea to use 'csh' or 'tcsh' for shell > *programming*. (Browse the web for the well known paper with the > thoroughly explained rationales.) OFTEN not a 'good idea' ... but sometimes "an IDEA", a brain-worm that commands you to "do this it tcsh" ! :-) > I know some folks use and prefer 'tcsh' as interactive shells. > (Although the Bash, Zsh, or Ksh, are meanwhile quite comfortable > to use also interactively.) Never got TOO far into ZSH ... but it DOES have a lot of potential. Don't count it out of the picture. >> But, as said, for 'scripting' now, Python is by >> far my #1 choice unless the script is like a >> simple little ten-liner. Tend to use those on >> my PIs. >> >> Fooled around a bit with Lua and Ruby for scripting, >> but, really, Python and the MASSIVE number of libs >> have them beat. Python will do ANYTHING these days, >> just not as fast as 'C'. However CPU speed is less >> of a thing these days - I/O ops drag things down >> more than the CPU - so Python and 'C' can usually >> compete pretty well. >> >> There are Python compilers too. The main issue there >> is all the sub-sub-versions of Python, so you always >> have to include the entire binaries into each compilation >> to ensure it'll work. But then space is also a minor >> issue now as well unless you're doing micro-controllers. >> Did my share of those - DO teach you how to really SQUEEZE >> shit in - all computer kiddies should learn MCs first. > > (I'm not the appropriate person to discuss Python, Lua, Ruby, and > similar.) Experiences vary. Needs vary. As said somewhere, I'm not "religious" in any of this stuff - shells/langs/distros. Whatever is best for The Job. If "Plan-9" or Solaris seem to serve best then USE them. NOT much use for Winders these days, not at all. A code/method CESSPIT full of spyware and worse. Bought five of those "mini-boxes", BMax/BeeLink, a couple years back when they were cheap. Kinda "lower-end laptop" power. However with -IX the performance is very good. Kinda a matter of pride to not let Winders run for a single millisecond before I install an -IX. Did add SATA SSDs to three of them (again cheap before the tariff wars). These are my home backbone now, do everything I want as fast as I need. Even have one as a de-facto NAS box with a bunch of USB drives attached. (Oh, DON'T disagree with the tariff wars ... were kinda NEEDED in my opinion. BAD idea to let China Own All). Alas no USA/EU/Taiwan makers seemed to step up to the challenge, at least not yet) REALLY simple/dedicated uses - and HAVE several - just use PIs. Note had a HORRIBLE/useless experience with a SUPPOSED SATA hat. Spent a week trying to get it to work - NADA ! Still have several PIs pretending to be IP cameras and smart displays however. P3s work as IP cams fine, P4s are good for smart displays of the images, P5s ... um ... they're kinda too weird/expensive right now. Have one, don't use it for anything. (note there are cheap weather-proof boxes that will JUST fit a Pi-3 and a mini-board camera. Use "motion" for the cam. Have two of those running very well right now. Scripts even compensate for varying day/night times. Two cams on one mini-box also, again the day/night script. Note the PI3s ... kept locking up after about a week. Tried the simple solution of forcing a reboot, but that tended to hang. Clue - force all Python stuff to STOP just before the reboot. Now they run for months) Have two Pi-0/W2 boards. Might fit an even smaller waterproof box. Testing. Less power than a Pi3, but still MAYBE just enough if you stick to a low frame rate. "-IX" is just MUCH better and more efficient and less trashy than Winders. Have one with "GhostBSD" which is a good FreeBSD alt - easier to install and a nice GUI. Got into -IX a little back in the 386 days, remember SCO ?, but the boss decided against using it. Maybe smart back then. The goal was to write a database and GIS in it. However 'cheap'/useful/better' ones came out for Winders soon. Old commercial -IX systems were EXPENSIVE too. 'AREV' for the database, multi-value. LOVED it ! Kinda steep learning curve though, DO check the 'advanced' shit at the back of the manuals. You can STILL buy it, but no support and DOS mem lims. STILL kinda interested in Solaris/OpenIndiana. Unix-LIKE ... SOME interesting aspects and NOT Winders at all. More experiments coming. The storage set-up IS weird though ... more for 'giant' systems. Don't need that now. Oh well, went too long/wide again ...
Re: Taking Speedy too seriously (Was: Back To CS Basics. Fuck AI)
Author: c186282
Date: Mon, 26 Oct 2026 07:38
Date: Mon, 26 Oct 2026 07:38
112 lines
6229 bytes
6229 bytes
On 10/26/26 01:20, Janis Papanagnou wrote: > On 2026-10-26 05:28, c186282 wrote: >> On 10/24/26 12:53, Janis Papanagnou wrote: >>> On 2026-10-24 14:10, Kenny McCormack wrote: >>>> In article <11bhv61$1bjd2$2@dont-email.me>, >>>> Janis Papanagnou <janis_papanagnou+ng@hotmail.com> wrote: >>>>> On 2026-10-24 05:59, c186282 wrote: >>>>>> >>>>>> KSH and BASH are "mostly compatible". Minor diffs but >>>>>> nothing hard to get around. Anything you can do in KSH >>>>>> can be done in BASH. >>>>> >>>>> This is not correct. While Bash has over time adopted quite >>>>> some features from Ksh - but sadly needed often far too many >>>>> years for that - there's still a lot substantial functions >>>>> in Ksh that Bash has not implemented (or substituted by some >>>>> equivalent feature). >>>> >>>> I think you're taking Speedy way too seriously here. All of your >>>> points >>>> are valid, of course, but it should not be necessary to respond to the >>>> troll. >>> >>> Oh, I didn't knew that he's considered a troll. His post looked just >>> uninformed, or opinionated, not trollish. >> >> Thanks, I think :-) >> >> I never 'troll' - just relate MY experiences and what >> I've learned from them. I had my own path, own needs, >> my own 'environments', starting in the punch-card days. > > (I've still a block of punch-cards in the cellar, so I've got an > impression where you're coming from.) > >> But what served ME best may not be what served YOU, what >> I learned may not be what YOU learned. My first computer was a PDP-11. Great unit. But still remember having to submit my card stack (DON'T drop it !) to the IT overlords. Helped a bit if you offered them 'gifts'. > Oh, in my previous reply I said something like that; that it's > fine if it serves you in your private contexts. Most everybody has a 'private context'. Doesn't matter what you do in 'IT'. Every life experience and need is a bit different, takes you down different paths. Since the 70s the field was SO wide that nobody could do it ALL, keep it ALL in mind. DID like that newfangled 'C' language for the PDPs though :-) > A discrepancy might appear when you are working in a larger area > with rules that are not tailored to your personal likings but to > experiences from a larger (or another) group of persons. Been there. >> A great purpose of groups like these is to bring in >> a LOT of experiences and perspectives. You MAY find >> something compatible/useful in all the diverse advice. >> I don't pretend to know-it-all, nothing close (though >> a few, well, SAY they do :-) > > Oh, I'm completely fine with that. - If statements are formulated > as opinions, what else can we do than agree to those or disagree. > A problem, though, is, when opinions are stated as facts, and if > statements are even wrong, then they should be corrected. (Or > clarified if it was just a communication or expression problem.) Still a lot of 'religion' involved ... some present THE Way ... holy writ. Rarely works for most. Yea, there are maybe a few IQ-200 people who post. Well, good for them. we need some IQ-200 people. However even they have their prejudices and preferences that may not serve all. It's the tendency for ATTITUDE that most annoys me. Not looking for an Ayatollah. Ever see that "Sheldon" character from the TV series ? HIS way or you get the "retard" label :-) >> As said elsewhere, "NEED" eventually supersedes all else. >> Earlier on, all the shells maybe started with a narrow >> 'vision' but HAD to include capabilities the other people >> put in. Sometimes the additions were neat/clear, sometimes >> not so much, but they're THERE. >> >> A sort of 'functional convergence' due to NEEDS. >> >> Anyway, I reject 'religions' built around shells or >> langs and such. For each need, pick the best tools >> and approaches. "Best" - sometimes that's what most >> harmonizes with YOUR brand of thinking. > > (Unfortunately language topics are often presented with religious > fervor.) Very much noted. But, bigger picture, I think that's *wrong*. MANY paths to "your solution". Pick the best and most compatible. SO many paths to be had these days. Be smart and sensible. Simpler TENDS to be better long-term.
Page 8 of 22 • 1099 total messages
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads