On 10/17/26 03:20, Jan Panteltje wrote:
>> Lawrence =?iso-8859-13?q?D=FFOliveiro?= <l…@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 :-)