Re:So You Want to Rust the Linux Kernel?
by lenkite on Monday October 11, 2021 @11:53AM
(#28829718)
The lack of goto also bars it from the domain of very fast interpreters. Computed gotos are a common technique used in C/C++ interpreters which aren't possible in Rust.
[ Parent
| on HN ]
Re:So You Want to Rust the Linux Kernel?
by quotemstr on Monday October 11, 2021 @12:22PM
(#28830002)
To be fair, the last time I checked, LLVM was doing an okay job of generating jump tables from big switches and threading the cases for best jump target prediction --- same thing you'd do with computed goto.
But yes, lack of goto and computed goto are deficiencies, not strengths.