Re: [swift-evolution] Which functionality should be covered by a native Swift math/numerics library that ships with the standard lib?

2016-08-09 Thread Xiaodi Wu via swift-evolution
For matrix math, there are several projects in existence. I know of Surge and its forked cousin Upsurge, and a quick googling reveals a few more. On Tue, Aug 9, 2016 at 14:22 Maximilian Hünenberger < swift-evolution@swift.org> wrote: > I think this is a great idea! > > As Chris said we should use

Re: [swift-evolution] Which functionality should be covered by a native Swift math/numerics library that ships with the standard lib?

2016-08-09 Thread Maximilian Hünenberger via swift-evolution
I think this is a great idea! As Chris said we should use GitHub or something else to start such a project. Does someone already has a Math library where we can discuss and commit? I'll soon push a small Math library to my GitHub repo and let you know. Best regards Maximilian > Am 03.08.2016

Re: [swift-evolution] Which functionality should be covered by a native Swift math/numerics library that ships with the standard lib?

2016-08-05 Thread Taras Zakharko via swift-evolution
You could use the pointer/raw memory API to implement that. One reason why I dislike the idea of introducing fixed-size arrays as a first-class language feature is that it adds an additional construct with quite niche use. Non-type generic parameters instead give you a powerful tool that you

Re: [swift-evolution] Which functionality should be covered by a native Swift math/numerics library that ships with the standard lib?

2016-08-05 Thread Tino Heth via swift-evolution
> I don't think that non-type generic arguments are enough to create fixed-size > arrays. How would you fill in `struct Vector { ... }`? Fixed-size arrays could be initialized like current arrays: You either give a value to repeat or an array-literal of the right size. There could

Re: [swift-evolution] Which functionality should be covered by a native Swift math/numerics library that ships with the standard lib?

2016-08-05 Thread Félix Cloutier via swift-evolution
I don't think that non-type generic arguments are enough to create fixed-size arrays. How would you fill in `struct Vector { ... }`? Seems to me that the first step would be actual language support for non-parametrizable fixed-size arrays. Félix > Le 5 août 2016 à 04:53:20,

Re: [swift-evolution] Which functionality should be covered by a native Swift math/numerics library that ships with the standard lib?

2016-08-05 Thread Taras Zakharko via swift-evolution
> A few things immediately spring to mind: > • Fixed-size arrays > • An optimized Matrix type > • Swifty syntax for Fourier transforms > • A numerical integrator (or diff-eq solver!) > • BigInt capabilities > > The first of these (fixed-size arrays) will probably require compiler support.

Re: [swift-evolution] Which functionality should be covered by a native Swift math/numerics library that ships with the standard lib?

2016-08-03 Thread Muse M via swift-evolution
If Swift team have no roadmap on those plans, any swift developers with strong in each area could kickstart and contributing libraries in Github repo. We will greatly benefit from those areas and AI. On Wed, Aug 3, 2016 at 11:10 PM, Xiaodi Wu via swift-evolution < swift-evolution@swift.org>

Re: [swift-evolution] Which functionality should be covered by a native Swift math/numerics library that ships with the standard lib?

2016-08-03 Thread Nevin Brackett-Rozinsky via swift-evolution
A few things immediately spring to mind: • Fixed-size arrays • An optimized Matrix type • Swifty syntax for Fourier transforms • A numerical integrator (or diff-eq solver!) • BigInt capabilities The first of these (fixed-size arrays) will probably require compiler support. The rest can already

Re: [swift-evolution] Which functionality should be covered by a native Swift math/numerics library that ships with the standard lib?

2016-08-03 Thread Tino Heth via swift-evolution
> 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. There are several topics that imho would benefit

[swift-evolution] Which functionality should be covered by a native Swift math/numerics library that ships with the standard lib?

2016-08-03 Thread Björn Forster via swift-evolution
Hello Swift community, 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. Wouldn't it be great if Swift would