Remix.run Logo
chuckadams 6 hours ago

It's the ultimate in static linking. Perhaps a question that should be asked is why that approach is so compelling?

blackcatsec 5 hours ago | parent [-]

I question that as well, it's also why Go is extremely popular. Could it just be a pendulum swing back towards static linking?

Wonder when some enterprising OSS dev will rebrand dynamic linking in the future...

jfjasdfuw 4 hours ago | parent [-]

CGO_ENABLED=0 is sigma tier.

I don't care about glibc or compatibility with /etc/nsswitch.conf.

look at the hack rust does because it uses libc:

> pub unsafe fn set_var<K: AsRef<OsStr>, V: AsRef<OsStr>>(key: K, value: V)

jcgl 2 hours ago | parent [-]

> I don't care about glibc or compatibility with /etc/nsswitch.conf.

So what do you do when you need to resolve system users? I sure hope you don't parse /etc/passwd, since plenty of users (me included) use other user databases (e.g. sssd or systemd-userdbd).

cyberax an hour ago | parent [-]

Most software doesn't need to resolve users. You also can always shell out to `id` if you need an occasional bit of metadata.