Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

"BTW, does Jesus know you flame?" -- Diane Holt, dianeh@binky.UUCP, to Ed Carp


computers / comp.os.vms / Re: OS implementation languages

SubjectAuthor
* OS implementation languagesSimon Clubley
+* Re: OS implementation languagesDennis Boone
|`* Re: OS implementation languagesSimon Clubley
| `* Re: OS implementation languagesJohnny Billquist
|  +* Re: OS implementation languagesSimon Clubley
|  |+* Re: OS implementation languagesArne Vajhøj
|  ||+- Re: OS implementation languagesterry-...@glaver.org
|  ||`* Re: OS implementation languageschrisq
|  || `* Re: OS implementation languagesSimon Clubley
|  ||  +* Re: OS implementation languagesSingle Stage to Orbit
|  ||  |+* Re: OS implementation languagesSimon Clubley
|  ||  ||+* Re: OS implementation languagesJohnny Billquist
|  ||  |||+- Re: OS implementation languagesRich Alderson
|  ||  |||+* Re: OS implementation languagesbill
|  ||  ||||+* Re: OS implementation languagesCraig A. Berry
|  ||  |||||+* Re: OS implementation languagesArne Vajhøj
|  ||  ||||||`- Re: OS implementation languagesCraig A. Berry
|  ||  |||||+* Re: OS implementation languagesArne Vajhøj
|  ||  ||||||`* Re: OS implementation languagesArne Vajhøj
|  ||  |||||| `- Re: OS implementation languagesDan Cross
|  ||  |||||+* Re: OS implementation languagesbill
|  ||  ||||||`- Re: OS implementation languagesArne Vajhøj
|  ||  |||||`* Re: OS implementation languagesBob Gezelter
|  ||  ||||| +* Re: OS implementation languagesIan Miller
|  ||  ||||| |+- Re: OS implementation languagesBob Gezelter
|  ||  ||||| |+* Re: OS implementation languagesBob Gezelter
|  ||  ||||| ||`* Re: OS implementation languagesJan-Erik Söderholm
|  ||  ||||| || `- Re: OS implementation languagesIan Miller
|  ||  ||||| |`- Re: OS implementation languagesSimon Clubley
|  ||  ||||| `- Re: OS implementation languagesDavid Jones
|  ||  ||||+* Re: OS implementation languagesJohnny Billquist
|  ||  |||||+* Re: OS implementation languagesterry-...@glaver.org
|  ||  ||||||`* Re: OS implementation languagesJohnny Billquist
|  ||  |||||| +- Re: OS implementation languagesIan Miller
|  ||  |||||| +- Re: OS implementation languagesJan-Erik Söderholm
|  ||  |||||| `* Re: OS implementation languagesArne Vajhøj
|  ||  ||||||  `* Re: OS implementation languagesBob Gezelter
|  ||  ||||||   +* Re: OS implementation languagesSimon Clubley
|  ||  ||||||   |+- Re: OS implementation languagesSingle Stage to Orbit
|  ||  ||||||   |`- Re: OS implementation languagesJohnny Billquist
|  ||  ||||||   `* Re: OS implementation languagesJohnny Billquist
|  ||  ||||||    `* Re: OS implementation languagesDave Froble
|  ||  ||||||     `* Re: OS implementation languagesRobert A. Brooks
|  ||  ||||||      +* Re: OS implementation languagesBob Gezelter
|  ||  ||||||      |`- Re: OS implementation languagesDave Froble
|  ||  ||||||      `- Re: OS implementation languagesDave Froble
|  ||  |||||`* Re: OS implementation languagesSimon Clubley
|  ||  ||||| +- Re: OS implementation languagesDan Cross
|  ||  ||||| +- Re: OS implementation languagesDave Froble
|  ||  ||||| +- Re: OS implementation languagesArne Vajhøj
|  ||  ||||| `- Re: OS implementation languagesJohnny Billquist
|  ||  ||||`* Re: OS implementation languagesSimon Clubley
|  ||  |||| `* Re: OS implementation languagesBob Gezelter
|  ||  ||||  `- Re: OS implementation languagesterry-...@glaver.org
|  ||  |||+* Re: OS implementation languagesSimon Clubley
|  ||  ||||`* Re: OS implementation languagesJohnny Billquist
|  ||  |||| `* Re: OS implementation languagesSimon Clubley
|  ||  ||||  `* Re: OS implementation languagesJohnny Billquist
|  ||  ||||   `- Re: OS implementation languagesSimon Clubley
|  ||  |||`* Re: OS implementation languagesDan Cross
|  ||  ||| `- Re: OS implementation languagesJohnny Billquist
|  ||  ||`* Re: OS implementation languagesgah4
|  ||  || +* Re: OS implementation languagesBob Gezelter
|  ||  || |`* Re: OS implementation languagesJohnny Billquist
|  ||  || | +* Re: OS implementation languagesBob Gezelter
|  ||  || | |`* Re: OS implementation languagesJohnny Billquist
|  ||  || | | +* Re: OS implementation languagesBob Gezelter
|  ||  || | | |`* Re: OS implementation languagesJohnny Billquist
|  ||  || | | | `* Re: OS implementation languagesJohnny Billquist
|  ||  || | | |  `* Re: OS implementation languagesgah4
|  ||  || | | |   `- Re: OS implementation languagesJohnny Billquist
|  ||  || | | `* Re: OS implementation languagesBob Gezelter
|  ||  || | |  `- Re: OS implementation languagesJohnny Billquist
|  ||  || | `* Re: OS implementation languagesBob Gezelter
|  ||  || |  +- Re: OS implementation languagesgah4
|  ||  || |  `- Re: OS implementation languagesJohnny Billquist
|  ||  || +- Re: OS implementation languagesSimon Clubley
|  ||  || `* Re: OS implementation languagesDan Cross
|  ||  ||  `- Re: OS implementation languagesJohnny Billquist
|  ||  |`* Re: OS implementation languagesArne Vajhøj
|  ||  | +- Re: OS implementation languagesSingle Stage to Orbit
|  ||  | `* Re: OS implementation languageschrisq
|  ||  |  +- Re: OS implementation languagesplugh
|  ||  |  +- Re: OS implementation languagesArne Vajhøj
|  ||  |  +- Re: OS implementation languagesplugh
|  ||  |  `* Re: OS implementation languagesScott Dorsey
|  ||  |   `* Re: OS implementation languagesChris Townley
|  ||  |    +* Re: OS implementation languagesSimon Clubley
|  ||  |    |+* Re: OS implementation languagesDave Froble
|  ||  |    ||+- Re: OS implementation languagesSingle Stage to Orbit
|  ||  |    ||+- Re: OS implementation languagesArne Vajhøj
|  ||  |    ||`* Re: OS implementation languagesbill
|  ||  |    || `* Re: OS implementation languagesDan Cross
|  ||  |    ||  +* Re: OS implementation languagesbill
|  ||  |    ||  |+* Re: OS implementation languagesSimon Clubley
|  ||  |    ||  ||+* Re: OS implementation languagesbill
|  ||  |    ||  |||+* Re: OS implementation languagesScott Dorsey
|  ||  |    ||  ||||`* Re: OS implementation languagesbill
|  ||  |    ||  |||| `- Re: OS implementation languagesScott Dorsey
|  ||  |    ||  |||`* Re: OS implementation languagesArne Vajhøj
|  ||  |    ||  ||| `* Re: OS implementation languagesbill
|  ||  |    ||  ||`* Re: OS implementation languagesArne Vajhøj
|  ||  |    ||  |`* Re: OS implementation languagesArne Vajhøj
|  ||  |    ||  `- Re: OS implementation languagesArne Vajhøj
|  ||  |    |+- Re: OS implementation languagesChris Townley
|  ||  |    |`* Re: OS implementation languagesBob Gezelter
|  ||  |    `- Re: OS implementation languagesScott Dorsey
|  ||  `* Re: OS implementation languagesArne Vajhøj
|  |`- Re: OS implementation languagesAlexander Schreiber
|  `* Re: OS implementation languagesRich Alderson
`* Re: OS implementation languagesBob Eager

Pages:12345678
Re: OS implementation languages

<km360gF8emlU8@mid.individual.net>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=29768&group=comp.os.vms#29768

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: bill.gun...@gmail.com (bill)
Newsgroups: comp.os.vms
Subject: Re: OS implementation languages
Date: Sat, 9 Sep 2023 08:16:15 -0400
Lines: 45
Message-ID: <km360gF8emlU8@mid.individual.net>
References: <uc84kt$3iet2$1@dont-email.me>
<52170811d6a7d662fad88c54b1556c33c456b08e.camel@munted.eu>
<ucliku$2cs0e$2@dont-email.me> <ud4up3$1hjqq$1@dont-email.me>
<udat1j$pug$1@panix2.panix.com> <udaun8$2fep0$2@dont-email.me>
<udcg7p$303um$1@dont-email.me>
<7a5ea3f8-0670-4800-a597-2a1c1f71d2den@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: individual.net yoQVhBs0sPzUVjOcajZFFgj8fbxKi5ETzimV5kWoQxoRdQRCj3
Cancel-Lock: sha1:DrvAQ7+v1CDK/IMSUTC+vc30vb0= sha256:bkL6Yb5A8iVlhYej90qTOT5C6vUo2q1xmZC0n/0oIow=
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.14.0
Content-Language: en-US
In-Reply-To: <7a5ea3f8-0670-4800-a597-2a1c1f71d2den@googlegroups.com>
 by: bill - Sat, 9 Sep 2023 12:16 UTC

On 9/9/2023 3:18 AM, Bob Gezelter wrote:
> On Thursday, September 7, 2023 at 8:38:21 AM UTC-4, Simon Clubley wrote:
>> On 2023-09-06, Chris Townley <ne...@cct-net.co.uk> wrote:
>>>
>>> But plenty of youngsters play with Raspberry Pis - they don't even come
>>> with a box!
>>>
>> Yes, but what are they doing with them ?
>>
>> Quite a bit of the time it appears to be doing clever things with
>> user-mode applications that already exist.
>>
>> At one end, I can write bare-metal startup code and hence understand
>> how computers work when you have no software layers between you and the
>> hardware.
>>
>> At the other end, I can write business and webserver applications.
>>
>> I can also do the full range of intermediate stuff including writing
>> device drivers, and system-level programming in general.
>>
>> Like Scott, I get the feeling that understanding the system-level
>> stuff isn't as common any more (sadly).
>> Simon.
>>
>> --
>> Simon Clubley, clubley@remove_me.eisner.decus.org-Earth.UFP
>> Walking destinations on a map are further away than they appear.
> Simon,
>
> Sadly true. It profoundly unsettling to see the lack of underlying knowledge. Simple foundational knowledge about CPUs, memory, mass storage, networks, operating systems, and other areas is lacking. Often the common thread is ubiquity: Since all of the infrastructure has become commonplace, the everyday need for understanding has become background.
>
> However, in the end, everything in computing must tie back to the fundamentals. No amount of high-level abstraction can remove the realities of the foundational. One cannot take away the foundation by adding levels of abstraction and, in effect, obfuscation.

Truer than even you can imagine. Having started in the computer
biz as a GI and then moving on to government contracting (as a
systems engineer) with no degree but lots of experience I am amazed
at the current arguments over whether or not degrees are worth the
cost. I spent over 25 years in academia after my beltway bandit days
and I can assure you that the current graduate doesn't have half the
knowledge I had when I was just a lowly GI Programmer/Analyst.

bill

Re: OS implementation languages

<udhu2r$73h$1@panix2.panix.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=29772&group=comp.os.vms#29772

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!panix!.POSTED.panix2.panix.com!panix2.panix.com!not-for-mail
From: klu...@panix.com (Scott Dorsey)
Newsgroups: comp.os.vms
Subject: Re: OS implementation languages
Date: 9 Sep 2023 14:05:15 -0000
Organization: Former users of Netcom shell (1989-2000)
Lines: 13
Message-ID: <udhu2r$73h$1@panix2.panix.com>
References: <uc84kt$3iet2$1@dont-email.me> <km113aF8emnU5@mid.individual.net> <udfnp8$3j4cj$1@dont-email.me> <km1nbbF8emlU6@mid.individual.net>
Injection-Info: reader2.panix.com; posting-host="panix2.panix.com:166.84.1.2";
logging-data="25975"; mail-complaints-to="abuse@panix.com"
 by: Scott Dorsey - Sat, 9 Sep 2023 14:05 UTC

bill <bill.gunshannon@gmail.com> wrote:
>
>I had to support it at the University because we had a professor
>who insisted on teaching it, using it and making his students use
>it. No matter how many time I showed him the security holes he
>just insisted I was wrong and that it be available and wide open.

Don't show the professor the security holes. Show them to the students.
The result is always much more satisfying.
--scott

--
"C'est un Nagra. C'est suisse, et tres, tres precis."

Re: OS implementation languages

<udhu9l$jul$1@panix2.panix.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=29773&group=comp.os.vms#29773

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!panix!.POSTED.panix2.panix.com!panix2.panix.com!not-for-mail
From: klu...@panix.com (Scott Dorsey)
Newsgroups: comp.os.vms
Subject: Re: OS implementation languages
Date: 9 Sep 2023 14:08:53 -0000
Organization: Former users of Netcom shell (1989-2000)
Lines: 27
Message-ID: <udhu9l$jul$1@panix2.panix.com>
References: <uc84kt$3iet2$1@dont-email.me> <udaun8$2fep0$2@dont-email.me> <udcg7p$303um$1@dont-email.me> <7a5ea3f8-0670-4800-a597-2a1c1f71d2den@googlegroups.com>
Injection-Info: reader2.panix.com; posting-host="panix2.panix.com:166.84.1.2";
logging-data="24866"; mail-complaints-to="abuse@panix.com"
 by: Scott Dorsey - Sat, 9 Sep 2023 14:08 UTC

Bob Gezelter <gezelter@rlgsc.com> wrote:
>Sadly true. It profoundly unsettling to see the lack of underlying knowledg=
>e. Simple foundational knowledge about CPUs, memory, mass storage, networks=
>, operating systems, and other areas is lacking. Often the common thread is=
> ubiquity: Since all of the infrastructure has become commonplace, the ever=
>yday need for understanding has become background.

Our IT department back in 2016 went on a binge of getting rid of anything
that was on the inventory as a "laptop" or "portable computer" that could not
have the hard drive encrypted.

This meant we got rid of a bunch of older machines that were used for
instrument control, which did not boot off a hard drive and therefore
could not be encrypted.

But most interestingly it meant we got rid of a whole bunch of mechanical
slide rule devices (E-6B flight computers) because they could not be
encrypted.

I attempted to get the IT department to actually explain what a computer was
and what wasn't a computer, and to this day I still cannot get them to give
me a definition for what a computer is. I blame poor elementary school
education for this.
--scott

--
"C'est un Nagra. C'est suisse, et tres, tres precis."

Re: OS implementation languages

<udhucc$3t63$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=29774&group=comp.os.vms#29774

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: arn...@vajhoej.dk (Arne Vajhøj)
Newsgroups: comp.os.vms
Subject: Re: OS implementation languages
Date: Sat, 9 Sep 2023 10:10:19 -0400
Organization: A noiseless patient Spider
Lines: 107
Message-ID: <udhucc$3t63$1@dont-email.me>
References: <uc84kt$3iet2$1@dont-email.me> <udcg7p$303um$1@dont-email.me>
<udciju$30egm$1@dont-email.me> <km0l0iF8emlU3@mid.individual.net>
<udf9io$o8s$1@reader2.panix.com> <km113aF8emnU5@mid.individual.net>
<udfnp8$3j4cj$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sat, 9 Sep 2023 14:10:20 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="e0ca7542e7f8d2c872ca23813f8648e1";
logging-data="128195"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19Mshz9EkqQpsn7R93Soz1vnAahf1rPqUw="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.15.0
Cancel-Lock: sha1:s/sxIFEkd6Ad5PjSNSAsV8fjtFg=
In-Reply-To: <udfnp8$3j4cj$1@dont-email.me>
Content-Language: en-US
 by: Arne Vajhøj - Sat, 9 Sep 2023 14:10 UTC

On 9/8/2023 2:05 PM, Simon Clubley wrote:
> Unfortunately, I _do_ have to use PHP sometimes.
>
> It didn't take me long to establish some solid rules, such as strict
> comparisons at _all_ times, and to use a monitor library I wrote that
> has the allowed error level turned all the way down so that things
> which PHP normally allows through generate an error instead.
>
> |PHP is built to keep chugging along at all costs. When faced with either
> |doing something nonsensical or aborting with an error, it will do something
> |nonsensical. Anything is better than nothing.
>
> It is a horrible, horrible, language that like Javascript has been
> turned from something used for writing little scripts into something
> used to write mission-critical and highly sensitive applications,
> which neither of them are suitable for.
>
> From that page:
>
> |PHP is built to keep chugging along at all costs. When faced with either
> |doing something nonsensical or aborting with an error, it will do something
> |nonsensical. Anything is better than nothing.
>
> That sums up the language perfectly (and the same mindset is equally true
> for Javascript in IMHO). They were both designed for quick hacks, not for
> serious mission-critical applications.

PHP actually follows the same rules as most languages:
not able to continue => error
able to continue => warning
error => stop execution
warning => continue execution

But PHP does allow some constructs that other languages do not.

As an example:

<?php

class C { }

function check($lbl, $v) {
$vv = $v ? 'true' : 'false';
echo "$lbl is $vv\r\n";
}

check('true', true);
check('false', false);
check('123', 123);
check('"ABC"', 'ABC');
check('0', 0);
check('""', '');
check('"0"', '0');
check('(instance of C)', new C());
check('null', null);

?>

outputs:

true is true
false is false
123 is true
"ABC" is true
0 is false
"" is false
"0" is false
(instance of C) is true
null is false

But languages get designed for certain purposes/contexts/users.

PHP was designed to allow people that does not understand
data types to write code.

If people do not understand the difference between boolean
data type and other data types, then PHP behavior makes sense.

There is little point in criticizing a language for meeting
its design goals.

The question is whether the language is a good choice for
a specific context.

I have no idea whether PHP was the right or the wrong choice
for your web application.

There is a pretty big majority in the IT industry that believe
type safe languages are not the right choice for web applications.
Business critical web site or not.

Just like you can ask a C compiler to not continue with
warnings then you can do the same with PHP.

function always_die($errno, $errstr, $errfile, $errline ) {
echo "$errstr in $errfile on line $errline";
die();
} set_error_handler('always_die');

will force PHP to stop at warnings and notices (PHP term for
informationals).

Arne

Re: OS implementation languages

<udhun5$fom$1@panix2.panix.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=29775&group=comp.os.vms#29775

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!panix!.POSTED.panix2.panix.com!panix2.panix.com!not-for-mail
From: klu...@panix.com (Scott Dorsey)
Newsgroups: comp.os.vms
Subject: Re: OS implementation languages
Date: 9 Sep 2023 14:16:05 -0000
Organization: Former users of Netcom shell (1989-2000)
Lines: 34
Message-ID: <udhun5$fom$1@panix2.panix.com>
References: <uc84kt$3iet2$1@dont-email.me> <udcg7p$303um$1@dont-email.me> <7a5ea3f8-0670-4800-a597-2a1c1f71d2den@googlegroups.com> <km360gF8emlU8@mid.individual.net>
Injection-Info: reader2.panix.com; posting-host="panix2.panix.com:166.84.1.2";
logging-data="19308"; mail-complaints-to="abuse@panix.com"
 by: Scott Dorsey - Sat, 9 Sep 2023 14:16 UTC

bill <bill.gunshannon@gmail.com> wrote:
>Truer than even you can imagine. Having started in the computer
>biz as a GI and then moving on to government contracting (as a
>systems engineer) with no degree but lots of experience I am amazed
>at the current arguments over whether or not degrees are worth the
>cost. I spent over 25 years in academia after my beltway bandit days
>and I can assure you that the current graduate doesn't have half the
>knowledge I had when I was just a lowly GI Programmer/Analyst.

I see fresh-outs who come with CS degrees from colleges that follow the
ACM curriculum who have a pretty good grip on the basics.

I also see fresh-outs who come with CS degrees from Hooterville Bible
College who have never used a command line, have never used any OS
other than Windows, and have never seen Big-O notation. They have a
CS degree on paper, but what they really got was a trade school education
in how to write code and they know nothing of actual CS.

But then... I see engineering fresh-outs who have never used a computer
for anything other than Word and Matlab and have no concept of embedded
stuff. I don't expect engineering students to learn a whole lot of real
computer science but I do expect them to have basic computer literacy skills.

There is a huge range.

I also see self-taught people and they can be interesting because they are
always very motivated (which is how they got to be self-taught in the first
place) but often have odd holes in their knowledge that they don't realize
exist. If you let them know about the holes they will fix them but they
often don't get to know about them until it's too late. The older they get
the better they get, and that's not always the case for folks with degrees.
--scott
--
"C'est un Nagra. C'est suisse, et tres, tres precis."

Re: OS implementation languages

<udi27i$4e5h$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=29778&group=comp.os.vms#29778

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: arn...@vajhoej.dk (Arne Vajhøj)
Newsgroups: comp.os.vms
Subject: Re: OS implementation languages
Date: Sat, 9 Sep 2023 11:16:02 -0400
Organization: A noiseless patient Spider
Lines: 59
Message-ID: <udi27i$4e5h$1@dont-email.me>
References: <uc84kt$3iet2$1@dont-email.me> <udcg7p$303um$1@dont-email.me>
<udciju$30egm$1@dont-email.me> <km0l0iF8emlU3@mid.individual.net>
<udf9io$o8s$1@reader2.panix.com> <km113aF8emnU5@mid.individual.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 9 Sep 2023 15:16:02 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="e0ca7542e7f8d2c872ca23813f8648e1";
logging-data="145585"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+mAe83kXjVIQyKOytxx41IO2qHRkgmij8="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.15.0
Cancel-Lock: sha1:06NUyvFHf8i7D+xNVoH45EO0B4s=
Content-Language: en-US
In-Reply-To: <km113aF8emnU5@mid.individual.net>
 by: Arne Vajhøj - Sat, 9 Sep 2023 15:16 UTC

On 9/8/2023 12:40 PM, bill wrote:
> On 9/8/2023 10:03 AM, Dan Cross wrote:
>> In article <km0l0iF8emlU3@mid.individual.net>,
>> bill  <bill.gunshannon@gmail.com> wrote:
>>> On 9/7/2023 9:18 AM, Dave Froble wrote:
>>>> My moment of enlightenment was the day I was told I wasn't a "real
>>>> programmer" since I didn't know or use PHP.  Guy didn't even know what
>>>> assembly language was.  It's actually a bit scary.
>>>
>>> I'm a real programmer.  I know PHP and that's why I don't use it.
>>
>> This seems apropos:
>> https://eev.ee/blog/2012/04/09/php-a-fractal-of-bad-design/
>
> That was good.  Even some stuff in there I didn't already know about.
> But my biggest argument was how it works so very hard to make security
> in the environment it is most used (the web) totally nonexistent.

Totally opposite.

PHP does not have many of the common general flaws like
buffer overflow and memory leak.

PHP got all the features needing for secure web applications.

Some old features that were questionable from a security
perspective has been removed. Classic example is register_globals
that been off by default since version 4.2 (21 years ago) and
was finally removed in version 5.4 (8 years ago).

The most widely used frameworks has added features to make it
easy to avoid common web security problems. Example: Laravel
always check for token to prevent CSRF.

There is every reason to believe that a PHP web application
created by the average Ada/C++/Scala programmer would be very
secure.

A PHP application created by the average PGP programmer
is likely to have big security problems though.

There may be a million people doing PHP professionally, but
there are many millions doing PHP for hobby programming.

PHP has a big problem. It is an easy language to learn and
it is quite easy to get some PHP code working. Any idiot can
write PHP code that works - works in the good case that is.
So a lot of the idiots does write PHP code.

And we see one disaster after the other.

But that is not really PHP's problem. Unless we consider a
language being too easy to use as a flaw.

Arne

Re: OS implementation languages

<udi2dr$4e5h$2@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=29779&group=comp.os.vms#29779

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: arn...@vajhoej.dk (Arne Vajhøj)
Newsgroups: comp.os.vms
Subject: Re: OS implementation languages
Date: Sat, 9 Sep 2023 11:19:24 -0400
Organization: A noiseless patient Spider
Lines: 24
Message-ID: <udi2dr$4e5h$2@dont-email.me>
References: <uc84kt$3iet2$1@dont-email.me> <udcg7p$303um$1@dont-email.me>
<udciju$30egm$1@dont-email.me> <km0l0iF8emlU3@mid.individual.net>
<udf9io$o8s$1@reader2.panix.com> <km113aF8emnU5@mid.individual.net>
<udfnp8$3j4cj$1@dont-email.me> <km1nbbF8emlU6@mid.individual.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 9 Sep 2023 15:19:23 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="e0ca7542e7f8d2c872ca23813f8648e1";
logging-data="145585"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/gSFkAcf+fonYcv9I71T/JZOFYozpmjx4="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.15.0
Cancel-Lock: sha1:2O+1/V3SD973yPr2oToRhEjwsCk=
Content-Language: en-US
In-Reply-To: <km1nbbF8emlU6@mid.individual.net>
 by: Arne Vajhøj - Sat, 9 Sep 2023 15:19 UTC

On 9/8/2023 6:59 PM, bill wrote:
> On 9/8/2023 2:05 PM, Simon Clubley wrote:
>> Unfortunately, I _do_ have to use PHP sometimes.
>>
>> It didn't take me long to establish some solid rules, such as strict
>> comparisons at _all_ times, and to use a monitor library I wrote that
>> has the allowed error level turned all the way down so that things
>> which PHP normally allows through generate an error instead.
>
> I had to support it at the University because we had a professor
> who insisted on teaching it, using it and making his students use
> it.  No matter how many time I showed him the security holes he
> just insisted I was wrong and that it be available  and wide open.

Maybe he had this crazy idea that programming code
read input, does some processing and write output and that
the main responsibility for correctness, security, performance
and whatever belongs with the person writing the code.

:-)

Arne

Re: OS implementation languages

<memo.20230909163314.13508J@jgd.cix.co.uk>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=29780&group=comp.os.vms#29780

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: jgd...@cix.co.uk (John Dallman)
Newsgroups: comp.os.vms
Subject: Re: OS implementation languages
Date: Sat, 9 Sep 2023 16:33 +0100 (BST)
Organization: A noiseless patient Spider
Lines: 28
Message-ID: <memo.20230909163314.13508J@jgd.cix.co.uk>
References: <udhu9l$jul$1@panix2.panix.com>
Reply-To: jgd@cix.co.uk
Injection-Info: dont-email.me; posting-host="2b826d6dbcd736c61fb04e1d1deaae55";
logging-data="150277"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX190jdIH97MmFxVwvWWAM1YOHQ6WVzuy3o8="
Cancel-Lock: sha1:ggRhwp/vkv4NKzPZh6jeGVQ0bcQ=
 by: John Dallman - Sat, 9 Sep 2023 15:33 UTC

In article <udhu9l$jul$1@panix2.panix.com>, kludge@panix.com (Scott
Dorsey) wrote:

> Our IT department back in 2016 went on a binge of getting rid of
> anything that was on the inventory as a "laptop" or "portable
> computer" that could not have the hard drive encrypted.
>
> But most interestingly it meant we got rid of a whole bunch of
> mechanical slide rule devices (E-6B flight computers) because
> they could not be encrypted.

Thanks, you've made me feel better about my IT department. They can be
very annoying, but they are not *that* dumb.

We've had the "all laptops must be encrypted" rule applied, but were able
to negotiate exceptions for ARM Windows laptops, that are used as
build/test machines and are physically locked to their racking. There
weren't any ARM Windows desktops on sale at the time.

We explained that when we've finished with the laptops as build machines,
we'll encrypt them should someone want them as personal devices (which
will not happen). I could feel IT wanting to ask "What if some manager
demands one as a personal device now?" to which the official answer would
have been "We tell them they'd be removing our ability to deliver product
to our fastest-growing customer" and the unofficial answer would be "We
don't employ managers that dumb in the UK."

John

Re: OS implementation languages

<km3i58F8emlU12@mid.individual.net>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=29784&group=comp.os.vms#29784

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: bill.gun...@gmail.com (bill)
Newsgroups: comp.os.vms
Subject: Re: OS implementation languages
Date: Sat, 9 Sep 2023 11:43:35 -0400
Lines: 18
Message-ID: <km3i58F8emlU12@mid.individual.net>
References: <uc84kt$3iet2$1@dont-email.me> <km113aF8emnU5@mid.individual.net>
<udfnp8$3j4cj$1@dont-email.me> <km1nbbF8emlU6@mid.individual.net>
<udhu2r$73h$1@panix2.panix.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: individual.net /Ew186Qn78R90iC4018aigVT0mS8zJfPIlkEabYT0CeZ8IUEEB
Cancel-Lock: sha1:pfLLTxQABQMF5zjK3dXUb4nHm/I= sha256:Ehc3AkMDckxgRouw60z8hfmRXQn39WNhsahjVk6bWEM=
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.14.0
Content-Language: en-US
In-Reply-To: <udhu2r$73h$1@panix2.panix.com>
 by: bill - Sat, 9 Sep 2023 15:43 UTC

On 9/9/2023 10:05 AM, Scott Dorsey wrote:
> bill <bill.gunshannon@gmail.com> wrote:
>>
>> I had to support it at the University because we had a professor
>> who insisted on teaching it, using it and making his students use
>> it. No matter how many time I showed him the security holes he
>> just insisted I was wrong and that it be available and wide open.
>
> Don't show the professor the security holes. Show them to the students.
> The result is always much more satisfying.

Showing them (I did) doesn't change the requirements for that
particular professors courses. If he insists that they do
something stupid, they have to comply to get through the class.

bill

Re: OS implementation languages

<km3i7vF8emlU13@mid.individual.net>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=29785&group=comp.os.vms#29785

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: bill.gun...@gmail.com (bill)
Newsgroups: comp.os.vms
Subject: Re: OS implementation languages
Date: Sat, 9 Sep 2023 11:45:02 -0400
Lines: 33
Message-ID: <km3i7vF8emlU13@mid.individual.net>
References: <uc84kt$3iet2$1@dont-email.me> <udcg7p$303um$1@dont-email.me>
<udciju$30egm$1@dont-email.me> <km0l0iF8emlU3@mid.individual.net>
<udf9io$o8s$1@reader2.panix.com> <km113aF8emnU5@mid.individual.net>
<udfnp8$3j4cj$1@dont-email.me> <km1nbbF8emlU6@mid.individual.net>
<udi2dr$4e5h$2@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: individual.net 7ojiHnHU/MBqD7Iaklu4agOXLyyxq5XxFZxeysskGDu29Z60OO
Cancel-Lock: sha1:CwAUl4xK2/ZopwnUGiAkYweakSw= sha256:Mbz1R/k4XAjMyOGJSArmX09Y7Dxk/BuYOvOuisOqARI=
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.14.0
Content-Language: en-US
In-Reply-To: <udi2dr$4e5h$2@dont-email.me>
 by: bill - Sat, 9 Sep 2023 15:45 UTC

On 9/9/2023 11:19 AM, Arne Vajhøj wrote:
> On 9/8/2023 6:59 PM, bill wrote:
>> On 9/8/2023 2:05 PM, Simon Clubley wrote:
>>> Unfortunately, I _do_ have to use PHP sometimes.
>>>
>>> It didn't take me long to establish some solid rules, such as strict
>>> comparisons at _all_ times, and to use a monitor library I wrote that
>>> has the allowed error level turned all the way down so that things
>>> which PHP normally allows through generate an error instead.
>>
>> I had to support it at the University because we had a professor
>> who insisted on teaching it, using it and making his students use
>> it.  No matter how many time I showed him the security holes he
>> just insisted I was wrong and that it be available  and wide open.
>
> Maybe he had this crazy idea that programming code
> read input, does some processing and write output and that
> the main responsibility for correctness, security, performance
> and whatever belongs with the person writing the code.
>
> :-)
>
> Arne
>
>

Nice thought, but the particular problem I was fighting was
inherent to PHP and the programmer can only stop it by using
a better tool.

bill

Re: OS implementation languages

<udi5ld$4t22$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=29787&group=comp.os.vms#29787

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: arn...@vajhoej.dk (Arne Vajhøj)
Newsgroups: comp.os.vms
Subject: Re: OS implementation languages
Date: Sat, 9 Sep 2023 12:14:37 -0400
Organization: A noiseless patient Spider
Lines: 32
Message-ID: <udi5ld$4t22$1@dont-email.me>
References: <uc84kt$3iet2$1@dont-email.me> <udcg7p$303um$1@dont-email.me>
<udciju$30egm$1@dont-email.me> <km0l0iF8emlU3@mid.individual.net>
<udf9io$o8s$1@reader2.panix.com> <km113aF8emnU5@mid.individual.net>
<udfnp8$3j4cj$1@dont-email.me> <km1nbbF8emlU6@mid.individual.net>
<udi2dr$4e5h$2@dont-email.me> <km3i7vF8emlU13@mid.individual.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 9 Sep 2023 16:14:37 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="e0ca7542e7f8d2c872ca23813f8648e1";
logging-data="160834"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+sK+yd/aOG6fW+EFu6Qkr3RVLrzmCKTrQ="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.15.0
Cancel-Lock: sha1:Cv9rQkVBsc2Btyl3wSWuJ2Ur6nU=
Content-Language: en-US
In-Reply-To: <km3i7vF8emlU13@mid.individual.net>
 by: Arne Vajhøj - Sat, 9 Sep 2023 16:14 UTC

On 9/9/2023 11:45 AM, bill wrote:
> On 9/9/2023 11:19 AM, Arne Vajhøj wrote:
>> On 9/8/2023 6:59 PM, bill wrote:
>>> On 9/8/2023 2:05 PM, Simon Clubley wrote:
>>>> Unfortunately, I _do_ have to use PHP sometimes.
>>>>
>>>> It didn't take me long to establish some solid rules, such as strict
>>>> comparisons at _all_ times, and to use a monitor library I wrote that
>>>> has the allowed error level turned all the way down so that things
>>>> which PHP normally allows through generate an error instead.
>>>
>>> I had to support it at the University because we had a professor
>>> who insisted on teaching it, using it and making his students use
>>> it.  No matter how many time I showed him the security holes he
>>> just insisted I was wrong and that it be available  and wide open.
>>
>> Maybe he had this crazy idea that programming code
>> read input, does some processing and write output and that
>> the main responsibility for correctness, security, performance
>> and whatever belongs with the person writing the code.
>>
>> :-)
>
> Nice thought, but the particular problem I was fighting was
> inherent to PHP and the programmer can only stop it by using
> a better tool.

You are aware that PHP is Turing complete?

Arne

Re: OS implementation languages

<km3m7gF8emnU8@mid.individual.net>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=29791&group=comp.os.vms#29791

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!usenet.goja.nl.eu.org!3.eu.feeder.erje.net!feeder.erje.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: bill.gun...@gmail.com (bill)
Newsgroups: comp.os.vms
Subject: Re: OS implementation languages
Date: Sat, 9 Sep 2023 12:53:03 -0400
Lines: 45
Message-ID: <km3m7gF8emnU8@mid.individual.net>
References: <uc84kt$3iet2$1@dont-email.me> <udcg7p$303um$1@dont-email.me>
<udciju$30egm$1@dont-email.me> <km0l0iF8emlU3@mid.individual.net>
<udf9io$o8s$1@reader2.panix.com> <km113aF8emnU5@mid.individual.net>
<udfnp8$3j4cj$1@dont-email.me> <km1nbbF8emlU6@mid.individual.net>
<udi2dr$4e5h$2@dont-email.me> <km3i7vF8emlU13@mid.individual.net>
<udi5ld$4t22$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: individual.net 5kG+6Ix/VLoQxE5ve3F2kgiV4cerQNnZ5ZvBe554noZUZv/ZO4
Cancel-Lock: sha1:8o6aw4cUSNkLf5pdVlDb+lKemdk= sha256:9ut5VESizZFDPJ6kGQOMSw9kVfY6zXihrgkgOZuIb2k=
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.14.0
Content-Language: en-US
In-Reply-To: <udi5ld$4t22$1@dont-email.me>
 by: bill - Sat, 9 Sep 2023 16:53 UTC

On 9/9/2023 12:14 PM, Arne Vajhøj wrote:
> On 9/9/2023 11:45 AM, bill wrote:
>> On 9/9/2023 11:19 AM, Arne Vajhøj wrote:
>>> On 9/8/2023 6:59 PM, bill wrote:
>>>> On 9/8/2023 2:05 PM, Simon Clubley wrote:
>>>>> Unfortunately, I _do_ have to use PHP sometimes.
>>>>>
>>>>> It didn't take me long to establish some solid rules, such as strict
>>>>> comparisons at _all_ times, and to use a monitor library I wrote that
>>>>> has the allowed error level turned all the way down so that things
>>>>> which PHP normally allows through generate an error instead.
>>>>
>>>> I had to support it at the University because we had a professor
>>>> who insisted on teaching it, using it and making his students use
>>>> it.  No matter how many time I showed him the security holes he
>>>> just insisted I was wrong and that it be available  and wide open.
>>>
>>> Maybe he had this crazy idea that programming code
>>> read input, does some processing and write output and that
>>> the main responsibility for correctness, security, performance
>>> and whatever belongs with the person writing the code.
>>>
>>> :-)
>>
>> Nice thought, but the particular problem I was fighting was
>> inherent to PHP and the programmer can only stop it by using
>> a better tool.
>
> You are aware that PHP is Turing complete?
>

Which means what in the concept of security? It has nothing
to do with the syntax or even the function of the programs
written with it. The problem resides in the PHP interpreter
and the programmer has no control over it. If certain features
are turned on, PHP can be coerced to execute arbitrary commands
on the machine running the web server that is supporting PHP.

Unless someone actually fixed this. I have been out of that game
for almost 10 years now. But I would still never trust PHP.

bill

Re: OS implementation languages

<udi9pf$5cg1$2@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=29794&group=comp.os.vms#29794

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: arn...@vajhoej.dk (Arne Vajhøj)
Newsgroups: comp.os.vms
Subject: Re: OS implementation languages
Date: Sat, 9 Sep 2023 13:25:03 -0400
Organization: A noiseless patient Spider
Lines: 56
Message-ID: <udi9pf$5cg1$2@dont-email.me>
References: <uc84kt$3iet2$1@dont-email.me> <udcg7p$303um$1@dont-email.me>
<udciju$30egm$1@dont-email.me> <km0l0iF8emlU3@mid.individual.net>
<udf9io$o8s$1@reader2.panix.com> <km113aF8emnU5@mid.individual.net>
<udfnp8$3j4cj$1@dont-email.me> <km1nbbF8emlU6@mid.individual.net>
<udi2dr$4e5h$2@dont-email.me> <km3i7vF8emlU13@mid.individual.net>
<udi5ld$4t22$1@dont-email.me> <km3m7gF8emnU8@mid.individual.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 9 Sep 2023 17:25:03 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="e0ca7542e7f8d2c872ca23813f8648e1";
logging-data="176641"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/tkzwMwXm9pI8XyEEtG88QyStQXdeW7Gw="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.15.0
Cancel-Lock: sha1:vZwKNNPvmDBD6SjwntsgF85pGT8=
In-Reply-To: <km3m7gF8emnU8@mid.individual.net>
Content-Language: en-US
 by: Arne Vajhøj - Sat, 9 Sep 2023 17:25 UTC

On 9/9/2023 12:53 PM, bill wrote:
> On 9/9/2023 12:14 PM, Arne Vajhøj wrote:
>> On 9/9/2023 11:45 AM, bill wrote:
>>> On 9/9/2023 11:19 AM, Arne Vajhøj wrote:
>>>> On 9/8/2023 6:59 PM, bill wrote:
>>>>> On 9/8/2023 2:05 PM, Simon Clubley wrote:
>>>>>> Unfortunately, I _do_ have to use PHP sometimes.
>>>>>>
>>>>>> It didn't take me long to establish some solid rules, such as strict
>>>>>> comparisons at _all_ times, and to use a monitor library I wrote that
>>>>>> has the allowed error level turned all the way down so that things
>>>>>> which PHP normally allows through generate an error instead.
>>>>>
>>>>> I had to support it at the University because we had a professor
>>>>> who insisted on teaching it, using it and making his students use
>>>>> it.  No matter how many time I showed him the security holes he
>>>>> just insisted I was wrong and that it be available  and wide open.
>>>>
>>>> Maybe he had this crazy idea that programming code
>>>> read input, does some processing and write output and that
>>>> the main responsibility for correctness, security, performance
>>>> and whatever belongs with the person writing the code.
>>>>
>>>> :-)
>>>
>>> Nice thought, but the particular problem I was fighting was
>>> inherent to PHP and the programmer can only stop it by using
>>> a better tool.
>>
>> You are aware that PHP is Turing complete?
>
> Which means what in the concept of security?  It has nothing
> to do with the syntax or even the function of the programs
> written with it.

It means that you did not have to rewrite in another language to
fix the problem.

>   The problem resides in the PHP interpreter
> and the programmer has no control over it.  If certain features
> are turned on, PHP can be coerced to execute arbitrary commands
> on the machine running the web server that is supporting PHP.

Code and programming languages and not magic that does
something by itself.

The programmer write code to do certain things and may also configure
compiler or interpreter to handle some things a certain way and
then the code does it.

PHP receive input from the user in $_GET, $_POST etc. and the
PHP code can treat that proper or not so proper. PHP has a number
of functions to handle untrusted input.

Arne

Re: OS implementation languages

<udiee4$2bl$1@news.misty.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=29797&group=comp.os.vms#29797

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!.POSTED.80-218-16-84.dclient.hispeed.ch!not-for-mail
From: bqt...@softjar.se (Johnny Billquist)
Newsgroups: comp.os.vms
Subject: Re: OS implementation languages
Date: Sat, 9 Sep 2023 20:44:20 +0200
Organization: MGT Consulting
Message-ID: <udiee4$2bl$1@news.misty.com>
References: <uc84kt$3iet2$1@dont-email.me> <udcg7p$303um$1@dont-email.me>
<udciju$30egm$1@dont-email.me> <km0l0iF8emlU3@mid.individual.net>
<udf9io$o8s$1@reader2.panix.com> <km113aF8emnU5@mid.individual.net>
<udfnp8$3j4cj$1@dont-email.me> <km1nbbF8emlU6@mid.individual.net>
<udi2dr$4e5h$2@dont-email.me> <km3i7vF8emlU13@mid.individual.net>
<udi5ld$4t22$1@dont-email.me> <km3m7gF8emnU8@mid.individual.net>
<udi9pf$5cg1$2@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 9 Sep 2023 18:44:20 -0000 (UTC)
Injection-Info: news.misty.com; posting-host="80-218-16-84.dclient.hispeed.ch:80.218.16.84";
logging-data="2421"; mail-complaints-to="abuse@misty.com"
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0)
Gecko/20100101 Thunderbird/102.15.0
In-Reply-To: <udi9pf$5cg1$2@dont-email.me>
 by: Johnny Billquist - Sat, 9 Sep 2023 18:44 UTC

On 2023-09-09 19:25, Arne Vajhøj wrote:
> On 9/9/2023 12:53 PM, bill wrote:
>> On 9/9/2023 12:14 PM, Arne Vajhøj wrote:
>>> On 9/9/2023 11:45 AM, bill wrote:
>>>> On 9/9/2023 11:19 AM, Arne Vajhøj wrote:
>>>>> On 9/8/2023 6:59 PM, bill wrote:
>>>>>> On 9/8/2023 2:05 PM, Simon Clubley wrote:
>>>>>>> Unfortunately, I _do_ have to use PHP sometimes.
>>>>>>>
>>>>>>> It didn't take me long to establish some solid rules, such as strict
>>>>>>> comparisons at _all_ times, and to use a monitor library I wrote
>>>>>>> that
>>>>>>> has the allowed error level turned all the way down so that things
>>>>>>> which PHP normally allows through generate an error instead.
>>>>>>
>>>>>> I had to support it at the University because we had a professor
>>>>>> who insisted on teaching it, using it and making his students use
>>>>>> it.  No matter how many time I showed him the security holes he
>>>>>> just insisted I was wrong and that it be available  and wide open.
>>>>>
>>>>> Maybe he had this crazy idea that programming code
>>>>> read input, does some processing and write output and that
>>>>> the main responsibility for correctness, security, performance
>>>>> and whatever belongs with the person writing the code.
>>>>>
>>>>> :-)
>>>>
>>>> Nice thought, but the particular problem I was fighting was
>>>> inherent to PHP and the programmer can only stop it by using
>>>> a better tool.
>>>
>>> You are aware that PHP is Turing complete?
>>
>> Which means what in the concept of security?  It has nothing
>> to do with the syntax or even the function of the programs
>> written with it.
>
> It means that you did not have to rewrite in another language to
> fix the problem.

That definitely does not neccesarily follow.

Consider for example C and some language like BASIC, which have full
control over strings.
Both are turing complete. But if you want to avoid the problem of
strings being handled as pointers to chunks of memory terminated by a
NUL, then you need to move away from C (to for example BASIC).
You cannot "fix" the problem of how C looks at strings.

The turing complete aspect have nothing to do with that.

Johnny

Re: OS implementation languages

<udifje$bk1$1@panix2.panix.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=29799&group=comp.os.vms#29799

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!panix!.POSTED.panix2.panix.com!panix2.panix.com!not-for-mail
From: klu...@panix.com (Scott Dorsey)
Newsgroups: comp.os.vms
Subject: Re: OS implementation languages
Date: 9 Sep 2023 19:04:14 -0000
Organization: Former users of Netcom shell (1989-2000)
Lines: 22
Message-ID: <udifje$bk1$1@panix2.panix.com>
References: <uc84kt$3iet2$1@dont-email.me> <km1nbbF8emlU6@mid.individual.net> <udhu2r$73h$1@panix2.panix.com> <km3i58F8emlU12@mid.individual.net>
Injection-Info: reader2.panix.com; posting-host="panix2.panix.com:166.84.1.2";
logging-data="12561"; mail-complaints-to="abuse@panix.com"
 by: Scott Dorsey - Sat, 9 Sep 2023 19:04 UTC

bill <bill.gunshannon@gmail.com> wrote:
>On 9/9/2023 10:05 AM, Scott Dorsey wrote:
>> bill <bill.gunshannon@gmail.com> wrote:
>>>
>>> I had to support it at the University because we had a professor
>>> who insisted on teaching it, using it and making his students use
>>> it. No matter how many time I showed him the security holes he
>>> just insisted I was wrong and that it be available and wide open.
>>
>> Don't show the professor the security holes. Show them to the students.
>> The result is always much more satisfying.
>
>Showing them (I did) doesn't change the requirements for that
>particular professors courses. If he insists that they do
>something stupid, they have to comply to get through the class.

Oh yes. School is all about doing stupid things and then finding out why
they are stupid later on.
--scott

--
"C'est un Nagra. C'est suisse, et tres, tres precis."

Re: OS implementation languages

<udik0n$6u7l$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=29802&group=comp.os.vms#29802

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: dav...@tsoft-inc.com (Dave Froble)
Newsgroups: comp.os.vms
Subject: Re: OS implementation languages
Date: Sat, 9 Sep 2023 16:19:33 -0400
Organization: A noiseless patient Spider
Lines: 127
Message-ID: <udik0n$6u7l$1@dont-email.me>
References: <uc84kt$3iet2$1@dont-email.me> <udcg7p$303um$1@dont-email.me>
<udciju$30egm$1@dont-email.me> <km0l0iF8emlU3@mid.individual.net>
<udf9io$o8s$1@reader2.panix.com> <km113aF8emnU5@mid.individual.net>
<udfnp8$3j4cj$1@dont-email.me> <udhucc$3t63$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 9 Sep 2023 20:19:35 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="ff2fb308606de114b110d1ecc586b8ea";
logging-data="227573"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19AIDfRtj+w5+Df4Glm76YsqkGj0nWwMrQ="
User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:45.0) Gecko/20100101
Thunderbird/45.8.0
Cancel-Lock: sha1:N4J04C5Sxw16HRy2+C0rjqPBcMU=
In-Reply-To: <udhucc$3t63$1@dont-email.me>
 by: Dave Froble - Sat, 9 Sep 2023 20:19 UTC

On 9/9/2023 10:10 AM, Arne Vajhøj wrote:
> On 9/8/2023 2:05 PM, Simon Clubley wrote:
>> Unfortunately, I _do_ have to use PHP sometimes.
>>
>> It didn't take me long to establish some solid rules, such as strict
>> comparisons at _all_ times, and to use a monitor library I wrote that
>> has the allowed error level turned all the way down so that things
>> which PHP normally allows through generate an error instead.
>>
>> |PHP is built to keep chugging along at all costs. When faced with either
>> |doing something nonsensical or aborting with an error, it will do something
>> |nonsensical. Anything is better than nothing.
>>
>> It is a horrible, horrible, language that like Javascript has been
>> turned from something used for writing little scripts into something
>> used to write mission-critical and highly sensitive applications,
>> which neither of them are suitable for.
>>
>> From that page:
>>
>> |PHP is built to keep chugging along at all costs. When faced with either
>> |doing something nonsensical or aborting with an error, it will do something
>> |nonsensical. Anything is better than nothing.
>>
>> That sums up the language perfectly (and the same mindset is equally true
>> for Javascript in IMHO). They were both designed for quick hacks, not for
>> serious mission-critical applications.
>
> PHP actually follows the same rules as most languages:
> not able to continue => error
> able to continue => warning
> error => stop execution
> warning => continue execution
>
> But PHP does allow some constructs that other languages do not.
>
> As an example:
>
> <?php
>
> class C { }
>
> function check($lbl, $v) {
> $vv = $v ? 'true' : 'false';
> echo "$lbl is $vv\r\n";
> }
>
> check('true', true);
> check('false', false);
> check('123', 123);
> check('"ABC"', 'ABC');
> check('0', 0);
> check('""', '');
> check('"0"', '0');
> check('(instance of C)', new C());
> check('null', null);
>
> ?>
>
> outputs:
>
> true is true
> false is false
> 123 is true
> "ABC" is true
> 0 is false
> "" is false
> "0" is false
> (instance of C) is true
> null is false
>
> But languages get designed for certain purposes/contexts/users.

Like ego ?

> PHP was designed to allow people that does not understand
> data types to write code.

Perhaps people who cannot understand something as simple as a data type should
not write code ?

> If people do not understand the difference between boolean
> data type and other data types, then PHP behavior makes sense.

See above ...

> There is little point in criticizing a language for meeting
> its design goals.

But there is great point in criticizing the design and goals.

> The question is whether the language is a good choice for
> a specific context.
>
> I have no idea whether PHP was the right or the wrong choice
> for your web application.
>
> There is a pretty big majority in the IT industry that believe
> type safe languages are not the right choice for web applications.
> Business critical web site or not.

There are quite a few idiots on the planet also.

> Just like you can ask a C compiler to not continue with
> warnings then you can do the same with PHP.
>
> function always_die($errno, $errstr, $errfile, $errline ) {
> echo "$errstr in $errfile on line $errline";
> die();
> }
> set_error_handler('always_die');
>
> will force PHP to stop at warnings and notices (PHP term for
> informationals).
>
> Arne
>
>
>

--
David Froble Tel: 724-529-0450
Dave Froble Enterprises, Inc. E-Mail: davef@tsoft-inc.com
DFE Ultralights, Inc.
170 Grimplin Road
Vanderbilt, PA 15486

Re: OS implementation languages

<udike7$6vti$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=29803&group=comp.os.vms#29803

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: dav...@tsoft-inc.com (Dave Froble)
Newsgroups: comp.os.vms
Subject: Re: OS implementation languages
Date: Sat, 9 Sep 2023 16:26:46 -0400
Organization: A noiseless patient Spider
Lines: 44
Message-ID: <udike7$6vti$1@dont-email.me>
References: <udhu9l$jul$1@panix2.panix.com>
<memo.20230909163314.13508J@jgd.cix.co.uk>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sat, 9 Sep 2023 20:26:47 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="ff2fb308606de114b110d1ecc586b8ea";
logging-data="229298"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18YH81jIV+G4nikldrfdvlQT07OiIrEDUw="
User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:45.0) Gecko/20100101
Thunderbird/45.8.0
Cancel-Lock: sha1:mfARVpRaTq0Q6Pp8TbmnduTymA4=
In-Reply-To: <memo.20230909163314.13508J@jgd.cix.co.uk>
 by: Dave Froble - Sat, 9 Sep 2023 20:26 UTC

On 9/9/2023 11:33 AM, John Dallman wrote:
> In article <udhu9l$jul$1@panix2.panix.com>, kludge@panix.com (Scott
> Dorsey) wrote:
>
>> Our IT department back in 2016 went on a binge of getting rid of
>> anything that was on the inventory as a "laptop" or "portable
>> computer" that could not have the hard drive encrypted.
>>
>> But most interestingly it meant we got rid of a whole bunch of
>> mechanical slide rule devices (E-6B flight computers) because
>> they could not be encrypted.
>
> Thanks, you've made me feel better about my IT department. They can be
> very annoying, but they are not *that* dumb.
>
> We've had the "all laptops must be encrypted" rule applied, but were able
> to negotiate exceptions for ARM Windows laptops, that are used as
> build/test machines and are physically locked to their racking. There
> weren't any ARM Windows desktops on sale at the time.
>
> We explained that when we've finished with the laptops as build machines,
> we'll encrypt them should someone want them as personal devices (which
> will not happen). I could feel IT wanting to ask "What if some manager
> demands one as a personal device now?" to which the official answer would
> have been "We tell them they'd be removing our ability to deliver product
> to our fastest-growing customer" and the unofficial answer would be "We
> don't employ managers that dumb in the UK."
>
> John
>

It might be interesting to have a contest for people to mention devices, such as
automobiles, calculators, etc that must be gotten rid of?

Nah, forget that, it would result in millions of off topic posts.

:-)

--
David Froble Tel: 724-529-0450
Dave Froble Enterprises, Inc. E-Mail: davef@tsoft-inc.com
DFE Ultralights, Inc.
170 Grimplin Road
Vanderbilt, PA 15486

Re: OS implementation languages

<udioe7$7hj7$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=29805&group=comp.os.vms#29805

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: arn...@vajhoej.dk (Arne Vajhøj)
Newsgroups: comp.os.vms
Subject: Re: OS implementation languages
Date: Sat, 9 Sep 2023 17:35:02 -0400
Organization: A noiseless patient Spider
Lines: 32
Message-ID: <udioe7$7hj7$1@dont-email.me>
References: <uc84kt$3iet2$1@dont-email.me> <udcg7p$303um$1@dont-email.me>
<udciju$30egm$1@dont-email.me> <km0l0iF8emlU3@mid.individual.net>
<udf9io$o8s$1@reader2.panix.com> <km113aF8emnU5@mid.individual.net>
<udi27i$4e5h$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 9 Sep 2023 21:35:03 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="e0ca7542e7f8d2c872ca23813f8648e1";
logging-data="247399"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/9SO1K8m71zYf0K+FODJTO/5cDzzsMung="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.15.0
Cancel-Lock: sha1:RDT//o+YGGp1qgZ+6tPH4sbs9tM=
Content-Language: en-US
In-Reply-To: <udi27i$4e5h$1@dont-email.me>
 by: Arne Vajhøj - Sat, 9 Sep 2023 21:35 UTC

On 9/9/2023 11:16 AM, Arne Vajhøj wrote:
> PHP does not have many of the common general flaws like
> buffer overflow and memory leak.
>
> PHP got all the features needing for secure web applications.
>
> Some old features that were questionable from a security
> perspective has been removed. Classic example is register_globals
> that been off by default since version 4.2 (21 years ago) and
> was finally removed in version 5.4 (8 years ago).
>
> The most widely used frameworks has added features to make it
> easy to avoid common web security problems. Example: Laravel
> always check for token to prevent CSRF.

And CSRF is a real problem.

On OWASP top ten it made:

2007 - 5th
2010 - 5th
2013 - 8th
2017 - missing
2021 - 10th
2023 API - 7th

Modern web frameworks like PHP Laravel, ASP.NET MVC, RoR,
JSF etc. has builtin anti forgery token support to prevent
CSRF.

Arne

Re: OS implementation languages

<udiov5$7hvo$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=29806&group=comp.os.vms#29806

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: arn...@vajhoej.dk (Arne Vajhøj)
Newsgroups: comp.os.vms
Subject: Re: OS implementation languages
Date: Sat, 9 Sep 2023 17:44:05 -0400
Organization: A noiseless patient Spider
Lines: 50
Message-ID: <udiov5$7hvo$1@dont-email.me>
References: <uc84kt$3iet2$1@dont-email.me> <udcg7p$303um$1@dont-email.me>
<udciju$30egm$1@dont-email.me> <km0l0iF8emlU3@mid.individual.net>
<udf9io$o8s$1@reader2.panix.com> <km113aF8emnU5@mid.individual.net>
<udfnp8$3j4cj$1@dont-email.me> <km1nbbF8emlU6@mid.individual.net>
<udi2dr$4e5h$2@dont-email.me> <km3i7vF8emlU13@mid.individual.net>
<udi5ld$4t22$1@dont-email.me> <km3m7gF8emnU8@mid.individual.net>
<udi9pf$5cg1$2@dont-email.me> <udiee4$2bl$1@news.misty.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 9 Sep 2023 21:44:05 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="e0ca7542e7f8d2c872ca23813f8648e1";
logging-data="247800"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+unaKU0fkplxT/57oBWsw/EOSoNAOGzMM="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.15.0
Cancel-Lock: sha1:XXb2rh1aKEdaR5CDN3mzAmhXa6I=
Content-Language: en-US
In-Reply-To: <udiee4$2bl$1@news.misty.com>
 by: Arne Vajhøj - Sat, 9 Sep 2023 21:44 UTC

On 9/9/2023 2:44 PM, Johnny Billquist wrote:
> On 2023-09-09 19:25, Arne Vajhøj wrote:
>> On 9/9/2023 12:53 PM, bill wrote:
>>> On 9/9/2023 12:14 PM, Arne Vajhøj wrote:
>>>> On 9/9/2023 11:45 AM, bill wrote:
>>>>> Nice thought, but the particular problem I was fighting was
>>>>> inherent to PHP and the programmer can only stop it by using
>>>>> a better tool.
>>>>
>>>> You are aware that PHP is Turing complete?
>>>
>>> Which means what in the concept of security?  It has nothing
>>> to do with the syntax or even the function of the programs
>>> written with it.
>>
>> It means that you did not have to rewrite in another language to
>> fix the problem.
>
> That definitely does not neccesarily follow.
>
> Consider for example C and some language like BASIC, which have full
> control over strings.
> Both are turing complete. But if you want to avoid the problem of
> strings being handled as pointers to chunks of memory terminated by a
> NUL, then you need to move away from C (to for example BASIC).
> You cannot "fix" the problem of how C looks at strings.
>
> The turing complete aspect have nothing to do with that.

I cannot follow your argument.

Being turing complete means that it can do anything that
the abstract turing machine and any other turing complete
language can do.

It does not mean that something is easy or best practice
or anything else.

I consider C strings a bad design. But I cannot imagine
any problem that could not be solved with C. In most cases
I think there would be better languages that will make it
possible to implement the functionality faster and
with less risk of errors. But it is still possible to
do it in C.

Arne

Re: OS implementation languages

<udiunk$2vom$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=29810&group=comp.os.vms#29810

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: new...@cct-net.co.uk (Chris Townley)
Newsgroups: comp.os.vms
Subject: Re: OS implementation languages
Date: Sun, 10 Sep 2023 00:22:28 +0100
Organization: A noiseless patient Spider
Lines: 39
Message-ID: <udiunk$2vom$1@dont-email.me>
References: <uc84kt$3iet2$1@dont-email.me> <udcg7p$303um$1@dont-email.me>
<udciju$30egm$1@dont-email.me> <km0l0iF8emlU3@mid.individual.net>
<udf9io$o8s$1@reader2.panix.com> <km113aF8emnU5@mid.individual.net>
<udi27i$4e5h$1@dont-email.me> <udioe7$7hj7$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 9 Sep 2023 23:22:28 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="5feb72f54c2ea19a2bef41e3817440d7";
logging-data="98070"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18Jz7WQh9UYufIFSJbXUhVPgSn38H0g1PU="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.15.0
Cancel-Lock: sha1:nDIiqjMeQ/PzN0M1hiJfV0Mc5pw=
Content-Language: en-GB
In-Reply-To: <udioe7$7hj7$1@dont-email.me>
 by: Chris Townley - Sat, 9 Sep 2023 23:22 UTC

On 09/09/2023 22:35, Arne Vajhøj wrote:
> On 9/9/2023 11:16 AM, Arne Vajhøj wrote:
>> PHP does not have many of the common general flaws like
>> buffer overflow and memory leak.
>>
>> PHP got all the features needing for secure web applications.
>>
>> Some old features that were questionable from a security
>> perspective has been removed. Classic example is register_globals
>> that been off by default since version 4.2 (21 years ago) and
>> was finally removed in version 5.4 (8 years ago).
>>
>> The most widely used frameworks has added features to make it
>> easy to avoid common web security problems. Example: Laravel
>> always check for token to prevent CSRF.
>
> And CSRF is a real problem.
>
> On OWASP top ten it made:
>
> 2007 - 5th
> 2010 - 5th
> 2013 - 8th
> 2017 - missing
> 2021 - 10th
> 2023 API - 7th
>
> Modern web frameworks like PHP Laravel, ASP.NET MVC, RoR,
> JSF etc. has builtin anti forgery token support to prevent
> CSRF.
>
> Arne
>

CSRF - what is it?

--
Chris

Re: OS implementation languages

<udj1sk$pn7$1@news.misty.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=29811&group=comp.os.vms#29811

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!.POSTED.80-218-16-84.dclient.hispeed.ch!not-for-mail
From: bqt...@softjar.se (Johnny Billquist)
Newsgroups: comp.os.vms
Subject: Re: OS implementation languages
Date: Sun, 10 Sep 2023 02:16:19 +0200
Organization: MGT Consulting
Message-ID: <udj1sk$pn7$1@news.misty.com>
References: <uc84kt$3iet2$1@dont-email.me> <udcg7p$303um$1@dont-email.me>
<udciju$30egm$1@dont-email.me> <km0l0iF8emlU3@mid.individual.net>
<udf9io$o8s$1@reader2.panix.com> <km113aF8emnU5@mid.individual.net>
<udfnp8$3j4cj$1@dont-email.me> <km1nbbF8emlU6@mid.individual.net>
<udi2dr$4e5h$2@dont-email.me> <km3i7vF8emlU13@mid.individual.net>
<udi5ld$4t22$1@dont-email.me> <km3m7gF8emnU8@mid.individual.net>
<udi9pf$5cg1$2@dont-email.me> <udiee4$2bl$1@news.misty.com>
<udiov5$7hvo$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 10 Sep 2023 00:16:20 -0000 (UTC)
Injection-Info: news.misty.com; posting-host="80-218-16-84.dclient.hispeed.ch:80.218.16.84";
logging-data="26343"; mail-complaints-to="abuse@misty.com"
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0)
Gecko/20100101 Thunderbird/102.15.0
In-Reply-To: <udiov5$7hvo$1@dont-email.me>
 by: Johnny Billquist - Sun, 10 Sep 2023 00:16 UTC

On 2023-09-09 23:44, Arne Vajhøj wrote:
> On 9/9/2023 2:44 PM, Johnny Billquist wrote:
>> On 2023-09-09 19:25, Arne Vajhøj wrote:
>>> On 9/9/2023 12:53 PM, bill wrote:
>>>> On 9/9/2023 12:14 PM, Arne Vajhøj wrote:
>>>>> On 9/9/2023 11:45 AM, bill wrote:
>>>>>> Nice thought, but the particular problem I was fighting was
>>>>>> inherent to PHP and the programmer can only stop it by using
>>>>>> a better tool.
>>>>>
>>>>> You are aware that PHP is Turing complete?
>>>>
>>>> Which means what in the concept of security?  It has nothing
>>>> to do with the syntax or even the function of the programs
>>>> written with it.
>>>
>>> It means that you did not have to rewrite in another language to
>>> fix the problem.
>>
>> That definitely does not neccesarily follow.
>>
>> Consider for example C and some language like BASIC, which have full
>> control over strings.
>> Both are turing complete. But if you want to avoid the problem of
>> strings being handled as pointers to chunks of memory terminated by a
>> NUL, then you need to move away from C (to for example BASIC).
>> You cannot "fix" the problem of how C looks at strings.
>>
>> The turing complete aspect have nothing to do with that.
>
> I cannot follow your argument.
>
> Being turing complete means that it can do anything that
> the abstract turing machine and any other turing complete
> language can do.
>
> It does not mean that something is easy or best practice
> or anything else.
>
> I consider C strings a bad design. But I cannot imagine
> any problem that could not be solved with C. In most cases
> I think there would be better languages that will make it
> possible to implement the functionality faster and
> with less risk of errors. But it is still possible to
> do it in C.

If the problem is something in the construction of the language (which I
believe was the complaint about PHP), then the fact that it is Turing
complete don't make the constructs any better. Just because you can
solve every problem with the language don't mean that all languages are
equal.

If you don't believe in that, then may I suggest you start writing
everything in TECO. After all, it is also Turing Complete.

Johnny

Re: OS implementation languages

<udj3tu$91es$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=29812&group=comp.os.vms#29812

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: arn...@vajhoej.dk (Arne Vajhøj)
Newsgroups: comp.os.vms
Subject: Re: OS implementation languages
Date: Sat, 9 Sep 2023 20:51:09 -0400
Organization: A noiseless patient Spider
Lines: 254
Message-ID: <udj3tu$91es$1@dont-email.me>
References: <uc84kt$3iet2$1@dont-email.me> <udcg7p$303um$1@dont-email.me>
<udciju$30egm$1@dont-email.me> <km0l0iF8emlU3@mid.individual.net>
<udf9io$o8s$1@reader2.panix.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 10 Sep 2023 00:51:10 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="0f9033cb5133fb6f9c543d68b9b6edb1";
logging-data="296412"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/mIGA7eRBQyIFBHoNDLwaLPBIWh5q+luY="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.15.0
Cancel-Lock: sha1:LfDnSAGM6YkbR+oSaYp1KYEhSRg=
Content-Language: en-US
In-Reply-To: <udf9io$o8s$1@reader2.panix.com>
 by: Arne Vajhøj - Sun, 10 Sep 2023 00:51 UTC

On 9/8/2023 10:03 AM, Dan Cross wrote:
> In article <km0l0iF8emlU3@mid.individual.net>,
> bill <bill.gunshannon@gmail.com> wrote:
>> On 9/7/2023 9:18 AM, Dave Froble wrote:
>>> [snip]
>>> My moment of enlightenment was the day I was told I wasn't a "real
>>> programmer" since I didn't know or use PHP.  Guy didn't even know what
>>> assembly language was.  It's actually a bit scary.
>>>
>>
>> I'm a real programmer. I know PHP and that's why I don't use it.
>
> This seems apropos:
> https://eev.ee/blog/2012/04/09/php-a-fractal-of-bad-design/

I think this is a typical example of internet whining.

He doesn't like PHP and have a very long list of "issues".

But it is a very mixed bag of:
- misunderstandings
- so what
- real issues

A few examples.

"Namespaces use \."

Yes. A period is what other languages use. But so what. You use what
the language prescribe.

"The new array syntax results in [key => value], unique among every
language with hash literals."

Scala use:

Map(1 -> "A", 2 -> "BB", 3 -> "CCC")

C# use:

new Dictionary<int, string> { [1] = "A", [2] = "BB", [3] = "CCC" };

Each language is slightly different, but same concept.

"There is no threading support whatsoever. (Not surprising, given the
above.) Combined with the lack of built-in fork (mentioned below), this
makes parallel programming extremely difficult."

PHP is designed to be run by a web-server and the web-server
will do the thread start or fork.

It is generally considered a big no no to have web application
code start threads (or fork).

"In PHP, these functions return false. If you use FALSE as an index, or
do much of anything with it except compare with ===, PHP will silently
convert it to 0 for you. Your program will not blow up; it will,
instead, do the wrong thing with no warning,"

I don't like that either.

But PHP was designed like that a few decades ago and too late to change.

"There is no way to declare a variable. Variables that don’t exist are
created with a null value when first used."

And gives a warning. So if someone configure the script to die at
warning, then it dies when it happens.

Should it have been an error? I think so.

"There’s no such thing as a nested or locally-scoped function or class.
They’re only global."

It is not that unusual for languages to not to allow functions inside
functions.

And even though many of the well-known OO languages support nested
classes, then some of them come with complications that does not
fit well with PHP philosophy.

"Appending to an array is done with $foo[] = $bar."

Other languages use:

a.append(b)

or

a.push(b)

But does it really matter much if is brackets or append or push or
something fourth?

"echo is a statement-y kind of thing, not a function."

Yes. It is like Python 2.x print. And?

"E_STRICT is a thing, but it doesn’t seem to actually prevent much and
there’s no documentation on what it actually does."

It is documented:

https://www.php.net/manual/en/errorfunc.constants.php

"PHP errors and PHP exceptions are completely different beasts. They
don’t seem to interact at all."

The errors are typical stuff that would have been caught during
compilation if it had been a compiled language while exceptions
are runtime conditions.

I am not so convinced that they should be treated identical.

"Closures require explicitly naming every variable to be closed-over.
Why can’t the interpreter figure this out? Kind of hamstrings the whole
feature."

It is unusual, but it actually provides safer and more readable
code, so ...

"“Variadic” functions require faffing about with func_num_args,
func_get_arg, and func_get_args. There’s no syntax for such a thing".

It is messy.

But PHP is not the only language where that stuff is messy.

"Built-in types are not objects"

True. But lot of OO languages got that problem.

"PHP has first-class support for “abstract classes”, which are classes
that cannot be instantiated. Code in similar languages achieves this by
throwing an exception in the constructor."

So PHP chose their OO to be more Java'ish/C#'ish. It is a choice.

"Subclasses cannot override private methods. Subclass overrides of
public methods can’t even see, let alone call, the superclass’s private
methods. Problematic for, say, test mocks."

WTF

That is how private works. If the subclass need access to the methods
they need to be declared protected.

"Methods cannot be named e.g. “list”, because list() is special syntax
(not a function) and the parser gets confused."

Every language has some reserved words. It seems like list is reserved
in PHP.

"Chunks of the library are wildly inconsistent from one another."

Yes. It is a mess.

PHP is very much bazaar.

https://en.wikipedia.org/wiki/The_Cathedral_and_the_Bazaar

"Way too many XML packages."

Actually not that different from other large technologies like
Java and .NET. Different needs leads to different solutions.

"Warts like mysql_real_escape_string, even though it has the same
arguments as the broken mysql_escape_string, just because it’s part of
the MySQL C API."

mysql_real_escape_string has 2 arguments - mysql_escape_string only got
1 argument.

"strtok is apparently designed after the equivalent C function, which is
already a bad idea for various reasons."

The bazaar strikes again. Someone liked C strtok and added it
to PHP. Noone vetoed it.

I don't like strtok either. But if you go bazaar then you go bazaar.

"No Unicode support. Only ASCII will work reliably,"

Single byte charsets work fine - not just 7 bit ASCII.

But this is a known problem.

PHP 6.x was supposed to add unicode support. And PHP 6.x was
never released. Hard problem to add unicode support in a
backwards compatible manner.

"Negative indexing doesn’t work,"

That is not unusual.

:-)

"A single shared file, php.ini, controls massive parts of PHP’s
functionality and introduces complex rules regarding what overrides what
and when."

A lot of servers has a single config file for everything running on the
server.

"PHP basically runs as CGI."

No. PHP rarely runs as CGI. Apache module or FastCGI.

"Blank lines before or after the <?php ... ?> tags, even in libraries,
count as literal text"

Of course. That is how template systems that is based on mixing literal
text and code inside markup works.

"PHP is naturally tied to Apache."

No. Apache is probably the most widely PHP server. But nginx and IIS
are also used for PHP. And in the VMS world then both OSU and WASD
can run PHP.

"No CSRF protection. You get to do it yourself."

That comes with the MVC framework used on top of PHP not
with PHP.

"Making this worse is the common cry for “sanitizing your inputs”.
That’s completely wrong; you can’t wave a magic wand to make a chunk of
data inherently “clean”. What you need to do is speak the language: use
placeholders with SQL, use argument lists when spawning processes, etc."

Sanitizing input is something that all good web frameworks do.

"The original built-in MySQL bindings, still widely-used, have no way to
create prepared statements."

The mysql extension was superseded by mysqli in 5.0 (19 years ago) and
removed in 7.0 (8 years ago).

And it was not really a PHP issue. It was a C issue.

The original MySQL C API did not support prepared statement
(parameters).

So obviously the PHP wrapper around it did not either.

When MySQL added support for prepared statement
(parameters) in C then PHP added as well.

"register_globals. It’s been off by default for a while by now,"

21 years is indeed "a while".

Arne

Re: OS implementation languages

<udj44b$91es$2@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=29813&group=comp.os.vms#29813

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: arn...@vajhoej.dk (Arne Vajhøj)
Newsgroups: comp.os.vms
Subject: Re: OS implementation languages
Date: Sat, 9 Sep 2023 20:54:35 -0400
Organization: A noiseless patient Spider
Lines: 74
Message-ID: <udj44b$91es$2@dont-email.me>
References: <uc84kt$3iet2$1@dont-email.me> <udcg7p$303um$1@dont-email.me>
<udciju$30egm$1@dont-email.me> <km0l0iF8emlU3@mid.individual.net>
<udf9io$o8s$1@reader2.panix.com> <km113aF8emnU5@mid.individual.net>
<udfnp8$3j4cj$1@dont-email.me> <km1nbbF8emlU6@mid.individual.net>
<udi2dr$4e5h$2@dont-email.me> <km3i7vF8emlU13@mid.individual.net>
<udi5ld$4t22$1@dont-email.me> <km3m7gF8emnU8@mid.individual.net>
<udi9pf$5cg1$2@dont-email.me> <udiee4$2bl$1@news.misty.com>
<udiov5$7hvo$1@dont-email.me> <udj1sk$pn7$1@news.misty.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 10 Sep 2023 00:54:35 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="0f9033cb5133fb6f9c543d68b9b6edb1";
logging-data="296412"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+l2s7yjX04l2a05IDqfsMKr2pCEClplH8="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.15.0
Cancel-Lock: sha1:NwdbsEhXxAVdxCh2gOKyaMyV6yg=
In-Reply-To: <udj1sk$pn7$1@news.misty.com>
Content-Language: en-US
 by: Arne Vajhøj - Sun, 10 Sep 2023 00:54 UTC

On 9/9/2023 8:16 PM, Johnny Billquist wrote:
> On 2023-09-09 23:44, Arne Vajhøj wrote:
>> On 9/9/2023 2:44 PM, Johnny Billquist wrote:
>>> On 2023-09-09 19:25, Arne Vajhøj wrote:
>>>> On 9/9/2023 12:53 PM, bill wrote:
>>>>> On 9/9/2023 12:14 PM, Arne Vajhøj wrote:
>>>>>> On 9/9/2023 11:45 AM, bill wrote:
>>>>>>> Nice thought, but the particular problem I was fighting was
>>>>>>> inherent to PHP and the programmer can only stop it by using
>>>>>>> a better tool.
>>>>>>
>>>>>> You are aware that PHP is Turing complete?
>>>>>
>>>>> Which means what in the concept of security?  It has nothing
>>>>> to do with the syntax or even the function of the programs
>>>>> written with it.
>>>>
>>>> It means that you did not have to rewrite in another language to
>>>> fix the problem.
>>>
>>> That definitely does not neccesarily follow.
>>>
>>> Consider for example C and some language like BASIC, which have full
>>> control over strings.
>>> Both are turing complete. But if you want to avoid the problem of
>>> strings being handled as pointers to chunks of memory terminated by a
>>> NUL, then you need to move away from C (to for example BASIC).
>>> You cannot "fix" the problem of how C looks at strings.
>>>
>>> The turing complete aspect have nothing to do with that.
>>
>> I cannot follow your argument.
>>
>> Being turing complete means that it can do anything that
>> the abstract turing machine and any other turing complete
>> language can do.
>>
>> It does not mean that something is easy or best practice
>> or anything else.
>>
>> I consider C strings a bad design. But I cannot imagine
>> any problem that could not be solved with C. In most cases
>> I think there would be better languages that will make it
>> possible to implement the functionality faster and
>> with less risk of errors. But it is still possible to
>> do it in C.
>
> If the problem is something in the construction of the language (which I
> believe was the complaint about PHP), then the fact that it is Turing
> complete don't make the constructs any better. Just because you can
> solve every problem with the language don't mean that all languages are
> equal.
>
> If you don't believe in that, then may I suggest you start writing
> everything in TECO. After all, it is also Turing Complete.

I get that.

In fact that was what I wrote in what you replied to.

But my discussion with Bill was not whether it was a good fit to
solve the problem but whether it was possible.

Turing complete indicate possible.

Turing complete does not indicate good fit for solving the
problem.

Millions of web sites running PHP indicate that PHP is a good
fit for solving web security problems.

Arne

Re: OS implementation languages

<udj4q8$94qu$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=29814&group=comp.os.vms#29814

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: arn...@vajhoej.dk (Arne Vajhøj)
Newsgroups: comp.os.vms
Subject: Re: OS implementation languages
Date: Sat, 9 Sep 2023 21:06:15 -0400
Organization: A noiseless patient Spider
Lines: 60
Message-ID: <udj4q8$94qu$1@dont-email.me>
References: <uc84kt$3iet2$1@dont-email.me> <udcg7p$303um$1@dont-email.me>
<udciju$30egm$1@dont-email.me> <km0l0iF8emlU3@mid.individual.net>
<udf9io$o8s$1@reader2.panix.com> <km113aF8emnU5@mid.individual.net>
<udi27i$4e5h$1@dont-email.me> <udioe7$7hj7$1@dont-email.me>
<udiunk$2vom$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 10 Sep 2023 01:06:16 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="0f9033cb5133fb6f9c543d68b9b6edb1";
logging-data="299870"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18OcgAhxxalAfWmCQPHgfer1cfyHZBp2/I="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.15.0
Cancel-Lock: sha1:OWeeqoNEm9NckSYAEbsJNiMOQao=
Content-Language: en-US
In-Reply-To: <udiunk$2vom$1@dont-email.me>
 by: Arne Vajhøj - Sun, 10 Sep 2023 01:06 UTC

On 9/9/2023 7:22 PM, Chris Townley wrote:
> On 09/09/2023 22:35, Arne Vajhøj wrote:
>> On 9/9/2023 11:16 AM, Arne Vajhøj wrote:
>>> PHP does not have many of the common general flaws like
>>> buffer overflow and memory leak.
>>>
>>> PHP got all the features needing for secure web applications.
>>>
>>> Some old features that were questionable from a security
>>> perspective has been removed. Classic example is register_globals
>>> that been off by default since version 4.2 (21 years ago) and
>>> was finally removed in version 5.4 (8 years ago).
>>>
>>> The most widely used frameworks has added features to make it
>>> easy to avoid common web security problems. Example: Laravel
>>> always check for token to prevent CSRF.
>>
>> And CSRF is a real problem.
>>
>> On OWASP top ten it made:
>>
>> 2007 - 5th
>> 2010 - 5th
>> 2013 - 8th
>> 2017 - missing
>> 2021 - 10th
>> 2023 API - 7th
>>
>> Modern web frameworks like PHP Laravel, ASP.NET MVC, RoR,
>> JSF etc. has builtin anti forgery token support to prevent
>> CSRF.
>
> CSRF - what is it?

Cross Site Request Forgery

Simple (slightly oversimplified) example:

* you login to your bank and the bank web server provide
you with a session cookie that your browser use for
all requests in that session
* you need to do a money transfer so you fill out a
form with amount + from account + to account
* that form get submitted to the bank as a POST request
* without closing the browser you go to www.verybadsite.com
* they show you a form with USD amount and expecting them
to show equivalent GBP amount
* but the form has 3 invisible fields: amount +
from account + to account filled out with an amount +
your account + their account and the POST URL is the banks
* when you hit submit the transfer goes to the bank
and your super friendly browser send the cookie
with the request and the super friendly bank web server
has kept the session valid

https://en.wikipedia.org/wiki/Cross-site_request_forgery

Arne

Re: OS implementation languages

<udj52l$94re$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=29815&group=comp.os.vms#29815

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: arn...@vajhoej.dk (Arne Vajhøj)
Newsgroups: comp.os.vms
Subject: Re: OS implementation languages
Date: Sat, 9 Sep 2023 21:10:45 -0400
Organization: A noiseless patient Spider
Lines: 43
Message-ID: <udj52l$94re$1@dont-email.me>
References: <uc84kt$3iet2$1@dont-email.me> <udcg7p$303um$1@dont-email.me>
<udciju$30egm$1@dont-email.me> <km0l0iF8emlU3@mid.individual.net>
<udf9io$o8s$1@reader2.panix.com> <km113aF8emnU5@mid.individual.net>
<udi27i$4e5h$1@dont-email.me> <udioe7$7hj7$1@dont-email.me>
<udiunk$2vom$1@dont-email.me> <udj4q8$94qu$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 10 Sep 2023 01:10:45 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="0f9033cb5133fb6f9c543d68b9b6edb1";
logging-data="299886"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/ke6SgnBepNjUzLvLWThSPI7fflDXA3VE="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.15.0
Cancel-Lock: sha1:E5o3EZ+NLakVktEV5m6DsK0bfdM=
In-Reply-To: <udj4q8$94qu$1@dont-email.me>
Content-Language: en-US
 by: Arne Vajhøj - Sun, 10 Sep 2023 01:10 UTC

On 9/9/2023 9:06 PM, Arne Vajhøj wrote:
> On 9/9/2023 7:22 PM, Chris Townley wrote:
>> CSRF - what is it?
>
> Cross Site Request Forgery
>
> Simple (slightly oversimplified) example:
>
> * you login to your bank and the bank web server provide
>   you with a session cookie that your browser use for
>   all requests in that session
> * you need to do a money transfer so you fill out a
>   form with amount + from account + to account
> * that form get submitted to the bank as a POST request
> * without closing the browser you go to www.verybadsite.com
> * they show you a form with USD amount and expecting them
>   to show equivalent GBP amount
> * but the form has 3 invisible fields: amount +
>   from account + to account filled out with an amount +
>   your account + their account and the POST URL is the banks
> * when you hit submit the transfer goes to the bank
>   and your super friendly browser send the cookie
>   with the request and the super friendly bank web server
>   has kept the session valid
>
> https://en.wikipedia.org/wiki/Cross-site_request_forgery

One of the tools used to prevent it is a anti forgery token.

Basically when the bank provide you with the form then
it also generates a hidden field with a huge cryptographic
secure number and saves the same number in the session.
The the code processing the POST request checks if the
submitted token matches the token in the session.

The bad guys cannot guess the token. And the bank should
remove the token from session as soon as the POST request
is received so it can only be used once (which has the
positive side effect of also preventing double submits!!).

Arne


computers / comp.os.vms / Re: OS implementation languages

Pages:12345678
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor