Article View: comp.os.linux.advocacy
Article #908Re: Back To CS Basics. Fuck AI
From: 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/
Technical Details
Message-ID:
<wwv33u4o26s.fsf@LkoBDZeT.terraraq.uk>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!nntp.terraraq.uk!.POSTED.tunnel.sfere.anjou.terraraq.uk!not-for-mailReferences:
<18dee4b6cab427fa$865$2574533$802601b3@news.usenetexpress.com> <11atgth$3e59h$1@dont-email.me> <18df0ea174d534e0$1613$2650862$802601b3@news.usenetexpress.com> <11atlpr$3g55c$1@dont-email.me> <11au66n$3m5co$6@dont-email.me> <11aucit$3o8ih$3@dont-email.me> <6ad34325$0$3147$426a74cc@news.free.fr>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!nntp.terraraq.uk!.POSTED.tunnel.sfere.anjou.terraraq.uk!not-for-mail
From: Richard Kettlewell <invalid@invalid.invalid>
Newsgroups: comp.os.linux.misc,comp.os.linux.advocacy
Subject: Re: Back To CS Basics. Fuck AI
Date: Sat, 17 Oct 2026 15:02:19 +0100
Organization: terraraq NNTP server
Message-ID: <wwv33u4o26s.fsf@LkoBDZeT.terraraq.uk>
References: <18dee4b6cab427fa$865$2574533$802601b3@news.usenetexpress.com>
<11atgth$3e59h$1@dont-email.me>
<18df0ea174d534e0$1613$2650862$802601b3@news.usenetexpress.com>
<11atlpr$3g55c$1@dont-email.me> <11au66n$3m5co$6@dont-email.me>
<11aucit$3o8ih$3@dont-email.me>
<6ad34325$0$3147$426a74cc@news.free.fr>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Info: innmantic.terraraq.uk; posting-host="tunnel.sfere.anjou.terraraq.uk:172.17.207.6";
logging-data="39858"; mail-complaints-to="usenet@innmantic.terraraq.uk"
User-Agent: Gnus/5.13 (Gnus v5.13)
Cancel-Lock: sha1:bCzZoa2lg6KBGN51oAu7pjFptWs=
X-Face: h[Hh-7npe<<b4/eW[]sat,I3O`t8A`(ej.H!F4\8|;ih)`7{@:A~/j1}gTt4e7-n*F?.Rl^
F<\{jehn7.KrO{!7=:(@J~]<.[{>v9!1<qZY,{EJxg6?Er4Y7Ng2\Ft>Z&W?r\c.!4DXH5PWpga"ha
+r0NzP?vnz:e/knOY)PI-
X-Boydie: NO