On 01/13/2012 07:11 AM, David Bruant wrote:
If it's the case, what about a C-to-Rust or C++-to-Rust compiler?
It would enable to leverage some existing code.
The Rust All Hands Winter 2011 presentation [1] say that some components are planned to be written (slide 39). Such components (parallel aspect aside) already exist in Gecko in C++. Having a (partial) automation of the C++ to Rust transition would probably be beneficial.
Unlike JavaScript code, Rust code can link directly to C/C++ libraries (and vice-versa). So you can already build programs that include both Rust and C++ code, without the performance hit of a source-to-source compiler. There's no need to translate existing code into Rust to leverage it; just use it directly, or write a small wrapper library.
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to