From: Peter Zijlstra <peterz@infradead•org>
To: Alice Ryhl <aliceryhl@google•com>
Cc: "Gary Guo" <gary@garyguo•net>,
"Link Mauve" <linkmauve@linkmauve•fr>,
rust-for-linux@vger•kernel.org, "Miguel Ojeda" <ojeda@kernel•org>,
"Boqun Feng" <boqun@kernel•org>,
"Björn Roy Baron" <bjorn3_gh@protonmail•com>,
"Benno Lossin" <lossin@kernel•org>,
"Andreas Hindborg" <a.hindborg@kernel•org>,
"Trevor Gross" <tmgross@umich•edu>,
"Danilo Krummrich" <dakr@kernel•org>,
"Jonathan Corbet" <corbet@lwn•net>,
"Madhavan Srinivasan" <maddy@linux•ibm.com>,
"Michael Ellerman" <mpe@ellerman•id.au>,
"Nicholas Piggin" <npiggin@gmail•com>,
"Christophe Leroy (CS GROUP)" <chleroy@kernel•org>,
"Josh Poimboeuf" <jpoimboe@kernel•org>,
"Jason Baron" <jbaron@akamai•com>,
"Steven Rostedt" <rostedt@goodmis•org>,
"Ard Biesheuvel" <ardb@kernel•org>,
"Nathan Chancellor" <nathan@kernel•org>,
"Nick Desaulniers" <nick.desaulniers+lkml@gmail•com>,
"Bill Wendling" <morbo@google•com>,
"Justin Stitt" <justinstitt@google•com>,
linux-doc@vger•kernel.org, linux-kernel@vger•kernel.org,
linuxppc-dev@lists•ozlabs.org, llvm@lists•linux.dev,
officialTechflashYT@gmail•com, "Ash Logan" <ash@heyquark•com>,
"Roberto Van Eeden" <rw-r-r-0644@protonmail•com>,
"Jonathan Neuschäfer" <j.neuschaefer@gmx•net>
Subject: Re: [PATCH] rust: Add PowerPC support
Date: Wed, 4 Feb 2026 14:06:53 +0100 [thread overview]
Message-ID: <20260204130653.GH2995752@noisy.programming.kicks-ass.net> (raw)
In-Reply-To: <aYNBtc2Jbtg9sLIE@google.com>
On Wed, Feb 04, 2026 at 12:55:17PM +0000, Alice Ryhl wrote:
> Is there any reason to not make it Rust-only but for all Rust code?
> Making the / operator work seems like it would be a good idea.
Why would it be a good idea to have it work on non-native types in Rust?
The reason we don't have them in C is because non-native divisions are
expensive and doing them should be a conscious choice. The very same
argument should be true for Rust code too.
next prev parent reply other threads:[~2026-02-04 13:07 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-02-04 3:05 [PATCH] rust: Add PowerPC support Link Mauve
2026-02-04 10:41 ` Alice Ryhl
2026-02-04 12:36 ` Gary Guo
2026-02-04 12:55 ` Alice Ryhl
2026-02-04 13:06 ` Peter Zijlstra [this message]
2026-02-04 13:36 ` Alice Ryhl
2026-02-04 17:19 ` Christophe Leroy (CS GROUP)
2026-02-04 17:33 ` Mukesh Kumar Chaurasiya
2026-02-04 19:42 ` Christophe Leroy (CS GROUP)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260204130653.GH2995752@noisy.programming.kicks-ass.net \
--to=peterz@infradead$(echo .)org \
--cc=a.hindborg@kernel$(echo .)org \
--cc=aliceryhl@google$(echo .)com \
--cc=ardb@kernel$(echo .)org \
--cc=ash@heyquark$(echo .)com \
--cc=bjorn3_gh@protonmail$(echo .)com \
--cc=boqun@kernel$(echo .)org \
--cc=chleroy@kernel$(echo .)org \
--cc=corbet@lwn$(echo .)net \
--cc=dakr@kernel$(echo .)org \
--cc=gary@garyguo$(echo .)net \
--cc=j.neuschaefer@gmx$(echo .)net \
--cc=jbaron@akamai$(echo .)com \
--cc=jpoimboe@kernel$(echo .)org \
--cc=justinstitt@google$(echo .)com \
--cc=linkmauve@linkmauve$(echo .)fr \
--cc=linux-doc@vger$(echo .)kernel.org \
--cc=linux-kernel@vger$(echo .)kernel.org \
--cc=linuxppc-dev@lists$(echo .)ozlabs.org \
--cc=llvm@lists$(echo .)linux.dev \
--cc=lossin@kernel$(echo .)org \
--cc=maddy@linux$(echo .)ibm.com \
--cc=morbo@google$(echo .)com \
--cc=mpe@ellerman$(echo .)id.au \
--cc=nathan@kernel$(echo .)org \
--cc=nick.desaulniers+lkml@gmail$(echo .)com \
--cc=npiggin@gmail$(echo .)com \
--cc=officialTechflashYT@gmail$(echo .)com \
--cc=ojeda@kernel$(echo .)org \
--cc=rostedt@goodmis$(echo .)org \
--cc=rust-for-linux@vger$(echo .)kernel.org \
--cc=rw-r-r-0644@protonmail$(echo .)com \
--cc=tmgross@umich$(echo .)edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox