rickmark (Rick Mark)
- Login: rickmark
- Registered on: 03/18/2021
- Last sign in: 03/18/2021
Issues
| open | closed | Total | |
|---|---|---|---|
| Assigned issues | 0 | 0 | 0 |
| Reported issues | 1 | 1 | 2 |
Activity
03/22/2021
-
07:56 PM Ruby Feature #17741 (Open): Ruby links to `objc` for convenience - this should be moved into a native ext
- As a convenance to extension developers Ruby on macOS always links to libobjc. This could be better handled with a native ObjC extension so that one could `require 'objc'` to add this to the process.
The extension would link to libob... -
07:50 PM Ruby Feature #17730: Ruby on macOS transitively links to ~150 dylibs
- rickmark (Rick Mark) wrote in #note-8:
> nobu (Nobuyoshi Nakada) wrote in #note-5:
> ...
Nevermind - I just recompiled ruby from head. Looks like the linking is correct now. Must have been Foundation brining in Security causing my co... -
07:38 PM Ruby Feature #17730: Ruby on macOS transitively links to ~150 dylibs
- naruse (Yui NARUSE) wrote in #note-7:
> duerst (Martin Dürst) wrote in #note-6:
> ...
Yep - the normalization is called `UTF-8-MAC` on libicu. This implies we can use other code to do this. Also since CF is opensource we could just b... -
07:37 PM Ruby Feature #17730: Ruby on macOS transitively links to ~150 dylibs
- nobu (Nobuyoshi Nakada) wrote in #note-5:
> The Security framework is linked only when it is available but CommonRandom is not.
> ...
From compiling recently it looks like `Security.framework` is always linked (see the static linkage r...
03/19/2021
-
04:42 PM Ruby Feature #17730: Ruby on macOS transitively links to ~150 dylibs
- Looks like we applied the Foundation -> CoreFoundation patch.
What about the Security framework? It's the source of the worst dependencies like Metal, CoreML, etc...
(I know my patch proposal moves HEAD to macOS 10.10 or later, but th...
03/18/2021
-
07:16 PM Ruby Feature #17730 (Closed): Ruby on macOS transitively links to ~150 dylibs
- By using `-framework Security` and `-framework Foundation` Ruby 3 pulls in about 150 dylibs when compiled for macOS
By using CoreCrypto / CoreFoundation I was able to reduce this to ~50. This greatly reduces Ruby's surface area and d...