Re: [elm-discuss] Benchmarking with no JavaScript dependencies

2017-01-30 Thread Brian Hicks
I actually kind of figured that out. The constructor function can wrap and return whatever it wants in Elm. I think we'll still need a native module for timing, though. On Friday, January 27, 2017 at 4:32:32 PM UTC-6, Joey Eremondi wrote: > > I have some thoughts on how to fix the effectful func

Re: [elm-discuss] Benchmarking with no JavaScript dependencies

2017-01-27 Thread Joey Eremondi
> > I have some thoughts on how to fix the effectful functions… namely, > lifting them to Tasks. But that doesn't seem like quite the right approach, > since Tasks can fail and these can't. This makes me think that an effect > module may be the best way to handle this. > Couldn't you just make the

[elm-discuss] Benchmarking with no JavaScript dependencies

2017-01-27 Thread Brian Hicks
Summary: I'd like a benchmarking library to use in Elm with no JavaScript dependencies. The sketch I have so far requires native code. Now that I've proved the concept to myself, I'd like to discuss the best API. I've created the following functions, backed by native code (using performance.now