3 ms·
Can't they use a transpiler from C++ to Rust? E.g. https://llvm.org/devmtg/2023-05/slides/Posters/02-Preto-AutomaticTranslationCPlusPlus-Rust.pdf https://llvm.o
by niutech 2y ago
Can't they use a transpiler from C++ to Rust? E.g. https://llvm.org/devmtg/2023-05/slides/Posters/02-Preto-AutomaticTranslationCPlusPlus-Rust.pdf https://llvm.org/devmtg/2023-05/slides/Posters/02-Preto-Auto...
- swiftcoder 2y agoEventually, maybe. In the short term, the transpilers mostly translate from other languages into unsafe Rust - which is a helpful tool during porting, but there is still a mountain of work to refactor unsafe idioms into safe before you really reap the benefits.
- niutech 2y agoThe presentation I linked talks about transpiling C++ to safe Rust.
- swiftcoder 2y agoYes, there are a few such efforts ( such as https://arxiv.org/pdf/2401.08264 https://arxiv.org/pdf/2401.08264 ). My understanding is that all are still somewhat experimental.