--
You received this message because you are subscribed to the Google Groups "Elm Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elm-discuss...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
Hi guys,
Thanks for your answers. Robin, that was a great talk. I actually was in that very same room when you gave the presentation :-). Very interesting and educative. Hope to see you again in the next Elm Europe.
Matthieu, thanks for the info. I didn't know about Okasaki's work on immutable data structures. Have to admit I didn't google much about the subject. Got some references and I'll go through them. I already have a good idea about the API I'd like to implement for the ndarray. Once I get it done (time is not something I have plenty) I'll write some benchmarks.
Ultimately, I'd like to rewrite NumElm using the elm-ndarray. Not sure how I'm gonna do this without writing kernel code. Linear algebra operations such as Inverse, Pseudo-inverse, Singular value decomposition, Eigenvalues and eigenvectors, etc... I simply have no idea how I'm gonna implement this. Need to have a look at solutions in Haskell for inspiration.
Cheers,
Fran
--
Ultimately, I'd like to rewrite NumElm using the elm-ndarray. Not sure how I'm gonna do this without writing kernel code. Linear algebra operations such as Inverse, Pseudo-inverse, Singular value decomposition, Eigenvalues and eigenvectors, etc... I simply have no idea how I'm gonna implement this. Need to have a look at solutions in Haskell for inspiration.
Something like https://github.com/Skinney/core/blob/master/src/Elm/JsArray.elm ? It's what is used as the basis for Arrays in 0.19. It is not planned to be opened for use outside of elm-lang/core, but if it fits your usecase better, I'm sure Evan would be interested in hearing about it.
(JsArray is a thin wrapper over javascript arrays. Any operation that modifies the underlying structure causes a complete copy, but get and folds are very fast. Slicing when start === 0 is still going to be faster using Elm Arrays as it is a tree structure. On the other hand, it should be fairly easy to create a "view" instead of slicing, but that might give you problems with space leaks.)
Could JsArray.elm by made to work with JavaScript typed arrays? https://developer.mozilla.org/en-US/docs/Web/JavaScript/Typed_arrays
Could JsArray.elm by made to work with JavaScript typed arrays? https://developer.mozilla.org/en-US/docs/Web/JavaScript/Typed_arrays
That was exactly what I was wondering. I peaked at the elm and kernel code and wanted to try to hack something to wrap ArrayBuffer. I got stopped at the step of compiling the elm plateform at master ^^, my system ghc beeing 8.2 and I don't have enough haskell-fu yet to manage multiple haskell versions :)
"dependency-sources": {
"elm-lang/core": "../my-hacked-core"
}
As a side note, I just went to a NixOS [1] meetup yesterday evening, really cool stuff. I think this nix package manager [2] will help me deal with those dependencies issues!
Do you need to rebuild the compiler for this?
--