Thread View: comp.os.linux.advocacy
89 messages
89 total messages
Page 1 of 2
Started by Leroy H
Fri, 16 Oct 2026 03:26
Page 1 of 2 • 89 total messages
Back To CS Basics. Fuck AI
Author: Leroy H
Date: Fri, 16 Oct 2026 03:26
Date: Fri, 16 Oct 2026 03:26
89 lines
3303 bytes
3303 bytes
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>
Disagree?
Compile and run the following C code (libdfp must be
installed) and check the results. It merely adds
a small increment 10 million times:
[~]# ./fp-compare 10000000
Binary Expected: 100000.000000
Binary Got: 95680.945312
Decimal Expected: 100000.000000
Decimal Got: 100000.000000
Whew! Using standard binary FP the result is in error
by TENS OF THOUSANDS!
GNU/Linux needs Decimal FP.
======================================
Begin C Code
(libdfp must be installed)
(link: https://github.com/libdfp/libdfp)
======================================
/*********************************************
gcc -std=gnu99 $CFLAGS -Wall -Wextra -I/usr/local/include/dfp -o fp-compare fp-compare.c -ldfp
./fp-compare 10000000
Compares an identical computation using both float and _Decimal32
variables.
**********************************************/
#define _GNU_SOURCE
#define __STDC_WANT_DEC_FP__
#include <fenv.h>
#include <math.h>
#include <stdlib.h>
#include <stdio.h>
int main(int argc, char **argv) {
_Decimal32 dec_meters, dec_inc, dec_iterations;
float bin_meters, bin_inc;
int i, iterations;
// set dec rounding mode to round half up
fe_dec_setround(FE_DEC_TONEARESTFROMZERO);
iterations = atoi(argv[1]);
dec_iterations = strtod32(argv[1],'\0');
dec_meters = 0.0DF;
bin_meters = 0.0;
dec_inc = 0.01DF;
bin_inc = 0.01;
for (i = 0; i < iterations; i++) {
bin_meters = bin_meters + bin_inc;
dec_meters = dec_meters + dec_inc;
}
fprintf(stdout, "Binary Expected: %f\n", bin_inc * (float)iterations);
fprintf(stdout, "Binary Got: %f\n\n", bin_meters);
fprintf(stdout, "Decimal Expected: %Hf\n", dec_inc * dec_iterations);
fprintf(stdout, "Decimal Got: %Hf\n", dec_meters);
}
================================
End C Code
================================
Re: Back To CS Basics. Fuck AI
Author: Chris Ahlstrom
Date: Fri, 16 Oct 2026 15:44
Date: Fri, 16 Oct 2026 15:44
29 lines
2402 bytes
2402 bytes
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?
--
Impartial, adj.: Unable to perceive any promise of personal
advantage from espousing either side of a controversy or adopting
either of two conflicting opinions.
q-- Ambrose Bierce, "The Devil's Dictionary"
Re: Back To CS Basics. Fuck AI
Author: Leroy H
Date: Fri, 16 Oct 2026 16:14
Date: Fri, 16 Oct 2026 16:14
28 lines
1728 bytes
1728 bytes
On Fri, 16 Oct 2026 11:44:54 -0400, Chris Ahlstrom wrote: > > For C++, Boost.Decimal. > Some people don't use C++. I would hope that most would not. It is recommended, and even required in some countries, that all financial software be written using decimal FP. But once libdfp drops out then GNU/Linux C programmers will be stuck. > > By the way, are you AI? > 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. Occasionally, however, some misaligned freak will rise above it all and then we have a burst of progress.
Re: Back To CS Basics. Fuck AI
Author: Jan Panteltje
Date: Fri, 16 Oct 2026 17:10
Date: Fri, 16 Oct 2026 17:10
40 lines
2260 bytes
2260 bytes
>Leroy H <lh@somewhere.net>wrote: >>On Fri, 16 Oct 2026 11:44:54 -0400, Chris Ahlstrom wrote: > >> >> For C++, Boost.Decimal. >> > >Some people don't use C++. I would hope that most would not. > >It is recommended, and even required in some countries, that all >financial software be written using decimal FP. > >But once libdfp drops out then GNU/Linux C programmers will be >stuck. > Well C++ is a crime against humanity 'operator overloading...' crap bloated crap. But maybe you can call 'wcalc' from the C code, it supports stdin - stdout raspberrypi: ~ # wcalc -EE Enter an expression to evaluate, q to quit, or ? for help: -> 1/pi = 0.318310 -> q raspberrypi: ~ # echo "1/pi" | wcalc = 0.31831 raspberrypi: ~ # echo "1/pi" | wcalc -EE = 0.318310 You can just do decimal in C Use type double if you are worried about microcents. I have written financial software in C. What is the problem?
Re: Back To CS Basics. Fuck AI
Author: Leroy H
Date: Fri, 16 Oct 2026 17:56
Date: Fri, 16 Oct 2026 17:56
39 lines
2357 bytes
2357 bytes
On Fri, 16 Oct 2026 17:10:18 GMT, Jan Panteltje wrote: > > Well C++ is a crime against humanity > 'operator overloading...' crap bloated crap. > Who would ever disagree? > > You can just do decimal in C > Use type double if you are worried about microcents. > > I have written financial software in C. > What is the problem? > That depends on the scale. For most situations, the currency amounts are enough that the C double type, with 16 decimal digits of precision, can handle the simple processing without error. (C also has a 128-bit long double type but ordinary processors have no hardware for this type. On GNU/Linux the long double is usually defined as 80-bits.) But for large currency amounts and more complex processing, 16 decimal digits may not be enough. That's why decimal floating point is recommended or even required by law. What is needed is HARDWARE decimal FP. IBM has always had decimal FP hardware in its mainframes and it also has decimal FP hardware in its Power PC processors. (Only large institutions could afford such hardware.) Intel/AMD will likely never have DFP hardware. They will keep on adding special AI hardware but never DFP hardware.
Re: Back To CS Basics. Fuck AI
Author: Charlie Gibbs
Date: Fri, 16 Oct 2026 18:10
Date: Fri, 16 Oct 2026 18:10
39 lines
2564 bytes
2564 bytes
On 2026-10-16, Leroy H <lh@somewhere.net> wrote: > On Fri, 16 Oct 2026 17:10:18 GMT, Jan Panteltje wrote: > >> I have written financial software in C. >> What is the problem? > > That depends on the scale. > > For most situations, the currency amounts are enough that the > C double type, with 16 decimal digits of precision, can handle > the simple processing without error. Now that 64-bit ints are available, you could use them in many situations. > (C also has a 128-bit long double type but ordinary processors > have no hardware for this type. On GNU/Linux the long double > is usually defined as 80-bits.) > > But for large currency amounts and more complex processing, > 16 decimal digits may not be enough. That's why decimal floating > point is recommended or even required by law. > > What is needed is HARDWARE decimal FP. IBM has always had decimal > FP hardware in its mainframes FSVO "always". But the original 360 had packed decimal, which can work with up to 31 decimal digits. I wrote a lot of business software in those days; I can count the number of times I've used floating point on the fingers of one hand. For basic accounting, integer pennies are enough. Add a few guard digits if you must. To quote the old commercial, it "takes the worry out of being close". -- /~\ 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: Leroy H
Date: Fri, 16 Oct 2026 18:32
Date: Fri, 16 Oct 2026 18:32
18 lines
1630 bytes
1630 bytes
On Fri, 16 Oct 2026 18:10:06 GMT, Charlie Gibbs wrote: > > Now that 64-bit ints are available, you could use them > in many situations. > For adding or subtracting. But finance calculations often use more complex processing. Interest calculations need floating point and even transcendental math functions. This blogger actually proposes a single numeric type for all digital computation, called Dec64: <https://www.crockford.com/dec64.html>
Re: Back To CS Basics. Fuck AI
Author: Lawrence D’Oliveiro
Date: Fri, 16 Oct 2026 21:50
Date: Fri, 16 Oct 2026 21:50
14 lines
2054 bytes
2054 bytes
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.
Re: Back To CS Basics. Fuck AI
Author: Lawrence D’Oliveiro
Date: Fri, 16 Oct 2026 21:52
Date: Fri, 16 Oct 2026 21:52
13 lines
2115 bytes
2115 bytes
On Fri, 16 Oct 2026 18:10:06 GMT, Charlie Gibbs wrote: > But the original 360 had packed decimal, which can work with up to > 31 decimal digits. I wrote a lot of business software in those days; > I can count the number of times I've used floating point on the > fingers of one hand. For basic accounting, integer pennies are > enough. Add a few guard digits if you must. To quote the old > commercial, it "takes the worry out of being close". Did you ever do calculations involving financial derivatives? Even compound interest requires calculations involving logarithms and exponentials.
Re: Back To CS Basics. Fuck AI
Author: Charlie Gibbs
Date: Fri, 16 Oct 2026 22:19
Date: Fri, 16 Oct 2026 22:19
33 lines
2696 bytes
2696 bytes
On 2026-10-16, Lawrence D’Oliveiro <ldo@nz.invalid> wrote: > On Fri, 16 Oct 2026 18:10:06 GMT, Charlie Gibbs wrote: > >> But the original 360 had packed decimal, which can work with up to >> 31 decimal digits. I wrote a lot of business software in those days; >> I can count the number of times I've used floating point on the >> fingers of one hand. For basic accounting, integer pennies are >> enough. Add a few guard digits if you must. To quote the old >> commercial, it "takes the worry out of being close". > > Did you ever do calculations involving financial derivatives? > > Even compound interest requires calculations involving logarithms and > exponentials. That's why I said I've done few programs that use floating point, not none. I've worked on mortgage amortization routines. But most of my stuff consists of adding up columns of numbers and doing the occasional division with rounding. YMMV. IMHO one of the biggest programming mistakes is using floating point when you can do it faster, more accurately, and more easily with integers. That's not to say that there aren't places where floating point is necessary - but for some of us, that's a small portion of what we have to do. I don't need floating point to express IP addresses, for instance. -- /~\ 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: Nick Charles
Date: Fri, 16 Oct 2026 23:19
Date: Fri, 16 Oct 2026 23:19
28 lines
2378 bytes
2378 bytes
On Oct 16, 2026 at 11:44:54 AM EDT, "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? Yes he is. He is Actually Ignorant.
Re: Back To CS Basics. Fuck AI
Author: Chris Ahlstrom
Date: Fri, 16 Oct 2026 23:35
Date: Fri, 16 Oct 2026 23:35
34 lines
2609 bytes
2609 bytes
Leroy H wrote this screed in ALL-CAPS (fixed): > On Fri, 16 Oct 2026 11:44:54 -0400, Chris Ahlstrom wrote: > >> For C++, Boost.Decimal. > > Some people don't use C++. I would hope that most would not. :-D It is a fine language, capable of the basic operations supported by C and a vast compendium of object-oriented and template features, and a standard library rivaling Python. > It is recommended, and even required in some countries, that all > financial software be written using decimal FP. > > But once libdfp drops out then GNU/Linux C programmers will be > stuck. > >> By the way, are you AI? > > 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. They had news reports and textbooks in prehistory? > Occasionally, however, some misaligned freak will rise above > it all and then we have a burst of progress. -- WARNING: Overconsumption of this product can lead to anal leakage.
Re: Back To CS Basics. Fuck AI
Author: Chris Ahlstrom
Date: Fri, 16 Oct 2026 23:36
Date: Fri, 16 Oct 2026 23:36
26 lines
2339 bytes
2339 bytes
Jan Panteltje wrote this screed in ALL-CAPS (fixed): >>Leroy H <lh@somewhere.net>wrote: >>>On Fri, 16 Oct 2026 11:44:54 -0400, Chris Ahlstrom wrote: >> >>> For C++, Boost.Decimal. >> >>Some people don't use C++. I would hope that most would not. >> >>It is recommended, and even required in some countries, that all >>financial software be written using decimal FP. >> >>But once libdfp drops out then GNU/Linux C programmers will be >>stuck. > > Well C++ is a crime against humanity > 'operator overloading...' crap bloated crap. :-D It's my favorite language, by far. -- "MacDonald has the gift on compressing the largest amount of words into the smallest amount of thoughts." -- Winston Churchill
Re: Back To CS Basics. Fuck AI
Author: Chris Ahlstrom
Date: Fri, 16 Oct 2026 23:39
Date: Fri, 16 Oct 2026 23:39
22 lines
2403 bytes
2403 bytes
Lawrence D’Oliveiro wrote this screed in ALL-CAPS (fixed): > 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. C++ overly complicated? Nah. > Python, on the other hand, includes operator overloading, yet is still > only a small fraction of the complexity of either Java or C++. Prove it. -- BOFH excuse #404: Sysadmin accidentally destroyed pager with a large hammer.
Re: Back To CS Basics. Fuck AI
Author: Lawrence D’Oliveiro
Date: Sat, 17 Oct 2026 02:28
Date: Sat, 17 Oct 2026 02:28
15 lines
2205 bytes
2205 bytes
On Fri, 16 Oct 2026 22:19:37 GMT, Charlie Gibbs wrote: > IMHO one of the biggest programming mistakes is using floating point > when you can do it faster, more accurately, and more easily with > integers. Some languages offer direct support for “fixed-point” formats, basically integers with a fixed scale factor, so you can do calculations that keep a fractional part. From what I gather, they tend to be difficult to use properly. The problem seems to be keeping calculations within the permissible dynamic range, to avoid overflow and underflow. This is why floating-point tends to be far more popular.
Re: Back To CS Basics. Fuck AI
Author: Lawrence D’Oliveiro
Date: Sat, 17 Oct 2026 02:29
Date: Sat, 17 Oct 2026 02:29
6 lines
1538 bytes
1538 bytes
On Fri, 16 Oct 2026 23:19:38 +0000, Nick Charles wrote: > Yes he is. He is Actually Ignorant. Still think Apple’s phone and tablet products are running “Unix”, are you?
Re: Back To CS Basics. Fuck AI
Author: c186282
Date: Sat, 17 Oct 2026 05:52
Date: Sat, 17 Oct 2026 05:52
25 lines
2975 bytes
2975 bytes
On 10/16/26 22:28, Lawrence D’Oliveiro wrote: > On Fri, 16 Oct 2026 22:19:37 GMT, Charlie Gibbs wrote: > >> IMHO one of the biggest programming mistakes is using floating point >> when you can do it faster, more accurately, and more easily with >> integers. > > Some languages offer direct support for “fixed-point” formats, > basically integers with a fixed scale factor, so you can do > calculations that keep a fractional part. > > From what I gather, they tend to be difficult to use properly. The > problem seems to be keeping calculations within the permissible > dynamic range, to avoid overflow and underflow. > > This is why floating-point tends to be far more popular. "Fuzzy Logic" typically uses floats for everything ... which was a big drain on smaller boards and such. 16 or even 32 bit integers can fill in very nicely for any sane application. DID do an application which employed some 'fuzzy' on an Arduino ... floats ... NO NO NO !!!
Re: Back To CS Basics. Fuck AI
Author: c186282
Date: Sat, 17 Oct 2026 05:54
Date: Sat, 17 Oct 2026 05:54
13 lines
2109 bytes
2109 bytes
On 10/16/26 22:29, Lawrence D’Oliveiro wrote: > On Fri, 16 Oct 2026 23:19:38 +0000, Nick Charles wrote: > >> Yes he is. He is Actually Ignorant. > > Still think Apple’s phone and tablet products are running “Unix”, are > you? Technically, they are ... but it's so heavily modified you really can't call it "Unix" anymore. "SteveIX" ??? :-)
Re: Back To CS Basics. Fuck AI
Author: Jan Panteltje
Date: Sat, 17 Oct 2026 07:20
Date: Sat, 17 Oct 2026 07:20
35 lines
2823 bytes
2823 bytes
>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 Never needed it for the things I do. Also it seems to be changing all the time? Most code I write is in C or in asm for Microchips. asm is extremely powerful understand the hardware!!! 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. Now they have nothing to show but driving around the block (earth orbit) with all that computing power.
Re: Back To CS Basics. Fuck AI
Author: Lawrence D’Oliveiro
Date: Sat, 17 Oct 2026 07:43
Date: Sat, 17 Oct 2026 07:43
18 lines
2118 bytes
2118 bytes
On Sat, 17 Oct 2026 07:20:49 GMT, Jan Panteltje wrote: > I never got much into Python > Never needed it for the things I do. > Also it seems to be changing all the time? New features appear every year. > But I come from a hardware background, in the sixties there were no > 'computers' yet they did a manned Moon landing and return. Of course they had “computers” -- several giant IBM mainframes at Mission Control. Also every engineer had their trusty slide rule handy. There were 4 computers on the Apollo spacecraft -- one to control the Saturn rocket, one in the Command Module, and 2 (1 for backup) on the Lunar Module.
Re: Back To CS Basics. Fuck AI
Author: The Natural Philosopher
Date: Sat, 17 Oct 2026 08:11
Date: Sat, 17 Oct 2026 08:11
24 lines
2552 bytes
2552 bytes
On 16/10/2026 23:19, Charlie Gibbs wrote: > IMHO one of the biggest programming mistakes is using floating > point when you can do it faster, more accurately, and more > easily with integers. That's not to say that there aren't > places where floating point is necessary - but for some of > us, that's a small portion of what we have to do. I don't > need floating point to express IP addresses, for instance. You may think that, but the potential for errors is huge. Audio encoding is typically 16 bit integer, but if you are doing serious processing there will be many adds subtracts and multiplies. Its way easier to do all that in FP and then round up to the nearest integer for the final output, than to constantly have to rescae to maintain acceptable precision -- Outside of a dog, a book is a man's best friend. Inside of a dog it's too dark to read. Groucho Marx
Re: Back To CS Basics. Fuck AI
Author: The Natural Philosopher
Date: Sat, 17 Oct 2026 08:18
Date: Sat, 17 Oct 2026 08:18
33 lines
2559 bytes
2559 bytes
On 17/10/2026 00:35, Chris Ahlstrom wrote: > Leroy H wrote this screed in ALL-CAPS (fixed): >> 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. > > They had news reports and textbooks in prehistory? > Yes. And they were carried by bards As songs and sagas and myths The Bible was a written down record of some of them Lights in the sky, great floods, cities gone in a flash. Tsunamis causing the sea to retreat. Evidence exists for all of these. Just not the god Yahweh. HE stared out as a minor war god. Somewhere along the line monotheism looked to be advisable, and he got the job The sling is well known to be a devastating range weapon when faced with an opponent whose armour is not 100%, For example. A fact worth passing along in a neat little morality tale -- All political activity makes complete sense once the proposition that all government is basically a self-legalising protection racket, is fully understood.
Re: Back To CS Basics. Fuck AI
Author: Stéphane CARPENTIER
Date: Sat, 17 Oct 2026 08:58
Date: Sat, 17 Oct 2026 08:58
12 lines
1370 bytes
1370 bytes
Le 16-10-2026, Chris Ahlstrom <OFeem1987@teleworm.us> a écrit : > Leroy H wrote this screed in ALL-CAPS (fixed): > [.../SNIP/...] > > By the way, are you AI? No, he's too limited for that. A modern AI would be far better in its answers. -- Si vous avez du temps à perdre : https://scarpet42.gitlab.io
Re: Back To CS Basics. Fuck AI
Author: Stéphane CARPENTIER
Date: Sat, 17 Oct 2026 09:43
Date: Sat, 17 Oct 2026 09:43
56 lines
3587 bytes
3587 bytes
Le 16-10-2026, Chris Ahlstrom <OFeem1987@teleworm.us> a écrit :
> Lawrence D’Oliveiro wrote this screed in ALL-CAPS (fixed):
>
>> 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.
>
> C++ overly complicated? Nah.
It's so awful it made its creator declare: "There are only two kinds of
languages: the ones people complain about and the ones nobody uses."
If LISP has been able to include oriented object programming nicely,
adding oriented object programming in C without breaking compatibility
didn't worked that well.
>> Python, on the other hand, includes operator overloading, yet is still
>> only a small fraction of the complexity of either Java or C++.
>
> Prove it.
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.
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.
Or you want to see what's in some variables, so you print it with
print(myvariable)
When you start to have too many variables, you want to put the name of
the variable in front of it to increase its visibility, so you
print("myvariable: " + myvariable)
but that doesn't work because myvariable is not a string. So you have to
print("myvariable: " + str(myvariable))
But now you have the description of myvariable (or something like that:
I discovered it a long time ago, my memory isn't clear about it), not
its content, so you have to handle it differently (about that, I'm sure).
And I'm not speaking about the dependencies. Each version breaks
everything so well that now some distros don't let you install libraries
with pip if you are not in a virtual environment.
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.
--
Si vous avez du temps Ă perdre :
https://scarpet42.gitlab.io
Re: Back To CS Basics. Fuck AI
Author: The Natural Philosopher
Date: Sat, 17 Oct 2026 10:25
Date: Sat, 17 Oct 2026 10:25
17 lines
1852 bytes
1852 bytes
On 17/10/2026 09:58, Stéphane CARPENTIER wrote: > Le 16-10-2026, Chris Ahlstrom <OFeem1987@teleworm.us> a écrit : >> Leroy H wrote this screed in ALL-CAPS (fixed): >> [.../SNIP/...] >> >> By the way, are you AI? > > No, he's too limited for that. A modern AI would be far better in its > answers. > Lol! -- In theory, there is no difference between theory and practice. In practice, there is. -- Yogi Berra
Re: Back To CS Basics. Fuck AI
Author: Chris Ahlstrom
Date: Sat, 17 Oct 2026 10:32
Date: Sat, 17 Oct 2026 10:32
39 lines
2997 bytes
2997 bytes
The Natural Philosopher wrote this screed in ALL-CAPS (fixed): > On 17/10/2026 00:35, Chris Ahlstrom wrote: >> Leroy H wrote this screed in ALL-CAPS (fixed): > >>> 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. >> >> They had news reports and textbooks in prehistory? >> > Yes. And they were carried by bards I thought it was promulgated by voice and memory.... > As songs and sagas and myths > > The Bible was a written down record of some of them That's not prehistory, is it? > Lights in the sky, great floods, cities gone in a flash. Tsunamis > causing the sea to retreat. Evidence exists for all of these. Just not > the god Yahweh. HE stared out as a minor war god. Somewhere along the > line monotheism looked to be advisable, and he got the job > > The sling is well known to be a devastating range weapon when faced with > an opponent whose armour is not 100%, For example. A fact worth passing > along in a neat little morality tale I remember being amazed at how far a slingshot could sling a marble. (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.) -- Beauty seldom recommends one woman to another.
Re: Back To CS Basics. Fuck AI
Author: The Natural Philosopher
Date: Sat, 17 Oct 2026 10:55
Date: Sat, 17 Oct 2026 10:55
58 lines
3453 bytes
3453 bytes
On 17/10/2026 11:32, Chris Ahlstrom wrote: > The Natural Philosopher wrote this screed in ALL-CAPS (fixed): > >> On 17/10/2026 00:35, Chris Ahlstrom wrote: >>> Leroy H wrote this screed in ALL-CAPS (fixed): >> >>>> 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. >>> >>> They had news reports and textbooks in prehistory? >>> >> Yes. And they were carried by bards > > I thought it was promulgated by voice and memory.... > That's what bards were. Voices with memory. and mobility >> As songs and sagas and myths >> >> The Bible was a written down record of some of them > > That's not prehistory, is it? > Depends on your definition, But the oral tradition - stories round the fire at night - probably goes back to the dawn of man >> Lights in the sky, great floods, cities gone in a flash. Tsunamis >> causing the sea to retreat. Evidence exists for all of these. Just not >> the god Yahweh. HE stared out as a minor war god. Somewhere along the >> line monotheism looked to be advisable, and he got the job >> >> The sling is well known to be a devastating range weapon when faced with >> an opponent whose armour is not 100%, For example. A fact worth passing >> along in a neat little morality tale > > I remember being amazed at how far a slingshot could sling a > marble. > We reinvented the woomera. To sling stones at the bull's testicles Horrid little kids we were really. But we did know what bullshit was allright > (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.) > Hmmm -- “Politics is the art of looking for trouble, finding it everywhere, diagnosing it incorrectly and applying the wrong remedies.” ― Groucho Marx
Re: Back To CS Basics. Fuck AI
Author: Stéphane CARPENTIER
Date: Sat, 17 Oct 2026 12:12
Date: Sat, 17 Oct 2026 12:12
46 lines
2933 bytes
2933 bytes
Le 17-10-2026, Chris Ahlstrom <OFeem1987@teleworm.us> a écrit : > The Natural Philosopher wrote this screed in ALL-CAPS (fixed): > >> On 17/10/2026 00:35, Chris Ahlstrom wrote: >>> Leroy H wrote this screed in ALL-CAPS (fixed): >> >>>> 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. >>> >>> They had news reports and textbooks in prehistory? >>> >> Yes. No. >> And they were carried by bards Bards carried stories. It was important and it reminds people of what was done long time ago. It wasn't news report. But I'm not surprised you can't differentiate between what happened yesterday and what people did a long time ago. It wasn't textbooks. But I'm not surprised you can't differentiate between the things you need to learn to work everyday and the things you need to remember from past action which can explain why things are what they are today. > I thought it was promulgated by voice and memory.... Ultimately, it was promulgated by people. But what your mother was teaching you is different to what professors were teaching you, which is different to what reporters are telling you. I know you can tell the difference but you are answering a message written by someone who can't. >> As songs and sagas and myths >> >> The Bible was a written down record of some of them > > That's not prehistory, is it? Of course it's not. It's the definition of history. But you are answering The Natural Philosopher who can only close his eyes to what goes beyond his preconceived expectations. -- Si vous avez du temps à perdre : https://scarpet42.gitlab.io
Re: Back To CS Basics. Fuck AI
Author: Jan Panteltje
Date: Sat, 17 Oct 2026 12:17
Date: Sat, 17 Oct 2026 12:17
31 lines
2462 bytes
2462 bytes
>Lawrence =?iso-8859-13?q?D=FFOliveiro?= <ldo@nz.invalid>wrote: >>On Sat, 17 Oct 2026 07:20:49 GMT, Jan Panteltje wrote: > >> I never got much into Python >> Never needed it for the things I do. >> Also it seems to be changing all the time? > >New features appear every year. > >> But I come from a hardware background, in the sixties there were no >> 'computers' yet they did a manned Moon landing and return. > >Of course they had “computers” -- several giant IBM mainframes at >Mission Control. Also every engineer had their trusty slide rule >handy. > >There were 4 computers on the Apollo spacecraft -- one to control the >Saturn rocket, one in the Command Module, and 2 (1 for backup) on the >Lunar Module. You are right, real computers, I just read https://en.wikipedia.org/wiki/Apollo_Guidance_Computer Not much memory compared to today's ... I still have a slide rule somewhere... And old calculators.. I remember playing moonlanding game on a Commodore PET in the seventies? :-)
Re: Back To CS Basics. Fuck AI
Author: The Natural Philosopher
Date: Sat, 17 Oct 2026 12:43
Date: Sat, 17 Oct 2026 12:43
13 lines
1952 bytes
1952 bytes
On 17/10/2026 13:12, Stéphane CARPENTIER wrote: > But you are > answering The Natural Philosopher who can only close his eyes to what > goes beyond his preconceived expectations. Ah. Another one who spends his time staring into a mirror and thinking he is seeing other people -- WOKE is an acronym... Without Originality, Knowledge or Education.
Re: Back To CS Basics. Fuck AI
Author: Richard Kettlewell
Date: Sat, 17 Oct 2026 14:02
Date: Sat, 17 Oct 2026 14:02
62 lines
4014 bytes
4014 bytes
Stéphane CARPENTIER <sc@fiat-linux.fr> writes:
> 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.
>
> 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'
Historically it was not a statically typed language, i.e. type errors
only arose at runtime.
Today even that is not really true, in the sense that if you want it to
be statically typed then you can have that:
$ cat -n junk/t.py
1 #!/usr/bin/python3
2 def f(a: int, b: int) -> int:
3 return a+b
4 print(f(0, 0))
5 print(f(0, ""))
$ mypy junk/t.py
junk/t.py:5: error: Argument 2 to "f" has incompatible type "str"; expected "int" [arg-type]
Found 1 error in 1 file (checked 1 source file)
> Or you want to see what's in some variables, so you print it with
> print(myvariable)
> When you start to have too many variables, you want to put the name of
> the variable in front of it to increase its visibility, so you
> print("myvariable: " + myvariable)
> but that doesn't work because myvariable is not a string. So you have to
> print("myvariable: " + str(myvariable))
> But now you have the description of myvariable (or something like that:
> I discovered it a long time ago, my memory isn't clear about it), not
> its content, so you have to handle it differently (about that, I'm sure).
It sounds like you just haven’t learned Python.
> And I'm not speaking about the dependencies. Each version breaks
> everything so well that now some distros don't let you install
> libraries with pip if you are not in a virtual environment.
>
> 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.
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.
--
https://www.greenend.org.uk/rjk/
Re: Back To CS Basics. Fuck AI
Author: The Natural Philosopher
Date: Sat, 17 Oct 2026 14:06
Date: Sat, 17 Oct 2026 14:06
14 lines
2109 bytes
2109 bytes
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 -- "It is an established fact to 97% confidence limits that left wing conspirators see right wing conspiracies everywhere"
Re: Back To CS Basics. Fuck AI
Author: John Bokma
Date: Sat, 17 Oct 2026 15:36
Date: Sat, 17 Oct 2026 15:36
32 lines
2486 bytes
2486 bytes
On 17/10/2026 16:02, Richard Kettlewell wrote: [..] > 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' On the other hand: ❯ 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. >>> 0+True 1 >>> type(True) <class 'bool'> >>> type(0) <class 'int'> >>> ;-) -- 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: Richard Kettlewell
Date: Sat, 17 Oct 2026 16:12
Date: Sat, 17 Oct 2026 16:12
40 lines
2714 bytes
2714 bytes
John Bokma <contact@johnbokma.com> writes:
> Richard Kettlewell wrote:
>> 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'
>
> On the other hand:
>
> ❯ 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.
>>>> 0+True
> 1
>>>> type(True)
> <class 'bool'>
>>>> type(0)
> <class 'int'>
>>>>
>
> ;-)
>>> issubclass(bool, int)
True
l-)
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.
--
https://www.greenend.org.uk/rjk/
Re: Back To CS Basics. Fuck AI
Author: Richard Kettlewell
Date: Sat, 17 Oct 2026 16:15
Date: Sat, 17 Oct 2026 16:15
19 lines
2158 bytes
2158 bytes
The Natural Philosopher <tnp@invalid.invalid> writes: > 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! It is very widely used - most (possibly all?) candidates I’ve interviewed in the last ten years have at least some background with it (albeit quite often relatively thin experience). > I just am too old to become proficient in another language, I am still > battling JavaScript Nod. -- https://www.greenend.org.uk/rjk/
Re: Back To CS Basics. Fuck AI
Author: Stéphane CARPENTIER
Date: Sat, 17 Oct 2026 16:46
Date: Sat, 17 Oct 2026 16:46
63 lines
4120 bytes
4120 bytes
Le 17-10-2026, Richard Kettlewell <invalid@invalid.invalid> a écrit :
> Stéphane CARPENTIER <sc@fiat-linux.fr> writes:
>> 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.
>>
>> 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.
>> Or you want to see what's in some variables, so you print it with
>> print(myvariable)
>> When you start to have too many variables, you want to put the name of
>> the variable in front of it to increase its visibility, so you
>> print("myvariable: " + myvariable)
>> but that doesn't work because myvariable is not a string. So you have to
>> print("myvariable: " + str(myvariable))
>> But now you have the description of myvariable (or something like that:
>> I discovered it a long time ago, my memory isn't clear about it), not
>> its content, so you have to handle it differently (about that, I'm sure).
>
> It sounds like you just haven’t learned Python.
You are right, I haven't learned python. I'm not a programmer. I'm using
programs written by others and sometimes, I have to change them. I don't
have time to learn a programming language when I need to fix a program.
I have to make it run as expected and move on once I get the expected
result.
With python, that looks easy and when I fix something, it breaks
something else for reasons I don't understand. Because the issue was
already there but it wasn't important, until it started to be important
after I changed something else.
And so, for me it always looks like in python things work in a way until
they stop working for unobvious reasons.
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.
--
Si vous avez du temps Ă perdre :
https://scarpet42.gitlab.io
Re: Back To CS Basics. Fuck AI
Author: John Bokma
Date: Sat, 17 Oct 2026 17:01
Date: Sat, 17 Oct 2026 17:01
21 lines
2447 bytes
2447 bytes
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. > 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. -- 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: Sat, 17 Oct 2026 17:08
Date: Sat, 17 Oct 2026 17:08
66 lines
3892 bytes
3892 bytes
On 17/10/2026 19:01, John Bokma wrote:
> 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.
>
>> 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.
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.
Why do I have to declare dictionaries but can use integers and strings
without declaring their type
Thought for 2s
In Python, you don’t have to declare a dictionary’s type. Python is
dynamically typed: a variable name refers to an object, and the object
carries its type.
count = 3 # creates an int object
message = "hello" # creates a str object
settings = {} # creates a dict object
Integers and strings have compact literal syntax (Â 3Â , Â "hello"Â );
dictionaries use  {} or key-value pairs, such as  {"theme": "dark"} .
That’s creating a dictionary, not declaring its type.
Type annotations are optional and mainly help readers and
static-analysis tools:
settings: dict[str, str] = {}
Can't recommend Copilot enough.
--
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: Leroy H
Date: Sat, 17 Oct 2026 17:26
Date: Sat, 17 Oct 2026 17:26
42 lines
2525 bytes
2525 bytes
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/>
Re: Back To CS Basics. Fuck AI
Author: John Bokma
Date: Sat, 17 Oct 2026 17:47
Date: Sat, 17 Oct 2026 17:47
26 lines
2504 bytes
2504 bytes
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 ;-) -- 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: Charlie Gibbs
Date: Sat, 17 Oct 2026 18:33
Date: Sat, 17 Oct 2026 18:33
17 lines
1873 bytes
1873 bytes
On 2026-10-17, Stéphane CARPENTIER <sc@fiat-linux.fr> wrote: > 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. 'Twas ever thus. A little point-and-shoot camera makes it easy to grab quick snapshots under good conditions; an SLR with lots of adjustments is more difficult to use, but can give excellent results under conditions under which the point-and-shoot fails utterly. One size does not fit all. -- /~\ 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
21 lines
1974 bytes
1974 bytes
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. -- /~\ 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:45
Date: Sat, 17 Oct 2026 18:45
109 lines
3199 bytes
3199 bytes
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");
}
Seasoned pro
------------
#include <stream.h>
const int MAXLEN = 80;
class outstring;
class outstring {
private:
int size;
char str[MAXLEN];
public:
outstring() { size=0; }
~outstring() {size=0;}
void print();
void assign(char *chrs);
};
void outstring::print() {
int i;
for (i=0 ; i< size ; i++)
cout << str[i];
cout << "\n";
}
void outstring::assign(char *chrs) {
int i;
for (i=0; chrs[i] != '\0';i++)
str[i] = chrs[i];
size=i;
}
main (int argc, char **argv) {
outstring string;
string.assign("Hello World!");
string.print();
}
Manager
------
/* George, I need a program to print a string
"Hello World!" */
--
Edited by Brad Templeton. MAIL your jokes (jokes ONLY) to funny@looking.ON.CA
Attribute the joke's source if at all possible. A Daemon will auto-reply.
If you don't need a reply, submit to rhf@looking.on.ca instead.
Re: Back To CS Basics. Fuck AI
Author: Richard Kettlewell
Date: Sat, 17 Oct 2026 19:29
Date: Sat, 17 Oct 2026 19:29
41 lines
3053 bytes
3053 bytes
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'>
> 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.
--
https://www.greenend.org.uk/rjk/
Re: Back To CS Basics. Fuck AI
Author: rbowman
Date: Sat, 17 Oct 2026 19:42
Date: Sat, 17 Oct 2026 19:42
23 lines
2151 bytes
2151 bytes
On 17 Oct 2026 09:43:01 GMT, Stéphane CARPENTIER wrote: > Le 16-10-2026, Chris Ahlstrom <OFeem1987@teleworm.us> a écrit : >> Lawrence D’Oliveiro wrote this screed in ALL-CAPS (fixed): >> >>> 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. >> >> C++ overly complicated? Nah. > > It's so awful it made its creator declare: "There are only two kinds of > languages: the ones people complain about and the ones nobody uses." I had the first edition of Stroustrup's book. It was much closer to C With Classes than what it's grown into. The language wasn't quite ready for prime time, hence the STL that grew into the Standard Library and all the Microsoft additions as they tried to make it useful for their purposes.
Re: Back To CS Basics. Fuck AI
Author: rbowman
Date: Sat, 17 Oct 2026 19:51
Date: Sat, 17 Oct 2026 19:51
21 lines
2163 bytes
2163 bytes
On Sat, 17 Oct 2026 15:06:56 +0100, The Natural Philosopher 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 Much of my use these days is MicroPython, although I used it last week to convert a gnarly node list output from a LoRa board to GeoJSON. My first impulse was to use C but I'm trying to improve my general Python skills. The JavaScript part came later when I used the leaflet.js library to create a map to display the GeoJSON. Unfortunately leaflet traditionally used tiles from the OSM server. In the last month or so they've started enforcing an obscure header in the request so the tiles you get are basically '403 FOAD'
Re: Back To CS Basics. Fuck AI
Author: rbowman
Date: Sat, 17 Oct 2026 19:55
Date: Sat, 17 Oct 2026 19:55
21 lines
2106 bytes
2106 bytes
On Sat, 17 Oct 2026 17:15:34 +0100, Richard Kettlewell wrote: > The Natural Philosopher <tnp@invalid.invalid> writes: >> 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! > > It is very widely used - most (possibly all?) candidates I’ve > interviewed in the last ten years have at least some background with it > (albeit quite often relatively thin experience). Much of my use was with Esri after they went to Python from VBA. The downside was Esri clung to 2.7 until their 11.0 release. Installing ArcDesktop also installed Python 2.7 with their modules. https://www.esri.com/en-us/arcgis/products/arcgis-python-libraries/ libraries/arcpy
Re: Back To CS Basics. Fuck AI
Author: rbowman
Date: Sat, 17 Oct 2026 20:05
Date: Sat, 17 Oct 2026 20:05
13 lines
1880 bytes
1880 bytes
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.
Re: Back To CS Basics. Fuck AI
Author: rbowman
Date: Sat, 17 Oct 2026 20:14
Date: Sat, 17 Oct 2026 20:14
16 lines
1633 bytes
1633 bytes
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.
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
1577 bytes
1577 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
2173 bytes
2173 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.
Page 1 of 2 • 89 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