crystal-libraries-needed
crystal-libraries-needed copied to clipboard
A library like Numpy
http://www.numpy.org
Something like Numpy can considerably widen Crystal's reach and invite scientific communities to the language... It'd be really good if we could use Ruby's syntax while crunching numbers...
Won't claim it's anywhere near numpy, but I have ported some financial calculations to crystal https://github.com/drum445/financials
I have a good start on a library inspired by numpy, it's called bottle. I am still looking for contributors, it's just me currently, but I have an N-Dimensional container implemented, and very powerful numpy features like strided views and broadcasting.
@drum445 I went through and took your financial work and added them all as vectorized methods to my library, they worked great! You basically have all of numpys financial methods, so its good to have them. I gave you a shoutout at the top of file, but if you want a link or something to your library just let me know.
If you ever want to add more financial functions I'd also love the PRs!
@christopherzimmerman I found bottle looking through crystal libs and have been following it. I dont have a use for it yet but it looks super promising.
Another option could be Crystalla but there have been no new commits for three years.
Here's another called Num.cr Haven't used it myself but seems to do the job.
@franciscoGPS Num is actually bottle, it's just been renamed
https://github.com/crystal-data/num.cr/pull/14