In a statement, the Rust Foundation summarizes the problems in the interoperability between Rust and C++ and provides initial solutions.
The Rust Foundation has published a document on GitHub that describes the biggest problems with the interaction between Rust and C++. The foundation proposes short-term and long-term measures for better interoperability between the programming languages.Interoperability is particularly in demand in system-related programming. Rust has now established itself there, but very few projects start from scratch. Instead, they often encounter existing C++ applications.
The Rust Foundation document names three use cases: C++ systems that implement new functionality with Rust, Rust systems that rely on existing C++ code, and systems with multiple programming languages that implement Rust among others. As C++ has a much longer history than Rust, the first use case is by far the most common.The integration of Rust into the Linux kernel is not an issue, as the kernel does not contain any C++ code. Linus Torvalds has described C++ as a terrible language.
The connection is currently made via the Application Binary Interface of C, as the C ABIs are more stable and less platform-dependent than the C++ ABIs. The detour is particularly important where C++-specific features must first be transferred to the C ABI. Interaction with C has been on the agenda from the very beginning of Rust development. The Rust Foundation describes C as the lingua franca for FFI integration. The biggest challenges are that the security functions of Rust are largely lost when interacting with C and that communication must take place on a common linguistic level, which restricts Rust features.
Firstly, the foundation wants to help improve the tools and eliminate fundamental problems in the Rust project that make interoperability difficult. Next, it wants to find consensus for a strategy to identify and make changes to Rust that are necessary for interoperability. Finally, the Foundation will work with the C++ community and the C++ standards committee to improve collaboration for both languages and achieve common goals for security and performance.
Embedded Systems Programmiersprachen Rust Rust Foundation
Deutschland Neuesten Nachrichten, Deutschland Schlagzeilen
Similar News:Sie können auch ähnliche Nachrichten wie diese lesen, die wir aus anderen Nachrichtenquellen gesammelt haben.
Rust und C++ Hand in Hand: Strategien für ein besseres ZusammenspielIn einem Statement fasst die Rust Foundation die Probleme in der Interoperabilität zwischen Rust und C++ zusammen und bringt erste Lösungsansätze.
Weiterlesen »
Programmiersprache C++: Concurrency mit std::executionstd::execution bietet ein Standard-C++-Framework für die Verwaltung der asynchronen Ausführung auf generischen Ausführungsressourcen.
Weiterlesen »
Softwareentwicklung: Ressourcen sparen mit der C++-Funktion constexprUm ressourcenschonend zu programmieren, genügen schon kleine Veränderungen im Code. Der richtige Einsatz der Funktion constexpr nutzt RAM und ROM effizient.
Weiterlesen »
Weltpremiere: Premiere von 'Rust' mit Schweigeminute für tote KamerafrauTorun - Mit einer Schweigeminute für die bei den Dreharbeiten getötete Kamerafrau Halyna Hutchins hat in Polen die Weltpremiere des Westerns «Rust»
Weiterlesen »
Premiere von „Rust“ mit Schweigeminute für tote KamerafrauBeim Dreh des Westerns „Rust“ mit Darsteller Alec Baldwin wird 2021 eine Kamerafrau getötet. Nun feiert der Film bei einem Festival in Polen Premiere. Die Mutter der Getöteten boykottiert das Event.
Weiterlesen »
Premiere von «Rust»: Mutter von toter Kamerafrau kommt nichtBeim Dreh des Westerns «Rust» mit Darsteller Alec Baldwin wird 2021 eine Kamerafrau getötet. Nun feiert der Film bei einem Festival in Polen Premiere. Die Vorführung beginnt mit einer Schweigeminute.
Weiterlesen »