Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

"It is hard to overstate the debt that we owe to men and women of genius." -- Robert G. Ingersoll


computers / comp.os.linux.advocacy / Why Python When There Is Perl?

SubjectAuthor
* Why Python When There Is Perl?Lester Thorpe
+* Re: Why Python When There Is Perl?Lawrence D'Oliveiro
|+* Re: Why Python When There Is Perl?rbowman
||`- Re: Why Python When There Is Perl?Lawrence D'Oliveiro
|`* Re: Why Python When There Is Perl?Nuxxie
| +* Re: Why Python When There Is Perl?Chris Ahlstrom
| |`- Re: Why Python When There Is Perl?rbowman
| `* Re: Why Python When There Is Perl?rbowman
|  `* Re: Why Python When There Is Perl?Lawrence D'Oliveiro
|   `* Re: Why Python When There Is Perl?Lawrence D'Oliveiro
|    `- Re: Why Python When There Is Perl?rbowman
`* Re: Why Python When There Is Perl?Physfitfreak
 +- Re: Why Python When There Is Perl?rbowman
 +* Re: Why Python When There Is Perl?DFS
 |`* Re: Why Python When There Is Perl?rbowman
 | `* Re: Why Python When There Is Perl?DFS
 |  `- Re: Why Python When There Is Perl?rbowman
 +* Re: Why Python When There Is Perl?Nuxxie
 |+* Re: Why Python When There Is Perl?Physfitfreak
 ||+- Re: Why Python When There Is Perl?DFS
 ||+- Re: Why Python When There Is Perl?DFS
 ||`* Re: Why Python When There Is Perl?Farley Flud
 || +- Re: Why Python When There Is Perl?Lawrence D'Oliveiro
 || +* Re: Why Python When There Is Perl?Physfitfreak
 || |+* Re: Why Python When There Is Perl?Lawrence D'Oliveiro
 || ||`- Re: Why Python When There Is Perl?Physfitfreak
 || |+* Re: Why Python When There Is Perl?Farley Flud
 || ||`* Re: Why Python When There Is Perl?DFS
 || || +* Re: Why Python When There Is Perl?rbowman
 || || |`* Re: Why Python When There Is Perl?DFS
 || || | `* Re: Why Python When There Is Perl?rbowman
 || || |  `* Re: Why Python When There Is Perl?Lawrence D'Oliveiro
 || || |   `* Re: Why Python When There Is Perl?rbowman
 || || |    `* Re: Why Python When There Is Perl?Lawrence D'Oliveiro
 || || |     `- Re: Why Python When There Is Perl?rbowman
 || || `* Re: Why Python When There Is Perl?Stéphane CARPENTIER
 || ||  `* Re: Why Python When There Is Perl?DFS
 || ||   `- Re: Why Python When There Is Perl?rbowman
 || |+* Re: Why Python When There Is Perl?Farley Flud
 || ||`* Re: Why Python When There Is Perl?Physfitfreak
 || || +* Re: Why Python When There Is Perl?Physfitfreak
 || || |`* Re: Why Python When There Is Perl?Physfitfreak
 || || | `* Re: Why Python When There Is Perl?Lawrence D'Oliveiro
 || || |  `* Re: Why Python When There Is Perl?Physfitfreak
 || || |   +- Re: Why Python When There Is Perl?Physfitfreak
 || || |   `- Re: Why Python When There Is Perl?rbowman
 || || +* Re: Why Python When There Is Perl?Farley Flud
 || || |+- Re: Why Python When There Is Perl?DFS
 || || |+* Re: Why Python When There Is Perl?rbowman
 || || ||`* Re: Why Python When There Is Perl?Physfitfreak
 || || || `* Re: Why Python When There Is Perl?rbowman
 || || ||  `* Re: Why Python When There Is Perl?Physfitfreak
 || || ||   +* Re: Why Python When There Is Perl?rbowman
 || || ||   |`* Re: Why Python When There Is Perl?Physfitfreak
 || || ||   | +* Re: Why Python When There Is Perl?Physfitfreak
 || || ||   | |+* Re: Why Python When There Is Perl?Physfitfreak
 || || ||   | ||`* Re: Why Python When There Is Perl?Lawrence D'Oliveiro
 || || ||   | || `* Re: Why Python When There Is Perl?rbowman
 || || ||   | ||  +* Re: Why Python When There Is Perl?Physfitfreak
 || || ||   | ||  |`* Re: Why Python When There Is Perl?rbowman
 || || ||   | ||  | `* Re: Why Python When There Is Perl?Physfitfreak
 || || ||   | ||  |  `- Re: Why Python When There Is Perl?Physfitfreak
 || || ||   | ||  `* Re: Why Python When There Is Perl?Stéphane CARPENTIER
 || || ||   | ||   `- Re: Why Python When There Is Perl?rbowman
 || || ||   | |`* Re: Why Python When There Is Perl?rbowman
 || || ||   | | +* Re: Why Python When There Is Perl?chrisv
 || || ||   | | |`- Re: Why Python When There Is Perl?rbowman
 || || ||   | | +* Re: Why Python When There Is Perl?Chris Ahlstrom
 || || ||   | | |`- Re: Why Python When There Is Perl?rbowman
 || || ||   | | +* Re: Why Python When There Is Perl?Physfitfreak
 || || ||   | | |+* Re: Why Python When There Is Perl?rbowman
 || || ||   | | ||+- Re: Why Python When There Is Perl?Physfitfreak
 || || ||   | | ||`- Re: Why Python When There Is Perl?Chris Ahlstrom
 || || ||   | | |`* Re: Why Python When There Is Perl?Lawrence D'Oliveiro
 || || ||   | | | +- Re: Why Python When There Is Perl?Chris Ahlstrom
 || || ||   | | | `* Re: Why Python When There Is Perl?Physfitfreak
 || || ||   | | |  `* Re: Why Python When There Is Perl?Lawrence D'Oliveiro
 || || ||   | | |   `* Re: Why Python When There Is Perl?Physfitfreak
 || || ||   | | |    `* Re: Why Python When There Is Perl?Lawrence D'Oliveiro
 || || ||   | | |     +* Re: Why Python When There Is Perl?rbowman
 || || ||   | | |     |+* Re: Why Python When There Is Perl?Lawrence D'Oliveiro
 || || ||   | | |     ||`* Re: Why Python When There Is Perl?rbowman
 || || ||   | | |     || +* Re: Why Python When There Is Perl?Lawrence D'Oliveiro
 || || ||   | | |     || |+- Re: Why Python When There Is Perl?Physfitfreak
 || || ||   | | |     || |`- Re: Why Python When There Is Perl?RonB
 || || ||   | | |     || `* Re: Why Python When There Is Perl?Chris Ahlstrom
 || || ||   | | |     ||  `* Re: Why Python When There Is Perl?RonB
 || || ||   | | |     ||   `* Re: Why Python When There Is Perl?Chris Ahlstrom
 || || ||   | | |     ||    +* Re: Why Python When There Is Perl?chrisv
 || || ||   | | |     ||    |+* Re: Why Python When There Is Perl?Chris Ahlstrom
 || || ||   | | |     ||    ||+* Re: Why Python When There Is Perl?rbowman
 || || ||   | | |     ||    |||`- Re: Why Python When There Is Perl?RonB
 || || ||   | | |     ||    ||+- Re: Why Python When There Is Perl?Physfitfreak
 || || ||   | | |     ||    ||`* Re: Why Python When There Is Perl?RonB
 || || ||   | | |     ||    || `* Re: Why Python When There Is Perl?Chris Ahlstrom
 || || ||   | | |     ||    ||  `* Re: Why Python When There Is Perl?RonB
 || || ||   | | |     ||    ||   `* Re: Why Python When There Is Perl?Chris Ahlstrom
 || || ||   | | |     ||    ||    +- Re: Why Python When There Is Perl?Physfitfreak
 || || ||   | | |     ||    ||    `- Re: Why Python When There Is Perl?RonB
 || || ||   | | |     ||    |+- Re: Why Python When There Is Perl?Physfitfreak
 || || ||   | | |     ||    |`- Re: Why Python When There Is Perl?RonB
 || || ||   | | |     ||    +* Re: Why Python When There Is Perl?rbowman
 || || ||   | | |     ||    +* Re: Why Python When There Is Perl?RonB
 || || ||   | | |     ||    `* Re: Why Python When There Is Perl?Lawrence D'Oliveiro
 || || ||   | | |     |+- Re: Why Python When There Is Perl?Chris Ahlstrom
 || || ||   | | |     |`* Re: Why Python When There Is Perl?RonB
 || || ||   | | |     `- Re: Why Python When There Is Perl?Physfitfreak
 || || ||   | | `- Re: Why Python When There Is Perl?Lawrence D'Oliveiro
 || || ||   | `- Re: Why Python When There Is Perl?rbowman
 || || ||   +* Re: Why Python When There Is Perl?Lawrence D'Oliveiro
 || || ||   `- Re: Why Python When There Is Perl?Lawrence D'Oliveiro
 || || |`* Re: Why Python When There Is Perl?Physfitfreak
 || || `- Re: Why Python When There Is Perl?DFS
 || |`* Re: Why Python When There Is Perl?DFS
 || `- Re: Why Python When There Is Perl?Stéphane CARPENTIER
 |+- Re: Why Python When There Is Perl?Lawrence D'Oliveiro
 |+* Re: Why Python When There Is Perl?DFS
 |`- Re: Why Python When There Is Perl?rbowman
 +* Re: Why Python When There Is Perl?Yaxley Peaks
 +* Re: Why Python When There Is Perl?DFS
 `- Re: Why Python When There Is Perl?DFS

Pages:12345678910111213
Why Python When There Is Perl?

<17be420c4f90bfc7$63225$1585792$802601b3@news.usenetexpress.com>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=12216&group=comp.os.linux.advocacy#12216

  copy link   Newsgroups: comp.os.linux.advocacy
From: lt@gnu.rocks (Lester Thorpe)
Subject: Why Python When There Is Perl?
Newsgroups: comp.os.linux.advocacy
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Lines: 31
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!panix!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!feeder.usenetexpress.com!tr2.iad1.usenetexpress.com!news.usenetexpress.com!not-for-mail
Date: Tue, 19 Mar 2024 19:45:29 +0000
Nntp-Posting-Date: Tue, 19 Mar 2024 19:45:29 +0000
X-Received-Bytes: 1272
Organization: UsenetExpress - www.usenetexpress.com
X-Complaints-To: abuse@usenetexpress.com
Message-Id: <17be420c4f90bfc7$63225$1585792$802601b3@news.usenetexpress.com>
 by: Lester Thorpe - Tue, 19 Mar 2024 19:45 UTC

Why does the mal-informed world prefer Python to Perl?

Perl has EVERYTHING that Python can offer (and probably a lot
more). Check out CPAN (www.cpan.org) which offers hundreds
of thousands of Perl modules that can serve any purpose.

I suspect the reason is that Perl is an "imperative" language
while Python is "object oriented."

Object orientation is for fucking programming sissies!

Listen up, you fucking OO assholes. It will all get translated
into imperative machine language in the fucking end. So why
take a fucking gargantuan fucking detour?

The answer is that OO "programmers" are programmers in name
only. They don't know fucking shit about computer science.

Perl is the interpretive language of choice.

Anyone who does not gleefully choose Perl is a brain-starved
idiot.

The case is closed.

Lester Thorpe

Lester has spoken.

Disagree? Your head will be broken.

Re: Why Python When There Is Perl?

<utd3bm$12lm6$2@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=12234&group=comp.os.linux.advocacy#12234

  copy link   Newsgroups: comp.os.linux.advocacy
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ldo@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.os.linux.advocacy
Subject: Re: Why Python When There Is Perl?
Date: Tue, 19 Mar 2024 22:24:54 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 12
Message-ID: <utd3bm$12lm6$2@dont-email.me>
References: <17be420c4f90bfc7$63225$1585792$802601b3@news.usenetexpress.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 19 Mar 2024 22:24:54 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="cf2257effda993e7401c0124f815988b";
logging-data="1136326"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+U16xAO2pZ1KjIfnQ+LQo+"
User-Agent: Pan/0.155 (Kherson; fc5a80b8)
Cancel-Lock: sha1:oj+rKGNMKMmmkqkJU70bcMMfNSg=
 by: Lawrence D'Oliv - Tue, 19 Mar 2024 22:24 UTC

On Tue, 19 Mar 2024 19:45:29 +0000, Lester Thorpe wrote:

> Why does the ... world prefer Python to Perl?

I learned Perl before I learned Python.

With Perl, there was always this feeling of unplumbed depths, subtleties
just beyond my reach.

With Python, everything I did made sense.

It was easy to switch.

Re: Why Python When There Is Perl?

<utd86u$1ipcj$1@solani.org>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=12238&group=comp.os.linux.advocacy#12238

  copy link   Newsgroups: comp.os.linux.advocacy
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!reader5.news.weretis.net!news.solani.org!.POSTED!not-for-mail
From: Physfitfreak@gmail.com (Physfitfreak)
Newsgroups: comp.os.linux.advocacy
Subject: Re: Why Python When There Is Perl?
Date: Tue, 19 Mar 2024 18:47:40 -0500
Message-ID: <utd86u$1ipcj$1@solani.org>
References: <17be420c4f90bfc7$63225$1585792$802601b3@news.usenetexpress.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 19 Mar 2024 23:47:42 -0000 (UTC)
Injection-Info: solani.org;
logging-data="1664403"; mail-complaints-to="abuse@news.solani.org"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:xgFN1+oos4++xe78I0Ju7Nj00os=
In-Reply-To: <17be420c4f90bfc7$63225$1585792$802601b3@news.usenetexpress.com>
Content-Language: en-US
X-Antivirus-Status: Clean
X-Antivirus: Avast (VPS 240319-6, 3/19/2024), Outbound message
X-User-ID: eJwFwQkBACAIBLBKwPHGAZX+EdwMzn5C3Vxtba9HkyGEewAwaq9W0WS2XJ4OU6OiZX8pgGifV3UmODJnPy1dFKY=
 by: Physfitfreak - Tue, 19 Mar 2024 23:47 UTC

On 3/19/2024 2:45 PM, Lester Thorpe wrote:
> Why does the mal-informed world prefer Python to Perl?
>
> Perl has EVERYTHING that Python can offer (and probably a lot
> more). Check out CPAN (www.cpan.org) which offers hundreds
> of thousands of Perl modules that can serve any purpose.
>
> I suspect the reason is that Perl is an "imperative" language
> while Python is "object oriented."
>
> Object orientation is for fucking programming sissies!
>
> Listen up, you fucking OO assholes. It will all get translated
> into imperative machine language in the fucking end. So why
> take a fucking gargantuan fucking detour?
>
> The answer is that OO "programmers" are programmers in name
> only. They don't know fucking shit about computer science.
>
> Perl is the interpretive language of choice.
>
> Anyone who does not gleefully choose Perl is a brain-starved
> idiot.
>
> The case is closed.
>
> Lester Thorpe
>
> Lester has spoken.
>
> Disagree? Your head will be broken.
>

You know, I first gathered my energy to go after the good old C language
to freshen myself up with it, then I turned to assembly language cause
you said so as "a sage advice", then I found out my general questions
would be better answered if I learned hoc, then my general questions
made a turn, and I was left with chances that the best language for me
at the time was the good old C again; then on checking out Go and taking
Ken Thompson's words for it, I let C go and began preparing to go after
Go. And now, you're saying if we don't choose Perl we're brain-starved.

:-)

Then how about C++? I attempted it two times with vigor and thoroughness
and both times HD's went bust and also once (so 3 times in fact) the
laptop couldn't get charged anymore, and I could not transfer the work
to a desktop, so they came to stop.

And these Microsoft / Linux stuff and switches back and forth were
making the water even muddier.

I think, if I had not relied on COLA to provide help on these matters,
by now, I'd be months into fruitful learning of ... probably C++ and
into several exciting programming projects.

This place is wasteful. It is like a drinking parlor. You go there
everyday and drink and joke and curse and argue, but in the background,
it is making you an alcoholic, making you drift.

--
This email has been checked for viruses by Avast antivirus software.
www.avast.com

Re: Why Python When There Is Perl?

<l5uqsfF8sehU1@mid.individual.net>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=12241&group=comp.os.linux.advocacy#12241

  copy link   Newsgroups: comp.os.linux.advocacy
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: bowman@montana.com (rbowman)
Newsgroups: comp.os.linux.advocacy
Subject: Re: Why Python When There Is Perl?
Date: 20 Mar 2024 01:02:07 GMT
Lines: 13
Message-ID: <l5uqsfF8sehU1@mid.individual.net>
References: <17be420c4f90bfc7$63225$1585792$802601b3@news.usenetexpress.com>
<utd86u$1ipcj$1@solani.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: individual.net Zej9sbkRTPA0XbvpwBv7ughRKl7Zy8W9KJyZwvSIjWIj1nGqlU
Cancel-Lock: sha1:Y8wTa0rWlD95FEA9WebWs5XDgvQ= sha256:llZ+ANXliMxB7hdLTGXeytla0BfluV5PWGvTa61BooI=
User-Agent: Pan/0.149 (Bellevue; 4c157ba)
 by: rbowman - Wed, 20 Mar 2024 01:02 UTC

On Tue, 19 Mar 2024 18:47:40 -0500, Physfitfreak wrote:

> This place is wasteful. It is like a drinking parlor. You go there
> everyday and drink and joke and curse and argue, but in the background,
> it is making you an alcoholic, making you drift.

I haven't used Perl in a couple of decades but then I noticed the Q4OS
installation on the eeePC had a current version of Perl as well as nano so
I could conceivably do something to amuse myself with the /dev/sdb SD
card. After a quick on-line brush up I remembered why I don't use Perl.

It isn't all that bad a scripting language but it's open to abuse by those
who prefer cryptic code.

Re: Why Python When There Is Perl?

<l5urgeF8sehU2@mid.individual.net>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=12242&group=comp.os.linux.advocacy#12242

  copy link   Newsgroups: comp.os.linux.advocacy
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: bowman@montana.com (rbowman)
Newsgroups: comp.os.linux.advocacy
Subject: Re: Why Python When There Is Perl?
Date: 20 Mar 2024 01:12:47 GMT
Lines: 11
Message-ID: <l5urgeF8sehU2@mid.individual.net>
References: <17be420c4f90bfc7$63225$1585792$802601b3@news.usenetexpress.com>
<utd3bm$12lm6$2@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: individual.net mPMGkIvd0+uzPJ3g4DoJmQuECiBpBPK832JGhEyeEExpDa++MC
Cancel-Lock: sha1:oYIHZ/aUfLf0byTUZsldrCMSKvI= sha256:eRL7K+s87kj+L0lVRkGADNAf5XqGs9RGJsUMZ02Vmao=
User-Agent: Pan/0.149 (Bellevue; 4c157ba)
 by: rbowman - Wed, 20 Mar 2024 01:12 UTC

On Tue, 19 Mar 2024 22:24:54 -0000 (UTC), Lawrence D'Oliveiro wrote:

> With Perl, there was always this feeling of unplumbed depths, subtleties
> just beyond my reach.

I suppose it saved typing a few characters but I never could keep $_, @_,
$$, $!, $@ and so forth straight. I did like that it closely followed C
conventions rather than Python's indentation scheme.

Then there was the fix, Perl 6, that hung fire so long it changed its name
out of embarrassment when it reached the age of majority.

Re: Why Python When There Is Perl?

<utdj65$15kp1$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=12244&group=comp.os.linux.advocacy#12244

  copy link   Newsgroups: comp.os.linux.advocacy
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: nospam@dfs.com (DFS)
Newsgroups: comp.os.linux.advocacy
Subject: Re: Why Python When There Is Perl?
Date: Tue, 19 Mar 2024 22:55:03 -0400
Organization: A noiseless patient Spider
Lines: 25
Message-ID: <utdj65$15kp1$1@dont-email.me>
References: <17be420c4f90bfc7$63225$1585792$802601b3@news.usenetexpress.com>
<utd86u$1ipcj$1@solani.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 20 Mar 2024 02:55:01 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="37891cf52e1fbf2d7a6dba8b75260a75";
logging-data="1233697"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/QKX80u1s+ByfrpILbdgll"
User-Agent: Betterbird (Windows)
Cancel-Lock: sha1:M6mrDf78aOsk4/pWdLh32NT9plA=
Content-Language: en-US
In-Reply-To: <utd86u$1ipcj$1@solani.org>
 by: DFS - Wed, 20 Mar 2024 02:55 UTC

On 3/19/2024 7:47 PM, Physfitfreak wrote:

> I think, if I had not relied on COLA to provide help on these matters,
> by now, I'd be months into fruitful learning of ... probably C++ and
> into several exciting programming projects.

Go with python (and pyqt or pyside for a GUI)

Sample of what you can do with them:

https://uploadnow.io/f/QGsMX7G

To run it:

1) install Python

2) install PyQt 5

3) extract the .7z file to a folder, and from the command line:

$ python usenet.py

and the GUI should open

Re: Why Python When There Is Perl?

<utdk00$19g6t$2@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=12245&group=comp.os.linux.advocacy#12245

  copy link   Newsgroups: comp.os.linux.advocacy
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ldo@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.os.linux.advocacy
Subject: Re: Why Python When There Is Perl?
Date: Wed, 20 Mar 2024 03:08:48 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 6
Message-ID: <utdk00$19g6t$2@dont-email.me>
References: <17be420c4f90bfc7$63225$1585792$802601b3@news.usenetexpress.com>
<utd3bm$12lm6$2@dont-email.me> <l5urgeF8sehU2@mid.individual.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 20 Mar 2024 03:08:48 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="a3c7bb3811b3cbef9d335e33aa837a41";
logging-data="1360093"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18Kfpztjo+vY7tVDkyChlPe"
User-Agent: Pan/0.155 (Kherson; fc5a80b8)
Cancel-Lock: sha1:Hn09gZxWqHmqYRlmWeMNTigK0w4=
 by: Lawrence D'Oliv - Wed, 20 Mar 2024 03:08 UTC

On 20 Mar 2024 01:12:47 GMT, rbowman wrote:

> I suppose it saved typing a few characters but I never could keep $_,
> @_, $$, $!, $@ and so forth straight.

That was the easy part.

Re: Why Python When There Is Perl?

<l5v6llF9804U3@mid.individual.net>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=12246&group=comp.os.linux.advocacy#12246

  copy link   Newsgroups: comp.os.linux.advocacy
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: bowman@montana.com (rbowman)
Newsgroups: comp.os.linux.advocacy
Subject: Re: Why Python When There Is Perl?
Date: 20 Mar 2024 04:23:17 GMT
Lines: 30
Message-ID: <l5v6llF9804U3@mid.individual.net>
References: <17be420c4f90bfc7$63225$1585792$802601b3@news.usenetexpress.com>
<utd86u$1ipcj$1@solani.org> <utdj65$15kp1$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: individual.net hVw7ntAQn/fXFYWAsjd1RwR0nIFFu0jdXlu5h5DtTpV7LMlJhH
Cancel-Lock: sha1:qXtC5RkcCjnrYlrutWdvLqJW+Vc= sha256:U+jXJOXNieWQHk7lK9zgCJ8qArCfxD89g0DrvEgxWGg=
User-Agent: Pan/0.149 (Bellevue; 4c157ba)
 by: rbowman - Wed, 20 Mar 2024 04:23 UTC

On Tue, 19 Mar 2024 22:55:03 -0400, DFS wrote:

> To run it:
>
> 1) install Python
>
> 2) install PyQt 5

I've been using PySide6. There are some minor differences with signals but
otherwise it is the same. I think PySide is now the 'official' approach. I
think I've mentioned the pissing contest with Riverside over GPL versus
LGPL that gave rise to PySide.

One caveat: there is a line you can add that allows for more 'Pythonic'
function conventions,

from typing import Optional

so you can say

self.set_layout(layout)

rather than

self.setLayout(layout)

It might be more Pythonic and all that good stuff but it is not completely
implemented and some things still have to be camel case so I stopped
trying to use it.

Re: Why Python When There Is Perl?

<17be742ce3d3c993$246716$4075406$802601b3@news.usenetexpress.com>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=12251&group=comp.os.linux.advocacy#12251

  copy link   Newsgroups: comp.os.linux.advocacy
From: nuxxie@linux.rocks (Nuxxie)
Subject: Re: Why Python When There Is Perl?
Newsgroups: comp.os.linux.advocacy
References: <17be420c4f90bfc7$63225$1585792$802601b3@news.usenetexpress.com> <utd3bm$12lm6$2@dont-email.me>
User-Agent: Pan/0.146 (Hic habitat felicitas; d7a48b4 gitlab.gnome.org/GNOME/pan.git)
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Lines: 17
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!feeder.usenetexpress.com!tr2.iad1.usenetexpress.com!news.usenetexpress.com!not-for-mail
Date: Wed, 20 Mar 2024 11:04:04 +0000
Nntp-Posting-Date: Wed, 20 Mar 2024 11:04:04 +0000
X-Received-Bytes: 1023
Organization: UsenetExpress - www.usenetexpress.com
X-Complaints-To: abuse@usenetexpress.com
Message-Id: <17be742ce3d3c993$246716$4075406$802601b3@news.usenetexpress.com>
 by: Nuxxie - Wed, 20 Mar 2024 11:04 UTC

On Tue, 19 Mar 2024 22:24:54 +0000, Lawrence D'Oliveiro wrote:

>
> With Perl, there was always this feeling of unplumbed depths, subtleties
> just beyond my reach.
>
> With Python, everything I did made sense.
>

You have more or less just paraphrased what was atated in the original
post.

Since I learned assembly language way before anything else Perl is the
more natural language for me. OO tends to appeal to those who can't see
the machine.

Re: Why Python When There Is Perl?

<17be75acfaf8f0f4$2017$3384359$802601b3@news.usenetexpress.com>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=12252&group=comp.os.linux.advocacy#12252

  copy link   Newsgroups: comp.os.linux.advocacy
From: nuxxie@linux.rocks (Nuxxie)
Subject: Re: Why Python When There Is Perl?
Newsgroups: comp.os.linux.advocacy
References: <17be420c4f90bfc7$63225$1585792$802601b3@news.usenetexpress.com> <utd86u$1ipcj$1@solani.org>
User-Agent: Pan/0.146 (Hic habitat felicitas; d7a48b4 gitlab.gnome.org/GNOME/pan.git)
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Lines: 62
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!feeder.usenetexpress.com!tr2.iad1.usenetexpress.com!news.usenetexpress.com!not-for-mail
Date: Wed, 20 Mar 2024 11:31:34 +0000
Nntp-Posting-Date: Wed, 20 Mar 2024 11:31:34 +0000
X-Received-Bytes: 3113
Organization: UsenetExpress - www.usenetexpress.com
X-Complaints-To: abuse@usenetexpress.com
Message-Id: <17be75acfaf8f0f4$2017$3384359$802601b3@news.usenetexpress.com>
 by: Nuxxie - Wed, 20 Mar 2024 11:31 UTC

On Tue, 19 Mar 2024 18:47:40 -0500, Physfitfreak wrote:

>
> You know, I first gathered my energy to go after the good old C language
> to freshen myself up with it, then I turned to assembly language cause
> you said so as "a sage advice", then I found out my general questions
> would be better answered if I learned hoc, then my general questions
> made a turn, and I was left with chances that the best language for me
> at the time was the good old C again; then on checking out Go and taking
> Ken Thompson's words for it, I let C go and began preparing to go after
> Go. And now, you're saying if we don't choose Perl we're brain-starved.
>

If you want to learn programming then you must first give a definition
to the term "programming."

What is programming? Programming is the controlling of a digital computer.
That's all.

Therefore, in order to program one must first learn about the machine. One
must first learn about logic gates, Boolean algebra, etc. Then one must
learn machine language instructions.

After this, one can, for the sake of convenience, proceed to "higher
level" abstractions, i.e. a language like C. But any of these high
level languages do not actually control the machine. These abstractions
must be processed by compilers to produce actual machine-control
instructions.

Unfortunately, a lot (most?) so called programmers know very little about
digital hardware.

When I first took CompSci 101, I already had a deep background in assembly
and I watched as the other students, who didn't have this background,
stumbled over such things as character case conversions and pointers.

C is fairly low level. It does not completely obliterate the machine.
But other languages have succeeded to totally obscure the hardware and
it is these languages that are the most popular. In fact, most programmers
don't program. They will use frameworks that literally produce the code
for them. (They'll get paid big bucks until the framework falls out of
fashion. Then they'll end up at McDonalds because they have no REAL
programing skills.)

In conclusion:

Learn the machine and learn assembly. Then proceed to the conventional
abstract languages.

For your first assignment, learn how to add two unsigned digital integers:

10011011
+10111111

This operation uses digital adders and is very fast.

What happens when the result cannot fit into an 8-bit register?

Then learn how to express negative numbers and subtract using adders.

Post all questions here.

Re: Why Python When There Is Perl?

<utektn$1fq95$2@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=12256&group=comp.os.linux.advocacy#12256

  copy link   Newsgroups: comp.os.linux.advocacy
Path: i2pn2.org!i2pn.org!usenet.network!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: OFeem1987@teleworm.us (Chris Ahlstrom)
Newsgroups: comp.os.linux.advocacy
Subject: Re: Why Python When There Is Perl?
Date: Wed, 20 Mar 2024 08:30:47 -0400
Organization: None
Lines: 28
Message-ID: <utektn$1fq95$2@dont-email.me>
References: <17be420c4f90bfc7$63225$1585792$802601b3@news.usenetexpress.com>
<utd3bm$12lm6$2@dont-email.me>
<17be742ce3d3c993$246716$4075406$802601b3@news.usenetexpress.com>
Reply-To: OFeem1987@teleworm.us
Injection-Date: Wed, 20 Mar 2024 12:30:47 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="6173546b442cc983a268e72c1887ec8c";
logging-data="1567013"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18u/ihgo11FGuy4n2dQyFAI"
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:PrJ44qKq1OV+Alw0rRl9YjhePdw=
X-User-Agent: Microsoft Outl00k, Usenet K00k Editions
X-Mutt: The most widely-used MUA
X-Slrn: Why use anything else?
 by: Chris Ahlstrom - Wed, 20 Mar 2024 12:30 UTC

Nuxxie wrote this copyrighted missive and expects royalties:

> On Tue, 19 Mar 2024 22:24:54 +0000, Lawrence D'Oliveiro wrote:
>
>> With Perl, there was always this feeling of unplumbed depths, subtleties
>> just beyond my reach.
>>
>> With Python, everything I did made sense.
>
> You have more or less just paraphrased what was atated in the original
> post.
>
> Since I learned assembly language way before anything else Perl is the
> more natural language for me. OO tends to appeal to those who can't see
> the machine.

On one team I worked with, the language was assembler (MASM). The project had
some bigassed modules!

I showed the manager/programmer a book I'd bought on video processing. It
showed sample assembler code using C function-calling conventions (push bp; mov
bp,sp; add stack size to bp; run code; pop bp IIRC). He called the code
"obtuse". :-D

--
ROMEO: Courage, man; the hurt cannot be much.
MERCUTIO: No, 'tis not so deep as a well, nor so wide
as a church-door; but 'tis enough, 'twill serve.

Re: Why Python When There Is Perl?

<86sf0l9h6c.fsf@yaxley.in>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=12258&group=comp.os.linux.advocacy#12258

  copy link   Newsgroups: comp.os.linux.advocacy
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: yax@yaxley.in (Yaxley Peaks)
Newsgroups: comp.os.linux.advocacy
Subject: Re: Why Python When There Is Perl?
Date: Wed, 20 Mar 2024 18:46:59 +0530
Organization: A noiseless patient Spider
Lines: 3
Message-ID: <86sf0l9h6c.fsf@yaxley.in>
References: <17be420c4f90bfc7$63225$1585792$802601b3@news.usenetexpress.com>
<utd86u$1ipcj$1@solani.org>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Info: dont-email.me; posting-host="127419a74eccdb1ff6e3405b4f7b5baf";
logging-data="1586908"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19tXNjoB4V5geG+Xvx2ba3tI4AtetSAOYc="
User-Agent: Gnus/5.13 (Gnus v5.13)
Cancel-Lock: sha1:/Nc1z1lcu5ePxdQvSoNiGksZ1m0=
sha1:B9Vl01odz3UNJ7ul/vMnU7dOTFI=
 by: Yaxley Peaks - Wed, 20 Mar 2024 13:16 UTC

This is why the only acceptable language to use is lean4. Embrace purely
functional programming!

Re: Why Python When There Is Perl?

<utetk2$1hsql$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=12262&group=comp.os.linux.advocacy#12262

  copy link   Newsgroups: comp.os.linux.advocacy
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: nospam@dfs.com (DFS)
Newsgroups: comp.os.linux.advocacy
Subject: Re: Why Python When There Is Perl?
Date: Wed, 20 Mar 2024 10:59:17 -0400
Organization: A noiseless patient Spider
Lines: 15
Message-ID: <utetk2$1hsql$1@dont-email.me>
References: <17be420c4f90bfc7$63225$1585792$802601b3@news.usenetexpress.com>
<utd86u$1ipcj$1@solani.org> <86sf0l9h6c.fsf@yaxley.in>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 20 Mar 2024 14:59:14 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="37891cf52e1fbf2d7a6dba8b75260a75";
logging-data="1635157"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/blbzS3kG49LISv+Yur8LZ"
User-Agent: Betterbird (Windows)
Cancel-Lock: sha1:ilQe6VvwL9q5hV1e7GoKg8wJtpk=
Content-Language: en-US
In-Reply-To: <86sf0l9h6c.fsf@yaxley.in>
 by: DFS - Wed, 20 Mar 2024 14:59 UTC

On 3/20/2024 9:16 AM, Yaxley Peaks wrote:
>
> This is why the only acceptable language to use is lean4. Embrace purely
> functional programming!

How do you do this in lean4?

----------------------------------------------------------------------------
characters = "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"
for i in range(len(characters)):
print(ord(characters[i]),end=',')
----------------------------------------------------------------------------
65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,48,49,50,51,52,53,54,55,56,57,

Re: Why Python When There Is Perl?

<875xxg27zn.fsf@yaxley.in>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=12264&group=comp.os.linux.advocacy#12264

  copy link   Newsgroups: comp.os.linux.advocacy
Path: i2pn2.org!i2pn.org!news.swapon.de!news.mixmin.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: yax@yaxley.in (Yaxley Peaks)
Newsgroups: comp.os.linux.advocacy
Subject: Re: Why Python When There Is Perl?
Date: Wed, 20 Mar 2024 21:47:16 +0530
Organization: Not a Noiseless Patient Spider
Lines: 3
Message-ID: <875xxg27zn.fsf@yaxley.in>
References: <17be420c4f90bfc7$63225$1585792$802601b3@news.usenetexpress.com>
<utd86u$1ipcj$1@solani.org> <86sf0l9h6c.fsf@yaxley.in>
<utetk2$1hsql$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Info: dont-email.me; posting-host="ecd3687eee387d48ba7a6743b09943ff";
logging-data="1669501"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/HsVtmZr1Mg4bL1sLsBTn3Xi8QGmM7GrI="
User-Agent: Gnus/5.13 (Gnus v5.13)
Cancel-Lock: sha1:R9xt/rY0dajqOVVCGv1eCjiKVDg=
sha1:DfY97IcKa4pBgfIhXIkisSME0DQ=
 by: Yaxley Peaks - Wed, 20 Mar 2024 16:17 UTC

Uh idk
--
(yaxp me) => t

Re: Why Python When There Is Perl?

<utfng4$1o6mu$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=12277&group=comp.os.linux.advocacy#12277

  copy link   Newsgroups: comp.os.linux.advocacy
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: nospam@dfs.com (DFS)
Newsgroups: comp.os.linux.advocacy
Subject: Re: Why Python When There Is Perl?
Date: Wed, 20 Mar 2024 18:20:52 -0400
Organization: A noiseless patient Spider
Lines: 51
Message-ID: <utfng4$1o6mu$1@dont-email.me>
References: <17be420c4f90bfc7$63225$1585792$802601b3@news.usenetexpress.com>
<utd86u$1ipcj$1@solani.org> <utdj65$15kp1$1@dont-email.me>
<l5v6llF9804U3@mid.individual.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 20 Mar 2024 22:20:52 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="37891cf52e1fbf2d7a6dba8b75260a75";
logging-data="1841886"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/FWsz3rvAB3vKIH4lU4Bsd"
User-Agent: Betterbird (Windows)
Cancel-Lock: sha1:09NI++6gn9HKILRemd3y3doHk34=
In-Reply-To: <l5v6llF9804U3@mid.individual.net>
Content-Language: en-US
 by: DFS - Wed, 20 Mar 2024 22:20 UTC

On 3/20/2024 12:23 AM, rbowman wrote:
> On Tue, 19 Mar 2024 22:55:03 -0400, DFS wrote:
>
>
>> To run it:
>>
>> 1) install Python
>>
>> 2) install PyQt 5
>
> I've been using PySide6.

Work or play?

My biggest PyQt app is nearly 2200 lines, incl comments and whitespace
and handling 7 different dbms's.

> There are some minor differences with signals but
> otherwise it is the same. I think PySide is now the 'official' approach. I
> think I've mentioned the pissing contest with Riverside over GPL versus
> LGPL that gave rise to PySide.

Thanks for the heads-up.

"Qt for Python is the project that provides the official set of Python
bindings (PySide6) that will supercharge your Python applications."

> One caveat: there is a line you can add that allows for more 'Pythonic'
> function conventions,
>
> from typing import Optional
>
> so you can say
>
> self.set_layout(layout)
>
> rather than
>
> self.setLayout(layout)
>
> It might be more Pythonic and all that good stuff but it is not completely
> implemented and some things still have to be camel case so I stopped
> trying to use it.

From what I read on PySide vs PyQt, the changes to my apps will be
minimal, mainly new imports and a few other little tweaks having to do
with the .ui files.

Re: Why Python When There Is Perl?

<utfo33$1o6mu$3@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=12279&group=comp.os.linux.advocacy#12279

  copy link   Newsgroups: comp.os.linux.advocacy
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: nospam@dfs.com (DFS)
Newsgroups: comp.os.linux.advocacy
Subject: Re: Why Python When There Is Perl?
Date: Wed, 20 Mar 2024 18:31:00 -0400
Organization: A noiseless patient Spider
Lines: 290
Message-ID: <utfo33$1o6mu$3@dont-email.me>
References: <17be420c4f90bfc7$63225$1585792$802601b3@news.usenetexpress.com>
<utd86u$1ipcj$1@solani.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 20 Mar 2024 22:30:59 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="37891cf52e1fbf2d7a6dba8b75260a75";
logging-data="1841886"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/yrd8ohPrGxKXaqtsZ40wQ"
User-Agent: Betterbird (Windows)
Cancel-Lock: sha1:jFDx2Shf4Ccc+aUJJybZ5svEMdU=
In-Reply-To: <utd86u$1ipcj$1@solani.org>
Content-Language: en-US
 by: DFS - Wed, 20 Mar 2024 22:31 UTC

On 3/19/2024 7:47 PM, Physfitfreak wrote:

> I think, if I had not relied on COLA to provide help on these matters,
> by now, I'd be months into fruitful learning of ... probably C++ and
> into several exciting programming projects.

First off, don't listen to ANYTHING Feeb says about programming. He's
incompetent, a liar, a nutcase, and makes contradictory statements all
the time.

"Nothing but C from now on!"
"Only assembly for me from now on!"
"Python is for talentless idiots"
"Use Perl"
"C++ is for degenerate sissies"
"C++ is too complex"
"I despise OO programming"
"most programmers don't program. They will use frameworks that
literally produce the code for them."

That's all lies and idiocy.

I recently showed you 3 versions (C, python, VBA) of the same program.
Python was the fewest lines of code, looked the cleanest, and was
quickest to write.

After I learned enough python, I started working on the same problems
with C. C executes 5x to 10x faster than Python, but requires 3x to 5x
the amt of time and code. Note: you will NEVER recoup the extra C
development time with savings in program execution time.

I'd say work on learning Python and C at the same time. Leave C++ for
later.

> This place is wasteful. It is like a drinking parlor. You go there
> everyday and drink and joke and curse and argue, but in the background,
> it is making you an alcoholic, making you drift.

If you wanted to focus on programming, you would. Don't blame cola for
your moral shortcomings.

Here's something to get you started with python. This code reads the
Linux kernel CREDITS file, parses it, and posts the data to a SQLite
database table. I just now wrote the python, but the original program
was in C 3 years ago (for yet another programming challenge that weasel
Feeb couldn't handle).

======================================================================
Python
======================================================================

import sqlite3

#copy or concat lines into string
#if entry has 1 linetype (NEWPDS), copy line into var
#if entry has 2+ of the same linetype, concat lines
def processvals(val, data, sep):
if val[0] == ' ':
val = data
else:
val += sep
val += data
return val

#strings
entry,Nval,Eval,Wval,Pval,Dval,Sval = ' ',' ',' ',' ',' ',' ',' '

#create and open new SQLite db file
dbname = "kernel_credits_py.db";
conn = sqlite3.connect(dbname)
db = conn.cursor()

#create table
db.execute("DROP TABLE IF EXISTS CREDITS;")
db.execute("BEGIN TRANSACTION;")
sql = "CREATE TABLE CREDITS(nameid INTEGER NOT NULL PRIMARY KEY, name
TEXT NOT NULL, email TEXT DEFAULT 'na' NOT NULL, web TEXT DEFAULT 'na'
NOT NULL, pgp TEXT DEFAULT 'na' NOT NULL, description TEXT DEFAULT 'na'
NOT NULL, address TEXT DEFAULT 'na' NOT NULL);";
db.execute(sql)

#read kernel CREDITS file, post data to db table
#each credit entry has one name, and 0+ other lines
creditsfile = "KERNEL_CREDITS.txt"
lines = open(creditsfile,'r').readlines()
for line in lines:
if len(line) > 3: entry = line[3:-1] #drop NEWPDS prefixes
if line[0]=='N': Nval = entry
if line[0]=='E': Eval = processvals(Eval,entry," / ")
if line[0]=='W': Wval = processvals(Wval,entry," / ")
if line[0]=='P': Pval = processvals(Pval,entry," / ")
if line[0]=='D': Dval = processvals(Dval,entry," / ")
if line[0]=='S': Sval = processvals(Sval,entry,", ")
if line[0] == '\n':
sql = "INSERT INTO CREDITS (name,email,web,pgp,description,address)
VALUES (?,?,?,?,?,?);";
db.execute(sql,(Nval, Eval, Wval, Pval, Dval, Sval))
entry,Nval,Eval,Wval,Pval,Dval,Sval = ' ',' ',' ',' ',' ',' ',' '

conn.commit()

#print data in table
rows = db.execute("SELECT * FROM CREDITS ORDER BY nameID;")
for row in rows:
for i,colname in enumerate(db.description):
print("%-12s = %s" % (colname[0], row[i]))
print()
#count rows in table
db.execute("SELECT COUNT(*) FROM CREDITS;")
print("Done. %d records were posted to SQLite database '%s'" %
(db.fetchone()[0],dbname))

#version
print("running SQLite %s" % sqlite3.sqlite_version)

db.close()
conn.close()

======================================================================

======================================================================
C ======================================================================
// 1. install libsqlite3-dev (sudo apt install libsqlite3-dev)
// 2. copy the Linux kernel CREDITS file to the folder this program is in
// 3. rename it KERNEL_CREDITS.txt

// compilation: gcc -Wall source.c -o executable -lsqlite3

#include <sqlite3.h>
#include <stdio.h>
#include <string.h>

//used when retrieving data from SQLite
int callback(void *na, int argc, char **argv, char **azColName)
{ na = 0;
for (int i = 0; i < argc; i++) {
printf("%s = %s\n", azColName[i], argv[i] ? argv[i] : "NULL");
}
printf("\n");
return 0;
}

//right trim
void rtrim(char *s)
{ s[strlen(s)-1]='\0';
}

//copy or concat lines into string
//if entry has 1 linetype (NEWPDS), copy line into var
//if entry has 2+ of the same linetype, concat lines
void processvals(char *val, char *data, char *sep)
{ if(val[0] == '\0')
{
strncpy(val,data,strlen(data));
}
else
{ strncat(val,sep,3);
strncat(val,data,strlen(data));
}
}

int main(void) {

sqlite3 *db;
sqlite3_stmt *stmt;
char *error_msg = 0;
int rc = 0;
rc += 1; //without this nonsense, got compiler warning variable set
but not used
char line[1024] = "", entry[1024];
char Nval[1024] = ""; char Eval[1024] = ""; char Wval[1024] = "";
char Pval[1024] = ""; char Dval[1024] = ""; char Sval[1024] = {"\0"};

//count lines in file
int lines = 0;
FILE *fin = fopen("KERNEL_CREDITS.txt","r");
while (fgets(line,sizeof line, fin)!= NULL) {lines++;}

//create and open new db file
char *dbname = "kernel_credits.db";
rc = sqlite3_open(dbname, &db);

//create table
char *sql = "DROP TABLE IF EXISTS CREDITS;"
"BEGIN TRANSACTION;"
"CREATE TABLE CREDITS(nameid INTEGER NOT NULL PRIMARY
KEY, name TEXT NOT NULL, email TEXT DEFAULT 'na' NOT NULL, web TEXT
DEFAULT 'na' NOT NULL, pgp TEXT DEFAULT 'na' NOT NULL, description TEXT
DEFAULT 'na' NOT NULL, address TEXT DEFAULT 'na' NOT NULL);";
rc = sqlite3_exec(db, sql, 0, 0, &error_msg);


//read kernel CREDITS file, post data to db table
//each credit entry has one name, and 0+ other lines
int currentline = 0;
rewind(fin);
while (fgets(line,sizeof line, fin)!= NULL)
{
currentline++;
rtrim(line);
if(strlen(line) > 3) //drop NEWPDS prefixes
{
memset(entry,'\0',sizeof entry);
memcpy(entry, &line[3], strlen(line)-3);
entry[strlen(entry)] = '\0';
}
if(line[0]=='N') {strncpy(Nval,entry,strlen(entry));}
if(line[0]=='E') {processvals(Eval,entry," / ");}
if(line[0]=='W') {processvals(Wval,entry," / ");}
if(line[0]=='P') {processvals(Pval,entry," / ");}
if(line[0]=='D') {processvals(Dval,entry," / ");}
if(line[0]=='S') {processvals(Sval,entry,", ");}

if(line[0] == '\0' || currentline == lines)
{

sql = "INSERT INTO CREDITS (name,email,web,pgp,description,address) "
"VALUES (?,?,?,?,?,?);";
sqlite3_prepare_v2(db, sql, 2048, &stmt, NULL);
if(stmt != NULL) {

sqlite3_bind_text(stmt, 1, Nval, strlen(Nval), SQLITE_TRANSIENT);
sqlite3_bind_text(stmt, 2, Eval, strlen(Eval), SQLITE_TRANSIENT);
sqlite3_bind_text(stmt, 3, Wval, strlen(Wval), SQLITE_TRANSIENT);
sqlite3_bind_text(stmt, 4, Pval, strlen(Pval), SQLITE_TRANSIENT);
sqlite3_bind_text(stmt, 5, Dval, strlen(Dval), SQLITE_TRANSIENT);
sqlite3_bind_text(stmt, 6, Sval, strlen(Sval), SQLITE_TRANSIENT);

sqlite3_step(stmt);
sqlite3_finalize(stmt);

memset(entry,'\0',sizeof entry);
memset(Nval,'\0',sizeof Nval);
memset(Eval,'\0',sizeof Eval);
memset(Wval,'\0',sizeof Wval);
memset(Pval,'\0',sizeof Pval);
memset(Dval,'\0',sizeof Dval);
memset(Sval,'\0',sizeof Sval);

}
}
}
fclose(fin);
rc = sqlite3_exec(db, "COMMIT;", 0, 0, &error_msg);


Click here to read the complete article
Re: Why Python When There Is Perl?

<utfol0$1k8j7$1@solani.org>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=12280&group=comp.os.linux.advocacy#12280

  copy link   Newsgroups: comp.os.linux.advocacy
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!reader5.news.weretis.net!news.solani.org!.POSTED!not-for-mail
From: Physfitfreak@gmail.com (Physfitfreak)
Newsgroups: comp.os.linux.advocacy
Subject: Re: Why Python When There Is Perl?
Date: Wed, 20 Mar 2024 17:40:34 -0500
Message-ID: <utfol0$1k8j7$1@solani.org>
References: <17be420c4f90bfc7$63225$1585792$802601b3@news.usenetexpress.com>
<utd86u$1ipcj$1@solani.org>
<17be75acfaf8f0f4$2017$3384359$802601b3@news.usenetexpress.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 20 Mar 2024 22:40:32 -0000 (UTC)
Injection-Info: solani.org;
logging-data="1712743"; mail-complaints-to="abuse@news.solani.org"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:zl4ZUr2eDlqZIwC1Nb5wwIRkhfc=
X-Antivirus-Status: Clean
X-Antivirus: Avast (VPS 240320-4, 3/20/2024), Outbound message
X-User-ID: eJwNycEBwCAIA8CVGiRBxqEo+4/Q3ve4BHW4KOdwDophmRs3d6qfWv9NQDFTZuu68wDyO3goOrtvIx1lb/gHLjgUfA==
In-Reply-To: <17be75acfaf8f0f4$2017$3384359$802601b3@news.usenetexpress.com>
Content-Language: en-US
 by: Physfitfreak - Wed, 20 Mar 2024 22:40 UTC

On 3/20/2024 6:31 AM, Nuxxie wrote:
> On Tue, 19 Mar 2024 18:47:40 -0500, Physfitfreak wrote:
>
>>
>> You know, I first gathered my energy to go after the good old C language
>> to freshen myself up with it, then I turned to assembly language cause
>> you said so as "a sage advice", then I found out my general questions
>> would be better answered if I learned hoc, then my general questions
>> made a turn, and I was left with chances that the best language for me
>> at the time was the good old C again; then on checking out Go and taking
>> Ken Thompson's words for it, I let C go and began preparing to go after
>> Go. And now, you're saying if we don't choose Perl we're brain-starved.
>>
>
> If you want to learn programming then you must first give a definition
> to the term "programming."
>
> What is programming? Programming is the controlling of a digital computer.
> That's all.
>
> Therefore, in order to program one must first learn about the machine. One
> must first learn about logic gates, Boolean algebra, etc. Then one must
> learn machine language instructions.
>
> After this, one can, for the sake of convenience, proceed to "higher
> level" abstractions, i.e. a language like C. But any of these high
> level languages do not actually control the machine. These abstractions
> must be processed by compilers to produce actual machine-control
> instructions.
>
> Unfortunately, a lot (most?) so called programmers know very little about
> digital hardware.
>
> When I first took CompSci 101, I already had a deep background in assembly
> and I watched as the other students, who didn't have this background,
> stumbled over such things as character case conversions and pointers.
>
> C is fairly low level. It does not completely obliterate the machine.
> But other languages have succeeded to totally obscure the hardware and
> it is these languages that are the most popular. In fact, most programmers
> don't program. They will use frameworks that literally produce the code
> for them. (They'll get paid big bucks until the framework falls out of
> fashion. Then they'll end up at McDonalds because they have no REAL
> programing skills.)
>
> In conclusion:
>
> Learn the machine and learn assembly. Then proceed to the conventional
> abstract languages.
>
> For your first assignment, learn how to add two unsigned digital integers:
>
> 10011011
> +10111111
>
> This operation uses digital adders and is very fast.
>
> What happens when the result cannot fit into an 8-bit register?
>
> Then learn how to express negative numbers and subtract using adders.
>
> Post all questions here.
>

Hmm... I'm not that dedicated to the task. For now, I've made my mind,
and even have started the "learning curve" if such a thing exists for
qb64 :-)))

That'll do fine for baby problems, which I'm going to continue posting
to sci.physics as a blog.

--
This email has been checked for viruses by Avast antivirus software.
www.avast.com

Re: Why Python When There Is Perl?

<utfpal$1ol4n$6@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=12282&group=comp.os.linux.advocacy#12282

  copy link   Newsgroups: comp.os.linux.advocacy
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ldo@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.os.linux.advocacy
Subject: Re: Why Python When There Is Perl?
Date: Wed, 20 Mar 2024 22:52:06 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 9
Message-ID: <utfpal$1ol4n$6@dont-email.me>
References: <17be420c4f90bfc7$63225$1585792$802601b3@news.usenetexpress.com>
<utd86u$1ipcj$1@solani.org>
<17be75acfaf8f0f4$2017$3384359$802601b3@news.usenetexpress.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 20 Mar 2024 22:52:06 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="a3c7bb3811b3cbef9d335e33aa837a41";
logging-data="1856663"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+u1G6BJ+8KKMx9vaTpcUUw"
User-Agent: Pan/0.155 (Kherson; fc5a80b8)
Cancel-Lock: sha1:gUVa0MTRYbW7anQEP0o2N1TqrvU=
 by: Lawrence D'Oliv - Wed, 20 Mar 2024 22:52 UTC

On Wed, 20 Mar 2024 11:31:34 +0000, Nuxxie wrote:

> What is programming?

Programming is the building of higher-level machines on top of lower-level
ones.

I say “machine” in the general, abstract sense, not necessarily a piece of
hardware you can kick.

Re: Why Python When There Is Perl?

<utfpe1$1ol4n$7@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=12283&group=comp.os.linux.advocacy#12283

  copy link   Newsgroups: comp.os.linux.advocacy
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ldo@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.os.linux.advocacy
Subject: Re: Why Python When There Is Perl?
Date: Wed, 20 Mar 2024 22:53:54 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 6
Message-ID: <utfpe1$1ol4n$7@dont-email.me>
References: <17be420c4f90bfc7$63225$1585792$802601b3@news.usenetexpress.com>
<utd86u$1ipcj$1@solani.org> <86sf0l9h6c.fsf@yaxley.in>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 20 Mar 2024 22:53:54 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="a3c7bb3811b3cbef9d335e33aa837a41";
logging-data="1856663"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/SzP9YzHf1QaqrsglKQwGF"
User-Agent: Pan/0.155 (Kherson; fc5a80b8)
Cancel-Lock: sha1:tx4OLs/tDoexVW0RZW43Me2fbeQ=
 by: Lawrence D'Oliv - Wed, 20 Mar 2024 22:53 UTC

On Wed, 20 Mar 2024 18:46:59 +0530, Yaxley Peaks wrote:

> Embrace purely functional programming!

Purely-functional programming’s dirty little secret is that I/O cannot be
expressed in a purely-functional way.

Re: Why Python When There Is Perl?

<utfqmg$1p361$2@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=12286&group=comp.os.linux.advocacy#12286

  copy link   Newsgroups: comp.os.linux.advocacy
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: nospam@dfs.com (DFS)
Newsgroups: comp.os.linux.advocacy
Subject: Re: Why Python When There Is Perl?
Date: Wed, 20 Mar 2024 19:15:29 -0400
Organization: A noiseless patient Spider
Lines: 16
Message-ID: <utfqmg$1p361$2@dont-email.me>
References: <17be420c4f90bfc7$63225$1585792$802601b3@news.usenetexpress.com>
<utd86u$1ipcj$1@solani.org>
<17be75acfaf8f0f4$2017$3384359$802601b3@news.usenetexpress.com>
<utfol0$1k8j7$1@solani.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 20 Mar 2024 23:15:28 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="a1039f8efe77cd4dd3e555af4710f67d";
logging-data="1871041"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX190x5fUmJ/D2qEYd/9jv9d3"
User-Agent: Betterbird (Windows)
Cancel-Lock: sha1:KD5K29NSu0M7ceoidJX7Hmd56yM=
Content-Language: en-US
In-Reply-To: <utfol0$1k8j7$1@solani.org>
 by: DFS - Wed, 20 Mar 2024 23:15 UTC

On 3/20/2024 6:40 PM, Physfitfreak wrote:

> Hmm... I'm not that dedicated to the task. For now, I've made my mind,
> and even have started the "learning curve" if such a thing exists for
> qb64 :-)))

BAD choice.

> That'll do fine for baby problems

Baby problems for baby monkeys.

Re: Why Python When There Is Perl?

<utfsvk$1pkkk$2@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=12290&group=comp.os.linux.advocacy#12290

  copy link   Newsgroups: comp.os.linux.advocacy
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: nospam@dfs.com (DFS)
Newsgroups: comp.os.linux.advocacy
Subject: Re: Why Python When There Is Perl?
Date: Wed, 20 Mar 2024 19:54:29 -0400
Organization: A noiseless patient Spider
Lines: 54
Message-ID: <utfsvk$1pkkk$2@dont-email.me>
References: <17be420c4f90bfc7$63225$1585792$802601b3@news.usenetexpress.com>
<utd86u$1ipcj$1@solani.org>
<17be75acfaf8f0f4$2017$3384359$802601b3@news.usenetexpress.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 20 Mar 2024 23:54:28 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="a1039f8efe77cd4dd3e555af4710f67d";
logging-data="1888916"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19hOGYQwM/KvrZjfTS3xrvY"
User-Agent: Betterbird (Windows)
Cancel-Lock: sha1:Z7dzeKin1aM5d7cvBW2BCM7sP18=
In-Reply-To: <17be75acfaf8f0f4$2017$3384359$802601b3@news.usenetexpress.com>
Content-Language: en-US
 by: DFS - Wed, 20 Mar 2024 23:54 UTC

On 3/20/2024 7:31 AM, Lamentable Larry wrote:

> What is programming? Programming is the controlling of a digital computer.
> That's all.
>
> Therefore, in order to program one must first learn about the machine. One
> must first learn about logic gates, Boolean algebra, etc. Then one must
> learn machine language instructions.
>
> After this, one can, for the sake of convenience, proceed to "higher
> level" abstractions, i.e. a language like C. But any of these high
> level languages do not actually control the machine. These abstractions
> must be processed by compilers to produce actual machine-control
> instructions.
>
> Unfortunately, a lot (most?) so called programmers know very little about
> digital hardware.
>
> When I first took CompSci 101, I already had a deep background in assembly
> and I watched as the other students, who didn't have this background,
> stumbled over such things as character case conversions and pointers.
>
> C is fairly low level. It does not completely obliterate the machine.
> But other languages have succeeded to totally obscure the hardware and
> it is these languages that are the most popular.

Which is proof that your claim "in order to program one must first learn
about the machine." is nuts.

> In fact, most programmers
> don't program. They will use frameworks that literally produce the code
> for them. (They'll get paid big bucks until the framework falls out of
> fashion. Then they'll end up at McDonalds because they have no REAL
> programing skills.)

You can't possibly believe such ignorant drooling. You've said similar
things many times, but it's a troll, right?

> In conclusion:
>
> Learn the machine and learn assembly. Then proceed to the conventional
> abstract languages.

Quit giving out bad advice like this.

Assembly will scare off most people. It's far too tedious and
time-consuming.

Just learn Python and C side-by-side. Write a routine in one and
duplicate it in the other. It's enjoyable and educational.

Re: Why Python When There Is Perl?

<utft77$1pkkk$5@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=12293&group=comp.os.linux.advocacy#12293

  copy link   Newsgroups: comp.os.linux.advocacy
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: nospam@dfs.com (DFS)
Newsgroups: comp.os.linux.advocacy
Subject: Re: Why Python When There Is Perl?
Date: Wed, 20 Mar 2024 19:58:32 -0400
Organization: A noiseless patient Spider
Lines: 14
Message-ID: <utft77$1pkkk$5@dont-email.me>
References: <17be420c4f90bfc7$63225$1585792$802601b3@news.usenetexpress.com>
<utd86u$1ipcj$1@solani.org>
<17be75acfaf8f0f4$2017$3384359$802601b3@news.usenetexpress.com>
<utfol0$1k8j7$1@solani.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 20 Mar 2024 23:58:31 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="a1039f8efe77cd4dd3e555af4710f67d";
logging-data="1888916"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18EvY/X1RUCL6fLjSmDbOEC"
User-Agent: Betterbird (Windows)
Cancel-Lock: sha1:u84osKnMTjiKsHs/9EF5vKZqJIo=
Content-Language: en-US
In-Reply-To: <utfol0$1k8j7$1@solani.org>
 by: DFS - Wed, 20 Mar 2024 23:58 UTC

On 3/20/2024 6:40 PM, Physfitfreak wrote:

> For now, I've made my mind,
> and even have started the "learning curve" if such a thing exists for
> qb64 :-)))

> That'll do fine for baby problems, which I'm going to continue posting
> to sci.physics as a blog.

Well, the good news is you do look like a baby code monkey.

Re: Why Python When There Is Perl?

<l61sjdFn16lU1@mid.individual.net>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=12298&group=comp.os.linux.advocacy#12298

  copy link   Newsgroups: comp.os.linux.advocacy
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: bowman@montana.com (rbowman)
Newsgroups: comp.os.linux.advocacy
Subject: Re: Why Python When There Is Perl?
Date: 21 Mar 2024 04:49:50 GMT
Lines: 51
Message-ID: <l61sjdFn16lU1@mid.individual.net>
References: <17be420c4f90bfc7$63225$1585792$802601b3@news.usenetexpress.com>
<utd86u$1ipcj$1@solani.org> <utdj65$15kp1$1@dont-email.me>
<l5v6llF9804U3@mid.individual.net> <utfng4$1o6mu$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: individual.net IcrEIn/xtNCh0X157oP5fADNFcGfHOvMr507XGPjgiqZdc60uU
Cancel-Lock: sha1:BkOuPbGsnutabWJmplOknZcn36s= sha256:FuH6dMUi8pFri4NDBwABsz0LXvQOEgyu8wSaLZE2Tq8=
User-Agent: Pan/0.149 (Bellevue; 4c157ba)
 by: rbowman - Thu, 21 Mar 2024 04:49 UTC

On Wed, 20 Mar 2024 18:20:52 -0400, DFS wrote:

> On 3/20/2024 12:23 AM, rbowman wrote:
>> On Tue, 19 Mar 2024 22:55:03 -0400, DFS wrote:
>>
>>
>>> To run it:
>>>
>>> 1) install Python
>>>
>>> 2) install PyQt 5
>>
>> I've been using PySide6.
>
> Work or play?

Play. Any work Python was ArcPy and I never had need for a GUI.

https://pro.arcgis.com/en/pro-app/3.1/arcpy/get-started/what-is-arcpy-.htm

If I were to use it I would have to use PySide6. That goes back to the
original days of Trolltech. We looked at QT as a possible replacement for
the Motif GUIs but it would have taken at least 6 Philadelphia lawyers to
unravel their commercial license.

https://www.pythonguis.com/faq/pyqt5-vs-pyside2/

That's a little dated since it talks about PySide2. There was a lag but
PySide6 is up to speed. The relevant portion, and this applies to other
areas:

"If you are planning to release your software itself under the GPL, or you
are developing software which will not be distributed, the GPL requirement
of PyQt5 is unlikely to be an issue. However, if you plan to distribute
your software without distributing the source you will either need to
purchase a commercial license from Riverbank for PyQt5 or use PySide2.

The LGPL license does not require you to share the source code of your own
applications, even if they are bundled with PySide2. You only need to
ensure that the source code covered by the LGPL is made available,
including modifications you have made to it, if any. In normal use there
will not be any modifications and the standard distributions of PySide2/
Qt5 source code will already cover this for you."

GPL is the kiss of death for anyone developing proprietary software.
Stallman's licensing requires not 6 but 12 Philadelphia lawyers. I've said
it before but if professional programmers don't use it, they are not going
to find bugs that they will report back upstream.

Re: Why Python When There Is Perl?

<l61vaiFn16lU2@mid.individual.net>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=12299&group=comp.os.linux.advocacy#12299

  copy link   Newsgroups: comp.os.linux.advocacy
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: bowman@montana.com (rbowman)
Newsgroups: comp.os.linux.advocacy
Subject: Re: Why Python When There Is Perl?
Date: 21 Mar 2024 05:36:18 GMT
Lines: 58
Message-ID: <l61vaiFn16lU2@mid.individual.net>
References: <17be420c4f90bfc7$63225$1585792$802601b3@news.usenetexpress.com>
<utd86u$1ipcj$1@solani.org> <utfo33$1o6mu$3@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: individual.net ovD9sCXOa/qQjUf5RAOgnwvAtZ+Sa7WSXHM+DyuASgoebyvPxE
Cancel-Lock: sha1:3XTLP16k/ugEmZVYUKOLbAb1Tdw= sha256:QJn26eFWNVTsgtv0k1Sx2Z5483ttxujJ/a20AC4sOX8=
User-Agent: Pan/0.149 (Bellevue; 4c157ba)
 by: rbowman - Thu, 21 Mar 2024 05:36 UTC

On Wed, 20 Mar 2024 18:31:00 -0400, DFS wrote:

> After I learned enough python, I started working on the same problems
> with C. C executes 5x to 10x faster than Python, but requires 3x to 5x
> the amt of time and code. Note: you will NEVER recoup the extra C
> development time with savings in program execution time.

To quote Kenny Rodgers (Don Schiltz actually) you've got to know when to
hold them and when to fold them. A common mistake is worrying too much
about optimization early in the development cycle.

While I agree on the volume as measured by lines of code I'm not sure
about the time, particularly when you have an established codebase.

url = f" https://itunes.apple.com/search?term={term}
&media=music&limit={self.limit}"
response = requests.get(url).json()
list = []
for result in response["results"]:

does a lot in four lines. I'm looking at some C code using the OpenSSL
library to connect to a host/port, do a HTTPS transaction. and return the
result. There's a generous amout of error checking and handling and it's
84 lines rather than 1.

BUT. amd this is the big but, like whoever developed the Python requests
package I wrote the code a long time ago. It's in a file called http.c
strangely enough. Include the file and the 84 lines becomes

static char* https_send(char* msg);

As the static implies that function isn't directly called. There are other
entry points that build the HTTP header as required, figure out the
ContentLength and so forth,

The real time spent is figuring out what you want to do or to put it in
geek speak, developing the necessary algorithms and data structures.

I've been reading

https://www.amazon.com/Python-Tricks-Buffet-Awesome-Features/dp/1775093301

The sniipets aren't long but he goes into list comprehension, decorators,
some of the more obscure dunders, setting up classes with class variables,
instance variables, and static functions using decorators, why you might
want to do so, and how they work.

The section I'm on now is Common Data Structures in Python. Every Python
programmer knows what a list is, but how does it work? Is it a linked
list, and array, or what? Again in C linked lists of structs are common.
They don't have the nice neat look of Python but I can build single or
doubly linked lists, insert or remove elements, set up sorting and so
forth in my sleep. If there isn't boilerplate I can cut'n'paste' the time
to implement one depends on my typing speed. The same can be said for C++
containers; if you know how to do it in C, it comes down to typing.

Re: Why Python When There Is Perl?

<l61vt6Fn16lU3@mid.individual.net>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=12300&group=comp.os.linux.advocacy#12300

  copy link   Newsgroups: comp.os.linux.advocacy
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: bowman@montana.com (rbowman)
Newsgroups: comp.os.linux.advocacy
Subject: Re: Why Python When There Is Perl?
Date: 21 Mar 2024 05:46:14 GMT
Lines: 9
Message-ID: <l61vt6Fn16lU3@mid.individual.net>
References: <17be420c4f90bfc7$63225$1585792$802601b3@news.usenetexpress.com>
<utd86u$1ipcj$1@solani.org>
<17be75acfaf8f0f4$2017$3384359$802601b3@news.usenetexpress.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: individual.net MGMPbbe6YBiEiLQOCiznZAHGZGN1zppvFsCnsEniuTUIClnOgB
Cancel-Lock: sha1:PZXO6SNwMdy5KI6JsNsOKZqWBFg= sha256:YGgpk2xre8x+DS8zoVMopqDQamHP3bnZTC4OAo86drc=
User-Agent: Pan/0.149 (Bellevue; 4c157ba)
 by: rbowman - Thu, 21 Mar 2024 05:46 UTC

On Wed, 20 Mar 2024 11:31:34 +0000, Nuxxie wrote:

> Therefore, in order to program one must first learn about the machine.
> One must first learn about logic gates, Boolean algebra, etc. Then one
> must learn machine language instructions.

In order to drive a car you must first know how to tune a Quadrajet after
you've installed a high lift Iskendarian camshaft and Edelbrock headers.

Pages:12345678910111213
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor