<div dir="ltr"><div>A few things immediately spring to mind:</div>• Fixed-size arrays<div>• An optimized Matrix type</div><div>• Swifty syntax for Fourier transforms</div><div>• A numerical integrator (or diff-eq solver!)</div><div>• BigInt capabilities</div><div><br></div><div>The first of these (fixed-size arrays) will probably require compiler support.</div><div><br></div><div>The rest can already be done in a library, except I believe they will hit the “generics cannot be specialized across module boundaries” slowdown, and must be explicitly specialized for common numeric types to avoid it. (Has this been fixed yet? Are there plans to?)</div><div><br></div><div>Nevin</div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Aug 3, 2016 at 8:41 AM, Björn Forster <span dir="ltr"><<a href="mailto:swift-evolution@swift.org" target="_blank">swift-evolution@swift.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello Swift community,<div>to make use of Swift more appealing and useful for science, engineering and finance and everything else involving actually calculating things, I think it would be a big step forward if Swift would ship with its own math/numerics library.</div><div><br></div><div>Wouldn't it be great if Swift would offer functionality similar to Numpy in its native math lib? It think it would be great to have a "standard" annotation for vector arithmetic that the Swift community has agreed on and that scientific packages can build on.</div><div><br></div><div>Which functionality should be covered by a Swift's math lib and where should be drawn the line?</div><div><br></div><div>Any thoughts?</div><div><br></div><div>(If it is not the right time now to talk this topic, as it is not mentioned in the goals for Swift 4 by Chris, I apologize for bringing this up now. But I think then this should be discussed later at some point not in the infinite future) </div><span class="HOEnZb"><font color="#888888"><div><br></div><div>Björn</div></font></span></div>
<br>_______________________________________________<br>
swift-evolution mailing list<br>
<a href="mailto:swift-evolution@swift.org">swift-evolution@swift.org</a><br>
<a href="https://lists.swift.org/mailman/listinfo/swift-evolution" rel="noreferrer" target="_blank">https://lists.swift.org/mailman/listinfo/swift-evolution</a><br>
<br></blockquote></div><br></div>