<div dir="ltr">On Sun, Jan 24, 2016 at 9:55 PM, Chris Lattner <span dir="ltr">&lt;<a href="mailto:clattner@apple.com" target="_blank">clattner@apple.com</a>&gt;</span> wrote:<br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div style="word-wrap:break-word">Are you willing/able to share the code for your project?  That definitely sounds strange,</div></blockquote><div><br></div><div>Soitenly: <a href="https://github.com/AE9RB/SwiftGL">https://github.com/AE9RB/SwiftGL</a></div><div><br></div><div>The 28,000 lines of loader code are fine. The 6,000 lines of math libraries are the problem.</div><div><br></div><div>I&#39;m sure it&#39;s something to do with prototypes and generics. You can change in Types.swift:<br></div><div><span class="" style="color:rgb(167,29,93);font-family:Consolas,&#39;Liberation Mono&#39;,Menlo,Courier,monospace;font-size:12px;white-space:pre">public</span><span style="color:rgb(51,51,51);font-family:Consolas,&#39;Liberation Mono&#39;,Menlo,Courier,monospace;font-size:12px;white-space:pre"> </span><span class="" style="color:rgb(167,29,93);font-family:Consolas,&#39;Liberation Mono&#39;,Menlo,Courier,monospace;font-size:12px;white-space:pre">protocol</span><span style="color:rgb(51,51,51);font-family:Consolas,&#39;Liberation Mono&#39;,Menlo,Courier,monospace;font-size:12px;white-space:pre"> FloatingPointScalarType </span><span class="" style="color:rgb(167,29,93);font-family:Consolas,&#39;Liberation Mono&#39;,Menlo,Courier,monospace;font-size:12px;white-space:pre">:</span><span style="color:rgb(51,51,51);font-family:Consolas,&#39;Liberation Mono&#39;,Menlo,Courier,monospace;font-size:12px;white-space:pre"> ScalarType</span><br></div>to:<div><span class="" style="color:rgb(167,29,93);font-family:Consolas,&#39;Liberation Mono&#39;,Menlo,Courier,monospace;font-size:12px;white-space:pre">public</span><span style="color:rgb(51,51,51);font-family:Consolas,&#39;Liberation Mono&#39;,Menlo,Courier,monospace;font-size:12px;white-space:pre"> </span><span class="" style="color:rgb(167,29,93);font-family:Consolas,&#39;Liberation Mono&#39;,Menlo,Courier,monospace;font-size:12px;white-space:pre">protocol</span><span style="color:rgb(51,51,51);font-family:Consolas,&#39;Liberation Mono&#39;,Menlo,Courier,monospace;font-size:12px;white-space:pre"> FloatingPointScalarType </span><span class="" style="color:rgb(167,29,93);font-family:Consolas,&#39;Liberation Mono&#39;,Menlo,Courier,monospace;font-size:12px;white-space:pre">:</span><span style="color:rgb(51,51,51);font-family:Consolas,&#39;Liberation Mono&#39;,Menlo,Courier,monospace;font-size:12px;white-space:pre"> ScalarType, FloatingPointType</span><span style="color:rgb(51,51,51);font-family:Consolas,&#39;Liberation Mono&#39;,Menlo,Courier,monospace;font-size:12px;white-space:pre"><br></span></div><div>and make the problem a bit worse. This is something I&#39;d actually like to use, except I don&#39;t because a few &quot;where constraints&quot; do what I need without the build slowdown.</div><div><br></div><div>Swift 2.1 or 2.2-dev doesn&#39;t make a difference. The C++ compiler I bench against is also llvm. The compiled binaries are truly fast (with WMO). It&#39;s only the development process that&#39;s too slow because of build times.</div><div><br></div><div>-David &quot;nyuk nyuk nyuk&quot; Turnbull<br></div><div><br></div></div></div></div>