News for hackers. Stuff that matters.
Re:How Swift achieved dynamic linking where Rust couldn't (2... by pjmlp on Sunday February 21, 2021 @02:40AM (#26211647)
Try that on an OS that isn't a Linux distribution.
Re:How Swift achieved dynamic linking where Rust couldn't (2... by a1369209993 on Sunday February 21, 2021 @05:13AM (#26212304)
Works fine on BSD (though it's been long enough that I forget which BSD) as long as you ignore the parts of the documentation written by facist morons. Haven't had occasion to beat proper linking behaviour into a Windows machine, but what I've heard suggests it'd be a pain the ass, yes. (Then again, Windows isn't a OS, it's a shitty GUI for DOS that bloated until it could read email. Kinda like OSX, except there isn't a vaguely decent OS buried under the manure.)
Re:How Swift achieved dynamic linking where Rust couldn't (2... by pjmlp on Sunday February 21, 2021 @07:16AM (#26212930)
A systems programming language cannot afford to silo itself on a single OS solutions.

There are plenty of OSes to choose from by the way, even your rant barely scratches the surface of the options available for any serious systems programming language.

Re:How Swift achieved dynamic linking where Rust couldn't (2... by a1369209993 on Sunday February 21, 2021 @01:33PM (#26215826)
> A systems programming language cannot afford to silo itself on a single OS solutions.

If a OS (or alleged OS) demands that you dynamically link against libc (or anything else written in C) to interact with it, that problem is not the (non-C) programming language's fault.

> your rant barely scratches the surface of the [OS] options available

That's fair, but most of the not-linux I have experience with is microcontrollers or other things that are far enough from unix/posix that they don't have dlopen (mmap itself is hit-or-miss, but tends to be hit in the sorts of situations where I'd have occasion to dynamically load stuff in the first place), so there's not much I could do about that.