[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CANiq72mOp0q1xgAHod1Y_mX86OESzdDsgSghtQCwe6iksNt-sA@mail.gmail.com>
Date: Wed, 26 Feb 2025 14:53:26 +0100
From: Miguel Ojeda <miguel.ojeda.sandonis@...il.com>
To: Ventura Jack <venturajack85@...il.com>
Cc: Kent Overstreet <kent.overstreet@...ux.dev>, "H. Peter Anvin" <hpa@...or.com>,
Alice Ryhl <aliceryhl@...gle.com>, Linus Torvalds <torvalds@...ux-foundation.org>,
Gary Guo <gary@...yguo.net>, airlied@...il.com, boqun.feng@...il.com,
david.laight.linux@...il.com, ej@...i.de, gregkh@...uxfoundation.org,
hch@...radead.org, ksummit@...ts.linux.dev, linux-kernel@...r.kernel.org,
rust-for-linux@...r.kernel.org, Ralf Jung <post@...fj.de>
Subject: Re: C aggregate passing (Rust kernel policy)
On Wed, Feb 26, 2025 at 2:03 PM Ventura Jack <venturajack85@...il.com> wrote:
>
> One worry I do have, is that the aliasing rules being officially
> tied to LLVM instead of having its own separate specification,
> may make it harder for other compilers like gccrs to implement
> the same behavior for programs as rustc.
I don't think they are (or rather, will be) "officially tied to LLVM".
> Interestingly, some other features of Rust are defined through C++
> or implemented similar to C++.
Of course, Rust has inherited a lot of ideas from other languages.
It is also not uncommon for specifications to refer to others, e.g.
C++ refers to ~10 documents, including C; and C refers to some too.
> Exception/unwind safety may be another subject that increases
> the difficulty of writing unsafe Rust.
Note that Rust panics in the kernel do not unwind.
Cheers,
Miguel
Powered by blists - more mailing lists