On Tuesday, October 31, 2017 at 12:32:06 PM UTC, Francisco Ramos wrote: > > https://github.com/jscriptcoder/numelm > > Please, any feedback would be highly appreciated. >
So, I have a project at work where we are using NumPy running on AWS. I have been looking into how to write AWS Lambda functions using Elm, and found this excellent project: http://package.elm-lang.org/packages/ktonon/elm-serverless/latest https://github.com/ktonon/elm-serverless One cool thing about how it is implemented, is that it uses a wrapper around the Elm program to establish a new type of 'Program'. As such it doesn't have ports or hacked any kernel code - yet it is definitely stretching Elm well outside of it comfort zone as a client side only language. I think that is pretty neat, because my instincts would have been either to use ports or do some kernel hacking and ended up with code that I could not then share on package.elm-lang.org. I somehow automatically assume that doing anything with elm that is not TEA is going to involve native code in such a way that a non-shareable package is created and the back-door that is elm-github-install will be used. My work project involves running an algorithm in NumPy against 10s or 100s of days of data points and doing some curve fitting to then make an estimate of when some equipment is going to exceeed its specified operating parameters (I'm being vague because I signed an NDA). So once I get my Elm Lambda functions experiment working nicely, I can try out converting the NumPy algorithms into NumElm. All the NumPy algorithms I have are quite short, its fairly simple stuff we are doing. Even if NumElm turns out a bit slow, its only a few hundred data points at most so I think it will be ok. I also think fetching the data from the database (Athena) will tend to dominate rather than the CPU work. How would I write a curve fitting alrogithm with this? So I have a 3rd order polynomial: y = a + b.x + c.x^2 + d.x^3 and some linear algebra on 100 data points will yield values for a, b, c and d. I'll post up the python code tomorrow, it seems to use an in-built fit_curve() function. Rupert -- 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+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.