299
submitted 7 months ago by cyclohexane@lemmy.ml to c/linux@lemmy.ml

I thought I'll make this thread for all of you out there who have questions but are afraid to ask them. This is your chance!

I'll try my best to answer any questions here, but I hope others in the community will contribute too!

you are viewing a single comment's thread
view the rest of the comments
[-] sag@lemm.ee 11 points 7 months ago* (last edited 7 months ago)

Why in Linux, Software uses a particular version of a library? Why not just say it's dependent on that library regardless of version? It become pain in ass when you are using an ancient software it required old version of newer library so you have to create symlinks of every library to match old version.

I know that sometimes newer version of Library is not compatible with software but still. And what we can do as a software developer to fix this problem? Or as a end user.

[-] PlexSheep@infosec.pub 21 points 7 months ago

Software changes. Version 0.5 will not have the same features as Version 0.9 most of the time. Features get added over time, features get removed over time and the interface of a library might change over time too.

As a software dev, the only thing you can do is keep the same API for ever, but that is not always feasible.

[-] sag@lemm.ee 7 points 7 months ago

Hey, Thanks I have one more question. Is it possible to ship all required library with software?

[-] PlexSheep@infosec.pub 4 points 7 months ago

Absolutely! That's called static linking, as in the library is included in the executable. Most Rust programs are compiled that way.

[-] sag@lemm.ee 2 points 7 months ago

Yea, That's why I am learning Rust but I didn't know it called Static Linking I think it just how Rust works LMAO. And Thanks again

[-] PlexSheep@infosec.pub 1 points 7 months ago

No problem. Good luck with your rust journey, it's imo the best programming language.

[-] jack@monero.town 2 points 7 months ago* (last edited 7 months ago)

Doesn't that mean that you have a lot of duplicate libraries when using Rust programs, even ones with the same version? That seems very inefficient

[-] PlexSheep@infosec.pub 1 points 7 months ago

It's true that boundaries get inflated as a result, but with today's hard drives it's not really a problem.

load more comments (9 replies)
load more comments (11 replies)
load more comments (15 replies)
this post was submitted on 09 Apr 2024
299 points (98.7% liked)

Linux

48224 readers
528 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS