<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Jan 26, 2016, at 23:32 , David Turnbull via swift-evolution &lt;<a href="mailto:swift-evolution@swift.org" class="">swift-evolution@swift.org</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">On Tue, Jan 26, 2016 at 10:44 PM, FĂ©lix Cloutier <span dir="ltr" class="">&lt;<a href="mailto:swift-evolution@swift.org" target="_blank" class="">swift-evolution@swift.org</a>&gt;</span> wrote:<br class=""><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word" class="">This is probably what David means when he says that it uses dynamic dispatch.<br class=""></div></blockquote><div class=""><br class=""></div><div class="">I was a bit imprecise because 100% of my math libraries are generic. So it's stuck in my head that everything gets a dynamic dispatch. But yeah, concrete functions crossing modules are simply not-inlined. Which is still a very big deal for simple math operations.</div><div class=""><br class=""></div><div class="">Regardless of the technical details, there's significant advantages to being "stdlib" instead of "module". That's what I wanted to bring to the discussion. It's not something you'll find in the docs but I think it's important to know about for anyone working on this idea.<br class=""></div></div></div></div></div></blockquote><br class=""></div><div>It isn't a "stdlib" vs. "module" distinction. The core standard library is compiled in an incredibly hacky mode that has pretty much broken something every time we try to extend it to something else; there are a number of bugs across the compiler that we need to fix so that we can do this reliably for arbitrary modules (without any customization). Some of the issues are listed at the bottom of the&nbsp;<a href="https://github.com/apple/swift/blob/master/docs/TransparentAttr.rst" class="">TransparentAttr.rst</a>&nbsp;document, for lack of a better place to put them.</div><div><br class=""></div><div>Jordan</div><br class=""></body></html>