Improved dynamic linking ABIs
Improved dynamic linking ABIs
Posted Feb 21, 2025 11:33 UTC (Fri) by ras (subscriber, #33059)In reply to: Improved dynamic linking ABIs by farnz
Parent article: Rewriting essential Linux packages in Rust
> Vec<u32>, since Vec is monomorphized over its type argument.
That's a good illustration. You want the benefits of the type checking that monomorphization provides, but without it effecting the code generated. You can write that sort of code in Rust, but as Vec<u32> demonstrates it would be near impossible to write it without the compiler telling you "hey, you can't do that here" because type checking is usually bundled with implied monomorphization.
