Shared libraries
Shared libraries
Posted Nov 24, 2025 18:42 UTC (Mon) by keithp (subscriber, #5140)In reply to: Shared libraries by bluca
Parent article: APT Rust requirement raises questions
I've come to accept the reality that compiling parametric polymorphic languages (like Rust and C++) inherently eliminates any notion of strong ABI. To avoid just stuffing everything in boxes and using virtual dispatch for all operations, you have to codegen functions using the concrete type.
So, you either get responsible language design with actual type checking across interfaces, or you get shared libraries. I haven't seen any plan for getting both. It kinda sucks, but given that I have to make a choice, I know which I'm willing to accept.
At this point, I'd assume any time a package using Rust anywhere should trigger a rebuild of any reverse dependencies, at least until policy tells us how to avoid that.
