lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <682c97a0-9877-4e31-b180-c1e38d3bc883@nvidia.com>
Date: Mon, 21 Oct 2024 12:08:59 -0700
From: John Hubbard <jhubbard@...dia.com>
To: Alice Ryhl <alice@...l.io>, Miguel Ojeda <miguel.ojeda.sandonis@...il.com>
CC: Alice Ryhl <aliceryhl@...gle.com>, Miguel Ojeda <ojeda@...nel.org>,
	"Andrew Morton" <akpm@...ux-foundation.org>, "Matthew Wilcox (Oracle)"
	<willy@...radead.org>, Alex Gaynor <alex.gaynor@...il.com>, Boqun Feng
	<boqun.feng@...il.com>, Gary Guo <gary@...yguo.net>,
	Björn Roy Baron <bjorn3_gh@...tonmail.com>, Benno Lossin
	<benno.lossin@...ton.me>, Andreas Hindborg <a.hindborg@...nel.org>, "Trevor
 Gross" <tmgross@...ch.edu>, <linux-mm@...ck.org>,
	<rust-for-linux@...r.kernel.org>, <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH v2] rust: page: add Rust version of PAGE_ALIGN

On 10/21/24 11:59 AM, Alice Ryhl wrote:
> On 10/21/24 8:41 PM, John Hubbard wrote:
>> On 10/21/24 11:37 AM, Miguel Ojeda wrote:
>>> On Mon, Oct 21, 2024 at 8:35 PM John Hubbard <jhubbard@...dia.com> wrote:
>>>>
>>>> Is this another case of C and Rust using different words for things??
>>>> Wow. OK...
>>>
>>> I am not sure what you mean -- by BE I meant British English.
>>>
>>> See my other reply as well -- I just changed it anyway because Rust
>>> apparently uses "parentheses".
>>>
>>
>> Right. For spoken languages, that's simply preference, and I would not
>> try to impose anything on anyone there.
>>
>> But in this case, at least for C (and, from reading my Rust book(s), I
>> thought for Rust also), "parentheses" is a technical specification, and
>> we should prefer to be accurate:
>>
>>      parentheses: ()
>>      brackets:    []
>>
>> Yes?
> What word would you use to collectively talk about (), [], {}? In my native language they're all a kind of parenthesis.
> 

Good question. I've never attempted that when discussing programming
language details, because it hasn't come up, because it would be a
programming error in C to use one in place of the other. And it is
rare to refer to both cases in C.

Rust so far seems to have the same distinction, although I am standing
by to be corrected as necessary, there! :)

At a higher level of abstraction, though, perhaps "grouping" is a good
word.


thanks,
-- 
John Hubbard


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ