[swift-dev] Namespacing Compiler-Stdlib Interfaces

Joe Groff jgroff at apple.com
Fri Dec 16 12:46:15 CST 2016


> On Dec 15, 2016, at 3:46 PM, Alexis via swift-dev <swift-dev at swift.org> wrote:
> 
> Triaging old radars, I came across rdar://27268632 from Dmitri. The gist of it is that he was proposing grouping up all the random global functions that are implicitly called by the compiler under a “namespace” by making them static methods of an enum called _Intrinsic. (This name is kind’ve confusing, because it seems to be the opposite of the traditional notion of an intrinsic. _RuntimeHook?)
> 
> Since this affects how the compiler interfaces with the standard library, I figured I should check with everyone what they think about doing this. This is an ABI stability issue, because future compilers will emit these symbols.
> 
> I don’t really have a strong opinion on the matter. Avoiding global pollution and clarifying interfaces seems nice?

I agree. It'd be general goodness to enumerate the set of things the compiler expects the standard library to provide, and to see if there's any cleaning up or simplification of these interfaces we can do before ABI lockdown.

-Joe



More information about the swift-dev mailing list