|
|
Log in / Subscribe / Register

Shared libraries

Shared libraries

Posted Nov 24, 2025 21:50 UTC (Mon) by zyga (subscriber, #81533)
In reply to: Shared libraries by zyga
Parent article: APT Rust requirement raises questions

Replying to myself. Apologies for not posting this above but it is well worth reading. "How Swift Achieved Dynamic Linking Where Rust Couldn't": https://faultlore.com/blah/swift-abi/


to post comments

Shared libraries

Posted Nov 25, 2025 12:17 UTC (Tue) by paulj (subscriber, #341) [Link] (1 responses)

I think that's pretty much exactly what keithp had in mind with "To avoid just stuffing everything in boxes and using virtual dispatch for all operations". I read his comment as fairly explicitly referring to the "You can have (strong ABI AND expensive runtime) OR (limited dynlib ABI AND compile time concrete implementation of parametric types to obtain fast runtime)" dichotomy.

Shared libraries

Posted Nov 25, 2025 13:40 UTC (Tue) by khim (subscriber, #9252) [Link]

You can have both (just not at the same time). That's what Swift does.

Shared libraries

Posted Nov 27, 2025 10:15 UTC (Thu) by Karellen (subscriber, #67644) [Link]

Great link, thanks for posting!


Copyright © 2026, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds