|
|
Subscribe / Log in / New account

Defining the Rust 2024 edition

Defining the Rust 2024 edition

Posted Jan 31, 2024 10:03 UTC (Wed) by LtWorf (subscriber, #124958)
In reply to: Defining the Rust 2024 edition by Cyberax
Parent article: Defining the Rust 2024 edition

They don't really do that while statically linking everything, no.


to post comments

Defining the Rust 2024 edition

Posted Jan 31, 2024 10:19 UTC (Wed) by matthias (subscriber, #94967) [Link] (2 responses)

The topic was not static linking here, but rebuilding the entire universe. Is there a big difference rebuilding the universe with dynamic linking vs. static linking? The only difference is the time when linking happens, directly after compilation vs. at program startup.

Defining the Rust 2024 edition

Posted Jan 31, 2024 10:36 UTC (Wed) by LtWorf (subscriber, #124958) [Link] (1 responses)

If you use static link, to propagate the changes you need to rebuild the entire universe. Which is the situation with rust being discussed.

Time is a limited resource.

Defining the Rust 2024 edition

Posted Jan 31, 2024 10:54 UTC (Wed) by dezgeg (subscriber, #92243) [Link]

That is precisely what happens in Nix - any change you make to a package causes all the dependees to be transitively rebuilt, regardless of static or dynamic linking (Nix uses mainly dynamic linking). So making a change to something like glibc (or it's build script) really rebuilds the entire world.


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