C++ future at Adobe
So if anyone was still curious what happened to Hylo, or where Adobe stands in regards to the whole safety discussion,
David Sankel has done a talk at RustConf on the matter, Zngur: Simplified Rust/C++ Integration.
The way Adobe now sees C++ is described on slide 2, at 50 seconds mark.
80
Upvotes
View all comments
Show parent comment
3
u/ts826848 Oct 03 '26
I mean, the linker measurements are separated so you could just ignore the relevant parts? Alternatively there's the
cargo checkmeasurements which skips the linker entirely.I wouldn't put too much weight on it sine the author included a disclaimer on that data ("The type checking and especially the borrow checking fraction were calculated with a pretty rough estimations, so I wouldn’t worry too much about them.").
I'm pretty sure the borrow checker doesn't emit any information? AFAIK it's basically a go/no-go check and lifetimes are erased before code generation. That's why mrustc can do its thing without a borrow checker implementation.
For what it's worth someone made a joke fork that ignored borrowck errors, but since that's just ignoring errors I wouldn't expect much in the way of a performance difference unless compilers are way better at tree-shaking than I expected. Their change amounted to commenting out a single line, so if the compiler won't delete the now-unused code perhaps some manual process would get you the rest of the way? Alternatively, delete the rustc_borrowck folder and see where that gets you.
IIRC some of the slowdowns were exponential slowdowns, so I wouldn't be all that surprised that that could turn an insignificant issue into a significant one.