[rust-dev] Student projects/internships

mbrubeck mbrubeck at mozilla.com
Fri Jan 13 08:04:25 PST 2012


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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/rust-dev/attachments/20120113/f641c153/attachment-0001.html>


More information about the Rust-dev mailing list