https://kotlinlang.org logo
Title
o

Oleg Yukhnevich

12/12/2019, 7:17 AM
@altavir I think it will be interesting for you https://github.com/Kotlin/kotlin-numpy
👍 1
a

altavir

12/12/2019, 7:26 AM
We had a long discussion with @roman.belov about it on Kotlinconf. There are some problems with numpy integration and it is not clear if we really want it because of some bad architectural decissions about it. It is a good project from the point of view of Python to kotlin migration, but I am not sure that it should be used inside kotlin ecosystem.
I think we should discussit more.
t

thomasnield

12/13/2019, 3:24 PM
I'm actually fond of what @altavir did with kmath. Yeah I'm sure it needs to be scaled and hashed out to be a global library, but I think the concept itself is quite solid.
Sorry my engagement has been sparse. My time is getting dominated by two apps I'm building and trying to bring to market, some O'Reilly projects (stuck with Python), and teaching some classes at University of Southern California next year.
One of the apps on the back burner NEEDS a linear algebra system though. I have a patent on the idea but it's going to require significant investment to build, and I'm planning on making it in Kotlin. Hoping WebAssembly matures enough too so it can be web-based.
a

altavir

12/13/2019, 3:27 PM
kmath is about API, not about performance, but I think what we now have in kmath shows that it is possible to add kmath bindings to high-performant libraries without sacrificing performance. Last addition is Viktor: https://github.com/mipt-npm/kmath/tree/dev/kmath-viktor. The problem with numpy is that at actually requires python interpreter to run and it will be very hard to make stable and reproducable bindings.
👍 1
@thomasnield kmath is multiplatform and it is possible to use it for linear algebra. My tests for my multiplatform implementations show that they are slower than specialized libraries, but not order of magnitude slower. I am sure I can add whatever you need quite fast if you could formulate what you actually need. Core linear algebra is alteady there.
t

thomasnield

12/13/2019, 3:30 PM
@altavir That's what I was insinuating. I may be helping contribute to it later.
a

altavir

12/13/2019, 3:32 PM
I have a team to work on it. The main contribution would be to state what do you actually need 🙂. I do not use linear algebra much, so it hard for me to understand.
t

thomasnield

12/13/2019, 3:33 PM
@altavir oh yeah I forgot you had resources. Neat! Thanks I will keep that in mind. I have some Markov/Bayesian stuff I'm playing with early next year so I'll let you know.
a

altavir

12/13/2019, 3:35 PM
We will start on SImBa (Simulation with Bayesian tools) next year, so some tools will be complimentary, I hope. I also want to create bridge for rather powerful https://github.com/bat/BAT.jl
👍 1
t

thomasnield

12/13/2019, 3:36 PM
I need to still get Kotlin-Statistics multplatform (which I believe you started) and using kmath.
a

altavir

12/13/2019, 3:36 PM
We need to check, but I believe I've finished the multiplatform completion, did I forget to create a pull request?..
t

thomasnield

12/13/2019, 3:37 PM
@altavir you did put in the interfaces if I recall, but I need to look at the implementations too
It should be working. If not, I will remedy that ASAP
t

thomasnield

12/13/2019, 3:37 PM
Oh you put in a PR
I did not realize there was a PR. I missed that.
a

altavir

12/13/2019, 3:38 PM
It is in a separate branch
t

thomasnield

12/13/2019, 3:38 PM
Haha, I was getting married at the time so that might be why I missed it. Sorry about that. I will download and build this week
a

altavir

12/13/2019, 3:38 PM
Getting married is more important, I can tell you
did it properly only the second time
t

thomasnield

12/13/2019, 3:39 PM
Thanks again for doing this, that's huge.