Thread View: comp.os.linux.misc
1099 messages
1099 total messages
Page 4 of 22
Started by Leroy H
Fri, 16 Oct 2026 03:26
Page 4 of 22 • 1099 total messages
Re: Back To CS Basics. Fuck AI
Author: Harold Stevens
Date: Sat, 17 Oct 2026 13:26
Date: Sat, 17 Oct 2026 13:26
17 lines
2331 bytes
2331 bytes
In <20261016144843.00000c40@gmail.com> John Ames: > This is *also* immensely funny to anyone who's ever played with a new > group for the first time. Good *gravy.* ... or even 4 bandmates at top of their game and global charts. Just a single episode of Peter Jacksons' "Get Back" is a good reference. Yo, TNP ... "If you want to climb out of a hole you dug, stop digging" -- Regards, Weird (Harold Stevens) * IMPORTANT EMAIL INFO FOLLOWS * Pardon any bogus email addresses (wookie) in place for spambots. Really, it's (wyrd) at att, dotted with net. * DO NOT SPAM IT. * I toss (404) GoogleGroup (404 http://twovoyagers.com/improve-usenet.org/).
Re: Back To CS Basics. Fuck AI
Author: Leroy H
Date: Sat, 17 Oct 2026 13:30
Date: Sat, 17 Oct 2026 13:30
33 lines
2315 bytes
2315 bytes
On 17 Oct 2026 09:07:10 GMT, Stéphane CARPENTIER wrote: >> >> Human beings have always been AI in that they can only parrot >> news reports and their old school textbooks. This has been true >> since pre-historic times. > > News report and textbook in pre-historic times is an hallucination an AI > wouldn't make. In pre-historic times, people need to truly understand > what they learned: it was the difference between life and death. > In pre-historic times, the equivalent of "news reports and textbooks" were the oral teachings and stories that were passed between generations. My original point remains valid. Then as now, very few human beings discover reality through their own force of will. Most will simply regurgitate the knowledge that is given to them and that is essentially AI. >> >> Occasionally, however, some misaligned freak will rise above >> it all and then we have a burst of progress. > > The most impressive with this sentence is: you truly believe you are > that guy. When your greatest accomplishment is to have being able to > avoid winning a Darwin award to this day > I have accomplished more in the last 25 hours than you will accomplish in half a lifetime.
Re: Back To CS Basics. Fuck AI
Author: The Natural Philosopher
Date: Sat, 17 Oct 2026 14:01
Date: Sat, 17 Oct 2026 14:01
30 lines
2791 bytes
2791 bytes
On 17/10/2026 14:26, Harold Stevens wrote: > In <20261016144843.00000c40@gmail.com> John Ames: > >> This is *also* immensely funny to anyone who's ever played with a new >> group for the first time. Good *gravy.* > > ... or even 4 bandmates at top of their game and global charts. Just > a single episode of Peter Jacksons' "Get Back" is a good reference. > > Yo, TNP ... > > "If you want to climb out of a hole you dug, stop digging" > I'm not in a hole. But faced with the projection and Bandar Logic, there isn't much point in wasting my breath. I see that Greta Thunberg has joined the 'far right' riots in France. At leats they must be far right, because the left is always well behaved and democratic. -- It is the folly of too many to mistake the echo of a London coffee-house for the voice of the kingdom. Jonathan Swift
Re: Back To CS Basics. Fuck AI
Author: Carlos E.R.
Date: Sat, 17 Oct 2026 18:15
Date: Sat, 17 Oct 2026 18:15
41 lines
3050 bytes
3050 bytes
On 2026-10-16 16:05, The Natural Philosopher wrote: > On 16/10/2026 13:15, Tapiro Ubriaco wrote: >> On Fri, 16 Oct 2026 12:54:36 +0100, The Natural Philosopher wrote: > >>> Engineering is not applied science. Only a CS would think it was There >>> is very little science in engineering. >> >> https://en.wikipedia.org/wiki/Engineering: >> >> "Engineering is the practice of systematically applying natural science >> and mathematics to design and improve systems." >> > That is of course bollocks > No engineer would have written that > > A better definition is 'an engineer is wsomeone who can make for five > bob (£0.25) what any damn fool can make for a quid (£1) > >> https://dictionary.cambridge.org/dictionary/english/engineering >> >> "the work of an engineer (= a person who designs or builds machines, >> engines, electrical systems, or large structures such as roads or bridges >> using scientific principles" > > Again its bollocks. > > "the work of an engineer (= a person who designs or builds machines, > engines, electrical systems, or large structures such as roads or bridges > using *whatever systems work* in the context. > > Early engineers were carpenters,masons and blacksmiths. A windmill for > grinding corn is a machine, but there is no science used in its design Yes, there is. You have to know how big to make the sails, and what gear reduction ratio you need, and how big stones you need. It may be know how from previous failed and working attempts. -- Cheers, Carlos. ES🇪🇸, EU🇪🇺;
Re: Back To CS Basics. Fuck AI
Author: Charlie Gibbs
Date: Sat, 17 Oct 2026 18:33
Date: Sat, 17 Oct 2026 18:33
33 lines
2834 bytes
2834 bytes
On 2026-10-17, rbowman <bowman@montana.com> wrote: > On Fri, 16 Oct 2026 22:19:36 GMT, Charlie Gibbs wrote: > >> That depends on the key, and whether your instrument can accept a capo. >> Some female vocalists pick the damnedest keys, which is why I describe B >> (which is a bit of a bitch to play in) as the "vocalist's key". >> Use your capo if you have one, suck it up if you don't. > > I play, among other things, Irish flutes/whistles. The standard D simple- > system flutes have both C and C# so you can play in D or G. If you want B > you'd better scare up a new flute. > > There is a duet by Willie Nelson and Johnny Cash. Cash asks what key > they're going to play in and Nelson names some weird key like B flat > major. Cash mutters 'That figures.' "Neighborhood of B" -- O Brother Where Art Thou? I heard a story about Chet Atkins that had him saying something like "Mention E-flat and you'll see capos coming out everywhere." > For better or worse I can't sing and I don't play with groups so it's all > the same to me. I've got a capo but no reason to use it. With mandolin or fiddle I have enough fingers to manage just about any key - but I won't be doing all those drones like I can in A or D. -- /~\ 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: Sat, 17 Oct 2026 18:33
Date: Sat, 17 Oct 2026 18:33
30 lines
2561 bytes
2561 bytes
On 2026-10-17, Chris Ahlstrom <OFeem1987@teleworm.us> wrote: > Charlie Gibbs wrote this screed in ALL-CAPS (fixed): > >> That depends on the key, and whether your instrument >> can accept a capo. Some female vocalists pick the >> damnedest keys, which is why I describe B (which is >> a bit of a bitch to play in) as the "vocalist's key". >> Use your capo if you have one, suck it up if you don't. > > Speaking of females: > > AI Overview > > Joni Mitchell uses more than 50 custom and alternate guitar > tunings—adapting them largely because of hand weakness from > childhood polio and a gradually lowering voice over the > decades. Interesting. That would explain a lot of it. I once saw fingerstyle guitarist Don Ross in concert. At one point he said, in his usual low-key tone: "I play in over a hundred tunings. Don't try this at home." -- /~\ 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: Sat, 17 Oct 2026 18:33
Date: Sat, 17 Oct 2026 18:33
20 lines
1965 bytes
1965 bytes
On 2026-10-17, Lawrence D’Oliveiro <ldo@nz.invalid> wrote:
> On Fri, 16 Oct 2026 11:14:28 -0000 (UTC), Tapiro Ubriaco wrote:
>
>> Mh, this reminds me that I will never wrap my head around the fact
>> that English uses the same word ("engineer") for a person who works
>> with a slide rule and a pencil and a person who works with a wrench.
>
> The original meaning of “engine” referred to any kind of device or
> contraption. The slide rule itself was a calculation engine.
And now we have search engines...
> If it helps, the word has the same root as “ingenuity”.
--
/~\ 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: Sat, 17 Oct 2026 20:08
Date: Sat, 17 Oct 2026 20:08
9 lines
1438 bytes
1438 bytes
On 17 Oct 2026 09:07:10 GMT, Stéphane CARPENTIER wrote: > News report and textbook in pre-historic times is an hallucination an AI > wouldn't make. In pre-historic times, people need to truly understand > what they learned: it was the difference between life and death. Or you could say in prehistoric times people hallucinated various gods and demons to explain events. As Nietzsche pointed out humans are artists, painting their version of what they perceive.
Re: Back To CS Basics. Fuck AI
Author: rbowman
Date: Sat, 17 Oct 2026 20:18
Date: Sat, 17 Oct 2026 20:18
11 lines
1498 bytes
1498 bytes
On Sat, 17 Oct 2026 12:17:29 GMT, Jan Panteltje wrote: > Not much memory compared to today's ... > I still have a slide rule somewhere... And old calculators.. https://en.wikipedia.org/wiki/IBM_System/360_Model_30 I believe RPI's had 32k of core. For FFTs etc you wrote partial products to tape, rewind, and take another pass. Rinse and repeat. rewind() is still in the C standard library but it was very literal back then.
Re: Back To CS Basics. Fuck AI
Author: Lawrence D’Oliveiro
Date: Sat, 17 Oct 2026 20:18
Date: Sat, 17 Oct 2026 20:18
16 lines
2094 bytes
2094 bytes
On Sat, 17 Oct 2026 12:17:29 GMT, Jan Panteltje wrote: > https://en.wikipedia.org/wiki/Apollo_Guidance_Computer > > Not much memory compared to today's ... Well, they weren’t running a complex GUI ;). You entered “Noun” and “Verb” numbers to select which program to run. E.g. the program for the lunar landing was “P64”. During the Apollo 11 landing, it crashed, twice. > I still have a slide rule somewhere... I remember reading that the world’s largest slide-rule maker at the time, Keufel & Esser, went bust in 1971. Electronic digital calculators had arrived ... not long after the last Moon landing.
Re: Back To CS Basics. Fuck AI
Author: Lawrence D’Oliveiro
Date: Sat, 17 Oct 2026 20:26
Date: Sat, 17 Oct 2026 20:26
17 lines
2257 bytes
2257 bytes
On Sat, 17 Oct 2026 18:45:57 GMT, Charlie Gibbs wrote: >> <https://www.gnu.org/software/hello/> > > Holy cow. On a similar note, the original Unix “true” command was ... an empty shell script. Nevertheless, AT&T tried to claim copyright on it <http://trillian.mit.edu/~jc/humor/ATT_Copyright_true.html>. Worth comparing the GNU coreutils version of “true” <http://www.theregister.co.uk/2016/02/10/line_break_ep2/>, which is ... 80 lines long. The same code is also used to generate the “false” command. The full source is posted in that article, to make fun of supposed “software bloat” or something. The writer completely fails to realize a point made in the previous link: that the GNU version uses less memory and runs faster.
Re: Back To CS Basics. Fuck AI
Author: John Bokma
Date: Sat, 17 Oct 2026 20:35
Date: Sat, 17 Oct 2026 20:35
21 lines
2672 bytes
2672 bytes
On 17/10/2026 22:05, rbowman wrote: > On Sat, 17 Oct 2026 17:12:26 +0100, Richard Kettlewell wrote: > >> Still, typed doesn’t mean complete immiscibility of types (at least in >> Python), and a good thing too, since lots of operations take operands of >> different types. For example if d is an int and G is a Python object >> representing a point on an elliptic curve, I want to be able to write >> d*G, >> not mess around with function calls to do point multiplication. > > I've been trying to get up to speed with type hints. Like 'private' > functions in Python they seem to depend on a gentleman's agreement not to > do bad things. Like TypeScript it helps but still has loopholes. They are hints, so yes and no: if you run the code first through mypy or pyrefly (which I prefer) and it doesn't pass just don't run it. That's not really a loophole. -- Static tumblelog generator: https://github.com/john-bokma/tumblelog/ Available as Python or Perl. Example tumblelog: https://plurrrr.com/
Re: Back To CS Basics. Fuck AI
Author: Lawrence D’Oliveiro
Date: Sat, 17 Oct 2026 20:36
Date: Sat, 17 Oct 2026 20:36
50 lines
3703 bytes
3703 bytes
On 17 Oct 2026 09:43:01 GMT, Stéphane CARPENTIER wrote: > From what I saw, for a beginner's approach, python is easier than Java > or C++. Now when one starts to use python in the real life, the > complexity of python appears. Because that's the python way: things > works except when they stop to work. I haven’t encountered that. I have written some reasonably substantial Python code -- would this one <https://gitlab.com/ldo/qahirah> count? That’s over 8500 lines. And this <https://gitlab.com/ldo/dbussy> consists of 2 modules totalling over 10,000 lines. > Like, it's not a typed language but start playing with dictionaries > without declaring your variables first to see how the claims stand > before the facts. It is true you can make typos with misspelling variable names, because assignment to a name the compiler hasn’t seen before causes the implicit creation of a new variable. One thing that helps limit the damage from this is the scoping rules. For example, you can reference a global variable from an inner scope without having to declare it global; but you can’t assign to it from that scope unless you explicitly declare it “global”. > And I'm not speaking about the dependencies. Each version breaks > everything ... Backward compatibility tends to be pretty good. Yes, some ancient library modules do get deprecated -- still want to use the CGI toolbox, or access Sun audio files?? > ... so well that now some distros don't let you install > libraries with pip if you are not in a virtual environment. Do other languages get away with allowing you to override standard system libraries without breaking things? Maybe the issue is, Python has achieved a degree of popularity way beyond anything those earlier languages could have managed, to the point where critical system components have now become dependent on it. > So, yes to do something simple, python is fast and easy. But if you > want to power of C++ and Java, you can't use python on a simple way. Python can do things as complex as anything you might want to do in C++ or Java, with much less code. For a real-world example, look at how you would set up a TLS/SSL encrypted connection in Java, versus doing it in Python.
Re: Back To CS Basics. Fuck AI
Author: rbowman
Date: Sat, 17 Oct 2026 20:37
Date: Sat, 17 Oct 2026 20:37
6 lines
1246 bytes
1246 bytes
On Sat, 17 Oct 2026 06:32:28 -0400, Chris Ahlstrom wrote: > (I would also shoot a BB straight up to see how close to me I could get > it to land. A couple of times me and a friend had BB duels.) Jihadis like to do that but they're using 7.62x39.
Re: Back To CS Basics. Fuck AI
Author: Lawrence D’Oliveiro
Date: Sat, 17 Oct 2026 20:38
Date: Sat, 17 Oct 2026 20:38
11 lines
2002 bytes
2002 bytes
On Sat, 17 Oct 2026 18:33:42 GMT, Charlie Gibbs wrote: > I started puttering with Python once - maybe I should take another > look at it. It just makes it easier to mess around with stuff. You know, when you’re not sure how to go about something, and are just experimenting. A good environment for experimenting with Python is Jupyter <https://jupyter.org/>. This gives you a notebook-type interface which is convenient for “scratchpad” programming.
Re: Back To CS Basics. Fuck AI
Author: Lawrence D’Oliveiro
Date: Sat, 17 Oct 2026 20:42
Date: Sat, 17 Oct 2026 20:42
27 lines
2499 bytes
2499 bytes
On 17 Oct 2026 16:46:21 GMT, Stéphane CARPENTIER wrote:
> In this case python is a strongly typed language and in other cases
> it's not that important.
It’s *always* important. Consider why languages like PHP (ptui) and
JavaScript need that extra “===” comparison operator: it’s to disable
automatic type conversions (e.g. number ↔ string) that Python refuses
to do anyway.
> With some typed languages, you can't use a variable if you didn't
> declare it's type before. With python, you don't need to declare
> integers and strings but you need to declare dictionaries. Why? Don't
> know.
Who says you need to “declare dictionaries”?
ldo@hypatia:~> python3
Python 3.14.7 (main, Sep 13 2026, 08:30:29) [GCC 16.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> a = "some text"
>>> print(a)
some text
>>> a = {"colour" : "green"}
>>> print(a)
{'colour': 'green'}
>>>
Re: Back To CS Basics. Fuck AI
Author: Lawrence D’Oliveiro
Date: Sat, 17 Oct 2026 20:47
Date: Sat, 17 Oct 2026 20:47
9 lines
1637 bytes
1637 bytes
On 17 Oct 2026 08:40:24 GMT, Stéphane CARPENTIER wrote: > Now, there are almost no more interpreted scripts. Shell scripts are still interpreted. Not only that, but the shell actually seeks through the source file to do a transfer of control. How do I know this? Try making changes to the script while it is running. ;)
Re: Back To CS Basics. Fuck AI
Author: Janis Papanagnou
Date: Sat, 17 Oct 2026 21:29
Date: Sat, 17 Oct 2026 21:29
42 lines
2924 bytes
2924 bytes
On 2026-10-17 22:47, Lawrence D’Oliveiro wrote:
> On 17 Oct 2026 08:40:24 GMT, Stéphane CARPENTIER wrote:
>
>> Now, there are almost no more interpreted scripts.
>
> Shell scripts are still interpreted. Not only that, but the shell
> actually seeks through the source file to do a transfer of control.
>
> How do I know this? Try making changes to the script while it is
> running. ;)
I've just done this ("a script change while it's running") [*]
(with ksh and bash) and there was no change in behavior of the
running script.
You may want to provide an example what you've actually done
to come to that conclusion (or reformulate your conclusion).
BTW; I've in other (more complex?) contexts observed that some
intrusions (tackling the shell program while it runs) do affect
the running script, but back then I haven't examined the reason
or circumstances of that effect, or whether it's some effect of
an interaction with the OS. - So the principle question, what
exactly happens in what circumstances, is still interesting.
Janis
[*] 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
I could even remove that file from the directory and it still
processes data as expected. And there's also no difference if
that program is explicitly run with the interpreter or running
it using a shebang interpreter as executable script.
Re: Back To CS Basics. Fuck AI
Author: Blaine
Date: Sat, 17 Oct 2026 21:47
Date: Sat, 17 Oct 2026 21:47
75 lines
4713 bytes
4713 bytes
Lawrence D’Oliveiro wrote: > On 17 Oct 2026 09:43:01 GMT, Stéphane CARPENTIER wrote: > >> From what I saw, for a beginner's approach, python is easier than Java >> or C++. Now when one starts to use python in the real life, the >> complexity of python appears. Because that's the python way: things >> works except when they stop to work. > > I haven’t encountered that. I have written some reasonably substantial > Python code -- would this one <https://gitlab.com/ldo/qahirah> count? > That’s over 8500 lines. And this <https://gitlab.com/ldo/dbussy> > consists of 2 modules totalling over 10,000 lines. No wonder. The problem with counting by lines is you may come up with 10,000, but if you took out whitespace it could be short as 102 lines. >> Like, it's not a typed language but start playing with dictionaries >> without declaring your variables first to see how the claims stand >> before the facts. > > It is true you can make typos with misspelling variable names, because > assignment to a name the compiler hasn’t seen before causes the implicit > creation of a new variable. To begin I know you should only import maybe at most 2 packages besides sys and/or random. > One thing that helps limit the damage from this is the scoping rules. > For example, you can reference a global variable from an inner scope > without having to declare it global; but you can’t assign to it from > that scope unless you explicitly declare it “global”. > >> And I'm not speaking about the dependencies. Each version breaks >> everything ... > > Backward compatibility tends to be pretty good. Yes, some ancient > library modules do get deprecated -- still want to use the CGI > toolbox, or access Sun audio files?? I'm usually attempting to advance to a later version of Python in my expeience. Backward compatibility is great, but it's important to look at what new versions bring. >> ... so well that now some distros don't let you install >> libraries with pip if you are not in a virtual environment. > > Do other languages get away with allowing you to override standard > system libraries without breaking things? It's a standard. > Maybe the issue is, Python has achieved a degree of popularity way > beyond anything those earlier languages could have managed, to the > point where critical system components have now become dependent on > it. > >> So, yes to do something simple, python is fast and easy. But if you >> want to power of C++ and Java, you can't use python on a simple way. Which of the powers are you referring to? > Python can do things as complex as anything you might want to do in > C++ or Java, with much less code. For a real-world example, look at > how you would set up a TLS/SSL encrypted connection in Java, versus > doing it in Python. I've found the integer system powerful. -- Can you strip away so we may start again? "There’s a switch and they don't seem authentic or themselves. It feels like I’m an unnecessary body and it’s a waste of time to even be there." -- Grim, playful Blaine.
Re: Back To CS Basics. Fuck AI
Author: Charlie Gibbs
Date: Sat, 17 Oct 2026 22:50
Date: Sat, 17 Oct 2026 22:50
29 lines
2344 bytes
2344 bytes
On 2026-10-17, Lawrence D’Oliveiro <ldo@nz.invalid> wrote: > On Sat, 17 Oct 2026 18:45:57 GMT, Charlie Gibbs wrote: > >>> <https://www.gnu.org/software/hello/> >> >> Holy cow. > > On a similar note, the original Unix “true” command was ... an empty > shell script. Nevertheless, AT&T tried to claim copyright on it > <http://trillian.mit.edu/~jc/humor/ATT_Copyright_true.html>. > > Worth comparing the GNU coreutils version of “true” ><http://www.theregister.co.uk/2016/02/10/line_break_ep2/>, which is > ... 80 lines long. The same code is also used to generate the “false” > command. The full source is posted in that article, to make fun of > supposed “software bloat” or something. The writer completely fails to > realize a point made in the previous link: that the GNU version uses > less memory and runs faster. https://en.wikipedia.ort/wiki/IEFBR14 It describes a do-nothing program that needed maintenance anyway. -- /~\ 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: Sat, 17 Oct 2026 22:51
Date: Sat, 17 Oct 2026 22:51
35 lines
2493 bytes
2493 bytes
On 2026-10-17, Charlie Gibbs <cgibbs@kltpzyxm.invalid> wrote: > On 2026-10-17, Lawrence D’Oliveiro <ldo@nz.invalid> wrote: > >> On Sat, 17 Oct 2026 18:45:57 GMT, Charlie Gibbs wrote: >> >>>> <https://www.gnu.org/software/hello/> >>> >>> Holy cow. >> >> On a similar note, the original Unix “true” command was ... an empty >> shell script. Nevertheless, AT&T tried to claim copyright on it >> <http://trillian.mit.edu/~jc/humor/ATT_Copyright_true.html>. >> >> Worth comparing the GNU coreutils version of “true” >><http://www.theregister.co.uk/2016/02/10/line_break_ep2/>, which is >> ... 80 lines long. The same code is also used to generate the “false” >> command. The full source is posted in that article, to make fun of >> supposed “software bloat” or something. The writer completely fails to >> realize a point made in the previous link: that the GNU version uses >> less memory and runs faster. > > https://en.wikipedia.ort/wiki/IEFBR14 > > It describes a do-nothing program that needed maintenance anyway. Oops! s/ort/org/ -- /~\ 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: Lawrence D’Oliveiro
Date: Sat, 17 Oct 2026 23:11
Date: Sat, 17 Oct 2026 23:11
60 lines
3376 bytes
3376 bytes
On Sat, 17 Oct 2026 15:47:43 -0600, Blaine wrote:
> Lawrence D’Oliveiro wrote:
>>
>> On 17 Oct 2026 09:43:01 GMT, Stéphane CARPENTIER wrote:
>>
>>> From what I saw, for a beginner's approach, python is easier than Java
>>> or C++. Now when one starts to use python in the real life, the
>>> complexity of python appears. Because that's the python way: things
>>> works except when they stop to work.
>>
>> I haven’t encountered that. I have written some reasonably substantial
>> Python code -- would this one <https://gitlab.com/ldo/qahirah> count?
>> That’s over 8500 lines. And this <https://gitlab.com/ldo/dbussy>
>> consists of 2 modules totalling over 10,000 lines.
>
> No wonder. The problem with counting by lines is you may come up with
> 10,000, but if you took out whitespace it could be short as 102 lines.
ldo@hypatia:dbussy> grep -cE '^$' dbussy.py ravel.py
dbussy.py:720
ravel.py:240
ldo@hypatia:dbussy> grep -cvE '^$' dbussy.py ravel.py
dbussy.py:6279
ravel.py:3483
Still close to 10,000 lines. So ... nope.
> To begin I know you should only import maybe at most 2 packages besides
> sys and/or random.
Where do you get that idea from?
From the abovementioned dbussy.py:
import os
import builtins
import operator
import array
import enum
import ctypes as ct
from weakref import \
ref as weak_ref, \
WeakValueDictionary
import threading
import io
import atexit
import asyncio
import functools
from xml.etree import \
ElementTree as XMLElementTree
from xml.sax.saxutils import \
quoteattr as quote_xml_attr
>> Do other languages get away with allowing you to override standard
>> system libraries without breaking things?
>
> It's a standard.
Doesn’t seem like a coherent answer ...
Re: Back To CS Basics. Fuck AI
Author: Blaine
Date: Sun, 18 Oct 2026 00:07
Date: Sun, 18 Oct 2026 00:07
52 lines
3571 bytes
3571 bytes
Lawrence D’Oliveiro wrote: > On Sat, 17 Oct 2026 15:47:43 -0600, Blaine wrote: > >> Lawrence D’Oliveiro wrote: >>> >>> On 17 Oct 2026 09:43:01 GMT, Stéphane CARPENTIER wrote: >>> >>>> From what I saw, for a beginner's approach, python is easier than Java >>>> or C++. Now when one starts to use python in the real life, the >>>> complexity of python appears. Because that's the python way: things >>>> works except when they stop to work. >>> >>> I haven’t encountered that. I have written some reasonably substantial >>> Python code -- would this one <https://gitlab.com/ldo/qahirah> count? >>> That’s over 8500 lines. And this <https://gitlab.com/ldo/dbussy> >>> consists of 2 modules totalling over 10,000 lines. >> >> No wonder. The problem with counting by lines is you may come up with >> 10,000, but if you took out whitespace it could be short as 102 lines. > > ldo@hypatia:dbussy> grep -cE '^$' dbussy.py ravel.py > dbussy.py:720 > ravel.py:240 > ldo@hypatia:dbussy> grep -cvE '^$' dbussy.py ravel.py > dbussy.py:6279 > ravel.py:3483 > > Still close to 10,000 lines. So ... nope. > >> To begin I know you should only import maybe at most 2 packages besides >> sys and/or random. > > Where do you get that idea from? > > From the abovementioned dbussy.py: > > import os > import builtins > import operator Because I tricked you into thinking, "To begin" means "well here we go again." I intentionally made it obscure that I am instructing the beginner on this point. I am suggesting that someone "new" to Python shouldn't import very many packages, as they can overlap problematically. -- Can you strip away so we may start again? "There’s a switch and they don't seem authentic or themselves. It feels like I’m an unnecessary body and it’s a waste of time to even be there." -- Grim, playful Blaine.
Re: Back To CS Basics. Fuck AI
Author: rbowman
Date: Sun, 18 Oct 2026 01:54
Date: Sun, 18 Oct 2026 01:54
27 lines
2063 bytes
2063 bytes
On Sat, 17 Oct 2026 20:42:04 -0000 (UTC), Lawrence D’Oliveiro wrote:
> Who says you need to “declare dictionaries”?
>
> ldo@hypatia:~> python3 Python 3.14.7 (main, Sep 13 2026, 08:30:29)
> [GCC 16.2.0] on linux Type "help", "copyright", "credits" or
> "license"
> for more information.
> >>> a = "some text" print(a)
> some text
> >>> a = {"colour" : "green"}
> >>> print(a)
> {'colour': 'green'}
Python 3.14.4 (main, Aug 20 2026, 10:41:58) [GCC 15.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> a = {"coluor" : "green"}
>>> print(a)
{'coluor': 'green'}
>>> a["color"] = "purple"
>>> print(a)
{'coluor': 'green', 'color': 'purple'}
I've seen bugs introduced either by typos or a programmer who couldn't
spell. It's either a very handy feature or a potential problem to add ad
hoc fields.
Re: Back To CS Basics. Fuck AI
Author: rbowman
Date: Sun, 18 Oct 2026 02:49
Date: Sun, 18 Oct 2026 02:49
19 lines
1885 bytes
1885 bytes
On Sat, 17 Oct 2026 20:36:37 -0000 (UTC), Lawrence D’Oliveiro wrote: >> ... so well that now some distros don't let you install libraries with >> pip if you are not in a virtual environment. > > Do other languages get away with allowing you to override standard > system libraries without breaking things? I prefer venvs, particularly when using uv to set a Python version. For example when tensorflow says Python 3.9-3.12 they don't mean 3.13, 3.14, or 3.15. One annoyance is the different site packages on the various distros. For example on Fedora you can install python3-ruff as a site package with dnf. On Ubuntu 26.04 you get 'Error: Unable to locate package python3- ruff' and have to install it in a venv. No big deal but it's easier to create the venv for the project just in case.
Re: Back To CS Basics. Fuck AI
Author: Lawrence D’Oliveiro
Date: Sun, 18 Oct 2026 03:05
Date: Sun, 18 Oct 2026 03:05
6 lines
1751 bytes
1751 bytes
On Sat, 17 Oct 2026 18:07:08 -0600, Blaine wrote: > I am suggesting that someone "new" to Python shouldn't import very > many packages, as they can overlap problematically. How “overlap”?
Re: Back To CS Basics. Fuck AI
Author: c186282
Date: Sun, 18 Oct 2026 06:42
Date: Sun, 18 Oct 2026 06:42
141 lines
7120 bytes
7120 bytes
On 10/17/26 03:20, Jan Panteltje wrote: >> Lawrence =?iso-8859-13?q?D=FFOliveiro?= <ldo@nz.invalid>wrote: >>> On Fri, 16 Oct 2026 17:10:18 GMT, Jan Panteltje wrote: >> >>> Well C++ is a crime against humanity >>> 'operator overloading...' crap bloated crap. >> >> Operator overloading is a very handy feature. Yes, C++ is overly >> complicated. Java left out that feature of C++, and it, too, still >> manages to be excessively complicated. >> >> Python, on the other hand, includes operator overloading, yet is still >> only a small fraction of the complexity of either Java or C++. Such a >> feature is useful, for example, in letting you express operations on >> mathematical objects (like vectors and matrices) using something close >> to the original mathematical notation. > > OK > I never got much into Python DO check it out. It can now do basically EVERYTHING and is faster than it used to be. P4 is promised to be even faster and more efficient without changing the syntax. I did not use Python2 because I heard that P3 was coming ... why learn an obsolete dialect ? Took 'em a little while to port everything over to the new version, but it got done and then went over and above. CAN be 'compiled' in a few ways. A couple options translate to 'C' and then compile that. IS much faster, though not quite as fast as writing a native 'C' pgm. However the EASE of writing and great string-slice functions (stolen from FORTRAN) make Python really nice. Oh, 95% of the time you don't NEED top speed for applications. That's old thinking - EASE/comprehensibility can be far more important. Oh, the DOCUMENTATION/How-To stuff for Python is everywhere and detailed. A zillion solutions for YOUR particular problem. Since forever I wrote in 'C' or Pascal. I even did stuff in "B". However I rarely use 'C' anymore. Might still rec writing 'servers' in 'C' ... esp if high-volume ... but that sentiment is half 'tradition'. Anyway, learn before 'AI' tries to steal it all away. CHAT can find/write low/medium complexity Python code ... but sometimes it seems more complex/verbose/obscure than a human would write it. Mostly it just steals human-writ examples it finds. DID ask CHAT to write me a basic b-tree database pgm in FORTRAN the other day. Kinda/sorta did so ... but didn't include any load/save code (though DID warn about that prob). Next - same thing, but in Modula2 - we'll see what its limits are :-) Pref M3 ... but almost no Linux/anything compilers for that - esp that actually install correctly. Some ancient DOS stuff. Do have a paper manual for "Turbo Modula-2" but it's all 8/16 bit and won't run on a lot of chips these days. Would have to use DOSBox or something - inefficient. > Never needed it for the things I do. > Also it seems to be changing all the time? Ummm ... not really. The only "big" - ok not SO big - change was P2 to P3. Most P2 programs can be tweaked for P3 pretty quick. Think there's even a converter app. Now if by "changing" you mean new functions, yep, people keep writing them for obvious reasons. The good bit is it means there are several paths to whatever you're trying to do - pick the best for your need. I did a bunch of video security cam apps. Sometimes "OpenCV2" will do it all, sometimes "Pillow" lib is just fine. Can even combine in some cases. > Most code I write is in C or in asm for Microchips. > asm is extremely powerful Well aware. When CP/M and even DOS were around had to write ASM bits, or full apps, because there just wasn't anything better. PICs and similar microcontrollers - ASM is still the best way to the finer chip tricks. > understand the hardware!!! The weaker the hardware the more you have to understand it. Most modern big chips, so much overkill that you really don't need to know every little nuance. Sorry, 1% better performance isn't worth learning 99% more tiny-tweak shit that'll probably be obsolete in the very next point-revision of the CPU. > https://panteltje.nl/panteltje/newsflex/download.html > https://panteltje.nl/panteltje/quadcopter/index.html > https://panteltje.nl/panteltje/pic/index.html > These days giggle bytes seem to be needed to just say: 'Hello world'. > Too many layers of crap. > > But I come from a hardware background, in the sixties there were no 'computers' > yet they did a manned Moon landing and return. Some of that shit was just bizarre ! Loved hand-knitted "rope memory", what the LEM computer used :-) > Now they have nothing to show but driving around the block (earth orbit) with > all that computing power. All the computing power in the Apollo ... yer base iWatch has a good 1000x that, maybe 10000x. BUT, they had to make do with what they had ... and most of that was govt-specced in '64. At least Apollo wasn't all vacuum tubes :-) Now space probes - I really admire the people who design the hardware/software. Insane levels of redundancy/work-arounds, almost a black art. It's why the Voyagers are still working out beyond the edge of our solar system all this time later. Kinda hoping aliens will find one and upgrade/repair :-)
Re: Back To CS Basics. Fuck AI
Author: Jan Panteltje
Date: Sun, 18 Oct 2026 07:13
Date: Sun, 18 Oct 2026 07:13
120 lines
5189 bytes
5189 bytes
>Leroy H <lh@somewhere.net>wrote:
>>On Sat, 17 Oct 2026 07:20:49 GMT, Jan Panteltje wrote:
>
>>
>> Most code I write is in C or in asm for Microchips.
>> asm is extremely powerful
>> understand the hardware!!!
>>
>
>It is good to hear someone actually standing up for
>C and assembly.
>
>These Linux groups seem to be packed only with Python/C++
>jockeys. The poor dupes don't know what they're missing.
>
>Assembly is the most fun of any programming language.
>There is none of the uncertainty that slows one down
>when using a higher level language. The instructions
>just flow effortlessly.
>
>However, I do still have trouble with the shuffle operations
>on the SIMD registers. I need to always check the manuals
>to see what goes where.
>
>Intel and GCC provide support for so-called "intrinsics" that
>allow assembly code to be directly incorporated into C code,
>but these, for me, are tedious and not much fun to use.
>
>You are also correct in stating that a thorough knowledge
>of hardware is a requisite for assembly programming. After
>all, one is dealing directly with digital registers with no
>cozy compiler or interpreter in between.
>
>
>>
>> These days giggle bytes seem to be needed to just say: 'Hello world'.
>> Too many layers of crap.
>>
>
>GNU has published the definitive version of Hello World:
>
><https://www.gnu.org/software/hello/>
OK, just for fun, I downloaded
hello-2.12.tar.gz 2022-01-31 13:58 1.0M
Imakefile etc etc
xmkmf
make
mkdir hello
mv hello-2.12.tar.gz hello/
cd hello
tar -zxvf hello-2.12.tar.gz
l
cd */
l
./configure
l
make
l
./hello
cd src
l
joe hello.c
l
cd ..
l
./hello
'l' in zsh that I use as shell stands for 'ls -rtl'
saves typing and always show recent
raspberrypi: ~/hello/hello-2.12 # l
total 1940
-rw-r--r-- 1 root root 15756 Aug 12 2017 INSTALL
-rw-r--r-- 1 root root 93787 Aug 12 2017 ABOUT-NLS
-rw-r--r-- 1 root root 208 Feb 8 2018 TODO
-rw-r--r-- 1 root root 35149 Feb 8 2018 COPYING
-rw-r--r-- 1 root root 891 Mar 7 2020 THANKS
-rw-r--r-- 1 root root 1509 Mar 7 2020 README-dev
-rw-r--r-- 1 root root 3499 Mar 7 2020 README
-rw-r--r-- 1 root root 30559 Mar 7 2020 ChangeLog.O
-rw-r--r-- 1 root root 580 Mar 7 2020 AUTHORS
-rw-r--r-- 1 root root 2342 Mar 7 2021 configure.ac
-rw-r--r-- 1 root root 4577 Mar 7 2021 GNUmakefile
-rw-r--r-- 1 root root 66373 Mar 7 2021 maint.mk
-rw-r--r-- 1 root root 3646 Jan 31 2022 Makefile.am
-rw-r--r-- 1 root root 45039 Jan 31 2022 aclocal.m4
-rw-r--r-- 1 root root 39766 Jan 31 2022 config.in
-rw-r--r-- 1 root root 204406 Jan 31 2022 Makefile.in
-rw-r--r-- 1 root root 4607 Jan 31 2022 NEWS
-rwxr-xr-- 1 root root 663695 Jan 31 2022 configure*
-rw-r--r-- 1 root root 1550 Jan 31 2022 hello.1
drwxr-xr-x 2 root root 4096 Jan 31 2022 tests/
drwxr-xr-x 2 root root 4096 Jan 31 2022 man/
drwxr-xr-x 2 root root 4096 Jan 31 2022 m4/
drwxr-xr-x 2 root root 4096 Jan 31 2022 contrib/
drwxr-xr-x 2 root root 4096 Jan 31 2022 doc/
-rw-r--r-- 1 root root 21682 Jan 31 2022 ChangeLog
drwxr-xr-x 2 root root 4096 Jan 31 2022 build-aux/
-rwxr-xr-x 1 root root 68284 Oct 18 09:02 config.status*
-rw-r--r-- 1 root root 183752 Oct 18 09:02 Makefile
-rw-r--r-- 1 root root 40885 Oct 18 09:02 config.h
-rw-r--r-- 1 root root 23 Oct 18 09:02 stamp-h1
drwxr-xr-x 2 root root 4096 Oct 18 09:02 po/
-rw-r--r-- 1 root root 179003 Oct 18 09:02 config.log
drwxr-xr-x 3 root root 4096 Oct 18 09:02 src/
drwxr-xr-x 6 root root 12288 Oct 18 09:03 lib/
-rwxr-xr-x 1 root root 177276 Oct 18 09:03 hello*
raspberrypi: ~/hello/hello-2.12 # ./hello
Hello, world!
Oh well...
LOL
Re: Back To CS Basics. Fuck AI
Author: Jan Panteltje
Date: Sun, 18 Oct 2026 07:25
Date: Sun, 18 Oct 2026 07:25
40 lines
2766 bytes
2766 bytes
>John Bokma <contact@johnbokma.com>wrote: >>On 17/10/2026 19:26, Leroy H wrote: >> On Sat, 17 Oct 2026 07:20:49 GMT, Jan Panteltje wrote: >>> >>> Most code I write is in C or in asm for Microchips. >>> asm is extremely powerful >>> understand the hardware!!! >>> >> >> It is good to hear someone actually standing up for >> C and assembly. >> >> These Linux groups seem to be packed only with Python/C++ >> jockeys. The poor dupes don't know what they're missing. > >I have programmed several processor families in the past. I am sure I am >not alone. I have done some work in C, including a graph-to-GIF >converter :-). > >>> These days giggle bytes seem to be needed to just say: 'Hello world'. >>> Too many layers of crap. > >But it often supports Unicode ;-) Some of C code I released into public domain: https://panteltje.nl/panteltje/newsflex/download.html Am posting this with NewsFleX from a Raspberry Pi4 8 GB The Raspberry version is not on my website yet, still testing (now for some years). Seems to work OK though. Some Microchip asm code and projects: https://panteltje.nl/panteltje/pic/index.html I started with Linux with SLS Linux around 1992 https://en.wikipedia.org/wiki/Softlanding_Linux_System There was no 'Free Agent' newsreader back then for Linux so I wrote my own.
Re: Back To CS Basics. Fuck AI
Author: Jan Panteltje
Date: Sun, 18 Oct 2026 07:43
Date: Sun, 18 Oct 2026 07:43
83 lines
3126 bytes
3126 bytes
>Charlie Gibbs <cgibbs@kltpzyxm.invalid>wrote:
>>On 2026-10-17, Leroy H <lh@somewhere.net> wrote:
>
>> On Sat, 17 Oct 2026 07:20:49 GMT, Jan Panteltje wrote:
>>
>>> These days giggle bytes seem to be needed to just say: 'Hello world'.
>>> Too many layers of crap.
>>
>> GNU has published the definitive version of Hello World:
>>
>> <https://www.gnu.org/software/hello/>
>
>Holy cow. I guess it's time to resurrect this old chestnut:
>
>
>Mon Nov 12 20:03:48 1990
>Message : #1011969 From: cs161fhn%sdcc10@ucsd.edu
>Group : NET.Funny
>Length : 198 words
>Subject : Evolution of a programmer
>
>Msg-ID: <S1c5.4b61@looking.on.ca>
>Posted: 13 Nov 90 00:30:05 GMT
>
>Person: Dennis Lou
>
>
>The Evolution of a programmer.
>
>(Okay, it's late and I'm not thinking straight, but at least it's
>original...)
>
>High school/Jr. High
>--------------------
>10 PRINT "HELLO WORLD"
>20 END
>
>
>First year in college
>---------------------
>program Hello(input, output);
> begin
> writeln ('Hello world');
> end
>
>Senior year in college
>----------------------
>(defun hello
> (print
> (cons 'HELLO (list 'WORLD))))
>
>New professional
>----------------
>#include <stdio.h>
>main (argc,argv)
>int argc;
>char **argv; {
>printf ("Hello World!\n");
I will go with that one,
but simplify it a bit
file q1.c
#include <stdio.h>
int main()
{
printf("Hello\n");
}
raspberrypi: ~ # gcc -o q1 q1.c
raspberrypi: ~ # l q1
-rwxr-xr-x 1 root root 8068 Oct 18 09:33 q1*
raspberrypi: ~ # ./q1
Hello
So an about 8 kilobytes size executable ....
Better use bash
echo "Hello"
raspberrypi: ~ # echo "Hello"
Hello
Re: Back To CS Basics. Fuck AI
Author: Jan Panteltje
Date: Sun, 18 Oct 2026 08:01
Date: Sun, 18 Oct 2026 08:01
39 lines
2891 bytes
2891 bytes
>rbowman <bowman@montana.com>wrote: >>On Sat, 17 Oct 2026 07:20:49 GMT, Jan Panteltje wrote: > > >> OK I never got much into Python Never needed it for the things I do. >> Also it seems to be changing all the time? > >Except for the transition from 2 to 3 Python has been quite good at >maintaining backward compatibility. It changes as PEPs are implemented but >seldom do the changes break things. > >> But I come from a hardware background, in the sixties there were no >> 'computers' > >I was under the impression the System 360/30 that ate my FORTRAN IV cards >was a computer of sorts. > Yea I dunno, my first computer was a Sinclair ZX80 At work we had a PDP10? Worked a while at a large accelerator back then, made me buy a book on Unix. A bit later I had my own TV repair shop in Amsterdam and that is when I bought that Z80. Added some printer driver in Z80 asm to print receipts and stuff on a thermal printer. But then ..expanded that ZX80 with more memory, several I/O cards even added an IBM PC keyboard and ran the C80 C compiler on it I wanted to run software from the CPM user group but no CPM for that ZX80. So wrote my own CP/M clone and it worked: https://panteltje.nl/panteltje/z80/index.html Here what I added to that Sinclair Z80: https://panteltje.nl/panteltje/z80/system14/diagrams/index.html By that time I was working in a company designing a.o. PCI cards for in IBM PCs My computer used a ramdisk and was faster than the IBM PC, no harddisc seek times.
Re: Back To CS Basics. Fuck AI
Author: Richard Kettlewell
Date: Sun, 18 Oct 2026 08:12
Date: Sun, 18 Oct 2026 08:12
29 lines
3008 bytes
3008 bytes
rbowman <bowman@montana.com> writes: > Richard Kettlewell wrote: >> Still, typed doesn’t mean complete immiscibility of types (at least >> in Python), and a good thing too, since lots of operations take >> operands of different types. For example if d is an int and G is a >> Python object representing a point on an elliptic curve, I want to be >> able to write d*G, not mess around with function calls to do point >> multiplication. > > I've been trying to get up to speed with type hints. Like 'private' > functions in Python they seem to depend on a gentleman's agreement not > to do bad things. Like TypeScript it helps but still has loopholes. How strictly it’s enforced is a higher-level question. If you deploy and run Python code indiscriminately then it’s not enforced at all. If you insist on a `mypy --strict` pass somewhere in your build chain then it’s pretty solidly enforced. Much the same is true for code quality filters in other languages. In any language you might insist on some or all of unit test passes, a code coverage threshold, static analysis, AI review, human review etc before deployment. In some languages (e.g. C and C++) you choose which set of compiler warnings to enable and which of them should be errors. It’s all “gentleman’s agreement” if you want to characterize it that way, with relatively few exceptions none of this stuff is unavoidably enforced by the language implementation. -- https://www.greenend.org.uk/rjk/
Re: Back To CS Basics. Fuck AI
Author: Jan Panteltje
Date: Sun, 18 Oct 2026 08:16
Date: Sun, 18 Oct 2026 08:16
29 lines
2556 bytes
2556 bytes
>rbowman <bowman@montana.com>wrote: >>On Sat, 17 Oct 2026 12:17:29 GMT, Jan Panteltje wrote: > > >> Not much memory compared to today's ... >> I still have a slide rule somewhere... And old calculators.. > >https://en.wikipedia.org/wiki/IBM_System/360_Model_30 > >I believe RPI's had 32k of core. For FFTs etc you wrote partial products >to tape, rewind, and take another pass. Rinse and repeat. rewind() is >still in the C standard library but it was very literal back then. In those days I was working in broadcasting, no computers there, tubes, lots and lots of logic and transistors, https://archive.org/details/ampex-vr-1100-videotape-television-recorder then we got the VR2000 and later the AVR1 https://en.wikipedia.org/wiki/Quadruplex_videotape When the Moon landings happened I was in the head control room here relaying it to the people. Lots of tubes those days in that studio, had to keep it running. At home I had my own video recorder: https://www.radiomuseum.org/r/philips_ldl100001ldl_10000.html Later modified it for color... Video has become a sort of second nature to me.
Re: Back To CS Basics. Fuck AI
Author: c186282
Date: Sun, 18 Oct 2026 08:47
Date: Sun, 18 Oct 2026 08:47
37 lines
3115 bytes
3115 bytes
On 10/17/26 16:18, Lawrence D’Oliveiro wrote: > On Sat, 17 Oct 2026 12:17:29 GMT, Jan Panteltje wrote: > >> https://en.wikipedia.org/wiki/Apollo_Guidance_Computer >> >> Not much memory compared to today's ... > > Well, they weren’t running a complex GUI ;). You entered “Noun” and > “Verb” numbers to select which program to run. E.g. the program for > the lunar landing was “P64”. During the Apollo 11 landing, it crashed, > twice. It was a totally CRAP computer ... "rope memory" ... probably less power than a PIC16f84. AMAZING they got down safe - credit Cool Neil. >> I still have a slide rule somewhere... I have a few as well. NOT bad tools, even now, and don't need batteries. Civ implodes, slide-rules will be THE most coveted devices. > I remember reading that the world’s largest slide-rule maker at the > time, Keufel & Esser, went bust in 1971. Electronic digital > calculators had arrived ... not long after the last Moon landing. I bought some of the earliest 'calculators'. NOT cheap back in the day. Still have ONE that works. 9V battery and it Goes. Early 70s. Pre-LED. BEFORE, Dad had a "Marchant" MECHANICAL calculator. Enter numbers on a big matrix keyboard. Press a function key. Calc might be quick, or take an hour. Ka-CHUNK Ka-CHUNK Ka-CHUNK .... mech-digital display. Super cool ! INSANE gearworks !
Re: Back To CS Basics. Fuck AI
Author: Jan Panteltje
Date: Sun, 18 Oct 2026 08:53
Date: Sun, 18 Oct 2026 08:53
195 lines
9541 bytes
9541 bytes
>c186282 <c186282@nnada.net>wrote: >>On 10/17/26 03:20, Jan Panteltje wrote: >>> Lawrence =?iso-8859-13?q?D=FFOliveiro?= <ldo@nz.invalid>wrote: >>>> On Fri, 16 Oct 2026 17:10:18 GMT, Jan Panteltje wrote: >>> >>>> Well C++ is a crime against humanity >>>> 'operator overloading...' crap bloated crap. >>> >>> Operator overloading is a very handy feature. Yes, C++ is overly >>> complicated. Java left out that feature of C++, and it, too, still >>> manages to be excessively complicated. >>> >>> Python, on the other hand, includes operator overloading, yet is still >>> only a small fraction of the complexity of either Java or C++. Such a >>> feature is useful, for example, in letting you express operations on >>> mathematical objects (like vectors and matrices) using something close >>> to the original mathematical notation. >> >> OK >> I never got much into Python > > DO check it out. It can now do basically EVERYTHING > and is faster than it used to be. P4 is promised to > be even faster and more efficient without changing > the syntax. > > I did not use Python2 because I heard that P3 was coming ... > why learn an obsolete dialect ? Took 'em a little while > to port everything over to the new version, but it got > done and then went over and above. > > CAN be 'compiled' in a few ways. A couple options > translate to 'C' and then compile that. IS much > faster, though not quite as fast as writing a > native 'C' pgm. However the EASE of writing and > great string-slice functions (stolen from FORTRAN) > make Python really nice. Oh, 95% of the time you > don't NEED top speed for applications. That's old > thinking - EASE/comprehensibility can be far > more important. > > Oh, the DOCUMENTATION/How-To stuff for Python > is everywhere and detailed. A zillion solutions > for YOUR particular problem. > > Since forever I wrote in 'C' or Pascal. I even > did stuff in "B". However I rarely use 'C' > anymore. Might still rec writing 'servers' in 'C' ... > esp if high-volume ... but that sentiment is > half 'tradition'. > > Anyway, learn before 'AI' tries to steal it > all away. CHAT can find/write low/medium > complexity Python code ... but sometimes > it seems more complex/verbose/obscure than > a human would write it. Mostly it just > steals human-writ examples it finds. > > DID ask CHAT to write me a basic b-tree > database pgm in FORTRAN the other day. > Kinda/sorta did so ... but didn't include > any load/save code (though DID warn about > that prob). Next - same thing, but in > Modula2 - we'll see what its limits are :-) > > Pref M3 ... but almost no Linux/anything > compilers for that - esp that actually > install correctly. Some ancient DOS stuff. > Do have a paper manual for "Turbo Modula-2" > but it's all 8/16 bit and won't run on a lot > of chips these days. Would have to use > DOSBox or something - inefficient. > >> Never needed it for the things I do. >> Also it seems to be changing all the time? > > Ummm ... not really. The only "big" - ok > not SO big - change was P2 to P3. Most > P2 programs can be tweaked for P3 pretty > quick. Think there's even a converter app. > > Now if by "changing" you mean new functions, > yep, people keep writing them for obvious > reasons. The good bit is it means there are > several paths to whatever you're trying to > do - pick the best for your need. > > I did a bunch of video security cam apps. > Sometimes "OpenCV2" will do it all, sometimes > "Pillow" lib is just fine. Can even combine > in some cases. > >> Most code I write is in C or in asm for Microchips. >> asm is extremely powerful > > Well aware. When CP/M and even DOS were around > had to write ASM bits, or full apps, because > there just wasn't anything better. PICs and > similar microcontrollers - ASM is still the > best way to the finer chip tricks. > >> understand the hardware!!! > > The weaker the hardware the more you have to > understand it. Most modern big chips, so much > overkill that you really don't need to know > every little nuance. Sorry, 1% better performance > isn't worth learning 99% more tiny-tweak shit > that'll probably be obsolete in the very next > point-revision of the CPU. > >> https://panteltje.nl/panteltje/newsflex/download.html >> https://panteltje.nl/panteltje/quadcopter/index.html >> https://panteltje.nl/panteltje/pic/index.html >> These days giggle bytes seem to be needed to just say: 'Hello world'. >> Too many layers of crap. >> >> But I come from a hardware background, in the sixties there were no 'computers' >> yet they did a manned Moon landing and return. > > Some of that shit was just bizarre ! > > Loved hand-knitted "rope memory", what > the LEM computer used :-) > >> Now they have nothing to show but driving around the block (earth orbit) with >> all that computing power. > > All the computing power in the Apollo ... yer > base iWatch has a good 1000x that, maybe 10000x. > BUT, they had to make do with what they had ... > and most of that was govt-specced in '64. At > least Apollo wasn't all vacuum tubes :-) > > Now space probes - I really admire the people > who design the hardware/software. Insane levels > of redundancy/work-arounds, almost a black art. > It's why the Voyagers are still working out > beyond the edge of our solar system all this > time later. Kinda hoping aliens will find one > and upgrade/repair :-) Yes and the new telescopes https://www.sciencedaily.com/releases/2026/10/261016070630.htm NASA’s Roman Space Telescope exceeds expectations by nearly 30% I think, our current understanding of 'the Universe' and 'big bang' is at some point completely wrong, as is our 'understanding' of fusion (why ITER and other experiments like it will never work). I look at normal radioactivity as you having a lot of springs each compressed and hold together by a little metal clamp. Every now and then a clamp breaks an the spring jumps, 'radioactivity' 'radiation'. Put enough springs like that together and if one goes and hits a few other ones like it then you get a chain reaction, all clamps break, all springs jump. But 'fusion' they try, is nothing but pushing the springs together without even using clamps.. Costs all of energy to keep those together and no more energy will ever come out than you put in. The springs with clamps are just parts of the expanding universe that had not expanded yet. Dark matter, so much bullshit, so many einStone parrots, so many mamaticians doing a divide by zero and then use 'renormalisation' all parrots, too much senseless math, NO understanding. It is a bit like Ohm's law, but then the radio tube was invented, a current in a vacuum ! Ohms law broken? Electrons moving turned out to be what electric current was! You need a _mechanism_ to understand the universe, else the babble about infinities will go on and no end and the understanding will remain zero. CERN did recently find signs that space is filled with some fluid... From: https://www.sciencedaily.com/releases/2026/10/261004002556.htm Physicists just saw quarks make waves in the Big Bang’s primordial soup Scientists have watched speeding quarks create ripples in primordial matter, revealing just how liquid-like the early universe really was. Date: October 6, 2026 Source: Massachusetts Institute of Technology Summary: Physicists at CERN’s Large Hadron Collider have captured the clearest evidence yet that quark-gluon plasma, the scorching-hot matter that filled the newborn universe, behaves like a true liquid. By tracking individual quarks as they blasted through the plasma, researchers saw them leave behind ripples, splashes, and swirling wakes much like a duck moving through water. The finding suggests this primordial “soup” is so dense that it can slow speeding quarks and respond collectively as a fluid.
Re: Back To CS Basics. Fuck AI
Author: c186282
Date: Sun, 18 Oct 2026 08:58
Date: Sun, 18 Oct 2026 08:58
23 lines
2676 bytes
2676 bytes
On 10/17/26 16:26, Lawrence D’Oliveiro wrote: > On Sat, 17 Oct 2026 18:45:57 GMT, Charlie Gibbs wrote: > >>> <https://www.gnu.org/software/hello/> >> >> Holy cow. > > On a similar note, the original Unix “true” command was ... an empty > shell script. Nevertheless, AT&T tried to claim copyright on it > <http://trillian.mit.edu/~jc/humor/ATT_Copyright_true.html>. An attempted patent on NOTHING ... :-) > Worth comparing the GNU coreutils version of “true” > <http://www.theregister.co.uk/2016/02/10/line_break_ep2/>, which is > ... 80 lines long. The same code is also used to generate the “false” > command. The full source is posted in that article, to make fun of > supposed “software bloat” or something. The writer completely fails to > realize a point made in the previous link: that the GNU version uses > less memory and runs faster. Um ... why'd it take 80 lines ?
Re: Back To CS Basics. Fuck AI
Author: c186282
Date: Sun, 18 Oct 2026 09:06
Date: Sun, 18 Oct 2026 09:06
210 lines
10569 bytes
10569 bytes
On 10/18/26 04:53, Jan Panteltje wrote: >> c186282 <c186282@nnada.net>wrote: >>> On 10/17/26 03:20, Jan Panteltje wrote: >>>> Lawrence =?iso-8859-13?q?D=FFOliveiro?= <ldo@nz.invalid>wrote: >>>>> On Fri, 16 Oct 2026 17:10:18 GMT, Jan Panteltje wrote: >>>> >>>>> Well C++ is a crime against humanity >>>>> 'operator overloading...' crap bloated crap. >>>> >>>> Operator overloading is a very handy feature. Yes, C++ is overly >>>> complicated. Java left out that feature of C++, and it, too, still >>>> manages to be excessively complicated. >>>> >>>> Python, on the other hand, includes operator overloading, yet is still >>>> only a small fraction of the complexity of either Java or C++. Such a >>>> feature is useful, for example, in letting you express operations on >>>> mathematical objects (like vectors and matrices) using something close >>>> to the original mathematical notation. >>> >>> OK >>> I never got much into Python >> >> DO check it out. It can now do basically EVERYTHING >> and is faster than it used to be. P4 is promised to >> be even faster and more efficient without changing >> the syntax. >> >> I did not use Python2 because I heard that P3 was coming ... >> why learn an obsolete dialect ? Took 'em a little while >> to port everything over to the new version, but it got >> done and then went over and above. >> >> CAN be 'compiled' in a few ways. A couple options >> translate to 'C' and then compile that. IS much >> faster, though not quite as fast as writing a >> native 'C' pgm. However the EASE of writing and >> great string-slice functions (stolen from FORTRAN) >> make Python really nice. Oh, 95% of the time you >> don't NEED top speed for applications. That's old >> thinking - EASE/comprehensibility can be far >> more important. >> >> Oh, the DOCUMENTATION/How-To stuff for Python >> is everywhere and detailed. A zillion solutions >> for YOUR particular problem. >> >> Since forever I wrote in 'C' or Pascal. I even >> did stuff in "B". However I rarely use 'C' >> anymore. Might still rec writing 'servers' in 'C' ... >> esp if high-volume ... but that sentiment is >> half 'tradition'. >> >> Anyway, learn before 'AI' tries to steal it >> all away. CHAT can find/write low/medium >> complexity Python code ... but sometimes >> it seems more complex/verbose/obscure than >> a human would write it. Mostly it just >> steals human-writ examples it finds. >> >> DID ask CHAT to write me a basic b-tree >> database pgm in FORTRAN the other day. >> Kinda/sorta did so ... but didn't include >> any load/save code (though DID warn about >> that prob). Next - same thing, but in >> Modula2 - we'll see what its limits are :-) >> >> Pref M3 ... but almost no Linux/anything >> compilers for that - esp that actually >> install correctly. Some ancient DOS stuff. >> Do have a paper manual for "Turbo Modula-2" >> but it's all 8/16 bit and won't run on a lot >> of chips these days. Would have to use >> DOSBox or something - inefficient. >> >>> Never needed it for the things I do. >>> Also it seems to be changing all the time? >> >> Ummm ... not really. The only "big" - ok >> not SO big - change was P2 to P3. Most >> P2 programs can be tweaked for P3 pretty >> quick. Think there's even a converter app. >> >> Now if by "changing" you mean new functions, >> yep, people keep writing them for obvious >> reasons. The good bit is it means there are >> several paths to whatever you're trying to >> do - pick the best for your need. >> >> I did a bunch of video security cam apps. >> Sometimes "OpenCV2" will do it all, sometimes >> "Pillow" lib is just fine. Can even combine >> in some cases. >> >>> Most code I write is in C or in asm for Microchips. >>> asm is extremely powerful >> >> Well aware. When CP/M and even DOS were around >> had to write ASM bits, or full apps, because >> there just wasn't anything better. PICs and >> similar microcontrollers - ASM is still the >> best way to the finer chip tricks. >> >>> understand the hardware!!! >> >> The weaker the hardware the more you have to >> understand it. Most modern big chips, so much >> overkill that you really don't need to know >> every little nuance. Sorry, 1% better performance >> isn't worth learning 99% more tiny-tweak shit >> that'll probably be obsolete in the very next >> point-revision of the CPU. >> >>> https://panteltje.nl/panteltje/newsflex/download.html >>> https://panteltje.nl/panteltje/quadcopter/index.html >>> https://panteltje.nl/panteltje/pic/index.html >>> These days giggle bytes seem to be needed to just say: 'Hello world'. >>> Too many layers of crap. >>> >>> But I come from a hardware background, in the sixties there were no 'computers' >>> yet they did a manned Moon landing and return. >> >> Some of that shit was just bizarre ! >> >> Loved hand-knitted "rope memory", what >> the LEM computer used :-) >> >>> Now they have nothing to show but driving around the block (earth orbit) with >>> all that computing power. >> >> All the computing power in the Apollo ... yer >> base iWatch has a good 1000x that, maybe 10000x. >> BUT, they had to make do with what they had ... >> and most of that was govt-specced in '64. At >> least Apollo wasn't all vacuum tubes :-) >> >> Now space probes - I really admire the people >> who design the hardware/software. Insane levels >> of redundancy/work-arounds, almost a black art. >> It's why the Voyagers are still working out >> beyond the edge of our solar system all this >> time later. Kinda hoping aliens will find one >> and upgrade/repair :-) > > Yes and the new telescopes > https://www.sciencedaily.com/releases/2026/10/261016070630.htm > NASA’s Roman Space Telescope exceeds expectations by nearly 30% > > I think, our current understanding of 'the Universe' and 'big bang' is at some > point completely wrong, Likely. > as is our 'understanding' of fusion (why ITER and other experiments like it > will never work). Current approaches ... won't work worth damn. Gotta find some 'quantum tricks'. SOME way to, even for a sub-nanosecond, to screw with the physics. > I look at normal radioactivity as you having a lot of springs each compressed > and hold together by a little metal clamp. > Every now and then a clamp breaks an the spring jumps, 'radioactivity' > 'radiation'. > Put enough springs like that together and if one goes and hits a few other ones > like it then you get a chain reaction, all clamps break, all springs jump. > > But 'fusion' they try, is nothing but pushing the springs together without even > using clamps.. > Costs all of energy to keep those together and no more energy will ever come > out than you put in. > The springs with clamps are just parts of the expanding universe that had not > expanded yet. > > Dark matter, so much bullshit, so many einStone parrots, > so many mamaticians doing a divide by zero and then use 'renormalisation' > all parrots, too much senseless math, NO understanding. > It is a bit like Ohm's law, but then the radio tube was invented, a current in > a vacuum ! Ohms law broken? > Electrons moving turned out to be what electric current was! > You need a _mechanism_ to understand the universe, else the babble about > infinities will go on and no end and the understanding will remain zero. > CERN did recently find signs that space is filled with some fluid... > From: > https://www.sciencedaily.com/releases/2026/10/261004002556.htm > > Physicists just saw quarks make waves in the Big Bang’s primordial soup > Scientists have watched speeding quarks create ripples in primordial matter, > revealing just how liquid-like the early universe really was. > Date: > October 6, 2026 > Source: > Massachusetts Institute of Technology > Summary: > Physicists at CERN’s Large Hadron Collider have captured the clearest evidence > yet that quark-gluon plasma, the scorching-hot matter that filled the newborn > universe, behaves like a true liquid. > By tracking individual quarks as they blasted through the plasma, researchers > saw them leave behind ripples, splashes, and swirling wakes much like a duck > moving through water. > The finding suggests this primordial “soup” is so dense that it can slow > speeding quarks and respond collectively as a fluid. Still think "dark matter" is an hallucination. "Invisible Stuff" ??? Luminiferous Aether ??? Something ELSE going on.
Re: Back To CS Basics. Fuck AI
Author: Stéphane CARPENTIER
Date: Sun, 18 Oct 2026 09:22
Date: Sun, 18 Oct 2026 09:22
28 lines
2376 bytes
2376 bytes
Le 17-10-2026, John Bokma <contact@johnbokma.com> a écrit : > On 17/10/2026 18:46, Stéphane CARPENTIER wrote: > > [..] > >> With some typed languages, you can't use a variable if you didn't >> declare it's type before. With python, you don't need to declare >> integers and strings but you need to declare dictionaries. Why? Don't >> know. > > I guess you confuse assigning a type with creating an object of a > specific type. Probably. Sometimes some methods didn't work if I didn't assign an empty dictionary first. So, I assumed, maybe wrongly, that assigning an empty value was declaring it, maybe there are some subtleties. >> With python, that looks easy and when I fix something, it breaks >> something else for reasons I don't understand. > > I recommend to install Copilot CLI on your system and ask it to explain > why your script breaks. It's quite good at explaining is my experience. Well, at work I don't install what I want on my computer. -- Si vous avez du temps à perdre : https://scarpet42.gitlab.io
Re: Back To CS Basics. Fuck AI
Author: Stéphane CARPENTIER
Date: Sun, 18 Oct 2026 09:33
Date: Sun, 18 Oct 2026 09:33
58 lines
3737 bytes
3737 bytes
Le 17-10-2026, Richard Kettlewell <invalid@invalid.invalid> a écrit :
> Stéphane CARPENTIER <sc@fiat-linux.fr> writes:
>> Richard Kettlewell <invalid@invalid.invalid> a écrit :
>>> Stéphane CARPENTIER <sc@fiat-linux.fr> writes:
>>>> Like, it's not a typed language but start playing with dictionaries
>>>> without declaring your variables first to see how the claims stand
>>>> before the facts.
>>>
>>> Python is absolutely a typed language. Every object has a type and it
>>> won’t let you use objects in a manner incompatible with their type:
>>>
>>> >>> 0+""
>>> Traceback (most recent call last):
>>> File "<python-input-0>", line 1, in <module>
>>> 0+""
>>> ~^~~
>>> TypeError: unsupported operand type(s) for +: 'int' and 'str'
>>
>> In this case python is a strongly typed language and in other cases
>> it's not that important.
>>
>> With some typed languages, you can't use a variable if you didn't
>> declare it's type before. With python, you don't need to declare
>> integers and strings but you need to declare dictionaries. Why? Don't
>> know.
>
> No special declaration is needed for dicts, you can just write out the
> dict you want.
>
> >>> d={'a': 1, 'b': 2}
> >>> type(d)
> <class 'dict'>
As John said, I'm probably confusing declaring, creating and assigning a
value to a variable. Because when I assigned an empty dictionary to a
variable, all three of them are done at the same time.
The issue wasn't about assigning a new dictionary to a variable, but
adding some values in it. Some methods didn't worked for adding values
if I didn't assign an empty dictionary or an empty list first, before
doing anything on it.
>> With other programming languages I saw, either that works or that
>> doesn't, but I never saw something that stops working when it starts to
>> be more complex. It looks like it's a python specialty.
>
> No, I think the issue here is pretty obviously the attempt to use a tool
> without learning how it works.
I managed to do it with other programming languages. I managed to do it
with python, to. In the end, it worked. But it was more cumbersome with
python. I'm not saying that a programming language should be able to be
used without being learned. I'm saying that it's not an easier language
to use.
--
Si vous avez du temps Ă perdre :
https://scarpet42.gitlab.io
Re: Back To CS Basics. Fuck AI
Author: c186282
Date: Sun, 18 Oct 2026 09:55
Date: Sun, 18 Oct 2026 09:55
75 lines
4357 bytes
4357 bytes
On 10/18/26 04:01, Jan Panteltje wrote: >> rbowman <bowman@montana.com>wrote: >>> On Sat, 17 Oct 2026 07:20:49 GMT, Jan Panteltje wrote: >> >> >>> OK I never got much into Python Never needed it for the things I do. >>> Also it seems to be changing all the time? >> >> Except for the transition from 2 to 3 Python has been quite good at >> maintaining backward compatibility. It changes as PEPs are implemented but >> seldom do the changes break things. >> >>> But I come from a hardware background, in the sixties there were no >>> 'computers' >> >> I was under the impression the System 360/30 that ate my FORTRAN IV cards >> was a computer of sorts. >> > > > Yea I dunno, my first computer was a Sinclair ZX80 HAD one ! May STILL have it - in The Heap somewhere. Hey, don't cuss the Z-80 ! Damned good chip ! > At work we had a PDP10? Got started, officially, on the PDP-11. And there was that neat-o newfangled 'C' language .... :-) > Worked a while at a large accelerator back then, made me buy a book on Unix. > A bit later I had my own TV repair shop in Amsterdam > and that is when I bought that Z80. > Added some printer driver in Z80 asm to print receipts and stuff on a thermal > printer. Well, the math of particle accelerators is well beyond my hard-wiring. I'm best as a 'generalist', bringing a bunch of dis-related threads together, seeing how disparate 'A' 'B' and 'C' relate. Had a good 40+ year career with that. Sometimes knowing a little about a LOT of things pays off as well as knowing a LOT about ONE thing. Somebody has to tie it all together. > But then ..expanded that ZX80 with more memory, several I/O cards > even added an IBM PC keyboard and ran the C80 C compiler on it > I wanted to run software from the CPM user group but no CPM for that ZX80. > So wrote my own CP/M clone and it worked: > https://panteltje.nl/panteltje/z80/index.html > Here what I added to that Sinclair Z80: > https://panteltje.nl/panteltje/z80/system14/diagrams/index.html > > By that time I was working in a company designing a.o. PCI cards for in IBM PCs > My computer used a ramdisk and was faster than the IBM PC, > no harddisc seek times. Remember 'PCI' cards, 'ISA' too, S-100 were pretty good as well. Only designed ONE kinda simple PCI card. Sounds like you went further. I fell in love with "embedded" - low-powered chips and minimal hardware. Seemed just 'art' to do useful things with that. Lots of 'C' and ASM shit.
Re: Back To CS Basics. Fuck AI
Author: Stéphane CARPENTIER
Date: Sun, 18 Oct 2026 09:57
Date: Sun, 18 Oct 2026 09:57
18 lines
2059 bytes
2059 bytes
Le 18-10-2026, Blaine <cactus_DAC@yahoo.com> a écrit : > > Because I tricked you into thinking, "To begin" means "well here we go > again." I intentionally made it obscure that I am instructing the > beginner on this point. I am suggesting that someone "new" to Python > shouldn't import very many packages, as they can overlap problematically. One of the power of python is the number of available packages. As the saying go, in C you have a million ways to do what you want when in python you have a million packages to do what you want. So, telling beginners that python is great because it has so many packages, but one should try to avoid using them can be a little bit confusing. -- Si vous avez du temps à perdre : https://scarpet42.gitlab.io
Re: Back To CS Basics. Fuck AI
Author: John Bokma
Date: Sun, 18 Oct 2026 10:11
Date: Sun, 18 Oct 2026 10:11
35 lines
2866 bytes
2866 bytes
On 18/10/2026 03:54, rbowman wrote:
> On Sat, 17 Oct 2026 20:42:04 -0000 (UTC), Lawrence D’Oliveiro wrote:
>
>> Who says you need to “declare dictionaries”?
>>
>> ldo@hypatia:~> python3 Python 3.14.7 (main, Sep 13 2026, 08:30:29)
>> [GCC 16.2.0] on linux Type "help", "copyright", "credits" or
>> "license"
>> for more information.
>> >>> a = "some text" print(a)
>> some text
>> >>> a = {"colour" : "green"}
>> >>> print(a)
>> {'colour': 'green'}
>
> Python 3.14.4 (main, Aug 20 2026, 10:41:58) [GCC 15.2.0] on linux
> Type "help", "copyright", "credits" or "license" for more information.
>>>> a = {"coluor" : "green"}
>>>> print(a)
> {'coluor': 'green'}
>>>> a["color"] = "purple"
>>>> print(a)
> {'coluor': 'green', 'color': 'purple'}
>
>
> I've seen bugs introduced either by typos or a programmer who couldn't
> spell. It's either a very handy feature or a potential problem to add ad
> hoc fields.
If that's the case use a dataclass with frozen=True (and perhaps
kw_only=True).
--
Static tumblelog generator: https://github.com/john-bokma/tumblelog/
Available as Python or Perl. Example tumblelog: https://plurrrr.com/
Re: Back To CS Basics. Fuck AI
Author: John Bokma
Date: Sun, 18 Oct 2026 10:14
Date: Sun, 18 Oct 2026 10:14
12 lines
2037 bytes
2037 bytes
On 18/10/2026 04:49, rbowman wrote: [..] > One annoyance is the different site packages on the various distros. For > example on Fedora you can install python3-ruff as a site package with > dnf. On Ubuntu 26.04 you get 'Error: Unable to locate package python3- > ruff' and have to install it in a venv. Or use docker. -- Static tumblelog generator: https://github.com/john-bokma/tumblelog/ Available as Python or Perl. Example tumblelog: https://plurrrr.com/
Re: Back To CS Basics. Fuck AI
Author: John Bokma
Date: Sun, 18 Oct 2026 10:38
Date: Sun, 18 Oct 2026 10:38
63 lines
3830 bytes
3830 bytes
On 18/10/2026 12:11, John Bokma wrote:
> On 18/10/2026 03:54, rbowman wrote:
>> On Sat, 17 Oct 2026 20:42:04 -0000 (UTC), Lawrence D’Oliveiro wrote:
>>
>>> Who says you need to “declare dictionaries”?
>>>
>>> Â Â Â Â ldo@hypatia:~> python3 Python 3.14.7 (main, Sep 13 2026, 08:30:29)
>>> Â Â Â Â [GCC 16.2.0] on linux Type "help", "copyright", "credits" or
>>> Â Â Â Â "license"
>>> Â Â Â Â for more information.
>>> Â Â Â Â >>> a = "some text" print(a)
>>> Â Â Â Â some text
>>> Â Â Â Â >>> a = {"colour" : "green"}
>>> Â Â Â Â >>> print(a)
>>> Â Â Â Â {'colour': 'green'}
>>
>> Python 3.14.4 (main, Aug 20 2026, 10:41:58) [GCC 15.2.0] on linux
>> Type "help", "copyright", "credits" or "license" for more information.
>>>>> a = {"coluor" : "green"}
>>>>> print(a)
>> {'coluor': 'green'}
>>>>> a["color"] = "purple"
>>>>> print(a)
>> {'coluor': 'green', 'color': 'purple'}
>>
>>
>> I've seen bugs introduced either by typos or a programmer who couldn't
>> spell. It's either a very handy feature or a potential problem to add ad
>> hoc fields.
>
> If that's the case use a dataclass with frozen=True (and perhaps
> kw_only=True).
❯ python3
Python 3.14.7 (main, Aug 8 2026, 20:03:42) [Clang 13.1.6
(clang-1316.0.21.2.5)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from dataclasses import dataclass
>>> @dataclass(frozen=True, kw_only=True)
... class Config:
... color: str
...
>>> a = Config(color='purple')
>>> a.coluor
Traceback (most recent call last):
File "<python-input-3>", line 1, in <module>
a.coluor
AttributeError: 'Config' object has no attribute 'coluor'. Did you mean:
'color'?
>>> a.color = 'green'
Traceback (most recent call last):
File "<python-input-4>", line 1, in <module>
a.color = 'green'
^^^^^^^
File "<string>", line 15, in __setattr__
dataclasses.FrozenInstanceError: cannot assign to field 'color'
>>> a.color
'purple'
>>>
--
Static tumblelog generator: https://github.com/john-bokma/tumblelog/
Available as Python or Perl. Example tumblelog: https://plurrrr.com/
Re: Back To CS Basics. Fuck AI
Author: De ongekruisigde ds.
Date: Sun, 18 Oct 2026 10:59
Date: Sun, 18 Oct 2026 10:59
66 lines
3893 bytes
3893 bytes
On 2026-10-16, Chris Ahlstrom <OFeem1987@teleworm.us> wrote: > Leroy H wrote this screed in ALL-CAPS (fixed): > >> It is amazing how knowledge of basic CS is absent in most >> programmers, both professional and amateur alike. While >> "vibe coding" is all the rage, a silent disaster is also >> creeping. >> >> What GNU/Linux requires urgently is a Decimal Floating >> Point library that implements IEEE754-2008, but mention this >> to most programmers and one will receive only blank stares >> and gaping mouths. >> >> The only GNU/Linux project for IEEE754-2008 is closing >> its doors: >> >> <https://github.com/libdfp/libdfp/pull/238> > > For C++, Boost.Decimal. > > The Free42 calculator provides either binary or a decimal > implementation. > > By the way, are you AI? Who knows, but here's an AI report on the current status of libdfp/libdfp: Maintenance status: actively maintained (and recently revived) Consulting git history directly: - Timeline: 669 commits spanning 2009-07-24 (original author Ryan S. Arnold, IBM) to 2026-09-11 (Paul Murphy). The project is alive — the most recent activity is only days old. - Very recent burst: 17 commits since June 2026, almost all by Paul Murphy (Red Hat), tightly focused on strtodN correctness — signed-NaN returns, locale parsing bugs, rounding of large integer mantissas, underflow/tiny values, dead-code removal — plus a matching expansion of the test suite. Several commits are explicitly AI-assisted (test-strtod: Add more AI tests), so this is a modern, tooling-assisted development effort, not legacy code. - Contributor base: the classic glibc decimal-fp team — Adhemerval Zanella (178), Ryan S. Arnold (130, original author), Paul E. Murphy (~104 across addresses), Stefan Liebler. All are current glibc/IBM/Red Hat maintainers, which signals upstream-grade stewardship. - Branches: only master plus legacy release branches (libdfp-1_0_8-branch, _9, _10). No new release branch has been cut since 1.0.10, so development is trunk-focused; the current release number (1.0.17) is ahead of the last branched tag. Verdict: healthy and actively maintained. The core decimal-fp library is mature (15+ years), but 2026 has seen a genuine correctness/quality drive on the string-conversion paths (strtod/ldexp), with heavy test coverage. Nothing suggests abandonment — quite the opposite. -- I am a disgrace to all possible and impossible universes and all that is not a universe. -- Gemini AI
Re: Back To CS Basics. Fuck AI
Author: The Natural Philosopher
Date: Sun, 18 Oct 2026 11:07
Date: Sun, 18 Oct 2026 11:07
27 lines
2496 bytes
2496 bytes
On 17/10/2026 18:08, John Bokma wrote: > Examples: > > Explain as a professional Python programmer why 1+True yields 2 and is > valid > Thought for 3s > > In Python,  bool is a subclass of  int . The two Boolean values behave > numerically as  False == 0 and  True == 1 , so adding  True to  1 is > equivalent to  1 + 1 : > > 1 + True      # 2 > type(1 + True) # int > > It’s valid because Python’s numeric operations accept Boolean values as > integers. In application code, though, it’s usually clearer to convert > or count explicitly if you intend to use a Boolean as a number. With Booleans the + operator ought to be an OR function so TRUE + TRUE = TRUE -- “The urge to save humanity is almost always only a false face for the urge to rule it.” – H. L. Mencken
Re: Back To CS Basics. Fuck AI
Author: The Natural Philosopher
Date: Sun, 18 Oct 2026 11:08
Date: Sun, 18 Oct 2026 11:08
22 lines
2312 bytes
2312 bytes
On 17/10/2026 19:33, Charlie Gibbs wrote: > On 2026-10-17, The Natural Philosopher <tnp@invalid.invalid> wrote: > >> On 17/10/2026 15:02, Richard Kettlewell wrote: >> >>> We make extensive use of Python, apart from some performance issues >>> (exacerbated by the not particularly speedy SoC it runs on) it’s not >>> really problematic. >> >> Wow. someone has a real use for it! >> >> I just am too old to become proficient in another language, I am still >> battling JavaScript > > I still use C. I started puttering with Python once - > maybe I should take another look at it. > Too old and tired and lacking in oxygen -- Climate Change: Socialism wearing a lab coat.
Re: Back To CS Basics. Fuck AI
Author: The Natural Philosopher
Date: Sun, 18 Oct 2026 11:09
Date: Sun, 18 Oct 2026 11:09
8 lines
1883 bytes
1883 bytes
On 17/10/2026 20:29, Richard Kettlewell wrote: > I think the issue here is pretty obviously the attempt to use a tool > without learning how it works. The best tools are self explanatory... -- Climate Change: Socialism wearing a lab coat.
Re: Back To CS Basics. Fuck AI
Author: The Natural Philosopher
Date: Sun, 18 Oct 2026 11:12
Date: Sun, 18 Oct 2026 11:12
22 lines
2226 bytes
2226 bytes
On 17/10/2026 21:14, rbowman wrote: > On Sat, 17 Oct 2026 07:20:49 GMT, Jan Panteltje wrote: > > >> OK I never got much into Python Never needed it for the things I do. >> Also it seems to be changing all the time? > > Except for the transition from 2 to 3 Python has been quite good at > maintaining backward compatibility. It changes as PEPs are implemented but > seldom do the changes break things. > >> But I come from a hardware background, in the sixties there were no >> 'computers' > > I was under the impression the System 360/30 that ate my FORTRAN IV cards > was a computer of sorts. > Mine was. I think. an Elliott. I never saw it. -- Climate Change: Socialism wearing a lab coat.
Re: Back To CS Basics. Fuck AI
Author: The Natural Philosopher
Date: Sun, 18 Oct 2026 11:15
Date: Sun, 18 Oct 2026 11:15
91 lines
3649 bytes
3649 bytes
On 18/10/2026 08:43, Jan Panteltje wrote:
>> Charlie Gibbs <cgibbs@kltpzyxm.invalid>wrote:
>>> On 2026-10-17, Leroy H <lh@somewhere.net> wrote:
>>
>>> On Sat, 17 Oct 2026 07:20:49 GMT, Jan Panteltje wrote:
>>>
>>>> These days giggle bytes seem to be needed to just say: 'Hello world'.
>>>> Too many layers of crap.
>>>
>>> GNU has published the definitive version of Hello World:
>>>
>>> <https://www.gnu.org/software/hello/>
>>
>> Holy cow. I guess it's time to resurrect this old chestnut:
>>
>>
>> Mon Nov 12 20:03:48 1990
>> Message : #1011969 From: cs161fhn%sdcc10@ucsd.edu
>> Group : NET.Funny
>> Length : 198 words
>> Subject : Evolution of a programmer
>>
>> Msg-ID: <S1c5.4b61@looking.on.ca>
>> Posted: 13 Nov 90 00:30:05 GMT
>>
>> Person: Dennis Lou
>>
>>
>> The Evolution of a programmer.
>>
>> (Okay, it's late and I'm not thinking straight, but at least it's
>> original...)
>>
>> High school/Jr. High
>> --------------------
>> 10 PRINT "HELLO WORLD"
>> 20 END
>>
>>
>> First year in college
>> ---------------------
>> program Hello(input, output);
>> begin
>> writeln ('Hello world');
>> end
>>
>> Senior year in college
>> ----------------------
>> (defun hello
>> (print
>> (cons 'HELLO (list 'WORLD))))
>>
>> New professional
>> ----------------
>> #include <stdio.h>
>> main (argc,argv)
>> int argc;
>> char **argv; {
>> printf ("Hello World!\n");
>
>
> I will go with that one,
> but simplify it a bit
>
> file q1.c
> #include <stdio.h>
> int main()
> {
> printf("Hello\n");
> }
>
> raspberrypi: ~ # gcc -o q1 q1.c
> raspberrypi: ~ # l q1
> -rwxr-xr-x 1 root root 8068 Oct 18 09:33 q1*
> raspberrypi: ~ # ./q1
> Hello
>
> So an about 8 kilobytes size executable ....
>
> Better use bash
> echo "Hello"
> raspberrypi: ~ # echo "Hello"
> Hello
>
$ ls -l /bin/bash
-rwxr-xr-x 1 root root 1183448 Apr 18 2022 /bin/bash
--
"It was a lot more fun being 20 in the 70's that it is being 70 in the 20's"
Joew Walsh
Page 4 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