Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

Experience varies directly with equipment ruined.


devel / comp.lang.c / on ``vector'' and ``array''

SubjectAuthor
* on ``vector'' and ``array''Meredith Montgomery
+- Re: on ``vector'' and ``array''Keith Thompson
`* Re: on ``vector'' and ``array''Malcolm McLean
 +* Re: on ``vector'' and ``array''Ben Bacarisse
 |`* Re: on ``vector'' and ``array''Malcolm McLean
 | +* Re: on ``vector'' and ``array''Meredith Montgomery
 | |`* Re: on ``vector'' and ``array''Anand Hariharan
 | | +- Re: on ``vector'' and ``array''Meredith Montgomery
 | | `* Re: on ``vector'' and ``array''Malcolm McLean
 | |  `- Re: on ``vector'' and ``array''Meredith Montgomery
 | `- Re: on ``vector'' and ``array''Ben Bacarisse
 `- Re: on ``vector'' and ``array''Keith Thompson

1
on ``vector'' and ``array''

<8635oklbti.fsf@levado.to>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=18790&group=comp.lang.c#18790

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!aioe.org!EKCVjuy47ovTI5d14PUybA.user.46.165.242.75.POSTED!not-for-mail
From: mmontgom...@levado.to (Meredith Montgomery)
Newsgroups: comp.lang.c
Subject: on ``vector'' and ``array''
Date: Fri, 29 Oct 2021 01:00:41 -0300
Organization: Aioe.org NNTP Server
Message-ID: <8635oklbti.fsf@levado.to>
Mime-Version: 1.0
Content-Type: text/plain
Injection-Info: gioia.aioe.org; logging-data="48783"; posting-host="EKCVjuy47ovTI5d14PUybA.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
X-Notice: Filtered by postfilter v. 0.9.2
Cancel-Lock: sha1:70bC9OwGnJv9vCR7edL/KEWGCxk=
 by: Meredith Montgomery - Fri, 29 Oct 2021 04:00 UTC

I never call an array a vector because C89 doesn't even mention the word
vector in there, but C99 does in a silly example in section 6.7.3. What
is your choice of terminology? (What is an array? What is a vector?)

(*) C99 section 6.7.3

--8<---------------cut here---------------start------------->8---
[...] For example, this permits new_vector to return a vector.

typedef struct { int n; float * restrict v; } vector;
vector new_vector(int n)
{ vector t;
t.n = n;
t.v = malloc(n * sizeof (float));
return t;
} --8<---------------cut here---------------end--------------->8---

Look at this example. They're really building a convenient data
structure there. But is it well-named?

Vectors (to me) belong to a vector space and vector spaces have
well-defined dimensions.

Re: on ``vector'' and ``array''

<87y26czc5u.fsf@nosuchdomain.example.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=18792&group=comp.lang.c#18792

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: Keith.S....@gmail.com (Keith Thompson)
Newsgroups: comp.lang.c
Subject: Re: on ``vector'' and ``array''
Date: Thu, 28 Oct 2021 21:29:33 -0700
Organization: None to speak of
Lines: 42
Message-ID: <87y26czc5u.fsf@nosuchdomain.example.com>
References: <8635oklbti.fsf@levado.to>
Mime-Version: 1.0
Content-Type: text/plain
Injection-Info: reader02.eternal-september.org; posting-host="d19e72ac6c40f753288e1cb579e60581";
logging-data="18912"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/a/xThnwNnpCrpdstsO9P5"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)
Cancel-Lock: sha1:YgXcM9Frq4jVhF2S/1sBT0vcD9I=
sha1:afl7R+HvGJv7obzwz8MV0JvLpqU=
 by: Keith Thompson - Fri, 29 Oct 2021 04:29 UTC

Meredith Montgomery <mmontgomery@levado.to> writes:
> I never call an array a vector because C89 doesn't even mention the word
> vector in there, but C99 does in a silly example in section 6.7.3. What
> is your choice of terminology? (What is an array? What is a vector?)
>
> (*) C99 section 6.7.3
>
> --8<---------------cut here---------------start------------->8---
> [...] For example, this permits new_vector to return a vector.
>
> typedef struct { int n; float * restrict v; } vector;
> vector new_vector(int n)
> {
> vector t;
> t.n = n;
> t.v = malloc(n * sizeof (float));
> return t;
> }
> --8<---------------cut here---------------end--------------->8---
>
> Look at this example. They're really building a convenient data
> structure there. But is it well-named?
>
> Vectors (to me) belong to a vector space and vector spaces have
> well-defined dimensions.

That doesn't call an array a vector. It calls a particular structure a
vector, and just in a non-normative example.

It's common to refer to array-like data structures as "vectors". See
C++'s std::vector, for example.

And in this case, a value of this type "vector" represents (to the
extent that float values represent real numbers) a mathematical vector
in an n-dimensional vector space, where the value of n the value passed
to new_vector. (The number of dimensions doesn't have to be a
constant.)

--
Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com
Working, but not speaking, for Philips
void Void(void) { Void(); } /* The recursive call of the void */

Re: on ``vector'' and ``array''

<9288af47-3e78-4016-b5a6-519d44b560b6n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=18802&group=comp.lang.c#18802

  copy link   Newsgroups: comp.lang.c
X-Received: by 2002:a37:805:: with SMTP id 5mr8425820qki.352.1635507738807;
Fri, 29 Oct 2021 04:42:18 -0700 (PDT)
X-Received: by 2002:ac8:5f0c:: with SMTP id x12mr11151067qta.309.1635507738668;
Fri, 29 Oct 2021 04:42:18 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.c
Date: Fri, 29 Oct 2021 04:42:18 -0700 (PDT)
In-Reply-To: <8635oklbti.fsf@levado.to>
Injection-Info: google-groups.googlegroups.com; posting-host=2a00:23a8:400a:5601:fc32:afe8:789f:1a87;
posting-account=Dz2zqgkAAADlK5MFu78bw3ab-BRFV4Qn
NNTP-Posting-Host: 2a00:23a8:400a:5601:fc32:afe8:789f:1a87
References: <8635oklbti.fsf@levado.to>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <9288af47-3e78-4016-b5a6-519d44b560b6n@googlegroups.com>
Subject: Re: on ``vector'' and ``array''
From: malcolm....@gmail.com (Malcolm McLean)
Injection-Date: Fri, 29 Oct 2021 11:42:18 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 42
 by: Malcolm McLean - Fri, 29 Oct 2021 11:42 UTC

On Friday, 29 October 2021 at 05:02:52 UTC+1, Meredith Montgomery wrote:
> I never call an array a vector because C89 doesn't even mention the word
> vector in there, but C99 does in a silly example in section 6.7.3. What
> is your choice of terminology? (What is an array? What is a vector?)
>
> (*) C99 section 6.7.3
>
> --8<---------------cut here---------------start------------->8---
> [...] For example, this permits new_vector to return a vector.
>
> typedef struct { int n; float * restrict v; } vector;
> vector new_vector(int n)
> {
> vector t;
> t.n = n;
> t.v = malloc(n * sizeof (float));
> return t;
> }
> --8<---------------cut here---------------end--------------->8---
>
> Look at this example. They're really building a convenient data
> structure there. But is it well-named?
>
> Vectors (to me) belong to a vector space and vector spaces have
> well-defined dimensions.
>
An array is an arrangement of data such that there are equal steps (in C,
in memory space, in other languages maybe in a logical index space) between
elements.
A vector is a collection of two or more scalars that define a point or direction
in a multi-dimensional space.

In C, the term "array" is slightly misused, to refer to the memory space rather
than the data within it. This is a bit like calling the parade ground the "array"
rather than the soldiers upon it.

In C++, the term "vector" is misused quite badly to refer to an array. That's because
early on in the development of the standard template library, the identifier "array"
was used for an inconvenient container that is seldom used, creating the need for
another name to use for the normal array type.

A "vector" is also something that carries communication (mosquitoes are vectors
for malaria). That's a different sense of the word.

Re: on ``vector'' and ``array''

<87fsskugpt.fsf@bsb.me.uk>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=18805&group=comp.lang.c#18805

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!aioe.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: ben.use...@bsb.me.uk (Ben Bacarisse)
Newsgroups: comp.lang.c
Subject: Re: on ``vector'' and ``array''
Date: Fri, 29 Oct 2021 14:02:22 +0100
Organization: A noiseless patient Spider
Lines: 13
Message-ID: <87fsskugpt.fsf@bsb.me.uk>
References: <8635oklbti.fsf@levado.to>
<9288af47-3e78-4016-b5a6-519d44b560b6n@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain
Injection-Info: reader02.eternal-september.org; posting-host="e05153e92b9fdefa3c118fcfe9e0c770";
logging-data="15309"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19FjGjU3dP2uVPC0pT4QXuAYFFrut1BzQE="
Cancel-Lock: sha1:TBqaYRbQUIs/37iDsfV4dNy2RXc=
sha1:QBjgd+Oj3Ezvf+Luepl3RdNbJd0=
X-BSB-Auth: 1.401b6492c080623efad6.20211029140222BST.87fsskugpt.fsf@bsb.me.uk
 by: Ben Bacarisse - Fri, 29 Oct 2021 13:02 UTC

Malcolm McLean <malcolm.arthur.mclean@gmail.com> writes:

> In C++, the term "vector" is misused quite badly to refer to an
> array. That's because early on in the development of the standard
> template library, the identifier "array" was used for an inconvenient
> container that is seldom used, creating the need for another name to
> use for the normal array type.

What was array used for in the early STL? std::array is present in
recent versions of C++, but I don't know of the earlier usage.

--
Ben.

Re: on ``vector'' and ``array''

<61ed0973-6096-415f-bd37-4d3881339cb6n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=18806&group=comp.lang.c#18806

  copy link   Newsgroups: comp.lang.c
X-Received: by 2002:ac8:7f44:: with SMTP id g4mr11984429qtk.130.1635515936339;
Fri, 29 Oct 2021 06:58:56 -0700 (PDT)
X-Received: by 2002:ac8:5ad3:: with SMTP id d19mr11267390qtd.284.1635515936114;
Fri, 29 Oct 2021 06:58:56 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.c
Date: Fri, 29 Oct 2021 06:58:55 -0700 (PDT)
In-Reply-To: <87fsskugpt.fsf@bsb.me.uk>
Injection-Info: google-groups.googlegroups.com; posting-host=2a00:23a8:400a:5601:fc32:afe8:789f:1a87;
posting-account=Dz2zqgkAAADlK5MFu78bw3ab-BRFV4Qn
NNTP-Posting-Host: 2a00:23a8:400a:5601:fc32:afe8:789f:1a87
References: <8635oklbti.fsf@levado.to> <9288af47-3e78-4016-b5a6-519d44b560b6n@googlegroups.com>
<87fsskugpt.fsf@bsb.me.uk>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <61ed0973-6096-415f-bd37-4d3881339cb6n@googlegroups.com>
Subject: Re: on ``vector'' and ``array''
From: malcolm....@gmail.com (Malcolm McLean)
Injection-Date: Fri, 29 Oct 2021 13:58:56 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 15
 by: Malcolm McLean - Fri, 29 Oct 2021 13:58 UTC

On Friday, 29 October 2021 at 14:02:36 UTC+1, Ben Bacarisse wrote:
> Malcolm McLean <malcolm.ar...@gmail.com> writes:
>
> > In C++, the term "vector" is misused quite badly to refer to an
> > array. That's because early on in the development of the standard
> > template library, the identifier "array" was used for an inconvenient
> > container that is seldom used, creating the need for another name to
> > use for the normal array type.
> What was array used for in the early STL? std::array is present in
> recent versions of C++, but I don't know of the earlier usage.
>
I've checked and it appears I was wrong. The inconvenient type was "valarray"
(an array constrained to hold scalars). "array" was avoided because of the use
of the term in the C standard.
However Alex Stepanov (the man responsible for the STL) later said he had
made a mistake by choosing the identifier "vector".

Re: on ``vector'' and ``array''

<86bl37kh6m.fsf@levado.to>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=18810&group=comp.lang.c#18810

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!aioe.org!Hu1f/gStftKYRp2bwzXADg.user.46.165.242.75.POSTED!not-for-mail
From: mmontgom...@levado.to (Meredith Montgomery)
Newsgroups: comp.lang.c
Subject: Re: on ``vector'' and ``array''
Date: Fri, 29 Oct 2021 12:02:25 -0300
Organization: Aioe.org NNTP Server
Message-ID: <86bl37kh6m.fsf@levado.to>
References: <8635oklbti.fsf@levado.to>
<9288af47-3e78-4016-b5a6-519d44b560b6n@googlegroups.com>
<87fsskugpt.fsf@bsb.me.uk>
<61ed0973-6096-415f-bd37-4d3881339cb6n@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain
Injection-Info: gioia.aioe.org; logging-data="59569"; posting-host="Hu1f/gStftKYRp2bwzXADg.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
Cancel-Lock: sha1:QK5p0ymTRCUn0oIiuytM5rmiqDw=
X-Notice: Filtered by postfilter v. 0.9.2
 by: Meredith Montgomery - Fri, 29 Oct 2021 15:02 UTC

Malcolm McLean <malcolm.arthur.mclean@gmail.com> writes:

> On Friday, 29 October 2021 at 14:02:36 UTC+1, Ben Bacarisse wrote:
>> Malcolm McLean <malcolm.ar...@gmail.com> writes:
>>
>> > In C++, the term "vector" is misused quite badly to refer to an
>> > array. That's because early on in the development of the standard
>> > template library, the identifier "array" was used for an
>> > inconvenient
>> > container that is seldom used, creating the need for another name to
>> > use for the normal array type.
>> What was array used for in the early STL? std::array is present in
>> recent versions of C++, but I don't know of the earlier usage.
>>
> I've checked and it appears I was wrong. The inconvenient type was
> "valarray"
> (an array constrained to hold scalars). "array" was avoided because of
> the use
> of the term in the C standard.
> However Alex Stepanov (the man responsible for the STL) later said he had
> made a mistake by choosing the identifier "vector".

Oh, nice. Can you locate the reference? I just searched every
interview of his from the interviews-section at

http://stepanovpapers.com/

and did not find any comment to that effect. Thank you!

Re: on ``vector'' and ``array''

<87a6irvo1a.fsf@bsb.me.uk>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=18812&group=comp.lang.c#18812

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: ben.use...@bsb.me.uk (Ben Bacarisse)
Newsgroups: comp.lang.c
Subject: Re: on ``vector'' and ``array''
Date: Fri, 29 Oct 2021 16:38:57 +0100
Organization: A noiseless patient Spider
Lines: 23
Message-ID: <87a6irvo1a.fsf@bsb.me.uk>
References: <8635oklbti.fsf@levado.to>
<9288af47-3e78-4016-b5a6-519d44b560b6n@googlegroups.com>
<87fsskugpt.fsf@bsb.me.uk>
<61ed0973-6096-415f-bd37-4d3881339cb6n@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain
Injection-Info: reader02.eternal-september.org; posting-host="e05153e92b9fdefa3c118fcfe9e0c770";
logging-data="4560"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19Qy+MsZnKjUSEABc7xd2mHp3Vu7hqIwCo="
Cancel-Lock: sha1:i52ZLBcv2JIZx+YUPwRv5FlOHPk=
sha1:CntwRAQEnGzShb5cxQKAzrVNLH0=
X-BSB-Auth: 1.9bef1e14d9c5065d02d9.20211029163857BST.87a6irvo1a.fsf@bsb.me.uk
 by: Ben Bacarisse - Fri, 29 Oct 2021 15:38 UTC

Malcolm McLean <malcolm.arthur.mclean@gmail.com> writes:

> On Friday, 29 October 2021 at 14:02:36 UTC+1, Ben Bacarisse wrote:
>> Malcolm McLean <malcolm.ar...@gmail.com> writes:
>>
>> > In C++, the term "vector" is misused quite badly to refer to an
>> > array. That's because early on in the development of the standard
>> > template library, the identifier "array" was used for an inconvenient
>> > container that is seldom used, creating the need for another name to
>> > use for the normal array type.
>> What was array used for in the early STL? std::array is present in
>> recent versions of C++, but I don't know of the earlier usage.
>>
> I've checked and it appears I was wrong. The inconvenient type was "valarray"
> (an array constrained to hold scalars). "array" was avoided because of the use
> of the term in the C standard.

Ah. I followed C++ development from the start (pre-STL) but then moved
on to other things only to come back when the STL was largely fully
formed.

--
Ben.

Re: on ``vector'' and ``array''

<87pmrnzot0.fsf@nosuchdomain.example.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=18816&group=comp.lang.c#18816

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: Keith.S....@gmail.com (Keith Thompson)
Newsgroups: comp.lang.c
Subject: Re: on ``vector'' and ``array''
Date: Fri, 29 Oct 2021 11:08:43 -0700
Organization: None to speak of
Lines: 17
Message-ID: <87pmrnzot0.fsf@nosuchdomain.example.com>
References: <8635oklbti.fsf@levado.to>
<9288af47-3e78-4016-b5a6-519d44b560b6n@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain
Injection-Info: reader02.eternal-september.org; posting-host="d19e72ac6c40f753288e1cb579e60581";
logging-data="5523"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/icjfdk9QG+WuofhUIZqTZ"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)
Cancel-Lock: sha1:zT+IXfR7UL2FCfo75GlNZu0BFic=
sha1:qRa4sItEmToz29KxcbmmsFJunt0=
 by: Keith Thompson - Fri, 29 Oct 2021 18:08 UTC

Malcolm McLean <malcolm.arthur.mclean@gmail.com> writes:
[...]
> In C, the term "array" is slightly misused, to refer to the memory
> space rather than the data within it. This is a bit like calling the
> parade ground the "array" rather than the soldiers upon it.
[...]

This problem, if it were one, could be avoided by thinking of the word
"array" as an adjective, not a noun. We can have array types, array
values, array objects, array expressions, but never just "an array"
(though we can call something an array informally). Likewise for
"pointer".

--
Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com
Working, but not speaking, for Philips
void Void(void) { Void(); } /* The recursive call of the void */

Re: on ``vector'' and ``array''

<17050254-bc0d-4923-8c3d-494678ccca5dn@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=18838&group=comp.lang.c#18838

  copy link   Newsgroups: comp.lang.c
X-Received: by 2002:ad4:50c7:: with SMTP id e7mr50667qvq.53.1635611596650;
Sat, 30 Oct 2021 09:33:16 -0700 (PDT)
X-Received: by 2002:ac8:7087:: with SMTP id y7mr19897852qto.112.1635611596400;
Sat, 30 Oct 2021 09:33:16 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.c
Date: Sat, 30 Oct 2021 09:33:16 -0700 (PDT)
In-Reply-To: <86bl37kh6m.fsf@levado.to>
Injection-Info: google-groups.googlegroups.com; posting-host=24.42.199.210; posting-account=bTeHoAkAAAB0WHf8fddc6rmiFGF_Yz1z
NNTP-Posting-Host: 24.42.199.210
References: <8635oklbti.fsf@levado.to> <9288af47-3e78-4016-b5a6-519d44b560b6n@googlegroups.com>
<87fsskugpt.fsf@bsb.me.uk> <61ed0973-6096-415f-bd37-4d3881339cb6n@googlegroups.com>
<86bl37kh6m.fsf@levado.to>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <17050254-bc0d-4923-8c3d-494678ccca5dn@googlegroups.com>
Subject: Re: on ``vector'' and ``array''
From: mailto.a...@gmail.com (Anand Hariharan)
Injection-Date: Sat, 30 Oct 2021 16:33:16 +0000
Content-Type: text/plain; charset="UTF-8"
 by: Anand Hariharan - Sat, 30 Oct 2021 16:33 UTC

On Friday, October 29, 2021 at 10:04:37 AM UTC-5, Meredith Montgomery wrote:
> Malcolm McLean <malcolm.ar...@gmail.com> writes:
>
> > On Friday, 29 October 2021 at 14:02:36 UTC+1, Ben Bacarisse wrote:
> >> Malcolm McLean <malcolm.ar...@gmail.com> writes:
> >>
> >> > In C++, the term "vector" is misused quite badly to refer to an
> >> > array. That's because early on in the development of the standard
> >> > template library, the identifier "array" was used for an
> >> > inconvenient
> >> > container that is seldom used, creating the need for another name to
> >> > use for the normal array type.
> >> What was array used for in the early STL? std::array is present in
> >> recent versions of C++, but I don't know of the earlier usage.
> >>
> > I've checked and it appears I was wrong. The inconvenient type was
> > "valarray"
> > (an array constrained to hold scalars). "array" was avoided because of
> > the use
> > of the term in the C standard.
> > However Alex Stepanov (the man responsible for the STL) later said he had
> > made a mistake by choosing the identifier "vector".
> Oh, nice. Can you locate the reference? I just searched every
> interview of his from the interviews-section at
>
> http://stepanovpapers.com/
>
> and did not find any comment to that effect. Thank you!

He talks about this some 7' into this ~1 hour long video:

https://www.youtube.com/watch?v=etZgaSjzqlU

Also Stroustrup (in TC++PL) says it has to do with how terminology evolved.

- Anand

Re: on ``vector'' and ``array''

<868ryacqnb.fsf@levado.to>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=18841&group=comp.lang.c#18841

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!aioe.org!y8dKShFk70XPL+5gD+zdEw.user.46.165.242.75.POSTED!not-for-mail
From: mmontgom...@levado.to (Meredith Montgomery)
Newsgroups: comp.lang.c
Subject: Re: on ``vector'' and ``array''
Date: Sat, 30 Oct 2021 15:29:44 -0300
Organization: Aioe.org NNTP Server
Message-ID: <868ryacqnb.fsf@levado.to>
References: <8635oklbti.fsf@levado.to>
<9288af47-3e78-4016-b5a6-519d44b560b6n@googlegroups.com>
<87fsskugpt.fsf@bsb.me.uk>
<61ed0973-6096-415f-bd37-4d3881339cb6n@googlegroups.com>
<86bl37kh6m.fsf@levado.to>
<17050254-bc0d-4923-8c3d-494678ccca5dn@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain
Injection-Info: gioia.aioe.org; logging-data="63124"; posting-host="y8dKShFk70XPL+5gD+zdEw.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
Cancel-Lock: sha1:0mwgBI6NnySYNN0tAB04VGuI0XM=
X-Notice: Filtered by postfilter v. 0.9.2
 by: Meredith Montgomery - Sat, 30 Oct 2021 18:29 UTC

Anand Hariharan <mailto.anand.hariharan@gmail.com> writes:

> On Friday, October 29, 2021 at 10:04:37 AM UTC-5, Meredith Montgomery wrote:
>> Malcolm McLean <malcolm.ar...@gmail.com> writes:
>>
>> > On Friday, 29 October 2021 at 14:02:36 UTC+1, Ben Bacarisse wrote:
>> >> Malcolm McLean <malcolm.ar...@gmail.com> writes:
>> >>
>> >> > In C++, the term "vector" is misused quite badly to refer to an
>> >> > array. That's because early on in the development of the standard
>> >> > template library, the identifier "array" was used for an
>> >> > inconvenient
>> >> > container that is seldom used, creating the need for another name to
>> >> > use for the normal array type.
>> >> What was array used for in the early STL? std::array is present in
>> >> recent versions of C++, but I don't know of the earlier usage.
>> >>
>> > I've checked and it appears I was wrong. The inconvenient type was
>> > "valarray"
>> > (an array constrained to hold scalars). "array" was avoided because of
>> > the use
>> > of the term in the C standard.
>> > However Alex Stepanov (the man responsible for the STL) later said he had
>> > made a mistake by choosing the identifier "vector".
>> Oh, nice. Can you locate the reference? I just searched every
>> interview of his from the interviews-section at
>>
>> http://stepanovpapers.com/
>>
>> and did not find any comment to that effect. Thank you!
>
> He talks about this some 7' into this ~1 hour long video:
>
> https://www.youtube.com/watch?v=etZgaSjzqlU

Nice.

https://www.youtube.com/watch?v=etZgaSjzqlU&t=412s

> Also Stroustrup (in TC++PL) says it has to do with how terminology evolved.

Thank you so much!

Re: on ``vector'' and ``array''

<65a20ab1-1436-453c-b01c-9b37c1a7cf9fn@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=18843&group=comp.lang.c#18843

  copy link   Newsgroups: comp.lang.c
X-Received: by 2002:a05:622a:393:: with SMTP id j19mr21110336qtx.166.1635625523606;
Sat, 30 Oct 2021 13:25:23 -0700 (PDT)
X-Received: by 2002:ae9:ef58:: with SMTP id d85mr15243054qkg.526.1635625523418;
Sat, 30 Oct 2021 13:25:23 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.c
Date: Sat, 30 Oct 2021 13:25:23 -0700 (PDT)
In-Reply-To: <17050254-bc0d-4923-8c3d-494678ccca5dn@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2a00:23a8:400a:5601:fc32:afe8:789f:1a87;
posting-account=Dz2zqgkAAADlK5MFu78bw3ab-BRFV4Qn
NNTP-Posting-Host: 2a00:23a8:400a:5601:fc32:afe8:789f:1a87
References: <8635oklbti.fsf@levado.to> <9288af47-3e78-4016-b5a6-519d44b560b6n@googlegroups.com>
<87fsskugpt.fsf@bsb.me.uk> <61ed0973-6096-415f-bd37-4d3881339cb6n@googlegroups.com>
<86bl37kh6m.fsf@levado.to> <17050254-bc0d-4923-8c3d-494678ccca5dn@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <65a20ab1-1436-453c-b01c-9b37c1a7cf9fn@googlegroups.com>
Subject: Re: on ``vector'' and ``array''
From: malcolm....@gmail.com (Malcolm McLean)
Injection-Date: Sat, 30 Oct 2021 20:25:23 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 34
 by: Malcolm McLean - Sat, 30 Oct 2021 20:25 UTC

On Saturday, 30 October 2021 at 17:33:23 UTC+1, Anand Hariharan wrote:
> On Friday, October 29, 2021 at 10:04:37 AM UTC-5, Meredith Montgomery wrote:
> > Malcolm McLean <malcolm.ar...@gmail.com> writes:
> >
> > > On Friday, 29 October 2021 at 14:02:36 UTC+1, Ben Bacarisse wrote:
> > >> Malcolm McLean <malcolm.ar...@gmail.com> writes:
> > >>
> > >> > In C++, the term "vector" is misused quite badly to refer to an
> > >> > array. That's because early on in the development of the standard
> > >> > template library, the identifier "array" was used for an
> > >> > inconvenient
> > >> > container that is seldom used, creating the need for another name to
> > >> > use for the normal array type.
> > >> What was array used for in the early STL? std::array is present in
> > >> recent versions of C++, but I don't know of the earlier usage.
> > >>
> > > I've checked and it appears I was wrong. The inconvenient type was
> > > "valarray"
> > > (an array constrained to hold scalars). "array" was avoided because of
> > > the use
> > > of the term in the C standard.
> > > However Alex Stepanov (the man responsible for the STL) later said he had
> > > made a mistake by choosing the identifier "vector".
> > Oh, nice. Can you locate the reference? I just searched every
> > interview of his from the interviews-section at
> >
> > http://stepanovpapers.com/
> >
> > and did not find any comment to that effect. Thank you!
> He talks about this some 7' into this ~1 hour long video:
>
> https://www.youtube.com/watch?v=etZgaSjzqlU
>
Thanks. I found myself watching the whole thing.

Re: on ``vector'' and ``array''

<86cznlb5ki.fsf@levado.to>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=18844&group=comp.lang.c#18844

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!aioe.org!mQaijkGIswDgRPj/sxYnEQ.user.46.165.242.75.POSTED!not-for-mail
From: mmontgom...@levado.to (Meredith Montgomery)
Newsgroups: comp.lang.c
Subject: Re: on ``vector'' and ``array''
Date: Sun, 31 Oct 2021 12:02:37 -0300
Organization: Aioe.org NNTP Server
Message-ID: <86cznlb5ki.fsf@levado.to>
References: <8635oklbti.fsf@levado.to>
<9288af47-3e78-4016-b5a6-519d44b560b6n@googlegroups.com>
<87fsskugpt.fsf@bsb.me.uk>
<61ed0973-6096-415f-bd37-4d3881339cb6n@googlegroups.com>
<86bl37kh6m.fsf@levado.to>
<17050254-bc0d-4923-8c3d-494678ccca5dn@googlegroups.com>
<65a20ab1-1436-453c-b01c-9b37c1a7cf9fn@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain
Injection-Info: gioia.aioe.org; logging-data="19708"; posting-host="mQaijkGIswDgRPj/sxYnEQ.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
X-Notice: Filtered by postfilter v. 0.9.2
Cancel-Lock: sha1:UiVn5rhcnp/vyuZpGeUtZ+3QwVk=
 by: Meredith Montgomery - Sun, 31 Oct 2021 15:02 UTC

Malcolm McLean <malcolm.arthur.mclean@gmail.com> writes:

> On Saturday, 30 October 2021 at 17:33:23 UTC+1, Anand Hariharan wrote:
>> On Friday, October 29, 2021 at 10:04:37 AM UTC-5, Meredith Montgomery wrote:
>> > Malcolm McLean <malcolm.ar...@gmail.com> writes:
>> >
>> > > On Friday, 29 October 2021 at 14:02:36 UTC+1, Ben Bacarisse wrote:
>> > >> Malcolm McLean <malcolm.ar...@gmail.com> writes:
>> > >>
>> > >> > In C++, the term "vector" is misused quite badly to refer to an
>> > >> > array. That's because early on in the development of the standard
>> > >> > template library, the identifier "array" was used for an
>> > >> > inconvenient
>> > >> > container that is seldom used, creating the need for another name to
>> > >> > use for the normal array type.
>> > >> What was array used for in the early STL? std::array is present in
>> > >> recent versions of C++, but I don't know of the earlier usage.
>> > >>
>> > > I've checked and it appears I was wrong. The inconvenient type was
>> > > "valarray"
>> > > (an array constrained to hold scalars). "array" was avoided because of
>> > > the use
>> > > of the term in the C standard.
>> > > However Alex Stepanov (the man responsible for the STL) later said he had
>> > > made a mistake by choosing the identifier "vector".
>> > Oh, nice. Can you locate the reference? I just searched every
>> > interview of his from the interviews-section at
>> >
>> > http://stepanovpapers.com/
>> >
>> > and did not find any comment to that effect. Thank you!
>> He talks about this some 7' into this ~1 hour long video:
>>
>> https://www.youtube.com/watch?v=etZgaSjzqlU
>>
> Thanks. I found myself watching the whole thing.

The lecture is indeed really nice. I had a lot of fun at time 7:07:

-- Which class would you use?
-- VECTAR!
-- Vectar, guys.
-- You use Vectar.

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor